Question: What are the direct superclass categories of a manuscript?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?superclass WHERE {
  wd:Q87167 wdt:P279 ?superclass .
}

What classes does the entity "manuscript" belong to as a subclass?

List all the direct parent classes in the taxonomy for manuscripts, according to Wikidata.

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


Question: Which German-labeled properties are related to hair color on Wikidata?

SELECT ?relatedProperty ?label ?description WHERE { ?relatedProperty wdt:P1659 wd:P1884 . ?relatedProperty a wikibase:Property . ?relatedProperty rdfs:label ?label . ?relatedProperty schema:description ?description . FILTER (LANG(?label) = "de") . FILTER (LANG(?description) = "de") . }

What are the German labels and descriptions of properties that are linked as "see also" to hair color (P1884)?

Show me the German names and descriptions of properties that are semantically related to hair color, according to Wikidata’s "see also" relationships.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P1884> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . }


Question: What is the English label and description of the Great Russian Encyclopedia entry with ID 2034600?

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?description WHERE {
  ?item wdt:P2924 "2034600" .
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

What is the name and description in English of the archaeological site listed in the Great Russian Encyclopedia Online (old version) with ID 2034600?

Show me the English name and description of the entity identified by the Great Russian Encyclopedia Online ID 2034600.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "2034600". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the lighthouses in Kuwait, along with their coordinates and images?

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 DISTINCT ?lighthouse ?lighthouseLabel ?coordinate ?image WHERE {
  ?lighthouse wdt:P31 wd:Q39715 .
  ?lighthouse wdt:P17 wd:Q817 .
  ?lighthouse wdt:P625 ?coordinate .
  OPTIONAL {
    ?lighthouse wdt:P18 ?image .
  }
  ?lighthouse rdfs:label ?lighthouseLabel .
  FILTER ( LANG( ?lighthouseLabel ) = "en" )
}
ORDER BY ASC ( ?lighthouseLabel )

Can you list the English-named lighthouses in Kuwait and their geographic locations?

Show me the lighthouses located in Kuwait, including their coordinates and optional images, sorted alphabetically by name.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q35178> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: What is the English label and description of the Art & Architecture Thesaurus ID 300186215?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P1014 "300186215" . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you tell me the name and English description of the art term identified by AAT ID 300186215?

Show me the English label and description for the Getty AAT entry with ID 300186215.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1014> "300186215". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: All properties and values for the entity with Freebase ID /m/0f8l9c

SELECT ?item ?property ?value WHERE { ?item wdt:P646 "/m/0f8l9c" . ?item ?property ?value . }

What is all the data available in Wikidata for the entity with Freebase ID /m/0f8l9c?

Show me all statements about the country with Freebase identifier /m/0f8l9c.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/0f8l9c". ?var1 ?var2 ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: French-labeled properties related to OpenStreetMap relation ID (P402)

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 ?property ?propertyLabel ?propertyDescription WHERE {
  wd:P402 wdt:P1659 ?property .
  ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER(LANG(?propertyLabel) = "fr")
  FILTER(LANG(?propertyDescription) = "fr")
}

What are the French labels and descriptions of properties related to the OpenStreetMap relation ID property?

Show me the French descriptions of properties that are linked as related to the OpenStreetMap relation ID (P402).

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P402> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . }


Question: What is the English name of the person with Swedish National Biography ID 11068?

SELECT ?person ?label ?description WHERE { ?person wdt:P3217 "11068" . ?person rdfs:label ?label . FILTER (LANG(?label) = "en") OPTIONAL { ?person schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you find the English label and description for Hugo Laurell, who has the SBL ID 11068?

Who is identified by the SBL ID 11068 in the Dictionary of Swedish National Biography, and what is their English Wikipedia description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "11068". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who is the person with Swedish National Biography ID 12919, and what is their English description?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?person ?personLabel ?description WHERE {
  ?person wdt:P3217 "12919" .
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER ( LANG( ?personLabel ) = "en" )
  }
  OPTIONAL {
    ?person schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

What is the English name and description of the person identified by the Swedish National Biography ID 12919?

Please provide the English label and description of the individual whose Swedish National Biography ID is 12919.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "12919". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the OpenStreetMap relation ID for Germany?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?osmRelationId WHERE {
  wd:Q183 wdt:P402 ?osmRelationId .
}

Can you tell me the OSM relation ID associated with the country of Germany?

Which OpenStreetMap relation corresponds to Germany?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q18935684> <http://www.wikidata.org/prop/direct/P402> ?var1 . }


Question: Does the IMDb ID nm0909336 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "nm0909336" .
}

Is there a person in Wikidata associated with the IMDb identifier nm0909336?

Check if the IMDb ID nm0909336 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0909336". }


Question: Does the person with IMDb ID nm0830683 have a Wikidata entry?

ASK WHERE { ?item wdt:P345 "nm0830683" . }

Is there a Wikidata item for the IMDb profile nm0830683?

Does Jaap Stobbe have an entry in Wikidata linked to the IMDb ID nm0830683?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0830683". }


Question: Wikidata items with Twitter accounts Russia, servicepublicfr, AuCanada, govbrazil, or UN, sorted by number of Wikipedia links.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username ( COUNT( ?sitelink ) AS ?sitelinkCount ) WHERE {
  ?item wdt:P2002 ?username .
  ?sitelink schema:about ?item ; schema:isPartOf ?wiki .
  VALUES ?username {
    "Russia" "servicepublicfr" "AuCanada" "govbrazil" "UN"
  }
}
GROUP BY ?item ?username
ORDER BY ASC ( ?sitelinkCount )

Which organizations on Wikidata have Twitter accounts like @Russia or @UN, and how many Wikipedia pages link to them, ordered from least to most popular?

List the entities on Wikidata that have Twitter usernames Russia, servicepublicfr, AuCanada, govbrazil, or UN, along with their Wikipedia sitelink counts, sorted by popularity.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "dknyt" ) ( "string2" ) ( "carwash" ) ( "lukman__K" ) ( "string3" ) ( "bhismaa10" ) ( "kulturgot" ) ( "pinja_k" ) ( "string4" ) ( "string5" ) ( "mia_raa" ) ( "string6" ) ( "string7" ) ( "yangkhe" ) ( "string8" ) ( "string9" ) ( "kleven_k" ) ( "samsoe" ) } } ORDER BY ASC( ?var3 )


Question: OpenStreetMap relation ID for Boston

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?osmId WHERE {
  wd:Q100 wdt:P402 ?osmId .
}

What is the OpenStreetMap relation ID associated with Boston?

Give me the OpenStreetMap relation ID for the city of Boston.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q3267151> <http://www.wikidata.org/prop/direct/P402> ?var1 . }


Question: English description of the OpenStreetMap relation with ID 2315704

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?description WHERE {
  ?item wdt:P402 "2315704" .
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

What is the English description of the Wikidata item for the OpenStreetMap relation ID 2315704?

Show me the English description for the OpenStreetMap relation with ID 2315704.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P402> "543877". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List oceans and their geographic coordinates.

SELECT ?oceanLabel ?coordinates WHERE { ?ocean wdt:P31 wd:Q9430 . OPTIONAL { ?ocean wdt:P625 ?coordinates . } ?ocean rdfs:label ?oceanLabel . FILTER(LANG(?oceanLabel) = "en") } LIMIT 100

What are the names and coordinates of all oceans in Wikidata?

Please provide the English names and locations of all oceans.

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


Question: What is the English label and description of the geographic entity with Getty Thesaurus ID 2154583?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?item ?label ?description WHERE {
  ?item wdt:P1667 "2154583" .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

What is the name and English description of Bear Den Mountain, identified by the Getty Thesaurus of Geographic Names ID 2154583?

Show me the English name and description of the place in the Getty Thesaurus with ID 2154583.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1667> "2154583". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Is there any plant or animal species in Wikidata with the GRIN URL "Fischi"?

ASK WHERE { ?taxon wdt:P1421 "Fischi" . }

Does any taxon have a GRIN identifier equal to "Fischi"?

Is "Fischi" a valid GRIN URL for any organism in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1421> "Fischi". }


Question: What are the different language labels for Prunus mume?

SELECT ?label WHERE { wd:Q157763 rdfs:label ?label .}

In how many languages is the plant species Prunus mume labeled, and what are those labels?

List all the translated names of the Japanese apricot (Prunus mume) in different languages.

SELECT * WHERE { <http://www.wikidata.org/entity/Q157763> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What film has the Scope.dk ID 4314?

SELECT ?film WHERE { ?film wdt:P2518 "4314" . }

Which movie is identified by the identifier 4314 on Scope.dk?

Can you tell me the name of the film with Scope.dk film ID 4314?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2518> "4314". }


Question: What film has the AllMovie ID v352827?

SELECT ?film WHERE { ?film wdt:P1562 "v352827" . }

Which movie on Wikidata is identified by the AllMovie title ID v352827?

Tell me the Wikidata item for the film with AllMovie ID v352827.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1562> "v352827". }


Question: What properties are most commonly used to link items to the Swiss Open tennis tournament?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q299439 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

Which properties connect the Swiss Open tennis tournament to other items, and how many times is each used?

Show me the properties that link to the Swiss Open tennis tournament, along with their usage counts, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q299439> . 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: Which properties link items to the WTA German Open tournament, and how many times each?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q313414 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

How many items are connected to the WTA German Open via each property, and which properties are used more than once?

Show me the properties that relate other entities to the WTA German Open, sorted by how frequently they’re used, excluding single-use connections.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q313414> . 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: Who is the person with Freebase ID /m/0dbpyd?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label WHERE {
  ?item wdt:P646 "/m/0dbpyd" .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'en' )
}

What is the English label of the Wikidata item that has the Freebase ID /m/0dbpyd?

Can you tell me the name of the entity identified by the Freebase identifier /m/0dbpyd?

SELECT ?var1Label WHERE { ?var1 ?var2 ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/0dbpyd". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Horses with birth and death years

SELECT DISTINCT
  ?horse ?horseLabel
  (YEAR(?birthDate) AS ?birthYear)
  (YEAR(?deathDate) AS ?deathYear)
WHERE {
  ?horse (wdt:P31/wdt:P279*) wd:Q726 .

  OPTIONAL { ?horse wdt:P569 ?birthDate . }
  OPTIONAL { ?horse wdt:P570 ?deathDate . }

  OPTIONAL { ?horse rdfs:label ?horseLabel . FILTER(LANG(?horseLabel) = "en") }
}
ORDER BY ASC(?horse)
LIMIT 100

What are the birth and death years of known horses?

List the names of horses along with their birth years and, if available, their death years.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ( YEAR ( ?var4 ) AS ?var5 )( YEAR ( ?var6 ) AS ?var7 ) ?var8Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q726> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P25> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,ar,be,bg,bn,ca,cs,da,de,el,en,es,et,fa,fi,he,hi,hu,hy,id,it,ja,jv,ko,nb,nl,eo,pa,pl,pt,ro,ru,sh,sk,sr,sv,sw,te,th,tr,uk,yue,vec,vi,zh". } } ORDER BY ASC( ?var1 )


Question: Film with AllMovie ID v42821

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P1562 "v42821" .
}

Which film has the AllMovie title ID v42821?

Tell me the film that corresponds to the AllMovie ID v42821.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1562> "v42821". }


Question: Does the Transfermarkt player ID 40468 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?player wdt:P2446 "40468" .
}

Is there a football player in Wikidata with the Transfermarkt ID 40468?

Check if the player with Transfermarkt ID 40468 is listed in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "40468". }


Question: What are all the parent classes (superclasses) of tennis at the Summer Olympics, including indirect ones?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?parentClass WHERE {
  wd:Q270163 wdt:P279 * ?parentClass .
}

List all the categories that tennis at the Summer Olympics belongs to through the subclass hierarchy.

What broader categories does Olympic tennis fall under in the Wikidata classification system?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q270163> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: U.S. House Representatives who went to the same university

SELECT DISTINCT ?person1 ?person2 ?university WHERE { ?person1 wdt:P39 wd:Q13218630 . ?person2 wdt:P39 wd:Q13218630 . ?person1 wdt:P69 ?university . ?person2 wdt:P69 ?university . FILTER (?person1 != ?person2) } LIMIT 100

Which pairs of U.S. House members share the same alma mater?

Show me distinct pairs of members of the U.S. House of Representatives who attended the same educational institution.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13218630> . ?var2 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13218630> . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P69> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . FILTER ( ( ( ?var1 != ?var2 ) ) ) . } LIMIT 100


Question: What properties are used to describe Huskies in Wikidata?

SELECT ?prop (STRAFTER(STR(?prop), "http://www.wikidata.org/prop/direct/") AS ?propId) ?propLabel ?propDescription WHERE { wd:Q3244349 ?prop ?value . FILTER(STRSTARTS(STR(?prop), 'http://www.wikidata.org/prop/direct/')) . OPTIONAL { ?prop rdfs:label ?propLabel } OPTIONAL { ?prop schema:description ?propDescription } } LIMIT 100

Can you list the Wikidata properties associated with the Husky breed, along with their labels and descriptions?

Show me the direct properties (like P18, P31) used for Husky, and if available, their English labels and descriptions.

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/Q3244349> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: List of asteroids in Wikidata

SELECT ?asteroidLabel WHERE { ?asteroid wdt:P31 wd:Q3863 . ?asteroid rdfs:label ?asteroidLabel . FILTER(LANG(?asteroidLabel) = "en") }

Show me the names of asteroids in English.

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


Question: Who is the Swedish theologian with SBL ID 11249?

SELECT ?item ?label ?description WHERE { ?item wdt:P3217 "11249" . OPTIONAL { ?item rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the name and description in English of the person with Dictionary of Swedish National Biography ID 11249?

Show me the English name and description of the individual identified by SBL ID 11249 in the Dictionary of Swedish National Biography.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "11249". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label and description of the person with e-archiv.li ID 31390?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?item ?label ?description WHERE {
  ?item wdt:P860 "31390" .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

Who is Otto Dienel, and what is his English description according to Wikidata?

Can you find the Wikidata entry for the individual identified as 31390 in the Liechtenstein Archive and show their name and brief bio in English?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P860> "31390". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Nuclear power plants with their operators, service entry dates, and nominal power outputs.

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 ?plant ?operator ?operatorLabel ?serviceEntry ?nominalPower WHERE {
  ?plant wdt:P31 wd:Q134447 .
  OPTIONAL {
    ?plant wdt:P137 ?operator .
    ?operator rdfs:label ?operatorLabel .
    FILTER ( LANG( ?operatorLabel ) = "en" )
  }
  OPTIONAL {
    ?plant wdt:P729 ?serviceEntry .
  }
  ?plant wdt:P2109 ?nominalPower .
}
LIMIT 500

What are the nuclear power plants, their operators, when they entered service, and their power capacities?

List all nuclear power plants along with their English-named operators, the date they began operation, and their installed power capacity.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134447> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P137> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P729> ?var3 . } ?var1 <http://www.wikidata.org/prop/direct/P2109> ?var4 . } LIMIT 500


Question: Who has the Swedish National Biography ID 13670?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P3217 "13670" .
}
LIMIT 1

Which person is identified by the SBL ID 13670 in the Dictionary of Swedish National Biography?

Tell me the Wikidata entity for the individual with SBL ID 13670.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "13670". } LIMIT 1


Question: What is Johann Sebastian Bach's occupation and place of birth?

SELECT ?occupation ?birthPlace ?occupationLabel ?birthPlaceLabel WHERE { wd:Q1339 wdt:P106 ?occupation ; wdt:P19 ?birthPlace . ?occupation rdfs:label ?occupationLabel . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?occupationLabel) = "en") FILTER(LANG(?birthPlaceLabel) = "en") FILTER(?occupation = wd:Q36834)}

Was Johann Sebastian Bach a composer born in Eisenach?

Tell me the profession and birthplace of Johann Sebastian Bach, specifically that he is a composer from Eisenach.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q504743> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1734662> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: What is the GRIN URL for the rice plant (Oryza sativa)?

SELECT ?grinUrl WHERE { wd:Q161426 wdt:P1421 ?grinUrl .}

Can you find the GRIN taxonomy ID for rice?

What is the official GRIN website link for Oryza sativa?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1421> "Paddy". }


Question: What are the Twitter/X usernames for Russia and Madonna on Wikidata?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES (?username) { ("Russia") ("Madonna") } }

Which Wikidata items have the Twitter usernames 'Russia' or 'Madonna'?

Show me the entities on Wikidata that are linked to the Twitter accounts @Russia and @Madonna.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "saimadhup" ) ( "string1" ) ( "string2" ) ( "W_q8c" ) ( "anyaadam_" ) ( "dxn100" ) ( "outinbrum" ) ( "string3" ) ( "Trends5UK" ) ( "string4" ) ( "Rockchic65" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "surfwagen" ) ( "string8" ) ( "HomeTyro" ) ( "ZarinaCC" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "parochena" ) } }


Question: People who died between 2020 and 2023 with Greek-language labels.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label ?deathDate WHERE {
  ?person wdt:P570 ?deathDate .
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "el" ) FILTER ( ?deathDate >= "2020-01-01T00:00:00Z" ^^ xsd:dateTime && ?deathDate <= "2023-12-31T23:59:59Z" ^^ xsd:dateTime )
}
ORDER BY ASC ( ?deathDate )

Who are the people that died between 2020 and 2023 and have a Greek Wikipedia label?

List the names and death dates of individuals who died between 2020 and 2023 and are labeled in Greek.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "555-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "555-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: Does the IMDb ID nm4532270 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "nm4532270" .
}

Is there a person in Wikidata with the IMDb identifier nm4532270?

Can you confirm that nm4532270 is a valid IMDb ID in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm4532270". }


Question: Which Wikidata items have Twitter handles "thebeatles", "UN", or "servicepublicfr", and how many Wikipedia articles are about them?

SELECT ?item ?twitter (COUNT(?page) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?twitter . ?page schema:about ?item ; schema:isPartOf ?wiki . FILTER(STRSTARTS(STR(?wiki), "https://")) VALUES ?twitter { "thebeatles" "UN" "servicepublicfr" } } GROUP BY ?item ?twitter ORDER BY ASC(?sitelinkCount)

What are the entities on Wikidata with the Twitter usernames "thebeatles", "UN", or "servicepublicfr", sorted by the number of Wikipedia language editions they have articles in?

Show me the entities linked to the Twitter accounts "thebeatles", "UN", and "servicepublicfr", along with their Wikipedia sitelink counts, ordered from least to most popular.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "Europe1" ) ( "string4" ) ( "olcollet" ) ( "CherieVDL" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) } } ORDER BY ASC( ?var3 )


Question: What properties and values are associated with the statement that asteroid 133087 follows asteroid 133086?

PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?qualifier ?qualifierValue WHERE {
  s:Q63259700-EF40C5EB-0076-4FCA-BDBC-E0B2AC730691 ?qualifier ?qualifierValue .
}

Show all qualifiers and references for the statement about asteroid 133087 following asteroid 133086.

Retrieve all data linked to the statement node for the assertion that asteroid 133087 follows asteroid 133086.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q133087-9EE881ED-FAE7-4044-8DF7-DA213DA74372> . }


Question: People in the Dictionary of Swedish National Biography with multiple recorded birth dates.

SELECT ?person WHERE { ?person wdt:P3217 ?sblId . ?person wdt:P569 ?birthDate . } GROUP BY ?person HAVING (COUNT(?birthDate) > 1)

Which individuals listed in the Svenskt biografiskt lexikon have more than one birth date in Wikidata?

List all people who have a Swedish National Biography ID and conflicting birth dates in Wikidata.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . FILTER ( ( ( ?var3 != ?var4 ) ) ) . }


Question: What is the English name of the person with IMDb ID nm0537459?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?nativeName WHERE {
  ?item wdt:P345 "nm0537459" .
  OPTIONAL {
    ?item wdt:P1559 ?nativeName .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Who is Pauline Maier, and what is her native name according to Wikidata?

Can you find the English label and native name for the IMDb profile nm0537459?

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm537459". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var3 . } } LIMIT 100


Question: Which Wikidata items have Twitter usernames "thebeatles", "UN", "Russia", or "gcba", sorted by how many Wikipedia articles exist about them?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?username(COUNT(?site) AS ?sitelinkCount) WHERE {
  ?item wdt:P2002 ?username .
  ?site schema:about ?item ; schema:isPartOf ?wiki .
  VALUES ?username {
    "thebeatles" "UN" "Russia" "gcba"
  }
}
GROUP BY ?item ?username
ORDER BY ASC(?sitelinkCount)

What are the Twitter accounts for Russia, the United Nations, The Beatles, and Buenos Aires, and how many Wikipedia pages are dedicated to each?

List the entities on Wikidata with Twitter usernames "thebeatles", "UN", "Russia", or "gcba", ordered by the number of Wikipedia sitelinks they have, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "fagerving" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "dhoxss" ) ( "tmtn" ) } } ORDER BY ASC( ?var3 )


Question: Lighthouses with their English names and UK Hydrographic Office Admiralty numbers

SELECT ?lighthouse ?label ?admiraltyNumber WHERE { ?lighthouse wdt:P31 wd:Q39715 . OPTIONAL { ?lighthouse wdt:P3562 ?admiraltyNumber . } ?lighthouse rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 10000

What are the English names of all lighthouses and their corresponding Admiralty numbers from the UK Hydrographic Office?

Show me a list of lighthouses in English along with their Admiralty identifiers, if available.

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


Question: Which Wikidata items have the Twitter usernames "thebeatles", "UN", or "BarackObama"?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "thebeatles" "UN" "BarackObama" } }

Who are the people or organizations on Wikidata with the Twitter handle @thebeatles, @UN, or @BarackObama?

Show me the Wikidata entries for the Twitter accounts thebeatles, UN, and BarackObama.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "SkroZoC" ) } } ORDER BY ASC( ?var3 )


Question: U.S. presidents since 1970, their spouses, and official portraits

SELECT ?president ?presidentLabel ?spouse ?spouseLabel ?image WHERE { ?president wdt:P31 wd:Q5 . ?president p:P39 ?presidency . ?presidency ps:P39 wd:Q11696 . ?presidency pq:P580 ?startDate . FILTER ( ?startDate > "1970-01-01"^^xsd:date ) . ?president wdt:P26 ?spouse . OPTIONAL { ?president wdt:P18 ?image . } ?president rdfs:label ?presidentLabel . ?spouse rdfs:label ?spouseLabel . FILTER (lang(?presidentLabel) = "en") . FILTER (lang(?spouseLabel) = "en") } ORDER BY ASC(?startDate)

Who are the U.S. presidents who took office after 1970, who are their spouses, and do they have official photos available?

List all U.S. presidents elected after 1970 along with their spouses’ names and their official portraits, sorted by start date.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var4 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . FILTER ( ( ( ?var5 > "1970" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P26> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var5 )


Question: What is Germany’s population, its current head of government, the executive and legislative bodies, and the office held by the head of government?

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 ?country ?countryLabel ?population ?executiveBody ?executiveBodyLabel ?legislativeBody ?legislativeBodyLabel ?headOfGovernment ?headOfGovernmentLabel ?officeHeld ?officeHeldLabel WHERE {
  VALUES ?country {
    wd:Q183
  }
  OPTIONAL {
    ?country wdt:P1082 ?population .
  }
  OPTIONAL {
    ?country wdt:P208 ?executiveBody .
  }
  OPTIONAL {
    ?country wdt:P194 ?legislativeBody .
  }
  OPTIONAL {
    ?country wdt:P6 ?headOfGovernment .
  }
  OPTIONAL {
    ?country wdt:P1313 ?officeHeld .
  }
  FILTER(NOT EXISTS {
    ?legislativeBody wdt:P576 []
  })
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER(LANG(?countryLabel) = "en")
  }
  OPTIONAL {
    ?executiveBody rdfs:label ?executiveBodyLabel .
    FILTER(LANG(?executiveBodyLabel) = "en")
  }
  OPTIONAL {
    ?legislativeBody rdfs:label ?legislativeBodyLabel .
    FILTER(LANG(?legislativeBodyLabel) = "en")
  }
  OPTIONAL {
    ?headOfGovernment rdfs:label ?headOfGovernmentLabel .
    FILTER(LANG(?headOfGovernmentLabel) = "en")
  }
  OPTIONAL {
    ?officeHeld rdfs:label ?officeHeldLabel .
    FILTER(LANG(?officeHeldLabel) = "en")
  }
}

Can you tell me the population of Germany, who its head of government is, and which institutions make up its executive and legislative branches, ensuring the legislative body is still active?

Show me Germany’s demographic and governmental structure: population, head of government (Olaf Scholz), executive body, legislative body (Bundestag or Bundesrat), and the official title of the head of government.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var6Label ?var7 WHERE { BIND ( <http://www.wikidata.org/entity/Q183> AS ?var1 ). OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P194> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P208> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P6> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1313> ?var6 . } FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/direct/P576> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What images are associated with locations in Avebury, and what are their captions?

SELECT ?item ?image ?caption WHERE { ?item wdt:P131 wd:Q1234698 . ?item wdt:P18 ?image . OPTIONAL { ?image wdt:P2096 ?caption . } }

Which buildings and sites in Avebury have images on Wikimedia Commons, and do those images have descriptive captions?

Show me all the places in Avebury along with their photos and any image descriptions available in Wikidata.

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


Question: Who is the person with Swedish National Biography ID 10555?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?label ?description WHERE {
  ?person wdt:P3217 "10555" .
  OPTIONAL {
    ?person rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?person schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

What is the English name of the person listed as 10555 in the Dictionary of Swedish National Biography?

Please provide the English label and description of the individual with SBL ID 10555.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3217> "10555". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the Freebase ID of Facebook?

SELECT DISTINCT ?company ?freebaseId WHERE { ?company rdfs:label "Facebook" @en . ?company wdt:P646 ?freebaseId . }

Can you tell me the Freebase identifier for the social media platform Facebook?

What is the Google Knowledge Graph ID (formerly Freebase ID) associated with the entity named "Facebook"?

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Facebook"@en . ?var1 <http://www.wikidata.org/prop/direct/P646> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: Afghan politicians with their positions, birthplaces, dates of birth, gender, and images

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 ?politician ?politicianLabel ?position ?birthPlace ?dateOfBirth ?gender ?image WHERE {
  ?politician wdt:P106 wd:Q82955 ; wdt:P27 wd:Q889 .
  OPTIONAL {
    ?politician wdt:P39 ?position .
  }
  OPTIONAL {
    ?politician wdt:P19 ?birthPlace .
  }
  OPTIONAL {
    ?politician wdt:P569 ?dateOfBirth .
  }
  OPTIONAL {
    ?politician wdt:P21 ?gender .
  }
  OPTIONAL {
    ?politician wdt:P18 ?image .
  }
  OPTIONAL {
    ?politician rdfs:label ?politicianLabel .
    FILTER(LANG(?politicianLabel) = "en")
  }
}
LIMIT 1000

Who are the Afghan politicians, and what positions have they held, where were they born, when were they born, what is their gender, and do they have images?

List all Afghan politicians along with their known positions, places of birth, dates of birth, genders, and images from Wikimedia Commons.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var7 ?var7Label ?var8 ?var9 ?var9Label ?var10 ?var10Label ?var11 ?var11Label ?var12 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P39> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P102> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P463> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var12 . } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q889> . } LIMIT 1000


Question: Which association football national coaches have the most Wikipedia language editions?

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 ?coach ( COUNT( ?label ) AS ?labelCount ) WHERE {
  ?coach wdt:P106 wd:Q1478408 .
  ?coach rdfs:label ?label .
  FILTER ( LANG( ?label ) != "" )
}
GROUP BY ?coach
ORDER BY DESC ( ?labelCount )
LIMIT 1000

Can you list the top 1000 association football national coaches ranked by how many languages their Wikipedia pages are available in?

Show me the most internationally recognized association football national coaches based on the number of language versions of their Wikipedia articles.

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


Question: Who has the IMDb ID nm0688171?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P345 "nm0688171" .
}

Which person on Wikidata is associated with the IMDb identifier nm0688171?

I need to find the Wikidata entity for the IMDb name ID nm0688171 — who is it?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0688171". }


Question: How many classes is the entity "game" an instance of?

SELECT (COUNT(DISTINCT ?instance) AS ?count) WHERE { wd:Q11410 wdt:P31 ?instance . }

What is the number of direct instance-of relationships for the concept of "game"?

Show how many categories the game entity belongs to as an instance.

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


Question: People who died in 1443 with Greek labels

SELECT ?label ?deathDate WHERE { ?person wdt:P570 ?deathDate . ?person rdfs:label ?label . FILTER (LANG(?label) = "el") FILTER (?deathDate >= "1443-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "1443-12-31T23:59:59Z"^^xsd:dateTime) } ORDER BY ASC(?deathDate)

Who died in the year 1443, and what are their names in Greek?

List the Greek-language names of people who died between January 1 and December 31, 1443, sorted by date of death.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1443-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1443-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: What are the start dates of the positions held by Hillary Clinton?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?positionLabel ?startTime WHERE {
  wd:Q6294 p:P39 ?statement .
  ?statement ps:P39 ?position .
  ?statement pq:P580 ?startTime .
  ?position rdfs:label ?positionLabel .
  FILTER ( LANG( ?positionLabel ) = 'en' )
}
ORDER BY ASC ( ?startTime )

When did Hillary Clinton begin each of her official roles, such as Senator or Secretary of State?

Can you list the positions Hillary Clinton has held and when she started each one?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q6294> ( <http://www.wikidata.org/prop/direct/P39> / <http://www.wikidata.org/prop/direct/P580> ) ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )


Question: List artists with their DACS IDs and English labels.

SELECT ?artist ?artistLabel ?dacsId WHERE { ?artist wdt:P4663 ?dacsId . ?artist rdfs:label ?artistLabel . FILTER(LANG(?artistLabel) = "en") }

Who are the artists that have a DACS ID, and what are their English names and IDs?

Please provide the English names and DACS IDs of all artists registered in the DACS system.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4663> ?var2 . FILTER ( ( !( REGEX ( ?var2 , "[a-f]" ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the most specific category that both Auckland and Sandilands tram stop belong to, based on their hierarchical classification?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonAncestor(SUM(?distCity) + SUM(?distTramStop) AS ?totalDistance) WHERE {
  {
    wd:Q515 wdt:P279 ?commonAncestor .
    BIND(1 AS ?distCity)
  } UNION {
    wd:Q515 wdt:P279 ?c1 .
    ?c1 wdt:P279 ?commonAncestor .
    BIND(2 AS ?distCity)
  } UNION {
    wd:Q515 wdt:P279 ?c1 .
    ?c1 wdt:P279 ?c2 .
    ?c2 wdt:P279 ?commonAncestor .
    BIND(3 AS ?distCity)
  } UNION {
    wd:Q515 wdt:P279 ?c1 .
    ?c1 wdt:P279 ?c2 .
    ?c2 wdt:P279 ?c3 .
    ?c3 wdt:P279 ?commonAncestor .
    BIND(4 AS ?distCity)
  } UNION {
    wd:Q515 wdt:P279 ?c1 .
    ?c1 wdt:P279 ?c2 .
    ?c2 wdt:P279 ?c3 .
    ?c3 wdt:P279 ?c4 .
    ?c4 wdt:P279 ?commonAncestor .
    BIND(5 AS ?distCity)
  }
  {
    wd:Q2175765 wdt:P279 ?commonAncestor .
    BIND(1 AS ?distTramStop)
  } UNION {
    wd:Q2175765 wdt:P279 ?t1 .
    ?t1 wdt:P279 ?commonAncestor .
    BIND(2 AS ?distTramStop)
  } UNION {
    wd:Q2175765 wdt:P279 ?t1 .
    ?t1 wdt:P279 ?t2 .
    ?t2 wdt:P279 ?commonAncestor .
    BIND(3 AS ?distTramStop)
  } UNION {
    wd:Q2175765 wdt:P279 ?t1 .
    ?t1 wdt:P279 ?t2 .
    ?t2 wdt:P279 ?t3 .
    ?t3 wdt:P279 ?commonAncestor .
    BIND(4 AS ?distTramStop)
  } UNION {
    wd:Q2175765 wdt:P279 ?t1 .
    ?t1 wdt:P279 ?t2 .
    ?t2 wdt:P279 ?t3 .
    ?t3 wdt:P279 ?t4 .
    ?t4 wdt:P279 ?commonAncestor .
    BIND(5 AS ?distTramStop)
  }
}
GROUP BY ?commonAncestor
ORDER BY ASC(?totalDistance)
LIMIT 1

What is the lowest-level shared superclass in the Wikidata ontology for a city like Auckland and a tram stop like Sandilands?

Which entity is the closest common ancestor in the subclass hierarchy between the city of Auckland and the Sandilands tram stop?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q37100> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q7416357> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Is there an infobox template related to capital punishment in Sweden that has a Russian Wikipedia page?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?template ?topic WHERE {
  ?template wdt:P31 wd:Q19887878 .
  ?template wdt:P1423 ?topic .
  ?topic wdt:P31 wd:Q74817647 .
  ?wikipedia schema:about ?template ; schema:isPartOf <https://ru.wikipedia.org/> .
}
LIMIT 1

What infobox template is associated with an aspect of a geographic region (like capital punishment in Sweden) and has a Russian Wikipedia version?

Find the most specific infobox template about a geographic aspect that has a Russian Wikipedia page.

SELECT DISTINCT ?var1 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ( COUNT ( ?var5 ) AS ?var6 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19887878> . ?var1 <http://www.wikidata.org/prop/direct/P1423> ?var2 . <http://www.wikidata.org/entity/Q3595601> ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P279> * ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P279> * ?var2 . } GROUP BY ?var1 ?var2 } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> * ?var3 . } } GROUP BY ?var1 ?var2 ?var3 ?var4 } FILTER ( ( EXISTS { ?var9 <http://schema.org/about> ?var1 . ?var9 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> . } ) ) . } ORDER BY ASC( ?var4 ) DESC( ?var6 ) LIMIT 1


Question: People who died in 1570 with Greek labels.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?greekLabel ?deathDate WHERE {
  ?person wdt:P570 ?deathDate .
  ?person rdfs:label ?greekLabel .
  FILTER ( LANG( ?greekLabel ) = "el" ) .
  FILTER ( ?deathDate >= "1570-01-01T00:00:00Z" ^^ xsd:dateTime && ?deathDate <= "1570-12-31T23:59:59Z" ^^ xsd:dateTime )
}
ORDER BY ASC ( ?deathDate )

Who died in 1570, and what are their names in Greek?

List the Greek-language names of people who died in the year 1570, sorted by date of death.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1570-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1570-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: Who is the current head of government of Haiti, and what is their image?

SELECT ?head ?headLabel ?image WHERE { wd:Q790 wdt:P6 ?head . OPTIONAL { ?head wdt:P18 ?image . } ?head rdfs:label ?headLabel . FILTER(LANG(?headLabel) = "en") }

Head of government of Haiti and their official photo

Show me the name and picture of Haiti’s head of government.

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


Question: What properties are used to associate entities with water transport in Bangkok, and what qualifiers are attached to those associations?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?statement ?property ( SAMPLE( ?qualifierProperty ) AS ?qualifier ) WHERE {
  {
    SELECT ?item ?statement ?property WHERE {
      ?statement ?propValue wd:Q7973865 .
      ?item ?claim ?statement .
      ?property wikibase:statementProperty ?propValue .
      ?property wikibase:claim ?claim .
      FILTER ( ?property != wd:P31 )
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?qualifierProperty wikibase:qualifier ?property .
  }
}
GROUP BY ?item ?statement ?property

Which categories or properties link items to the topic of water transport in Bangkok, excluding direct instance-of relationships?

Show me the statement properties connecting items to Bangkok’s water transport system and any qualifiers on those statements.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q7973865> . ?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: What are the parts of a game or things that include a game as a component?

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 ?itemLabel WHERE {
  {
    ?item wdt:P361 wd:Q11410 .
  } UNION {
    ?item wdt:P527 wd:Q11410 .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

Which items are either components of a game or have a game as one of their parts?

List all entities that are related to games either as parts of them or as things that contain games.

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


Question: English name and description of the person with Open Library ID OL4813327A

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 ?description WHERE {
  ?item wdt:P648 "OL4813327A" .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" ) .
  }
}

Who is the person with Open Library ID OL4813327A, and what is their lifespan according to Wikidata?

Please provide the English label and English description for the Wikidata item with Open Library ID OL4813327A.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL4813327A". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English name of the place with GeoNames ID 3080672?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label WHERE {
  ?item wdt:P1566 "3080672" .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}

Which place has the GeoNames ID 3080672, and what is its English label?

Show me the English name of the location identified by GeoNames ID 3080672.

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


Question: What infobox template is most specifically used for video games, and has a Russian Wikipedia page?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?template ?topic(COUNT(?subclass) AS ?depth) WHERE {
  ?template wdt:P31 wd:Q19887878 .
  ?template wdt:P1423 ?topic .
  wd:Q30247040 wdt:P31 ?gameType .
  ?topic wdt:P279 * ?subclass .
  ?subclass wdt:P279 * ?gameType .
  ?wikipediaPage schema:about ?template ; schema:isPartOf <https://ru.wikipedia.org/> .
}
GROUP BY ?template ?topic
ORDER BY ASC(?depth)
LIMIT 1

Which Wikipedia infobox template is associated with the category that Just Dance 2018 belongs to, and is available in Russian?

Find the infobox template for the most specific topic related to Just Dance 2018 that has a Russian Wikipedia article.

SELECT DISTINCT ?var1 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ( COUNT ( ?var5 ) AS ?var6 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19887878> . ?var1 <http://www.wikidata.org/prop/direct/P1423> ?var2 . <http://www.wikidata.org/entity/Q30247040> ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P279> * ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P279> * ?var2 . } GROUP BY ?var1 ?var2 } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> * ?var3 . } } GROUP BY ?var1 ?var2 ?var3 ?var4 } FILTER ( ( EXISTS { ?var9 <http://schema.org/about> ?var1 . ?var9 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> . } ) ) . } ORDER BY ASC( ?var4 ) DESC( ?var6 ) LIMIT 1


Question: Which Wikidata item corresponds to the OpenStreetMap key "Key:addr"?

SELECT ?item ?osm_key WHERE { ?item wdt:P1282 ?osm_key . FILTER (?osm_key = "Key:addr") . }

What Wikidata entity is linked to the OpenStreetMap tag key "Key:addr"?

Can you tell me the Wikidata concept that represents the OpenStreetMap address key "Key:addr"?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1282> ?var2 . FILTER ( ( ( ?var2 = "Key:addr" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } } LIMIT 1


Question: What are the constituencies used in Taiwan's Legislative Yuan elections?

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 ?var1 ?var1Label WHERE {
  {
    ?var1 wdt:P31 wd:Q19409201 .
  } UNION {
    ?var1 wdt:P279 * wd:Q19409201 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}

Which electoral districts in Taiwan are classified as Legislative Yuan constituencies, either directly or through subclass relationships?

List all the single-member districts and proportional representation units that are part of Taiwan’s Legislative Yuan electoral system.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var7 WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q19409201> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh,en". } }


Question: Items named after the color blue and their qualifier properties.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?item ?statement(SAMPLE(?qualifierProperty) AS ?qualifier) WHERE {
  ?statement ps:P138 wd:Q1088 .
  ?item p:P138 ?statement .
  OPTIONAL {
    VALUES ?qualifierProperty {
      pq:P1545 pq:P1932 pq:P407 pq:P5168 pq:P518 pq:P828 pq:P8338
    }
    ?statement ?qualifierProperty ?value .
  }
}
GROUP BY ?item ?statement
LIMIT 100

What items are named after the color blue, and what additional details (qualifiers) are associated with those names?

Show me things named after blue and the qualifier properties used on their "named after" statements.

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


Question: Is there a Wikidata item with VIAF ID 15708803?

Does the Virtual International Authority File identifier 15708803 correspond to any entity in Wikidata?

Check if the VIAF ID 15708803 is linked to any person or entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "15708803". }


Question: What is the English label and description of the Great Russian Encyclopedia Online ID 4711945?

SELECT ?item ?label ?description WHERE { ?item wdt:P2924 "4711945" . OPTIONAL { ?item rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Who is the person identified by the Great Russian Encyclopedia Online ID 4711945, and what is their English description?

Please provide the English name and description of the individual with the Great Russian Encyclopedia Online ID 4711945.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "4711945". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which Wikidata entity is associated with the OpenStreetMap key "power"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?osmKey WHERE {
  ?entity wdt:P1282 ?osmKey .
  FILTER ( ?osmKey = "Key:power" ) .
}

What does the OpenStreetMap key "power" refer to in Wikidata?

Can you tell me the Wikidata concept that corresponds to the OpenStreetMap tag key "power"?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1282> ?var2 . FILTER ( ( ( ?var2 = "Key:power" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 1


Question: Who were the people born in 1375 that have a Greek-language label on Wikidata?

SELECT ?greekLabel ?birthDate WHERE { ?person wdt:P569 ?birthDate . ?person rdfs:label ?greekLabel . FILTER (LANG(?greekLabel) = "el") . FILTER (?birthDate >= "1375-01-01T00:00:00Z"^^xsd:dateTime && ?birthDate <= "1375-12-31T23:59:59Z"^^xsd:dateTime) } ORDER BY ASC(?birthDate)

List the names in Greek of all individuals born in the year 1375.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P569> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1375-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1375-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: What are the names and locations of all hospitals worldwide?

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 ?hospital(SAMPLE(?hospitalLabel) AS ?label) ?location WHERE {
  ?hospital(wdt:P279 * / wdt:P31 *) wd:Q16917 .
  ?hospital wdt:P625 ?location .
  ?hospital rdfs:label ?hospitalLabel .
  FILTER(LANG(?hospitalLabel) = "en")
}
GROUP BY ?hospital ?location

Can you list hospitals and their coordinates in English?

Where are hospitals and their subtypes located on Earth?

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


Question: Who are the actors that portrayed each regeneration of The Doctor in Doctor Who, and what are their images?

SELECT ?regeneration ?actor ?image WHERE { ?regeneration wdt:P361 wd:Q34358 . ?regeneration wdt:P31 wd:Q15773317 . ?regeneration wdt:P175 ?actor . OPTIONAL { ?regeneration wdt:P18 ?image . } } LIMIT 100

List the actors and images associated with each version of The Doctor from the TV series Doctor Who.

Show me the portrayals of The Doctor from Doctor Who, including the actors who played them and their official images.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q34358> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Current members of the Legislative Yuan of Taiwan, their political parties, electoral districts, parliamentary terms, and start dates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?person ?party ?district ?term ?start ?end WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q6310593 ; pq:P580 ?start .
  OPTIONAL {
    ?statement pq:P4100 ?party .
  }
  OPTIONAL {
    ?statement pq:P768 ?district .
  }
  OPTIONAL {
    ?statement pq:P2937 ?term .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  FILTER(! BOUND(?end) || ?end > NOW ())
}
ORDER BY ASC(?start) ASC(?end)

Who are the current members of Taiwan’s Legislative Yuan, and what are their political affiliations, electoral districts, and parliamentary terms?

List all currently serving members of Taiwan’s Legislative Yuan along with their party, electoral district, term, and when they started their term.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var7 WHERE { ?var2 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 ( <http://www.wikidata.org/prop/statement/P39> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q6310593> ; <http://www.wikidata.org/prop/qualifier/P580> ?var6 . OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P2937> ?var5 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P768> ?var4 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P4100> ?var3 . } BIND ( <http://www.wikidata.org/entity/Q6310593> AS ?var1 ). FILTER ( ( !( BOUND ( ?var7 ) ) || ( ?var7 > NOW ( ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var6 )ASC( ?var7 )


Question: What are the most common occupations among Swedish citizens?

SELECT ?occupation ?occupationLabel (COUNT(?person) AS ?count) WHERE { ?person wdt:P106 ?occupation . ?person wdt:P27 wd:Q34 . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") } GROUP BY ?occupation ?occupationLabel ORDER BY DESC(?count)

Can you list the top occupations in Sweden by number of people, along with how many people have each job?

Which jobs are held by the most people in Sweden, and how many people hold each one?

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P106> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q34> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 )


Question: What are the active regions of Italy and their corresponding legislative bodies?

SELECT ?region ?regionLabel ?legislativeBody ?legislativeBodyLabel WHERE { ?region (wdt:P31/wdt:P279*) wd:Q10864048 ; wdt:P17 wd:Q38 ; wdt:P194 ?legislativeBody . FILTER NOT EXISTS { ?region wdt:P576 [] } FILTER NOT EXISTS { ?legislativeBody wdt:P576 [] } OPTIONAL { ?region rdfs:label ?regionLabel . FILTER(LANG(?regionLabel) = "en") } OPTIONAL { ?legislativeBody rdfs:label ?legislativeBodyLabel . FILTER(LANG(?legislativeBodyLabel) = "en") } }

List the regional councils of Italy’s regions that are still active.

Which legislative bodies govern Italy’s first-level administrative divisions, and what are their names?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/constituency> . { SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q10864048> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . ?var1 <http://www.wikidata.org/prop/direct/P194> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P17> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P576> [] . } MINUS { ?var2 <http://www.wikidata.org/prop/direct/P576> [] . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the color of red wine?

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 ?colorLabel WHERE {
  wd:Q1827 wdt:P462 wd:Q3142 .
  wd:Q3142 rdfs:label ?colorLabel .
  FILTER ( LANG( ?colorLabel ) = "en" )
}

What color is associated with red wine according to Wikidata?

What is the English label for the color of red wine?

SELECT ?var1Label WHERE { <http://www.wikidata.org/entity/Q1827> <http://www.wikidata.org/prop/direct/P462> ?var1 . }


Question: What properties describe wine in Wikidata, and what are their English labels and descriptions?

SELECT ?property ?propertyLabel ?propertyDescription WHERE { wd:Q282 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyEntity) . ?propertyEntity rdfs:label ?propertyLabel . ?propertyEntity schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Which Wikidata properties are used to provide information about wine, and what do they mean in English?

Can you list the English labels and descriptions of all properties that have wine as their subject in Wikidata?

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/Q282> . ?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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: List 21 cycling races with their English names.

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 ?race ?raceLabel WHERE {
  ?race wdt:P31 wd:Q15091377 .
  ?race rdfs:label ?raceLabel .
  FILTER(LANG(?raceLabel) = "en")
}
LIMIT 21

What are 21 examples of cycling races, and what are their names in English?

Can you show me 21 cycling races along with their English labels?

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


Question: People who died in 1804 with Greek labels

SELECT ?greekLabel ?deathDate WHERE { ?person wdt:P570 ?deathDate . ?person rdfs:label ?greekLabel . FILTER (LANG(?greekLabel) = "el") . FILTER (?deathDate >= "1804-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "1804-12-31T23:59:59Z"^^xsd:dateTime) } ORDER BY ASC(?deathDate)

Who died in 1804 and have their names recorded in Greek?

List the names of people who died in 1804 in Greek, sorted by the date of death.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1804-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1804-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: Which adjacent districts in Vienna are not served by the same tram line?

SELECT ?district1Label ?district2Label WHERE { ?district1 wdt:P31 wd:Q261023 ; wdt:P47 ?district2 . ?district2 wdt:P31 wd:Q261023 . FILTER NOT EXISTS { ?tramLine wdt:P361 wd:Q129612 ; wdt:P131 ?district1 ; wdt:P131 ?district2 . } }

Are there any pairs of neighboring districts in Vienna that do not share a common tram line?

List all pairs of adjacent districts in Vienna where no single tram line runs through both.

SELECT ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q261023> ; <http://www.wikidata.org/prop/direct/P1545> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q261023> ; <http://www.wikidata.org/prop/direct/P1545> ?var4 ; <http://www.wikidata.org/prop/direct/P47> ?var1 . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q129612> ; <http://www.wikidata.org/prop/direct/P131> ?var1 , ?var2 . } ) ) . FILTER ( ( ( ?var3 < ?var4 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var3 )ASC( ?var4 )


Question: Who are the spouses of the U.S. presidents?

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 ?spouse ?spouseLabel ?president WHERE {
  ?president wdt:P39 wd:Q11696 .
  ?president wdt:P26 ?spouse .
  ?spouse rdfs:label ?spouseLabel .
  FILTER(LANG(?spouseLabel) = "en")
}

Spouses of American presidents and their names

List the English names of the spouses of all individuals who have held the office of President of the United States.

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


Question: What were the administrative units (district offices and government agencies) that were part of the Government of German East Africa?

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 DISTINCT ?item ?itemLabel WHERE {
  ?item wdt:P361 wd:Q30604993 .
  {
    ?item ( wdt:P31 / wdt:P279 * ) wd:Q327333 .
  } UNION {
    ?item ( wdt:P31 / wdt:P279 * ) wd:Q854399 .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ASC ( ?itemLabel )

Which government agencies and district authorities were components of the Government of German East Africa during the colonial era?

List all the English-named administrative entities, such as district offices and government agencies, that were part of the Government of German East Africa.

SELECT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q30604993> AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P361> ?var3 . { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q327333> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q854399> . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var1Label )


Question: List all episodes of Doctor Who and their images.

SELECT ?episode ?label ?image WHERE { ?episode wdt:P179 wd:Q34316 . OPTIONAL { ?episode wdt:P18 ?image . } ?episode rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

What are the English titles of the episodes in the Doctor Who series, and which ones have images on Wikimedia Commons?

Show me the names of all Doctor Who episodes along with any available images from Wikimedia Commons.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q34316> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: List all incarnations of The Doctor from Doctor Who, including the actor and episode number, ordered by series position.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?doctor_incarnation ?doctor_incarnationLabel ?series_ordinal ?performer ?performerLabel WHERE {
  ?doctor_incarnation wdt:P3701 wd:Q34358 .
  OPTIONAL {
    ?doctor_incarnation wdt:P1545 ?series_ordinal .
  }
  OPTIONAL {
    ?doctor_incarnation wdt:P175 ?performer .
  }
}
ORDER BY ASC(xsd:integer(?series_ordinal))

Who portrayed each incarnation of The Doctor in Doctor Who, and what is the episode number for each portrayal?

Show me the actors who played each version of The Doctor in Doctor Who, along with the corresponding series ordinal, sorted by the order they appeared.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q34358> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1545> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P175> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he,en". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) )


Question: What is the English label and description of the ethnic group with Art & Architecture Thesaurus ID 300015956?

SELECT ?item ?label ?description WHERE { ?item wdt:P1014 "300015956" . ?item rdfs:label ?label . FILTER (LANG(?label) = "en") . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") . } }

Tell me the name and description in English of the entity identified by AAT ID 300015956.

Which ethnic group is associated with the Getty AAT ID 300015956, and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1014> "300015956". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the natural satellites of Saturn?

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 ?satellite ?satelliteLabel WHERE {
  ?satellite wdt:P397 wd:Q193 .
  ?satellite wdt:P31 wd:Q2537 .
  ?satellite rdfs:label ?satelliteLabel .
  FILTER ( LANG( ?satelliteLabel ) = "en" )
}
LIMIT 100

List the names of Saturn's natural satellites.

SELECT ?var1 ?var2Label 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/P397> <http://www.wikidata.org/entity/Q193> . ?var1 <http://www.wikidata.org/prop/direct/P397> <http://www.wikidata.org/entity/Q2537> . } LIMIT 100


Question: Who have been the presidents of Haiti, and what are their birth dates and images?

SELECT ?president ?birthDate ?image WHERE { ?president wdt:P39 wd:Q3290543 . OPTIONAL { ?president wdt:P569 ?birthDate . } OPTIONAL { ?president wdt:P18 ?image . } }

Can you list the presidents of Haiti along with their dates of birth and photos from Wikimedia Commons?

Which individuals held the office of President of Haiti, and do we have their birth information and portraits available?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q3290543> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Oldest human with a DBLP author ID

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 ?person ?personLabel ?dblpId ?birthDate WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P2456 ?dblpId .
  ?person wdt:P569 ?birthDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ASC(?birthDate)
LIMIT 1

Who is the person with the earliest birth date who has a DBLP identifier?

Find the earliest-born human who is listed in the DBLP computer science bibliography, along with their birth date and DBLP key.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P2456> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . FILTER ( ( !( isBLANK ( ?var3 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var3 ) LIMIT 1


Question: What were the administrative centers and government agencies in German New Guinea?

SELECT DISTINCT ?administrativeEntity ?label WHERE {  BIND( wd:Q165008 AS ?colony ) .  ?administrativeEntity wdt:P361 ?colony .  {    ?administrativeEntity (wdt:P31/wdt:P279*) wd:Q327333 .  } UNION {    ?administrativeEntity (wdt:P31/wdt:P279*) wd:Q854399 .  } UNION {    ?administrativeEntity (wdt:P31/wdt:P279*) wd:Q1306755 .  }  ?administrativeEntity rdfs:label ?label .  FILTER(LANG(?label) = "en")} ORDER BY ASC(?label)

List all the district offices and government bodies that were part of the German colony of German New Guinea.

Which locations served as seats of colonial administration in German New Guinea?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q165008> AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P361> ?var3 . { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q327333> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q854399> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1306755> . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de,en". } } ORDER BY ASC( ?var1Label )


Question: What are the components of a space rendezvous, and what are their names in different languages?

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 ?item ?itemLabel ?image WHERE {
  ?item wdt:P361 wd:Q1093759 .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}
LIMIT 100

Show me all spacecraft docking procedures that are part of space rendezvous, along with their labels and images.

List all sub-operations of space rendezvous and their multilingual names.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q1093759> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: People with conflicting birth dates between Wikipedia and the Dictionary of Swedish National Biography, including SBL ID and source article title.

SELECT ?person ?personLabel ?wikidataBirth ?precision ?sourceProjectLabel ?sblBirth ?sblId ?sourceTitle WHERE { ?person p:P569 ?stmt1 . ?stmt1 ps:P569 ?wikidataBirth . ?stmt1 psv:P569 ?stmt1value . ?stmt1value wikibase:timePrecision ?precision . ?stmt1 prov:wasDerivedFrom ?ref1 . ?ref1 pr:P143 ?sourceProject . OPTIONAL { ?ref1 pr:P248 ?sourceEntity . } FILTER ( !BOUND(?sourceEntity) ) . ?person p:P569 ?stmt2 . ?stmt2 ps:P569 ?sblBirth . ?stmt2 prov:wasDerivedFrom ?ref2 . ?ref2 pr:P248 wd:Q379406 . OPTIONAL { ?ref2 pr:P3217 ?sblId . } OPTIONAL { ?ref2 pr:P1476 ?sourceTitle . } FILTER ( ?wikidataBirth != ?sblBirth ) . ?sourceProject rdfs:label ?sourceProjectLabel . FILTER (LANG(?sourceProjectLabel) = "en") . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") }

Which individuals have different birth dates recorded in Wikipedia compared to the Dictionary of Swedish National Biography, and what are their SBL IDs and the titles of the SBL articles?

Show me a list of people whose birth date in Wikimedia projects (like Wikipedia) doesn't match their birth date in the Dictionary of Swedish National Biography, along with the SBL entry ID and the title of the SBL article where the correct date is cited.

SELECT ?var1 ?var1Label ( ?var2 AS ?var3 ) ?var4 ?var5Label ( ?var6 AS ?var7 ) ?var8 ?var9 WHERE { ?var1 <http://www.wikidata.org/prop/P569> ?var10 . ?var10 <http://www.wikidata.org/prop/statement/P569> ?var2 . ?var10 <http://www.wikidata.org/prop/statement/value/P569> ?var11 . ?var11 <http://wikiba.se/ontology#timePrecision> ?var4 . ?var10 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var12 . ?var12 <http://www.wikidata.org/prop/reference/P143> ?var5 . OPTIONAL { ?var12 <http://www.wikidata.org/prop/reference/P248> ?var13 . } FILTER ( ( !( BOUND ( ?var13 ) ) ) ) . ?var1 <http://www.wikidata.org/prop/P569> ?var14 . ?var14 <http://www.wikidata.org/prop/statement/P569> ?var6 . ?var14 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var15 . ?var15 <http://www.wikidata.org/prop/reference/P248> <http://www.wikidata.org/entity/Q379406> . OPTIONAL { ?var15 <http://www.wikidata.org/prop/reference/P3217> ?var8 . } OPTIONAL { ?var15 <http://www.wikidata.org/prop/reference/P1476> ?var9 . } FILTER ( ( ( ?var2 != ?var6 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } }


Question: People born in 1542 with Greek labels on Wikidata.

SELECT ?label ?birthDate WHERE { ?person wdt:P569 ?birthDate . OPTIONAL { ?person rdfs:label ?label . FILTER(LANG(?label) = "el") } FILTER(?birthDate >= "1542-01-01T00:00:00Z"^^xsd:dateTime && ?birthDate <= "1542-12-31T23:59:59Z"^^xsd:dateTime) FILTER(bound(?label)) } ORDER BY ASC(?birthDate)

Who were the people born in 1542 that have a name in Greek on Wikidata?

List the names in Greek and birth dates of all individuals born in 1542 who have a Greek-language label on Wikidata, sorted by birth date.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P569> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "1542-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1542-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: What is the name of the place with GeoNames ID 3083919?

SELECT ?place ?placeLabel WHERE { ?place wdt:P1566 "3083919" . ?place rdfs:label ?placeLabel . FILTER(LANG(?placeLabel) = "en") }

Which place is identified by the GeoNames identifier 3083919?

Tell me the English name of the location whose GeoNames ID is 3083919.

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


Question: Which Wikidata items have Twitter usernames Russia, servicepublicfr, thebeatles, or gcba?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  FILTER(?username IN('Russia' , 'servicepublicfr' , 'thebeatles' , 'gcba'))
}
ORDER BY ?username

What entities on Wikidata are associated with the Twitter usernames 'Russia', 'servicepublicfr', 'thebeatles', or 'gcba'?

List all Wikidata items that use any of these Twitter usernames: Russia, servicepublicfr, thebeatles, or gcba.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "docarennes" ) ( "dbelveze" ) ( "Tails_live" ) } } ORDER BY ASC( ?var3 )


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

SELECT ?wikipedia_page ?imdb_id WHERE { VALUES ?imdb_id { "tt1877830" } ?item wdt:P345 ?imdb_id . ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") FILTER(regex(str(?wikipedia_page), "^https://[a-z]{2}\\.wikipedia\\.org/")) }

Can you find the Wikipedia pages in English and German about the 2022 Batman film?

Show me the Wikipedia links in English and German for the movie "The Batman" (2022).

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt2846486". } ?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: German-named tram services in Vienna and their districts

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/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?tramService ?tramServiceLabel ?district WHERE {
  ?tramService wdt:P31 wd:Q15145593 ; wdt:P131 ?district .
  ?district wdt:P131 wd:Q1741 .
  OPTIONAL {
    ?tramService rdfs:label ?label .
    FILTER ( LANG( ?label ) = "de" ) BIND( ?label AS ?tramServiceLabel )
  }
  OPTIONAL {
    ?tramService skos:altLabel ?altLabel .
    FILTER ( LANG( ?altLabel ) = "de" ) BIND( ?altLabel AS ?tramServiceLabel )
  }
  FILTER ( BOUND( ?tramServiceLabel ) )
}

Which tram services in Vienna have German-language names, and in which districts are they located?

List all tram lines in Vienna with their German labels and the administrative districts they run through.

SELECT DISTINCT ?var1 ?var2Label ?var3 WHERE { { [ <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> ] <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1741> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> ; <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1741> . ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2Label . } }


Question: U.S. presidents with female children, their spouses, start of presidency, and presidential order

SELECT DISTINCT
  ?president
  ?spouse
  ?femaleChild
  ?presidencyStartDate
  ?presidentialOrder
WHERE {
  ?president wdt:P31 wd:Q5 .
  ?president p:P39 ?presidency .
  ?presidency ps:P39 wd:Q11696 .
  ?presidency pq:P580 ?presidencyStartDate .
  ?presidency pq:P1545 ?presidentialOrder .

  ?president wdt:P26 ?spouse .
  ?president wdt:P40 ?femaleChild .
  ?femaleChild wdt:P21 wd:Q6581072 .
}
ORDER BY ASC(?presidentialOrder)
LIMIT 10

Who are the U.S. presidents who had daughters, who were their spouses, when did they become president, and what was their presidential number?

List the U.S. presidents along with their spouses, their female children, the date they began their presidency, and their sequence number in office.

SELECT ?var1Label ?var2Label ?var3 ?var4 ?var5Label ?var6 ?var7 ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var9 <http://www.wikidata.org/prop/qualifier/P580> ?var7 . ?var9 <http://www.wikidata.org/prop/qualifier/P1545> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P26> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var10 . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P1971> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var8 )