Question: Who are the people who have a stepparent, and who are those stepparents?

SELECT ?child ?childLabel ?stepparent ?stepparentLabel WHERE { ?child wdt:P3448 ?stepparent . FILTER(!isBlank(?stepparent)) . ?child rdfs:label ?childLabel . ?stepparent rdfs:label ?stepparentLabel . FILTER(LANG(?childLabel) = "en") . FILTER(LANG(?stepparentLabel) = "en") }

List all stepparent-child relationships in Wikidata with English names.

Show me pairs of people where one is the stepparent of the other, including their full names in English.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3448> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Italian citizens with exactly one Wikipedia page

SELECT ?person ?personLabel WHERE { { SELECT ?person WHERE { ?person wdt:P31 wd:Q5 . ?person p:P27/ps:P27 wd:Q38 . ?site schema:about ?person . ?site schema:isPartOf ?wiki . FILTER(STRSTARTS(STR(?wiki), "https://")) } GROUP BY ?person HAVING (COUNT(?site) = 1) } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

How many humans who are citizens of Italy have only one Wikipedia article?

List the English names of all Italian citizens who appear on only one Wikipedia language edition.

SELECT ?var1 ?var1Label WHERE { { SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/P27> [ <http://www.wikidata.org/prop/statement/P27> <http://www.wikidata.org/entity/Q38> ] . ?var1 <http://www.wikidata.org/prop/P27> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var4 <http://schema.org/about> ?var1 . ?var1 <http://wikiba.se/ontology#sitelinks> ?var5 . FILTER ( ( ( ?var5 < "2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } FILTER ( ( ( ?var2 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt0046911?

SELECT ?movie ?wikipediaPage WHERE { ?movie wdt:P345 "tt0046911" . ?wikipediaPage schema:about ?movie . ?wikipediaPage schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

Show me the Wikipedia articles about the film Diabolique in English and German.

Which language versions of Wikipedia have articles about the movie identified by tt0046911?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0046911". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Airlines owned by Finnair with English Wikipedia pages and official websites.

SELECT ?airline ?airlineLabel ?wikipediaPage ?website WHERE { ?airline wdt:P127 wd:Q201821 . ?wikipediaPage schema:about ?airline ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?airline wdt:P856 ?website . } ?airline rdfs:label ?airlineLabel . FILTER(LANG(?airlineLabel) = "en") }

Which airlines are owned by Finnair, and what are their English Wikipedia pages and official websites?

Show me the English Wikipedia pages and official websites of airlines owned by Finnair.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q201821> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top 1000 countries by number of citizens on Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?countryLabel ?citizenCount WHERE {
  {
    SELECT ?country ( COUNT( * ) AS ?citizenCount ) WHERE {
      ?citizen wdt:P27 ?country .
    }
    GROUP BY ?country
    ORDER BY DESC ( ?citizenCount )
    LIMIT 1000
  }
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" )
}
ORDER BY DESC ( ?citizenCount ) ASC ( ?country )

Which countries have the most citizens according to Wikidata, and how many are there?

Show me the 1000 countries with the highest number of citizens, along with their English names and citizen counts.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var2 )( SAMPLE ( ?var4 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P27> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var2 )ASC( ?var1 )


Question: Who are the condottieri and which countries were they citizens of?

SELECT ?person ?personLabel ?countryLabel WHERE { ?person wdt:P106 wd:Q273108 . ?person wdt:P27 ?country . ?person rdfs:label ?personLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?personLabel) = 'en') . FILTER(LANG(?countryLabel) = 'en') }

Can you list the names of historical mercenary leaders from medieval Italy along with their countries of citizenship?

Show me the English labels of people who worked as condottieri and their corresponding countries of citizenship.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q273108> . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } }


Question: Fathers of male Greek mythological characters — are they Wikidata entities?

SELECT (isIRI(?father) AS ?isFatherEntity) WHERE { ?character wdt:P31 wd:Q22988604 ; wdt:P22 ?father ; wdt:P21 wd:Q6581097 . } LIMIT 10

Do the fathers of male characters in Greek mythology have Wikidata item identifiers?

Show whether the fathers of male Greek mythological figures are represented as entities in Wikidata.

SELECT( isIRI ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var3 ?var1 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22988604> . ?var3 <http://www.wikidata.org/prop/direct/P22> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . } LIMIT 10 } }


Question: Number of people with English Wikipedia pages who have children with any Wikipedia page.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( DISTINCT ?parent ) AS ?count ) WHERE {
  ?parent wdt:P40 ?child .
  ?parentPage schema:about ?parent ; schema:inLanguage "en" .
  ?childPage schema:about ?child .
}

How many people have an English Wikipedia page and at least one child who also has a Wikipedia page?

Show me the count of individuals who are notable enough to have an English Wikipedia article and have children who are notable enough to have any Wikipedia article.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P40> ?var3 . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". FILTER ( ( EXISTS { ?var5 <http://schema.org/about> ?var3 . } ) ) . FILTER ( ( EXISTS { ?var5 <http://schema.org/inLanguage> "en". } ) ) . }


Question: What Wikipedia articles are about Air Algérie, given its official website is airalgerie.dz?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?company ?companyLabel ?wikiPage WHERE {
  ?company wdt:P856 <https://airalgerie.dz/> .
  ?company rdfs:label ?companyLabel .
  FILTER ( LANG( ?companyLabel ) = "en" ) .
  ?wikiPage schema:about ?company .
  FILTER ( STRSTARTS( STR( ?wikiPage ) , "https://" ) && CONTAINS( STR( ?wikiPage ) , "wikipedia.org" ) )
}

Which language versions of Wikipedia have articles about the airline with the official website airalgerie.dz?

Show me all the Wikipedia pages linked to Air Algérie through its official website.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.airalgerie.dz/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.airalgerie.dz/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://airalgerie.dz/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://airalgerie.dz/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://airalgerie.dz> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://airalgerie.dz> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://airalgerie.dz> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://airalgerie.dz> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://airalgerie.dz/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://airalgerie.dz/> . } ?var2 <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Carl August Ehrensvärd, the Swedish naval commander involved in the Battle of Vyborg Bay?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?personLabel ?birthDate ?deathDate WHERE {
  BIND(wd:Q1036858 AS ?person)
  .
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  ?person rdfs:label ?personLabel .
}

Can you tell me when Carl August Ehrensvärd was born and when he died?

Provide the life span (birth and death years) of the commander of the Battle of Vyborg Bay, Carl August Ehrensvärd.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2004436> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of the person with SNAC ARK ID w62z2nd3

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w62z2nd3" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image associated with Richard Caton Woodville Jr. in Wikidata?

Show me the Wikimedia Commons image for the individual identified by SNAC ARK ID w62z2nd3.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w62z2nd3". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What are the German and Portuguese Wikipedia articles about the movie with IMDb ID tt1156464?

SELECT ?item ?wikipedia_page WHERE { VALUES ?imdb_id { "tt1156464" } ?item wdt:P345 ?imdb_id . ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang IN ("en", "de", "pt")) }

Which Wikipedia pages in English, German, or Portuguese cover the film Star Crossed?

Show me the Wikipedia links for the movie tt1156464 in German and Portuguese.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1156464". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } UNION { ?var2 <http://schema.org/inLanguage> "pt". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which fathers have the most children in Wikidata, and do they have images?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?fatherLabel ( SAMPLE( ?img ) AS ?image ) ( COUNT( ?child ) AS ?childCount ) WHERE {
  ?child wdt:P22 ?father .
  ?father rdfs:label ?fatherLabel .
  FILTER ( LANG( ?fatherLabel ) = "en" ) OPTIONAL {
    ?father wdt:P18 ?img .
  }
}
GROUP BY ?father ?fatherLabel
ORDER BY DESC ( ?childCount )
LIMIT 50

Show the top 50 fathers with the highest number of children, including their images if available.

Who are the most prolific fathers in mythology and history, ranked by number of children, with their portraits?

SELECT( SAMPLE ( ?var1 ) AS ?var1 ) ?var1Label ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var1 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P22> ?var1 ; <http://www.wikidata.org/prop/direct/4104> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1Label ORDER BY DESC( ?var3 ) LIMIT 50


Question: How many people are citizens of the Philippines according to Wikidata?

SELECT (COUNT(DISTINCT ?person) AS ?count) WHERE { ?person wdt:P27 wd:Q928 . }

What is the total number of individuals who hold Philippine citizenship?

Count the number of distinct people whose country of citizenship is the Philippines.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q928> . } }


Question: Squares in Prague

SELECT DISTINCT ?square ?label WHERE { ?square wdt:P31 wd:Q174782 . ?square wdt:P131 wd:Q1085 . ?square rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 30

List the English names of all squares in Prague, Czech Republic.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q174782> . ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q1085> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 30


Question: Czech neighborhoods in Prague with coordinates, images, and Commons categories

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE {
  ?item wdt:P2788 ?neighbourhoodId .
  ?item wdt:P625 ?location .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
  FILTER(STRSTARTS(STR(?location) , "POINT(13.") || STRSTARTS(STR(?location) , "POINT(14."))
  FILTER(CONTAINS(STR(?location) , " 49.") || CONTAINS(STR(?location) , " 50."))
}
LIMIT 100

What are the neighborhoods in the Czech Republic located around Prague (latitude 49–50, longitude 13–14) that have an official ID, an image, and a Wikimedia Commons category?

List Czech neighborhoods near Prague with their coordinates, images, Commons categories, and addresses, in English.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(13 49)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(13 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Humans from Bosnia and Herzegovina with non-Slovenian labels

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?label WHERE {
  ?item wdt:P31 wd:Q5 ; wdt:P27 wd:Q225 .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) != "sl")
}
ORDER BY ASC(?label)
LIMIT 10000

Who are the people from Bosnia and Herzegovina who have a Wikipedia label in a language other than Slovenian?

List all citizens of Bosnia and Herzegovina who are humans and have a label in any language except Slovenian.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q225> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sh,en,de,nl,fr,it,es,no,pt,pl,cs,hr". } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "sl" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label ) LIMIT 10000


Question: Is Devra Canter a type of software?

Does Devra Canter belong to a category that is a subclass of software?

Is Devra Canter classified under any category that software also belongs to?

ASK WHERE { <http://www.wikidata.org/entity/Q26261026> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: List of districts in the Czech Republic with their English names.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?district ?districtLabel WHERE {
  ?district wdt:P31 wd:Q548611 .
  ?district rdfs:label ?districtLabel .
  FILTER ( LANG( ?districtLabel ) = "en" )
}
ORDER BY ?districtLabel

What are the English names of all districts in the Czech Republic, sorted alphabetically?

Show me the English labels of all Czech districts, ordered by name.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . OPTIONAL { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q548611> . ?var1 <http://www.wikidata.org/prop/direct/P300> ?var4 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } ORDER BY DESC( ?var1Label )


Question: List of fields of work such as academic disciplines and professions.

SELECT DISTINCT ?fieldOfWork ?fieldOfWorkLabel WHERE { ?item wdt:P101 ?fieldOfWork. ?fieldOfWork rdfs:label ?fieldOfWorkLabel. FILTER(LANG(?fieldOfWorkLabel) = 'en') { ?fieldOfWork (wdt:P279*) wd:Q1047113. } UNION { ?fieldOfWork (wdt:P279*) wd:Q451967. } } ORDER BY ?fieldOfWorkLabel LIMIT 100

What are the common academic disciplines and areas of professional activity in Wikidata?

Show me all the fields of work (like computer science or medicine) that people are associated with in Wikidata.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q627436> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: English and German Wikipedia and Wikiquote pages about the movie Tron: Legacy (IMDb tt1104001)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt1104001" .
  ?page schema:about ?movie .
  VALUES ?lang {
    "en" "de"
  }
  ?page schema:inLanguage ?lang .
}

What English and German language pages on Wikipedia and Wikiquote are about the movie Tron: Legacy, identified by IMDb ID tt1104001?

Show me the English and German language pages related to the movie Tron: Legacy (IMDb ID: tt1104001).

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1104001". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What was Jacoba Bicker’s occupation?

SELECT ?occupation WHERE { wd:Q2470166 wdt:P106 ?occupation .}

What job is associated with Jacoba Bicker in Wikidata?

Can you tell me the profession of Jacoba Bicker?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2470166> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: Wikipedia and Wikiquote pages in English or German about the movie with IMDb ID tt0963966.

SELECT ?movie ?page WHERE { ?movie wdt:P345 "tt0963966" . ?page schema:about ?movie . ?page schema:inLanguage ?lang . VALUES ?lang { "en" "de" } }

What English and German language Wikipedia or Wikiquote pages are about the movie "The Sorcerer’s Apprentice" (IMDb: tt0963966)?

Show me the English and German language pages related to the movie "The Sorcerer’s Apprentice" (IMDb ID tt0963966).

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0963966". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the official website and type of Enter Air?

SELECT ?airline ?airlineLabel ?website ?type WHERE { BIND(wd:Q1344593 AS ?airline) ?airline rdfs:label ?airlineLabel . FILTER(LANG(?airlineLabel) = 'en') . ?airline wdt:P856 ?website . ?airline wdt:P31 ?type . }

Can you tell me the official website and what kind of company Enter Air is?

Is Enter Air an airline or a charter airline, and what is its official website?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q1344593> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Official website nordis.de, label, and Wikipedia page

SELECT ?item ?itemLabel ?wikipediaPage WHERE { ?item wdt:P856 <http://www.nordis.de> . ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang ; schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] . FILTER(?lang IN ("en", "de")) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) IN ("en", "de")) }

What is the entity with the official website nordis.de, and what are its label and corresponding Wikipedia page in English or German?

Show me the name and Wikipedia article of the company whose official website is nordis.de, in English or German.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.nordis.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.nordis.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://nordis.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://nordis.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://nordis.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://nordis.de/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the people listed in Wikidata as trade unionists, either by occupation, field of work, or position held?

SELECT ?person ?label WHERE { { ?person wdt:P106 wd:Q15627169 . } UNION { ?person wdt:P101 wd:Q15627169 . } UNION { ?person wdt:P39 wd:Q15627169 . } ?person rdfs:label ?label . FILTER(LANG(?label) = 'en') } ORDER BY ?person LIMIT 2000

Can you list notable trade unionists from Wikidata, including those with occupations, fields of work, or positions related to trade unionism?

What are the names of individuals whose occupation, academic field, or public office is trade unionist?

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> */ <http://www.wikidata.org/prop/direct/P101> */ <http://www.wikidata.org/prop/direct/P39> *) <http://www.wikidata.org/entity/Q15627169> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 2000


Question: Person with country of citizenship and gender, in English

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?person ?label ?countryLabel ?genderLabel WHERE {
  ?person wdt:P27 ?country .
  ?person wdt:P21 ?gender .
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  ?gender rdfs:label ?genderLabel .
  FILTER(LANG(?genderLabel) = "en")
}
LIMIT 1

Who is a person with a known country of citizenship and gender, and what are their name, country, and gender in English?

Show me one person’s name, country of citizenship, and gender, all in English.

SELECT ?var1 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var4 . } } LIMIT 1


Question: What entities are connected to Pakistan through properties other than "instance of"?

SELECT ?item ?property WHERE { ?item ?property wd:Q843 . FILTER (STRSTARTS(STR(?item), "http://www.wikidata.org/entity/Q")) FILTER (?property != wd:P31) } LIMIT 100

List all items related to Pakistan and the properties that link them, excluding "instance of".

Which real-world entities have a direct relationship with Pakistan, and what are those relationships?

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q843> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: English and German Wikipedia and Wikiquote pages about the movie with IMDb ID tt0036414.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0036414" .
  ?page schema:about ?movie .
  VALUES ?lang {
    "en" "de"
  }
  ?page schema:inLanguage ?lang .
}

What English and German language pages are about the movie "Tarzan Triumphs" (IMDb ID: tt0036414)?

Show me the English and German Wikipedia and Wikiquote pages linked to the movie with IMDb ID tt0036414.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0036414". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the direct properties of Egypt with English labels and their corresponding English-labeled values, excluding "has part"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?egyptLabel ?property ?propertyLabel ?object ?objectLabel WHERE {
  wd:Q79 ?property ?object .
  FILTER(?property != wdt:P1963)
  ?object rdfs:label ?objectLabel .
  wd:Q79 rdfs:label ?egyptLabel .
  FILTER(LANG(?objectLabel) = "en")
  FILTER(LANG(?egyptLabel) = "en")
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyItem)
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
LIMIT 3

What are the English-labeled properties and their values for Egypt, excluding the property "has part"?

Show me the properties of Egypt (in English), along with their English-labeled values, but skip any property that means "has part".

SELECT ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { <http://www.wikidata.org/entity/Q79> ?var4 ?var3 . ?var2 ?var5 ?var4 . ?var2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . <http://www.wikidata.org/entity/Q79> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( ( ?var4 != <http://www.wikidata.org/prop/direct/P1963> ) ) ) . } LIMIT 3


Question: What are the English and German Wikipedia pages about LinkedIn?

SELECT ?linkedinLabel ?page ?language WHERE { wd:Q213660 rdfs:label ?linkedinLabel . FILTER(LANG(?linkedinLabel) = "en") . ?page schema:about wd:Q213660 . ?page schema:inLanguage ?language . FILTER(?language = "en" || ?language = "de") }

Can you show me the webpages in English or German that discuss LinkedIn?

Which language versions of Wikipedia have articles about the company LinkedIn?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://developer.linkedin.com/blog.rss.html.html> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.developer.linkedin.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.developer.linkedin.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://developer.linkedin.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://developer.linkedin.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://developer.linkedin.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://developer.linkedin.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://developer.linkedin.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://developer.linkedin.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://developer.linkedin.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://developer.linkedin.com/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Number of people with Ethiopian citizenship

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( DISTINCT ?person ) AS ?count ) WHERE {
  ?person wdt:P27 wd:Q115 .
}

How many people are citizens of Ethiopia?

Count the number of individuals who hold Ethiopian nationality.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q115> . } }


Question: Cultural monuments in the Czech Republic without geographic coordinates and their Czech Wikipedia pages.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?monument ?monumentLabel ?wikipediaPage WHERE {
  ?monument wdt:P1435 wd:Q385405 ; wdt:P17 wd:Q213 . MINUS {
    ?monument wdt:P625 [] .
  }
  OPTIONAL {
    ?monument rdfs:label ?monumentLabel .
    FILTER ( LANG( ?monumentLabel ) = "en" )
  }
  OPTIONAL {
    ?wikipediaPage schema:about ?monument ; schema:inLanguage "cs" ; schema:isPartOf <https://cs.wikipedia.org/> .
  }
}

Which cultural monuments in the Czech Republic do not have coordinates listed, and what are their Czech Wikipedia articles?

Show me cultural monuments in the Czech Republic that lack geographic coordinates, along with their Czech-language Wikipedia links, and include their English names if available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q385405> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . OPTIONAL { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "cs". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } }


Question: List of municipalities in the Czech Republic with their Czech names.

SELECT ?municipality ?municipalityLabel WHERE { ?municipality wdt:P31 wd:Q5153359 . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "cs") } LIMIT 50

What are the names of municipalities in the Czech Republic in Czech?

Show me the 50 municipalities of the Czech Republic along with their local (Czech) names.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 50


Question: What is the official website of Wightlink, and which Wikipedia articles are about it?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?article WHERE {
  ?item wdt:P856 <https://www.wightlink.co.uk/> .
  ?item rdfs:label ?label .
  ?article schema:about ?item .
}

Can you show me the English label and Wikipedia links for the company whose official website is https://www.wightlink.co.uk/?

I need the name and associated Wikipedia pages for the entity that has https://www.wightlink.co.uk/ as its official website.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.wightlink.co.uk/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.wightlink.co.uk/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.wightlink.co.uk/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.wightlink.co.uk/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.wightlink.co.uk> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.wightlink.co.uk> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://wightlink.co.uk> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://wightlink.co.uk> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://wightlink.co.uk/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://wightlink.co.uk/> . } ?var2 <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: How many Lithuanian citizens have an image on Wikimedia Commons?

SELECT (COUNT(DISTINCT ?person) AS ?count) WHERE { ?person wdt:P27 wd:Q37 . ?person wdt:P18 ?image .}

What is the number of people who are citizens of Lithuania and have a photo linked in Wikidata?

Count the number of distinct individuals with Lithuanian citizenship who have an associated image file on Wikimedia Commons.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q37> . } ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . }


Question: Lebanese citizens with English names, their gender and occupation, excluding those with Arabic descriptions.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?person ?gender ?occupation ?label WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 wd:Q822 .
  OPTIONAL {
    ?person wdt:P21 ?gender .
  }
  OPTIONAL {
    ?person wdt:P106 ?occupation .
  }
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(NOT EXISTS {
    ?person schema:description ?desc .
    FILTER(LANG(?desc) = "ar")
  })
}

Who are the Lebanese citizens with known gender and occupation, who have an English label and no Arabic description?

List the names, genders, and occupations of Lebanese citizens who have English labels and no Arabic-language descriptions.

SELECT ?var1 ?var2 ?var3 ?var4 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q822> . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "ar" ) ) ) . } ) ) . }


Question: What are the geographic coordinates of the AuScope Hobart Antenna, and what are the coordinates of the administrative region it is located in?

SELECT ?antennaCoords ?adminRegionCoords WHERE { wd:Q32049295 wdt:P625 ?antennaCoords . OPTIONAL { wd:Q32049295 wdt:P131 ?adminRegion . ?adminRegion wdt:P625 ?adminRegionCoords . } }

Coordinates of AuScope Hobart Antenna and its administrative region (Tasmania)

Show me the precise location of the AuScope Hobart Antenna and the approximate center of the region (Tasmania) where it is situated.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q32049295> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q32049295> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: What are the English Wikipedia pages and official websites of resorts owned by Diamond Resorts?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?resort ?resortLabel ?wikipediaPage ?officialWebsite WHERE {
  ?resort wdt:P127 wd:Q5270905 .
  ?wikipediaPage schema:about ?resort ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  OPTIONAL {
    ?resort wdt:P856 ?officialWebsite .
  }
  ?resort rdfs:label ?resortLabel .
  FILTER(LANG(?resortLabel) = "en")
}

Which resorts are owned by Diamond Resorts, and what are their English Wikipedia pages and official websites?

Please list the English Wikipedia links and official websites for all resorts owned by Diamond Resorts.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q5270905> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People who are actors or related professions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person ?personLabel WHERE {
  ?person wdt:P106 / wdt:P279 * wd:Q33999 ; rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 100

Who are the people whose occupation is actor or a subclass of actor?

List English names of people working as actors or in related acting roles.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q33999> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } LIMIT 100


Question: Parents of Nikita Mikhalkov and their children.

SELECT ?parent ?parentLabel ?child WHERE { ?parent wdt:P40 wd:Q55207 . ?parent wdt:P40 ?child . ?parent rdfs:label ?parentLabel . FILTER(LANG(?parentLabel) = "en") }

Who are the parents of Nikita Mikhalkov, and who are their children?

List all siblings of Nikita Mikhalkov along with their parents.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P40> * <http://www.wikidata.org/entity/Q55207> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } }


Question: What are the top 50 most common occupations in Wikidata, and what are their Spanish names?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?occupationLabel ?count WHERE {
  {
    SELECT ?occupation(COUNT(?person) AS ?count) WHERE {
      ?person wdt:P106 ?occupation .
    }
    GROUP BY ?occupation
    ORDER BY DESC(?count)
    LIMIT 1000
  }
  OPTIONAL {
    ?occupation rdfs:label ?occupationLabel .
    FILTER(LANG(?occupationLabel) = "es")
  }
}
ORDER BY DESC(?count)
LIMIT 50

Show me the 50 occupations with the most people associated with them, along with their labels in Spanish.

Which occupations are held by the largest number of people on Wikidata, and how are they called in Spanish?

SELECT ?var1 ?var2Label ?var3 WHERE { { SELECT ?var2 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P106> ?var2 . } GROUP BY ?var2 ORDER BY DESC( ?var3 ) LIMIT 1000 } OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "es" ) ) ) . } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,es,pl,ja,zh,ru". } } ORDER BY DESC( ?var3 ) LIMIT 50


Question: Who are some humans that work as businesspeople?

SELECT ?personLabel WHERE { ?person wdt:P106 wd:Q43845 . ?person wdt:P31 wd:Q5 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10000

Show me the names of all humans whose occupation is businessperson.

SELECT ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q43845> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10000


Question: People with allegiance to the United States

SELECT ?person ?personLabel WHERE { ?statement ps:P945 wd:Q30 . ?person p:P945 ?statement . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 101

Who are the people who have allegiance to the United States?

List up to 101 individuals who are allied with the United States, along with their English names.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P945> <http://www.wikidata.org/entity/Q30> . ?var1 <http://www.wikidata.org/prop/P945> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: What are the occupations of Kees Maks?

SELECT ?occupation WHERE { wd:Q2463676 wdt:P106 ?occupation .}

Tell me the professions Kees Maks was known for.

SELECT( "1"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var1 ) WHERE { <http://www.wikidata.org/entity/Q2463676> <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . }


Question: Czech cultural heritage sites and their top-level administrative regions in English.

SELECT ?administrativeEntity (SAMPLE(?adminLabel) AS ?administrativeEntityLabel) (SAMPLE(?heritageItem) AS ?sampledHeritageItem) (SAMPLE(?heritageLabel) AS ?sampledHeritageItemLabel) WHERE {  ?heritageItem wdt:P762 [] ;  wdt:P131 ?administrativeEntity .  ?administrativeEntity rdfs:label ?adminLabel .  ?heritageItem rdfs:label ?heritageLabel .  MINUS {  ?administrativeEntity wdt:P131 [] .  }  FILTER(LANG(?adminLabel) = "en" || LANG(?adminLabel) = "")  FILTER(LANG(?heritageLabel) = "en" || LANG(?heritageLabel) = "")} GROUP BY ?administrativeEntity ORDER BY ASC(?administrativeEntityLabel)

What are the top-level administrative entities in the Czech Republic that contain cultural heritage sites with a Czech cultural heritage ID, and what is one example site from each?

List the highest-level administrative areas in the Czech Republic that contain cultural heritage items with a Czech cultural heritage ID, along with one example heritage item and its name in English.

SELECT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var4 )( SAMPLE ( ?var3Label ) AS ?var4Label ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P762> [] ; ( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P131> ?) ?var1 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P131> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,sk,en,de". } } GROUP BY ?var1 ?var1Label ?var2 ORDER BY ASC( ?var1Label )


Question: Streets in the Czech Republic with coordinates and English names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?street ?streetLabel ?coord WHERE {
  ?street wdt:P31 wd:Q79007 .
  ?street wdt:P17 wd:Q213 .
  ?street wdt:P625 ?coord .
  ?street rdfs:label ?streetLabel .
  FILTER ( LANG( ?streetLabel ) = "en" )
}
LIMIT 10

What are the streets in the Czech Republic, their English names, and their geographic coordinates?

List up to 10 streets in the Czech Republic along with their English labels and coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(13 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(15 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . ?var1 <http://www.wikidata.org/prop/direct/P373> ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Image of the person with SNAC ARK ID w6cj8gsw

SELECT ?image WHERE { ?item wdt:P3430 "w6cj8gsw" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with Charles E. Burchfield in Wikidata?

Show me the Wikimedia Commons image for the item identified by SNAC ARK ID w6cj8gsw.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6cj8gsw". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Czech cultural heritage items grouped by class, counting direct and indirect instances.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?classLabel ?count ?mode WHERE {
  {
    SELECT ?class ( COUNT( DISTINCT ?item ) AS ?count ) ?mode WHERE {
      ?item wdt:P762 [] ; wdt:P31 ?instanceClass .
      ?instanceClass wdt:P279 * ?class .
      VALUES ?mode {
        "direct" "all"
      }
      FILTER ( ( ?mode = "all" ) || ( ?instanceClass = ?class ) )
    }
    GROUP BY ?class ?mode
  }
  FILTER ( ! ( ?mode = "direct" && ?count = 0 ) ) ?class rdfs:label ?classLabel .
  FILTER ( LANG( ?classLabel ) = "en" )
}

How many Czech cultural heritage items are associated with each class, both directly and through subclasses, excluding classes with no direct members?

List all classes in Wikidata that have Czech cultural heritage items, showing how many items belong to each class directly and via subclasses, and only include classes that have at least one direct member.

SELECT ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ?var3 ( COUNT ( DISTINCT ?var4 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P762> [] ; <http://www.wikidata.org/prop/direct/P31> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> * ?var1 . VALUES ( ?var3 ) { ( "direct" ) ( "all" ) } FILTER ( ( ( ?var3 = "all" ) || ( ?var5 = ?var1 ) ) ) . } GROUP BY ?var1 ?var3 } FILTER ( ( !(( ?var3 = "dir" ) && ( ?var2 = "0"^^<http://www.w3.org/2001/XMLSchema#integer> )) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } }


Question: What are the items located between longitude 12 and 19 and latitude 49 and 51 that have a Bulgarian-language Wikipedia article?

SELECT ?item ?coord ?article WHERE {
  ?item wdt:P625 ?coord .
  BIND(REPLACE(STR(?coord), "POINT\\(", "") AS ?point)
  BIND(REPLACE(?point, "\\)", "") AS ?coords)
  BIND(STRBEFORE(?coords, " ") AS ?lon)
  BIND(STRAFTER(?coords, " ") AS ?lat)
  FILTER( xsd:decimal(?lon) >= 12 && xsd:decimal(?lon) <= 19 )
  FILTER( xsd:decimal(?lat) >= 49 && xsd:decimal(?lat) <= 51 )
  ?article schema:about ?item .
  ?article schema:inLanguage "bg" .
}
LIMIT 5000

Show me Bulgarian Wikipedia articles for places within the bounding box defined by coordinates (12,49) and (19,51).

List all places in the area from 12°E to 19°E and 49°N to 51°N that have a Bulgarian Wikipedia page, along with their coordinates.

SELECT ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(12 49)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(19 51)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "bg". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "bg,cs,en". } } LIMIT 5000


Question: Streets in Czech Republic between latitudes 48–51 and longitudes 14–23 without Wikimedia Commons categories.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?street ?streetLabel ?location ?image ?commonsCategory ?address WHERE {
  ?street wdt:P31 wd:Q79007 ; wdt:P17 wd:Q213 ; wdt:P625 ?location .
  FILTER(geof:latitude(?location) >= 48 && geof:latitude(?location) <= 51 && geof:longitude(?location) >= 14 && geof:longitude(?location) <= 23) MINUS {
    ?street wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?street wdt:P18 ?image .
  }
  OPTIONAL {
    ?street wdt:P969 ?address .
  }
  ?street rdfs:label ?streetLabel .
  FILTER(LANG(?streetLabel) = "en")
}
LIMIT 3000

What are the streets in the Czech Republic located between 14° and 23° longitude and 48° and 51° latitude that don’t have a Wikimedia Commons category?

List English-named streets in the Czech Republic within the geographic bounds of 14–23°E and 48–51°N, excluding those with Commons categories, and include their images and addresses if available.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(14 48)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(23 51)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Wikipedia page for movie with IMDb ID tt1489167 in English or German

SELECT ?item ?wikipedia_page ?imdb_id WHERE { ?item wdt:P345 ?imdb_id . ?wikipedia_page schema:about ?item . ?wikipedia_page schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") FILTER(?imdb_id = "tt1489167") }

What is the English or German Wikipedia page for the film with IMDb ID tt1489167?

Show me the English or German Wikipedia article for the movie identified by IMDb ID tt1489167.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1489167". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who is Syria Cipressi, and what are her occupation, nationality, birthplace, and date of birth?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?occupation ?citizenship ?birthPlace ?birthDate WHERE {
  wd:Q3979196 rdfs:label ?label .
  FILTER(LANG(?label) = 'en')
  .
  wd:Q3979196 wdt:P106 ?occupation .
  wd:Q3979196 wdt:P27 ?citizenship .
  wd:Q3979196 wdt:P19 ?birthPlace .
  wd:Q3979196 wdt:P569 ?birthDate .
}

Can you tell me about the Italian singer Syria, including where and when she was born and what she does for a living?

What information is available about the Italian singer Syria born in Rome in 1977?


Question: List all national cultural monuments of the Czech Republic with their English names and Czech heritage IDs.

SELECT ?monument ?monumentLabel ?heritageId WHERE { ?monument wdt:P1435 wd:Q649434 . OPTIONAL { ?monument wdt:P762 ?heritageId . } OPTIONAL { ?monument rdfs:label ?monumentLabel . FILTER(LANG(?monumentLabel) = "en") } }

What are the English names and Czech cultural heritage IDs of all sites designated as national cultural monuments in the Czech Republic?

Please provide the English labels and heritage identifiers for all cultural sites in the Czech Republic that have the status of national cultural monument.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q649434> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P762> ?var2 . } }


Question: What are the top 5 most common causes of death among writers?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?mannerOfDeathLabel(COUNT(DISTINCT ?writer) AS ?count) WHERE {
  ?writer wdt:P106 / wdt:P279 * wd:Q36180 .
  ?writer wdt:P1196 ?mannerOfDeath .
  ?mannerOfDeath rdfs:label ?mannerOfDeathLabel .
  FILTER(LANG(?mannerOfDeathLabel) = "en")
}
GROUP BY ?mannerOfDeathLabel
ORDER BY DESC(?count)
LIMIT 5

Among people whose occupation is writer or a subclass of writer, which manner of death occurs most frequently, and how many such cases are there?

Can you list the five most frequent ways writers have died, along with the number of cases for each?

SELECT ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> ) <http://www.wikidata.org/entity/Q36180> . ?var2 <http://www.wikidata.org/prop/direct/P1196> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de,fr,ru". } } GROUP BY ?var1Label ORDER BY DESC( ?var3 ) LIMIT 5


Question: Writers who were murdered

SELECT ?writer ?label WHERE { ?writer wdt:P106 wd:Q36180 ; wdt:P1196 wd:Q132821 . ?writer rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 10

Who are the writers that were killed by murder?

List the names of people whose occupation was writer and whose manner of death was murder.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36180> ; <http://www.wikidata.org/prop/direct/P1196> <http://www.wikidata.org/entity/Q132821> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,ru". } } LIMIT 10


Question: Is Hans Falk an artist based on his occupations?

ASK WHERE { wd:Q1579429 wdt:P106 ?occupation . ?occupation (wdt:P279*) wd:Q483501 . }

Does Hans Falk have an occupation that is a type of artist?

Check if Hans Falk is classified as an artist through his professional roles.

ASK WHERE { <http://www.wikidata.org/entity/Q1579429> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Qnull> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Who are the humans that are both actors and film actors?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P106 wd:Q33999 .
  ?person wdt:P106 wd:Q10800557 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

List all people who have been classified as both an actor and a film actor in Wikidata.

Which individuals have two occupation tags: actor and film actor?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10800557> . }


Question: List all hotels and casinos owned by MGM Resorts International, including their English Wikipedia pages, all owners, and official websites.

SELECT ?property ?propertyLabel ?wikipediaPage ?owner ?officialWebsite WHERE { ?property wdt:P127 wd:Q568532 . ?wikipediaPage schema:about ?property ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?property wdt:P856 ?officialWebsite . } OPTIONAL { ?property wdt:P127 ?owner . } ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") }

What are the properties owned by MGM Resorts International, and what are their Wikipedia pages, owners, and official websites?

Show me the names, English Wikipedia links, all owners, and official websites of all hotels and casinos owned by MGM Resorts International, including those co-owned by other companies.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q568532> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Statespersons and their countries of citizenship

SELECT ?personLabel ?countryLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P106 wd:Q372436 . ?person wdt:P27 ?country . ?person rdfs:label ?personLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?countryLabel) = "en") }

Who are the human statespersons and which countries are they citizens of?

List the names of all human statespersons along with their countries of citizenship, in English.

SELECT ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q372436> . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What properties are most commonly used to link items to the Ferens Art Gallery, and how many items are linked via each?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?property wd:Q5444068 .
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

Which Wikidata properties connect the most artworks or objects to the Ferens Art Gallery in Hull?

How many items are associated with the Ferens Art Gallery through each property, listing only those used more than once and sorted by frequency?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q5444068> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Image of Charles Bird King with SNAC ARK ID w6qn6613

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6qn6613" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image associated with the SNAC ARK ID w6qn6613?

Show me the Wikimedia Commons image for the entity identified by SNAC ARK ID w6qn6613.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w6qn6613". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What is the official website of Intercorp, and what are its English or German descriptions and labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?descText ?language WHERE {
  ?item wdt:P856 <http://www.intercorp.com.pe> .
  ?item rdfs:label ?itemLabel .
  ?desc schema:about ?item ; schema:description ?descText ; schema:inLanguage ?language .
  FILTER(?language IN("en" , "de"))
  FILTER(LANG(?itemLabel) IN("en" , "de"))
}

Can you show me the name and description in English or German for the company with the official website www.intercorp.com.pe?

I’m looking for information in English or German about the company that owns www.intercorp.com.pe — what’s its name and description?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.intercorpgrp.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.intercorpgrp.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://intercorpgrp.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://intercorpgrp.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://intercorpgrp.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://intercorpgrp.com/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What hotels are owned by Iberostar Hotels & Resorts, and what are their types and official websites?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?hotel ?hotelLabel ?website ?type WHERE {
  ?hotel wdt:P127 wd:Q2035939 .
  OPTIONAL {
    ?hotel wdt:P856 ?website .
  }
  OPTIONAL {
    ?hotel wdt:P31 ?type .
  }
  ?hotel rdfs:label ?hotelLabel .
}

List all hotels owned by Iberostar along with their labels, types, and official websites.

Show me the properties of hotels owned by Iberostar, including their names, what kind of hotels they are, and their websites.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q2035939> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Streets in Czech Republic starting with "1." that are not named after people.

SELECT ?var1Label ?var1 WHERE { ?var1 wdt:P31 wd:Q79007 . ?var1 wdt:P17 wd:Q213 . MINUS { ?var1 wdt:P138 ?var2 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "cs") FILTER(STRSTARTS(?var1Label, "1.")) } ORDER BY ASC(?var1Label)

What are the streets in the Czech Republic whose names begin with "1." and are not named after a person or event?

List all streets in the Czech Republic that are named after dates (like "1. máje") and are not dedicated to any individual.

SELECT ?var1Label ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P138> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,cs". } FILTER ( ( STRSTARTS ( ?var1Label , "1" ) ) ) . } ORDER BY ASC( ?var1Label )


Question: Children of King Wen of Zhou born before him in Wikidata

SELECT ( "has error" AS ?error ) ( COUNT( DISTINCT ?child ) AS ?count ) WHERE { BIND( wd:Q698909 AS ?parent ) . ?parent wdt:P40 ?child . ?parent wdt:P569 ?parentBirth . ?child wdt:P569 ?childBirth . FILTER ( YEAR(?parentBirth) > YEAR(?childBirth) ) }

Which children of King Wen of Zhou have recorded birth dates earlier than his own?

Count how many children of King Wen of Zhou are listed in Wikidata as being born before him, based on estimated birth dates.

SELECT( "has error" AS ?var1 )( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q698909> AS ?var4 ). ?var4 <http://www.wikidata.org/prop/direct/P40> + ?var2 ; <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var6 . FILTER ( ( ( YEAR ( ?var5 ) > YEAR ( ?var6 ) ) ) ) . }


Question: Number of children of Emperor Taizu of Jin

SELECT ?parentLabel ( COUNT( DISTINCT ?child ) AS ?childCount ) WHERE { wd:Q5060 rdfs:label ?parentLabel . FILTER ( LANG( ?parentLabel ) = "en" ) . wd:Q5060 wdt:P40 ?child . wd:Q5060 wdt:P569 ?parentBirth . ?child wdt:P569 ?childBirth . FILTER ( YEAR( ?parentBirth ) > YEAR( ?childBirth ) ) . } GROUP BY ?parentLabel

How many children did Emperor Taizu of Jin have?

Show the name of Emperor Taizu of Jin and how many of his children were born after him.

SELECT( "string1" AS ?var1 )( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q5060> AS ?var4 ). ?var4 <http://www.wikidata.org/prop/direct/P40> + ?var2 ; <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var6 . FILTER ( ( ( YEAR ( ?var5 ) > YEAR ( ?var6 ) ) ) ) . }


Question: What is the image associated with the person having the SNAC ARK ID "w64t7jrg"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w64t7jrg" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

Can you find an image for José Ardévol using his SNAC ARK ID?

Show the Wikimedia Commons image for the entity identified by the SNAC ARK ID w64t7jrg.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w64t7jrg". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Sudanese humans with non-Arabic labels

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?human ?label WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P27 wd:Q1049 .
  ?human rdfs:label ?label .
  FILTER ( LANG( ?label ) != "ar" )
}
ORDER BY ASC ( ?label )

Who are the Sudanese citizens who have labels in languages other than Arabic?

List all humans from Sudan that have labels in any language except Arabic, sorted alphabetically by label.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q1049> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "ar" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label )


Question: What are the occupations of Willem Diepraam?

SELECT ?occupation ?occupationLabel WHERE { wd:Q2268769 wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") }

List Willem Diepraam’s professions in English.

SELECT( "1"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var1 ) WHERE { <http://www.wikidata.org/entity/Q2268769> <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . }


Question: List 100 film actors with their English names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?actor ?actorLabel WHERE {
  ?actor wdt:P106 wd:Q10800557 .
  ?actor rdfs:label ?actorLabel .
  FILTER ( LANG( ?actorLabel ) = "en" )
}
LIMIT 100

Who are 100 film actors and what are their names in English?

Please provide a list of 100 actors who work in films, along with their English names.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10800557> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P800> ?var1 . } } LIMIT 100


Question: Czech monument catalogue numbers assigned to more than one monument

SELECT ?catalogueNumber ?count WHERE { { SELECT ?catalogueNumber (COUNT(?monument) AS ?count) WHERE { ?monument wdt:P4075 ?catalogueNumber . } GROUP BY ?catalogueNumber } FILTER (?count > 1) } ORDER BY ?catalogueNumber

Which Czech Monument Catalogue Numbers in Wikidata are incorrectly assigned to multiple monuments?

Show me all Czech Monument Catalogue Numbers that are linked to more than one monument item in Wikidata, along with how many monuments each one is assigned to.

SELECT * WHERE { { SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 )( GROUP_CONCAT ( ?var2 ; SEPARATOR = " , " ) AS ?var4 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P4075> ?var1 . } GROUP BY ?var1 } FILTER ( ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: How many streets in the Czech Republic have names starting with "Komen"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( ?street ) AS ?count ) WHERE {
  ?street wdt:P31 wd:Q79007 ; wdt:P17 wd:Q213 ; rdfs:label ?label .
  FILTER ( LANG( ?label ) = "cs" ) .
  FILTER ( STRSTARTS( ?label , "Komen" ) )
}

How many streets in the Czech Republic are named after Komenský (i.e., have Czech labels starting with "Komen")?

Count the number of Czech-language street names in the Czech Republic that begin with "Komen".

SELECT( COUNT ( ?var1Label ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . FILTER ( ( STRSTARTS ( ?var1Label , "Komen" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "cs" ) ) ) . }


Question: What is the English Wikipedia page, official website, and type of Edelweiss Air?

SELECT ?companyLabel ?wikipediaPage ?website ?instanceType WHERE { wd:Q662050 rdfs:label ?companyLabel . FILTER(LANG(?companyLabel) = "en") . ?wikipediaPage schema:about wd:Q662050 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { wd:Q662050 wdt:P856 ?website } OPTIONAL { wd:Q662050 wdt:P31 ?instanceType } }

Show me Edelweiss Air’s label, its English Wikipedia link, its website, and what kind of company it is.

Can you provide details about Edelweiss Air including its Wikipedia page, official URL, and classification as an airline?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q662050> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the Russian label and description of the Wikidata property for occupation?

SELECT ?label ?description WHERE { wd:P106 rdfs:label ?label . wd:P106 schema:description ?description . FILTER(LANG(?label) = "ru") . FILTER(LANG(?description) = "ru") }

How is "occupation" described in Russian on Wikidata, and what is its label?

What does the Russian-language label and description say for the property that identifies someone as a composer?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q36834> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "ru" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ru" ) ) ) . } LIMIT 100


Question: Humans from the United Arab Emirates with their gender and occupation, excluding those with Arabic descriptions.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?person ?gender ?occupation ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 wd:Q878 .
  OPTIONAL {
    ?person wdt:P21 ?gender .
  }
  OPTIONAL {
    ?person wdt:P106 ?occupation .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(NOT EXISTS {
    ?person schema:description ?desc .
    FILTER(LANG(?desc) = "ar")
  })
}

Who are the people from the United Arab Emirates, what is their gender and occupation, and which of them do not have an Arabic-language description?

List the English names, genders, and occupations of all citizens of the United Arab Emirates who do not have an Arabic description.

SELECT ?var1 ?var2 ?var3 ?var4 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q878> . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "ar" ) ) ) . } ) ) . }


Question: Country of citizenship of Lucretia Garfield in English

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country ?countryLabel WHERE {
  wd:Q234261 wdt:P27 ?country .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}
LIMIT 50

What is the English name of the country Lucretia Garfield was a citizen of?

Tell me the English label of the country where Lucretia Garfield held citizenship.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q234261> <http://www.wikidata.org/prop/direct/P27> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } LIMIT 50


Question: People who are illustrators

SELECT ?person WHERE { ?person wdt:P106 wd:Q644687 . } LIMIT 100

Who are the people whose occupation is illustrator?

List up to 100 individuals who work as illustrators.

SELECT ?var1 ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca,cat". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q644687> . } LIMIT 100


Question: People who are comics artists or work in related professions.

SELECT ?person ?personLabel WHERE { ?person wdt:P106 / wdt:P279* wd:Q715301 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 100

Who are some people whose occupation is a subclass of comics artist?

List 100 English-named individuals who work as comics artists or in a related artistic field.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q715301> . } LIMIT 100


Question: What is the official website of Rakuten Linkshare, and which Wikipedia page is about it?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?page WHERE {
  ?item wdt:P856 <http://www.rakutenmarketing.com> .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  ?page schema:about ?item .
  FILTER ( STRSTARTS( STR( ?page ) , "https://en.wikipedia.org/" ) )
}

Which Wikipedia page discusses Rakuten Linkshare, and what is its official website?

Show me the English label of Rakuten Linkshare and the Wikipedia article that is about it, given its official website is http://www.rakutenmarketing.com.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.rakutenmarketing.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.rakutenmarketing.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.rakutenmarketing.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.rakutenmarketing.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.rakutenmarketing.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.rakutenmarketing.com> . } ?var2 <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Female citizens of Arab League countries where Arabic is the official language.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?countryLabel WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P21 wd:Q6581072 ; wdt:P27 ?country .
  ?country wdt:P37 wd:Q13955 .
  ?country wdt:P463 wd:Q7172 .
  ?person rdfs:label ?personLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}
ORDER BY ASC(?countryLabel)

Who are the female individuals who are citizens of countries in the Arab League that have Arabic as their official language?

List the names of women and their countries of citizenship where Arabic is the official language and the country is a member of the Arab League.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> ; <http://www.wikidata.org/prop/direct/P27> ?var2 ; <http://www.wikidata.org/prop/direct/P1412> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P37> <http://www.wikidata.org/entity/Q13955> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,ar,en,de". } } ORDER BY ASC( ?var2 )


Question: German-speaking humans with their German family and given names.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?humanLabel ?familyNameLabel ?givenNameLabel WHERE {
  ?human wdt:P31 wd:Q5 ; wdt:P734 ?familyName ; wdt:P735 ?givenName ; rdfs:label ?humanLabel .
  ?familyName rdfs:label ?familyNameLabel .
  ?givenName rdfs:label ?givenNameLabel .
  FILTER(LANG(?humanLabel) = "de")
  FILTER(LANG(?familyNameLabel) = "de")
  FILTER(LANG(?givenNameLabel) = "de")
}
LIMIT 50

Who are some German-labeled people whose first and last names are also available in German?

List up to 50 people with German labels who have both a German family name and a German given name.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } LIMIT 200


Question: List of actors who are human beings in English.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?actorLabel WHERE {
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P31 wd:Q5 .
  ?actor rdfs:label ?actorLabel .
  FILTER ( LANG( ?actorLabel ) = "en" )
}
LIMIT 20000

Who are some human actors according to Wikidata, with their English names?

Please provide a list of English labels for all humans whose occupation is actor.

SELECT ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . } LIMIT 20000 OFFSET 0


Question: Female citizens of Mauritius

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P21 wd:Q6581072 ; wdt:P31 wd:Q5 ; wdt:P27 wd:Q1027 .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 1000

Who are the female humans who are citizens of Mauritius?

List the English names of all women who are citizens of Mauritius and identified as human beings.

SELECT ?var1 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q1027> . } } LIMIT 1000


Question: What are the 10 most common types of monuments listed in the Czech Monument Catalogue?

SELECT ?type ?typeLabel (COUNT(?monument) AS ?count) WHERE { ?monument wdt:P4075 [] . ?monument wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") } GROUP BY ?type ?typeLabel ORDER BY DESC(?count) LIMIT 10

Which types of structures appear most frequently among Czech monuments, and how many of each are there?

Can you list the top 10 monument types in the Czech Republic by count, along with their English names?

SELECT ?var1 ?var1Label ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P4075> [] . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var2 ) LIMIT 10


Question: What are the English and German Wikipedia pages for the film with IMDb ID tt0915457?

SELECT ?wikipediaPage ?language WHERE { ?wikipediaPage schema:about wd:Q1393949 . BIND(IF(STRSTARTS(STR(?wikipediaPage), "https://en.wikipedia.org/"), "en", IF(STRSTARTS(STR(?wikipediaPage), "https://de.wikipedia.org/"), "de", "other")) AS ?language) FILTER(?language IN ("en", "de")) }

Show me the Wikipedia articles in English and German about the documentary "Falco: Damn It, We're Still Alive!"

Which Wikipedia pages in English and German discuss the movie identified by IMDb ID tt0915457?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0915457". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English and German Wikipedia articles for the movie with IMDb ID tt0186654?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikipedia_article WHERE {
  ?item wdt:P345 "tt0186654" .
  ?wikipedia_article schema:about ?item .
  {
    ?wikipedia_article schema:inLanguage "en" .
  } UNION {
    ?wikipedia_article schema:inLanguage "de" .
  }
}

Show me the Wikipedia pages in English and German about the film identified by IMDb ID tt0186654.

Which Wikipedia articles in English and German are about the movie with the IMDb identifier tt0186654?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0186654". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top 50 most common occupations on Wikidata by number of people, with English labels and counts.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?occupation ?occupationLabel ?count WHERE {
  {
    SELECT ?occupation ( COUNT( ?person ) AS ?count ) WHERE {
      ?person wdt:P106 ?occupation .
    }
    GROUP BY ?occupation
    ORDER BY DESC ( ?count )
    LIMIT 1000
  }
  OPTIONAL {
    ?occupation rdfs:label ?occupationLabel .
    FILTER ( LANG( ?occupationLabel ) = "en" )
  }
}
ORDER BY DESC ( ?count )
LIMIT 50

What are the 50 most common occupations in Wikidata, how many people have each, and what are their English names?

Show me the top 50 occupations based on how many people are associated with them, including their English labels and the count of people.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P106> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1000 } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "tt-lat" ) ) ) . } FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,tr,tt-lat". } } ORDER BY DESC( ?var2 ) LIMIT 50


Question: Who are some Japanese painters?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?person ( STR( ?personLabel ) AS ?label ) WHERE {
  ?person wdt:P106 wd:Q1028181 .
  ?person wdt:P27 wd:Q17 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 100

List of Japanese painters with English names

Can you provide a list of people who are painters and hold Japanese citizenship, along with their English names?

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q1028181> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q17> . } LIMIT 100


Question: Who is the father of Helmut Kohl?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?father ?fatherLabel WHERE {
  wd:Q2518 p:P22 ?statement .
  ?statement ps:P22 ?father .
  ?father rdfs:label ?fatherLabel .
  FILTER ( LANG( ?fatherLabel ) = "en" )
}

What is the name of Helmut Kohl’s biological father?

Can you tell me the name of Helmut Kohl’s dad?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q2518> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Wikipedia and Wikiquote pages in English and German about the movie with IMDb ID tt0364569.

SELECT ?movie ?page WHERE { VALUES ?imdbId { "tt0364569" } ?movie wdt:P345 ?imdbId . ?page schema:about ?movie . ?page schema:inLanguage ?lang . VALUES ?lang { "en" "de" } }

What English and German language Wikipedia and Wikiquote pages are about the movie Oldboy (2003)?

Show me the English and German Wikipedia and Wikiquote pages linked to the movie Oldboy (2003) via its IMDb ID tt0364569.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0364569". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who is the mother of Helen Hunt’s mother, and who is Helen Hunt’s mother?

SELECT DISTINCT ?grandmother ?parent WHERE { ?grandmother p:P21 ?stmt1 . ?stmt1 ps:P21 wd:Q6581072 . ?grandmother p:P40 ?stmt2 . ?stmt2 ps:P40 ?parent . ?parent p:P40 ?stmt3 . ?stmt3 ps:P40 wd:Q170574 . }

Grandmother of Helen Hunt and her daughter (Helen Hunt’s parent)

Find the female person who is Helen Hunt’s grandmother, along with the name of Helen Hunt’s parent.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P21> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/P40> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P40> ?var2 . ?var2 <http://www.wikidata.org/prop/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P40> <http://www.wikidata.org/entity/Q170574> . } LIMIT 101


Question: Wikipedia page for movie with IMDb ID tt1079980 in English or German

SELECT ?movie ?wikipediaPage WHERE { ?movie wdt:P345 "tt1079980" . ?wikipediaPage schema:about ?movie . { ?wikipediaPage schema:inLanguage "en" . } UNION { ?wikipediaPage schema:inLanguage "de" . } }

What is the English or German Wikipedia page for the film with IMDb ID tt1079980?

Show me the English or German Wikipedia article about the movie with IMDb ID tt1079980.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1079980". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People who work as cleaners

SELECT DISTINCT ?person ?label WHERE { ?person wdt:P106 wd:Q1760141 . ?person rdfs:label ?label . FILTER(LANG(?label) = "en") }

Who are the people with the occupation of cleaner?

List the English names of individuals whose job is cleaning.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q1760141> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: World Heritage Sites in South America with their coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?site(SAMPLE(?label) AS ?siteLabel) ?coordinates WHERE {
  ?site wdt:P1435 wd:Q9259 .
  ?site wdt:P17 ?country .
  ?country wdt:P30 wd:Q18 .
  ?site wdt:P625 ?coordinates .
  ?site rdfs:label ?label .
}
GROUP BY ?site ?coordinates

What are the World Heritage Sites located in South America and their geographic coordinates?

Show me the names and locations of all UNESCO World Heritage Sites in South America.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q9259> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P30> <http://www.wikidata.org/entity/Q18> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } }