Question: What chemical entities are composed of atoms, and what other components do they have?

SELECT ?entity ?entityLabel ?otherPart WHERE { ?entity wdt:P527 wd:Q9121 . OPTIONAL { ?entity wdt:P527 ?otherPart . FILTER(?otherPart != wd:Q9121) } OPTIONAL { ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") } }

List molecules and chemical compounds that contain atoms, along with their other parts like bonds.

Show me the entities that have atoms as parts and describe what else they are made of.

SELECT ?var1 ?var1Label ?var2 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/Q9121> ; <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/P361> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Subclasses of cinematographer

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 ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q222344 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}
LIMIT 11

What are some specialized roles that fall under the occupation of cinematographer?

List the job titles that are specific types of cinematographer.

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


Question: What properties in Wikidata have both a label and a description in Asturian?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
SELECT ?property ?label ?description WHERE {
  ?property a wikibase:Property .
  ?property rdfs:label ?label .
  ?property schema:description ?description .
  FILTER ( LANG( ?label ) = "ast" ) FILTER ( LANG( ?description ) = "ast" )
}

Show me all Wikidata properties with their Asturian labels and descriptions.

Which properties are described in Asturian, including their native labels?

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P1705> 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 ) = "ast" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ast" ) ) ) . }


Question: What are the Wikipedia pages about musical groups, rock bands, singers, and singer-songwriters?

SELECT DISTINCT ?wikipediaPage ?item ?label WHERE { { ?item wdt:P31 wd:Q215380 . } UNION { ?item wdt:P31 wd:Q5741069 . } UNION { ?item wdt:P31 wd:Q177220 . } UNION { ?item wdt:P31 wd:Q488205 . } ?wikipediaPage schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> . ?item rdfs:label ?label . FILTER(LANG(?label) = 'en') } ORDER BY ASC(?label) LIMIT 250

Show me a list of Wikipedia articles on singers, rock bands, and musical groups, sorted alphabetically.

Can you find Wikipedia pages for entities that are singers, singer-songwriters, rock bands, or musical groups?

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var3Label WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q215380> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/about> ?var2 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5741069> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/about> ?var2 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19184926> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/about> ?var2 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } UNION { ?var2 <http://www.wikidata.org/prop/direct/P360> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/about> ?var2 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P106> ?var3 . } FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q177220> ) || ( ?var3 = <http://www.wikidata.org/entity/Q488205> ) ) ) . } } ORDER BY ASC( ?var2Label ) OFFSET 0 LIMIT 250


Question: What properties are most commonly used to link items to the basketball team BC Šiauliai, and how many times?

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

Which properties connect other entities to BC Šiauliai more than once, and what are their usage counts?

Show me the properties that relate other items to BC Šiauliai, excluding those used only once, sorted by frequency in descending order.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q521636> . 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: What properties are most frequently used to link other entities to Saint-Vallier Basket Drôme, excluding those used only once?

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

Which properties connect other items to the French basketball team Saint-Vallier Basket Drôme, and how many times are they used?

Show me the properties that relate other entities to Saint-Vallier Basket Drôme, ordered by usage count, but only include properties used more than once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q3463472> . 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: List all human association football players.

SELECT ?player WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P106 wd:Q937857 . } LIMIT 300000

Who are the humans that have the occupation of association football player?

Show me all people who play professional football (soccer).

SELECT ?var1 ?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/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . } LIMIT 300000


Question: What type of celestial object is (71042) 1999 XN77?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?value WHERE {
  wd:Q15186127 wdt:P31 ?value .
}

What is the classification of the asteroid designated as (71042) 1999 XN77 in Wikidata?

Show the instance type of the asteroid (71042) 1999 XN77.

SELECT * WHERE { ?var1 <http://www.wikidata.org/entity/statement/Q71042-3004cb58-4d55-2aa3-c3d5-b013f4dd6632> ?var2 . }


Question: Author and characters of the Harry Potter book series

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 ?author ?authorLabel ?character ?characterLabel WHERE {
  wd:Q8337 wdt:P50 ?author .
  wd:Q8337 wdt:P674 ?character .
  ?author rdfs:label ?authorLabel .
  ?character rdfs:label ?characterLabel .
  FILTER ( LANG( ?authorLabel ) = "en" ) FILTER ( LANG( ?characterLabel ) = "en" )
}

Who wrote the Harry Potter series, and which characters are in it?

List the author and all characters from the Harry Potter books.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { <http://www.wikidata.org/entity/Q8337> <http://www.wikidata.org/prop/direct/P50> ?var1 . <http://www.wikidata.org/entity/Q8337> <http://www.wikidata.org/prop/direct/P674> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What are the federal states of Germany?

SELECT ?subdivision ?subdivisionLabel WHERE { wd:Q183 wdt:P150 ?subdivision . ?subdivision rdfs:label ?subdivisionLabel . FILTER(LANG(?subdivisionLabel) = 'en') } LIMIT 100

Can you list the administrative divisions of Germany?

Which regions make up Germany as direct subdivisions?

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


Question: Does the video game with ZXDB ID 0006399 exist in Wikidata?

Is there a video game in Wikidata that has the ZXDB ID "0006399"?

Is the ZXDB ID "0006399" assigned to any video game in Wikidata?

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


Question: What are the geolocated places in Fiji that are not assigned to any administrative region?

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 ?place ?placeLabel ?coord WHERE {
  ?place wdt:P17 wd:Q712 .
  OPTIONAL {
    ?place wdt:P625 ?coord .
  }
  FILTER(NOT EXISTS {
    ?place wdt:P131 ?admin .
  })
  FILTER(BOUND(?coord))
  OPTIONAL {
    ?place rdfs:label ?placeLabel .
    FILTER(LANG(?placeLabel) = "en")
  }
}
ORDER BY ASC(?placeLabel)

Show me unclassified locations in Fiji that have coordinates but no specified administrative division.

List places in Fiji without an administrative territorial entity, along with their coordinates and English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { <http://www.wikidata.org/entity/Q7270541> <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "6000". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Properties most frequently linked to Haifa, excluding those used once

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count)(CONCAT(?label , " (" , ?prefix , ":" , ?propId4 , ")") AS ?labelWithProp) WHERE {
  ?item ?property wd:Q41621 .
  BIND(REPLACE(STR(?property) , "http://www.wikidata.org/prop/" , "") AS ?propId)
  BIND(REPLACE(?propId , "direct/" , "") AS ?propId2)
  BIND(REPLACE(?propId2 , "statement/" , "") AS ?propId3)
  BIND(REPLACE(?propId3 , "qualifier/" , "") AS ?propId4)
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/" , ?propId4)) AS ?baseProperty)
  ?baseProperty rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  BIND(IF(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/") , "wdt" , IF(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/statement/") , "ps" , IF(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/qualifier/") , "pq" , "p"))) AS ?prefix)
}
GROUP BY ?property ?label ?prefix ?propId4
HAVING(?count > 1)
ORDER BY DESC(?count)

Which properties connect entities to Haifa, and how many times are they used, sorted by frequency?

Show me the top properties that relate to Haifa, with their usage counts, and only include those used more than once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q41621> . 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: Does the ship with IMO number 7527887 exist in Wikidata?

Is there a ship registered in Wikidata with the IMO number 7527887?

Confirm whether the vessel identified by IMO 7527887 is present in the Wikidata database.

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


Question: What ship has the IMO number 9186194?

SELECT ?ship WHERE { ?ship wdt:P458 "9186194" . }

Which ship is identified by the IMO number 9186194?

Find the Wikidata entity for the ship registered under IMO number 9186194.

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


Question: Who are the French people with the surname "Courty"?

SELECT DISTINCT ?person WHERE { ?person rdfs:label ?label . FILTER(LANG(?label) = "fr") . FILTER(REGEX(?label, ".* Courty$")) . ?person wdt:P31 wd:Q5 .}

List all humans in Wikidata whose French label ends with "Courty".

Can you find French-speaking individuals with the last name Courty?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "courty"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Is there a ship in Wikidata with IMO number 6818796?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?ship wdt:P458 "6818796" .
}

Does the ship Serengeti have the IMO number 6818796?

Confirm whether the IMO number 6818796 is assigned to any ship in Wikidata.

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


Question: Cities and towns in Germany

SELECT ?item ?itemLabel WHERE { ?item wdt:P17 wd:Q183 . VALUES ?instanceType { wd:Q515 wd:Q3957 } . ?item wdt:P31 ?instanceType . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') } LIMIT 100

What are the cities and towns in Germany?

List the English names of all cities and towns located in Germany.

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


Question: What properties are used to describe Las Vegas in Wikidata, along with their English labels and descriptions?

SELECT DISTINCT ?property ?propertyLabel ?propertyDescription WHERE { wd:Q23768 ?directProp ?value . ?property wikibase:directClaim ?directProp . ?property rdf:type wikibase:Property . ?property rdfs:label ?propertyLabel . ?property schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Which properties link Las Vegas to other data in Wikidata, and what are their English labels and descriptions?

List all the English-labeled properties and their descriptions that are used in statements about Las Vegas.

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/Q23768> . ?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: U.S. presidents and their religions

SELECT ?president ?presidentLabel ?religion ?religionLabel WHERE { wd:Q30 (p:P6 / ps:P6) ?president . ?president p:P140 ?statement . ?statement ps:P140 ?religion . OPTIONAL { ?president rdfs:label ?presidentLabel . FILTER(LANG(?presidentLabel) = "en") } OPTIONAL { ?religion rdfs:label ?religionLabel . FILTER(LANG(?religionLabel) = "en") } }

What religions are associated with the presidents of the United States?

List the heads of government of the United States along with their religious affiliations.

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


Question: Which cryptocurrency exchanges have Twitter usernames "BitBay", "cryptocom", or "qoinworld"?

SELECT ?exchange ?username WHERE { ?exchange wdt:P2002 ?username . VALUES ?username { "BitBay" "cryptocom" "qoinworld" } }

What are the entities on Wikidata that are associated with the Twitter usernames BitBay, cryptocom, and qoinworld?

Show me the cryptocurrency exchanges on Wikidata that use the Twitter handles BitBay, cryptocom, or qoinworld.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "paxful" ) ( "string1" ) ( "string2" ) } }


Question: Who is Jérôme Jabry, and is he a human?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person rdfs:label "Jérôme Jabry" @en .
  ?person wdt:P31 wd:Q5 .
}

What is the Wikidata item for the person named Jérôme Jabry who is a human?

Find the entity in Wikidata that has the English label "Jérôme Jabry" and is classified as a human.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Fadi Jabry"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: What type of Wikimedia page is "Dodatak:Popis vrsta drveća"?

SELECT ?type ?typeLabel WHERE { wd:Q6643964 wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") }

What category does the Wikimedia list article "Dodatak:Popis vrsta drveća" belong to?

What is the classification of Q6643964 in Wikidata?

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


Question: Is there a person in Wikidata with the IMDb ID nm2016624?

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

Does the IMDb identifier nm2016624 correspond to any entity in Wikidata?

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

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


Question: Does Regi Penxten have an IMDb ID of nm3580378?

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

Is the IMDb identifier for Regi Penxten nm3580378?

Confirm that Regi Penxten is associated with the IMDb ID nm3580378.

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


Question: What are some places in Belarus that have coordinates, images, and Wikimedia Commons categories?

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 ?coord ?image ?commonsCategory WHERE {
  ?item wdt:P17 wd:Q184 .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 10

Show me entities in Belarus with their geographic coordinates, associated images, and Commons categories.

List locations in Belarus along with their photos and related Wikimedia Commons categories.

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


Question: Who is the person with IMDb ID nm5341962?

SELECT ?person ?personLabel WHERE { ?person wdt:P345 "nm5341962" . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Can you tell me the name of the individual linked to the IMDb identifier nm5341962?

What is the English label of the Wikidata entity that has the IMDb ID nm5341962?

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


Question: List scholarly articles and their titles in multiple languages from Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?article ?label WHERE {
  ?article rdfs:label ?label .
  ?article wdt:P31 wd:Q13442814 .
}
LIMIT 200

What are the titles of scholarly articles in different languages on Wikidata?

Show me up to 200 academic papers along with their labels in all available languages.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . } LIMIT 200


Question: Scholarly articles with "machine" in the title

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 ?article ?title WHERE {
  ?article rdfs:label ?title .
  ?article wdt:P31 wd:Q13442814 .
  FILTER(LANGMATCHES(LANG(?title) , "en"))
  FILTER(REGEX(?title , "machine" , "i"))
}
LIMIT 200

What are scholarly articles whose titles contain the word "machine"?

Show me the titles of academic papers that mention "machine", such as in "machine learning" or "support vector machine", in English.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . FILTER ( ( LANGMATCHES ( LANG ( ?var2 ) , "EN" ) ) ) . FILTER ( ( REGEX ( ?var2 , "machine" ) ) ) . } LIMIT 200


Question: What are the English and Dutch labels for Jacob Smies’s occupations?

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 ?occupationLabel ?occupation WHERE {
  wd:Q18603323 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "nl" || LANG(?occupationLabel) = "en")
}

In what languages is Jacob Smies’s occupation described in Wikidata?

What are Jacob Smies’s occupations in Dutch and English?

SELECT ?var1Label ?var1 WHERE { <http://www.wikidata.org/entity/Q18603323> <http://www.wikidata.org/prop/direct/P106> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( ?var1Label = "schrijver" ) ) ) . FILTER ( ( ( "nl" = LANG ( ?var1Label ) ) ) ) . }


Question: What are the occupations of Pieter Mortier I in Dutch?

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

Can you list Pieter Mortier I’s professions in the Dutch language?

How are Pieter Mortier I’s jobs described in Dutch?

SELECT ?var1Label ?var1 WHERE { <http://www.wikidata.org/entity/Q7192808> <http://www.wikidata.org/prop/direct/P106> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( ?var1Label = "schrijver" ) ) ) . FILTER ( ( ( "nl" = LANG ( ?var1Label ) ) ) ) . }


Question: What properties (other than "instance of") are used to classify or relate the film genre "flashback film" to other items in Wikidata?

SELECT DISTINCT ?property WHERE { ?item ?property wd:Q21401869 . FILTER (?property != wd:P31) FILTER (STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) }

Which direct relationships connect "flashback film" to other entities in Wikidata, excluding "instance of"?

How is the film genre "flashback film" connected to other topics in Wikidata through direct properties?

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3 <http://www.wikidata.org/entity/Q21401869> . ?var1 <http://wikiba.se/ontology#statementProperty> ?var3 . FILTER ( ( ( ?var1 != <http://www.wikidata.org/entity/P31> ) ) ) . }


Question: Does the IMDb ID nm0012688 exist in Wikidata?

ASK WHERE { ?item wdt:P345 "nm0012688" }

Is there a person in Wikidata associated with the IMDb ID nm0012688?

Check if the IMDb identifier nm0012688 is linked to any entity in Wikidata.

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


Question: Does Wikidata contain an entry with IMDb ID nm2381660?

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

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

Check if the IMDb ID nm2381660 is linked to any person in Wikidata.

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


Question: Is there a Wikidata item for the IMDb ID nm5163434?

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

Does the actor or person with IMDb ID nm5163434 have a page on Wikidata?

Check if the IMDb identifier nm5163434 corresponds to a Wikidata entity.

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


Question: Does the IMDb ID nm1478562 exist in Wikidata?

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

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

Can you confirm that nm1478562 is a valid IMDb ID for someone in Wikidata?

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


Question: What are the English labels of the types that Red Sun belongs to?

SELECT ?type ?typeLabel WHERE { wd:Q17424530 wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER (LANG(?typeLabel) = "en") } LIMIT 50

What classes is the Red Sun from Serenity classified as, in English?

Show me the English names of the categories that the Red Sun is an instance of.

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


Question: What are the French-language sections of the Dictionnaire du patrimoine rennais?

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 ?component ?componentLabel WHERE {
  ?component wdt:P361 wd:Q29551022 .
  ?component rdfs:label ?componentLabel .
  FILTER(LANG(?componentLabel) = "fr")
}

Which parts of the book "Dictionnaire du patrimoine rennais" have French labels?

List the chapter titles in French from the Dictionnaire du patrimoine rennais.

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


Question: Actors who died after 2000 and their names

SELECT ?actorLabel ?deathDate WHERE { ?actor wdt:P31 wd:Q5 ; wdt:P106 wd:Q33999 ; wdt:P570 ?deathDate . FILTER ( ?deathDate >= "2000-01-01T00:00:00Z"^^xsd:dateTime ) . ?actor rdfs:label ?actorLabel . } LIMIT 40

Who are the actors that died from the year 2000 onwards, and when did they die?

List the names and death dates of actors who passed away in the year 2000 or later.

SELECT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> ; <http://www.wikidata.org/prop/direct/P570> ?var2 . FILTER ( ( ( ?var2 >= "2000-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 40


Question: What is the image associated with the SNAC ARK ID "w6995rvx"?

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

Can you show me the Wikimedia Commons image for the person identified by SNAC ARK ID w6995rvx?

I need the image of the individual linked to the SNAC ARK ID w6995rvx.

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


Question: Image of Jerzy Toeplitz with SNAC ARK ID w6fz9nwf

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

What is the image associated with Jerzy Toeplitz in Wikidata, identified by the SNAC ARK ID w6fz9nwf?

Show me the Wikimedia Commons image for the person whose SNAC ARK ID is w6fz9nwf.

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


Question: Is Gitit a type of software?

ASK WHERE { wd:Q17003504 wdt:P31 ?class . ?class wdt:P279* wd:Q7397 . }

Does Gitit belong to a class that is a subclass of software?

Can Gitit be classified as software based on its category hierarchy?

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


Question: Coffeehouses with their English names and geographic coordinates.

SELECT ?coffeehouse ?coffeehouseLabel ?coordinate WHERE { ?coffeehouse wdt:P31 wd:Q30022 . OPTIONAL { ?coffeehouse rdfs:label ?coffeehouseLabel . FILTER(LANG(?coffeehouseLabel) = "en") } OPTIONAL { ?coffeehouse wdt:P625 ?coordinate . } } LIMIT 100

What are the English names and locations of coffeehouses on Wikidata?

List coffeehouses along with their English labels and coordinates, if available.

SELECT ?var1 ?var1Label ?var2 ?var2Label 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/Q30022> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } } LIMIT 100


Question: Is there a movie on Wikidata with Rotten Tomatoes ID m/carol?

Does the film 'Carol' have a Rotten Tomatoes ID of m/carol in Wikidata?

Confirm if the movie Carol is identified by m/carol on Rotten Tomatoes in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1258> "m/carol". }


Question: Are there any athletes from Samoa listed in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  ?person wdt:P27 wd:Q683 ; a wd:Q5 .
}

Does Wikidata contain any human individuals who are citizens of Samoa?

Why can't I find any athletes from Samoa in Wikidata?

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


Question: Is there a movie in Wikidata with the IMDb ID tt0480954?

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

Does the film "Il bambino sull'acqua" have the IMDb identifier tt0480954?

Is tt0480954 a valid IMDb ID for any entity in Wikidata?

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


Question: Is there a Wikidata item associated with the IMDb ID tt1720955?

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

Does the movie "Jésus et la samaritaine" have an IMDb ID of tt1720955?

Is tt1720955 a valid IMDb identifier in Wikidata?

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


Question: Is there a Wikidata item for the movie with IMDb ID tt1721004?

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

Does the film 'The Dark Knight' have a Wikidata entry linked by the IMDb ID tt1721004?

Please confirm if the IMDb ID tt1721004 corresponds to any entity in Wikidata.

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


Question: Does the movie with IMDb ID tt1778824 exist in Wikidata?

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

Is there an entry in Wikidata for the film identified by tt1778824?

Does Wikidata contain a record for the IMDb identifier tt1778824?

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


Question: Does the IMDb ID tt0438652 exist in Wikidata?

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

Is there a movie in Wikidata with the IMDb identifier tt0438652?

Confirm if the film with IMDb ID tt0438652 is listed in Wikidata.

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


Question: Is there a Wikidata item for the IMDb ID tt0247255?

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

Does the movie with IMDb ID tt0247255 have a corresponding entry in Wikidata?

Check if tt0247255 is a valid IMDb identifier in Wikidata.

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


Question: List of fictional interstellar states in science fiction.

SELECT ?fictionalState ?label WHERE { ?fictionalState wdt:P31 wd:Q47537235 . ?fictionalState rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ?label

What are some fictional interstellar governments from science fiction franchises?

Show me the names of all fictional space empires and federations that span multiple star systems in fictional universes.

SELECT ?var1 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/Q47537235> . } LIMIT 100


Question: Categories that combine science with other topics

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?category WHERE {
  ?category wdt:P971 wd:Q336 .
}
LIMIT 100

What Wikipedia categories include science along with other subjects?

List all categories that intersect with the topic of science.

SELECT ?var1 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/P971> <http://www.wikidata.org/entity/Q336> . } LIMIT 100


Question: What are the books written by Stephen King?

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 ?book ?bookLabel WHERE {
  ?book wdt:P50 wd:Q39829 .
  ?book wdt:P31 wd:Q7725634 .
  wd:Q39829 wdt:P106 wd:Q36180 .
  OPTIONAL {
    ?book rdfs:label ?bookLabel .
    FILTER(LANG(?bookLabel) = 'en')
  }
}
LIMIT 100

Can you list the literary works authored by Stephen King, who is known as a writer?

Show me the titles of Stephen King’s books, ensuring he is identified as a writer.

SELECT ?var1 ?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/Q36180> . ?var1 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q39829> . OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . } LIMIT 100


Question: What countries, provinces, and continents include Cerro del Monje?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 WHERE {
  {
    wd:Q21827210 wdt:P30 ?var1 .
  } UNION {
    wd:Q21827210 wdt:P17 ?var1 .
  } UNION {
    wd:Q21827210 wdt:P131 + ?var1 .
  }
}

In which country, administrative region, and continent is the mountain Cerro del Monje located?

List all geographic entities — including country, province, and continent — that Cerro del Monje is part of through direct or hierarchical relations.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q21827210> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: What is the Dutch name of Joseph Albert Alberdingk Thijm?

SELECT ?label WHERE { wd:Q1978794 rdfs:label ?label . FILTER (LANG(?label) = "nl") }

How is Joseph Albert Alberdingk Thijm called in Dutch?

Show the Dutch-language label for the Dutch writer Joseph Albert Alberdingk Thijm.

SELECT ?var1Label ?var1 WHERE { <http://www.wikidata.org/entity/Q1978794> <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( "nl" = LANG ( ?var1Label ) ) ) ) . }


Question: Occupations of Anton Averkamp

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 ?occupation ?occupationLabel WHERE {
  wd:Q15448761 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}

What are the occupations of Anton Averkamp?

List the professions Anton Averkamp has held.

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


Question: What is the occupation of Pieter Oosterhuis?

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

What profession did the Dutch artist Pieter Oosterhuis have?

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


Question: Does Marte Röling work as an actor?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(1 AS ?exists) WHERE {
  wd:Q2085622 wdt:P106 wd:Q33999 .
}

Is Marte Röling listed as an actor in Wikidata?

Confirm whether Marte Röling has actor as one of her occupations.

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


Question: Is Jaap van Zweden an actor?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(MAX(COALESCE(?isActor , 0)) AS ?result) WHERE {
  OPTIONAL {
    wd:Q1377591 wdt:P106 wd:Q33999 .
    BIND(1 AS ?isActor)
  }
}

Does Jaap van Zweden have acting as his profession?

Return 1 if Jaap van Zweden is an actor, otherwise return 0.

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


Question: List theatres with a Theatres Trust Database ID, their English labels, and corresponding English Wikipedia pages.

SELECT ?theatre ?label ?wikipediaPage WHERE { ?theatre wdt:P4079 ?id . OPTIONAL { ?theatre rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?wikipediaPage schema:about ?theatre ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } }

Which theatres in Wikidata have a Theatres Trust Database ID, and what are their English names and Wikipedia links?

Show me the Wikidata entities for theatres that are identified in the Theatres Trust Database, along with their English labels and links to their English Wikipedia articles — if available.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4079> ?var4 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "en". ?var3 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } }


Question: People who are both film actors and university teachers.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P106 wd:Q10800557 ; wdt:P106 wd:Q1622272 .
}

Who are the individuals that have worked as both film actors and university teachers?

List all people whose occupations include both being a film actor and a university teacher.

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


Question: What are the occupations of Jan Maurits Quinkhard?

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

List the English labels of all occupations associated with Jan Maurits Quinkhard.

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


Question: What Pokémon moves have the contest condition "Cool"?

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 ?move ?moveLabel WHERE {
  ?move wdt:P1552 wd:Q26012310 .
  ?move rdfs:label ?moveLabel .
  FILTER(LANG(?moveLabel) = "en")
}

Which moves are classified as having a "Cool" contest condition in Pokémon?

List all Pokémon moves that are associated with the Cool contest condition.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q26013333> . ?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: Is Andries Bicker a painter?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(IF(EXISTS {
  wd:Q434290 wdt:P106 wd:Q1028181
}
, 1 , 0) AS ?isPainter) WHERE {
}

Does Andries Bicker have the occupation of painter?

What is the boolean result for whether Andries Bicker is a painter?

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


Question: What are the names of video games released on the Commodore 64?

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 ?game ?gameLabel WHERE {
  ?game wdt:P31 wd:Q7889 .
  ?game wdt:P400 wd:Q99775 .
  ?game rdfs:label ?gameLabel .
  FILTER(LANG(?gameLabel) = "en")
}

Which classic computer games were available on the Commodore 64?

Can you list the English titles of all video games designed for the Commodore 64?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7889> . ?var1 <http://www.wikidata.org/prop/direct/P400> <http://www.wikidata.org/entity/Q99775> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . } }


Question: Aerodromes in Brazil

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31/wdt:P279* wd:Q62447 . ?var1 wdt:P17 wd:Q155 . ?var1 rdfs:label ?var1Label . } LIMIT 1000

What are the names of all airports and airfields in Brazil?

List all aerodromes located in Brazil along with their labels.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ms,sv,pt". } ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q62447> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q155> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P156> ?var3 . } } LIMIT 1000


Question: Female computer scientists with their birth dates and images

SELECT ?person ?label ?birthDate ?image WHERE { ?person wdt:P106 wd:Q82594 ; wdt:P21 wd:Q6581072 ; wdt:P569 ?birthDate ; wdt:P18 ?image . ?person rdfs:label ?label . FILTER(LANG(?label) = "en") }

Who are the female computer scientists on Wikidata, and what are their birth dates and images?

List all female computer scientists along with their date of birth and associated Wikimedia Commons images.

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


Question: Is there a mountain with Peakbagger ID 791?

ASK WHERE { ?mountain wdt:P3109 "791" . }

Does Wikidata contain a mountain identified by the Peakbagger ID 791?

Is the Peakbagger ID 791 assigned to any mountain in Wikidata?

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


Question: Is Firefox a type of software?

Does Firefox belong to a category that is a subclass of software?

Is Firefox considered a kind of software according to Wikidata’s classification?

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


Question: Children of Genghis Khan, their birth dates, and images, ordered by birth year.

SELECT ?childLabel ?birthDate ?image WHERE { wd:Q720 wdt:P40 ?child . ?child wdt:P569 ?birthDate . ?child wdt:P18 ?image . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") } ORDER BY ASC(?birthDate)

Who are the children of Genghis Khan, when were they born, and what do their images look like, listed in order of birth?

Show me the names, birth dates, and images of Genghis Khan’s children, sorted from the oldest to the youngest.

SELECT ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q720> <http://www.wikidata.org/prop/direct/P40> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?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,en". } } GROUP BY ?var1 ?var1Label ?var2 ?var3 ORDER BY ASC( ?var2 )


Question: How many professional gamers with nicknames are there from each country?

SELECT ?country (COUNT(?player) AS ?count) WHERE { ?player wdt:P106 wd:Q4379701 . ?player wdt:P1449 ?nickname . ?player wdt:P27 ?country . } GROUP BY ?country

Which countries have the most professional gamers who have a nickname, and how many are there per country?

Show me a list of countries with the count of professional gamers who have a nickname, grouped by country.

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


Question: Wikidata items matching DBpedia resources with English labels and associated Commons files or categories.

SELECT ?var1 ?var1Label ?var3 ?var4 ?var5 WHERE { { SELECT ?var1 ?var3 WHERE { ?var1 wdt:P2888 ?var3 . FILTER (STRSTARTS(STR(?var3), "http://dbpedia.org/resource/")) } } OPTIONAL { ?var4 schema:about ?var1 ; schema:isPartOf <https://commons.wikimedia.org/> . } OPTIONAL { ?var1 wdt:P373 ?var5 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

Which Wikidata items are exact matches to DBpedia resources, and what are their English labels, Commons media files, and Commons categories?

Show me Wikidata entities that correspond to DBpedia resources, along with their English names, related media files on Wikimedia Commons, and their Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { { SELECT ?var1 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2888> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } } OPTIONAL { ?var4 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://commons.wikimedia.org/> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Female politicians born in Paisley

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P106 wd:Q82955 .
  ?person wdt:P19 wd:Q211870 .
}

Who are the female politicians born in Paisley, Scotland?

List all women who are politicians and were born in Paisley.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q211870> . }


Question: List 100 human beings with their English names.

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

What are the English labels of 100 people in Wikidata?

Show me 100 examples of humans with their names in English.

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


Question: Who is the singer with MusicBrainz ID b8d53752-5fe3-4160-92b6-9bab009c6ca3?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P106 ?occupation .
  ?person wdt:P434 "b8d53752-5fe3-4160-92b6-9bab009c6ca3" .
  FILTER(?occupation IN(wd:Q488205 , wd:Q177220))
}
LIMIT 20

Which person has the MusicBrainz artist ID b8d53752-5fe3-4160-92b6-9bab009c6ca3 and is listed as a singer or singer-songwriter?

Find the person associated with the MusicBrainz ID b8d53752-5fe3-4160-92b6-9bab009c6ca3 whose occupation is singer or singer-songwriter.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P434> "string1". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ?var2 IN ( <http://www.wikidata.org/entity/Q488205> , <http://www.wikidata.org/entity/Q177220> ) ) ) . } LIMIT 20


Question: Wars with their death tolls, sorted from lowest to highest number of deaths.

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 ?war ?warLabel ?deathCount WHERE {
  ?war wdt:P31 wd:Q198 .
  ?war rdfs:label ?warLabel .
  OPTIONAL {
    ?war wdt:P1120 ?deathCount .
    FILTER ( isNumeric( ?deathCount ) )
  }
  FILTER ( LANG( ?warLabel ) = "en" )
}
ORDER BY ASC ( ?deathCount )

Which wars have recorded death counts, and how many people died in each, ordered from the least to the most deadly?

List all wars in English along with their number of deaths, sorted by the lowest death count first.

SELECT ?var1 ?var1Label ?var2 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/P31> <http://www.wikidata.org/entity/Q198> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1120> ?var2 . } } ORDER BY ASC( ?var2 )


Question: What are the language labels for Bezirksamt Toma, and does it have any alternative names?

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?entity ?label ?altLabel WHERE {
  BIND( wd:Q47542707 AS ?entity ) .
  OPTIONAL {
    ?entity skos:altLabel ?altLabel .
  }
  ?entity rdfs:label ?label .
}

In which languages is the administrative center Bezirksamt Toma labeled, and are there any alternative names for it?

Please list all the labels (in different languages) for the entity Bezirksamt Toma, along with any alternative labels it might have.

SELECT ?var1 ?var1Label ?var2Label WHERE { BIND ( <http://www.wikidata.org/entity/Q47542707> AS ?var1 ). OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2Label . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: Television series after 1970 with IMDb IDs that were nominated for an Emmy Award.

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 ?series ?year ?label ?imdbId ?productionCompany ?director ?award ?nomination WHERE {
  ?series wdt:P31 wd:Q5398426 .
  ?series wdt:P345 ?imdbId .
  ?series rdfs:label ?label .
  ?series wdt:P577 ?publicationDate .
  BIND(YEAR(?publicationDate) AS ?year)
  OPTIONAL {
    ?series wdt:P272 ?productionCompany .
  }
  OPTIONAL {
    ?series wdt:P57 ?director .
  }
  OPTIONAL {
    ?series wdt:P166 ?award .
  }
  ?series wdt:P1411 ?nomination .
  ?nomination wdt:P31 / wdt:P279 * wd:Q123737 .
  FILTER(LANG(?label) = "en")
  FILTER(?year > 1970)
}
ORDER BY ASC(?imdbId)
LIMIT 250

Which TV series released after 1970 received a nomination for an Emmy Award, and what are their IMDb IDs?

List all English-language TV series from 1971 onward that were nominated for any Emmy Award, along with their IMDb identifiers.

SELECT ?var1 ( YEAR ( ?var2 ) AS ?var3 ) ?var4 ?var5 ?var6 ?var2 ?var7 ?var8 ?var9 ?var10 ?var10Label ?var9Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5398426> . ?var1 <http://www.wikidata.org/prop/direct/P345> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P272> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1411> ?var10 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var9 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P57> ?var7 . } FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . FILTER ( ( ( YEAR ( ?var2 ) > "1970"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( BOUND ( ?var10 ) && CONTAINS ( ?var10Label , "Emmy" ) ) ) . } ORDER BY ASC( ?var5 ) OFFSET 0 LIMIT 250


Question: Professional gamers with nicknames in Wikidata

SELECT ?player ?playerLabel ?nickname WHERE { ?player wdt:P106 wd:Q4379701 . ?player wdt:P1449 ?nickname . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = 'en') }

Who are the esports players that have known nicknames, and what are those nicknames?

List the names and nicknames of all professional gamers in Wikidata, using their English labels.

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


Question: Church buildings in Paris with images

SELECT ?church ?churchLabel ?image WHERE { ?church wdt:P31 wd:Q16970 . ?church wdt:P131 wd:Q90 . OPTIONAL { ?church wdt:P18 ?image . } ?church rdfs:label ?churchLabel . FILTER(LANG(?churchLabel) = "en") }

What are the church buildings located in Paris, and do they have images available?

List the English-named church buildings in Paris along with their images, if any.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16970> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/2683> . 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 . } }


Question: Churches in Parma with images

SELECT ?church ?churchLabel ?image WHERE { ?church wdt:P31 wd:Q16970 . ?church wdt:P131 wd:Q2683 . OPTIONAL { ?church wdt:P18 ?image . } ?church rdfs:label ?churchLabel . FILTER(LANG(?churchLabel) = "it") }

What are the churches in Parma, and which ones have images available on Wikimedia Commons?

List all church buildings in Parma along with their Italian names and associated images from Wikimedia Commons.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16970> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q2683> . 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 . } }


Question: What are the birth and death dates of Boris Johnson’s parents and grandparents?

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 ?ancestor ?ancestorLabel ?birthDate ?deathDate WHERE {
  {
    wd:Q180589(wdt:P25 | wdt:P22) ?ancestor .
  } UNION {
    wd:Q180589(wdt:P25 | wdt:P22) /(wdt:P25 | wdt:P22) ?ancestor .
  }
  ?ancestor rdfs:label ?ancestorLabel .
  OPTIONAL {
    ?ancestor wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?ancestor wdt:P570 ?deathDate .
  }
  FILTER(LANG(?ancestorLabel) = "en")
}
ORDER BY ?birthDate

Can you list Boris Johnson’s immediate ancestors — his parents and grandparents — along with their dates of birth and death?

Who are Boris Johnson’s direct ancestors up to the grandparent generation, and when were they born and died?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { <http://www.wikidata.org/entity/Q180589> ( <http://www.wikidata.org/prop/direct/P25> | <http://www.wikidata.org/prop/direct/P22> )* ?var1 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Does the GND ID 4059261-3 correspond to an item in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "4059261-3" .
}

Is there a Wikidata entity associated with the German National Library ID 4059261-3?

Confirm if the GND identifier 4059261-3 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4059261-3". }


Question: Images of destroyed artworks with English labels

SELECT ?artworkLabel ?image WHERE { ?artwork wdt:P31 wd:Q21745157 . ?artwork wdt:P18 ?image . ?artwork rdfs:label ?artworkLabel . FILTER(LANG(?artworkLabel) = "en") }

What are the English names and images of artworks that have been destroyed?

Show me the names and Wikimedia Commons images of artworks that no longer exist.

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


Question: What are all the Wikidata properties?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?type WHERE {
  ?property wdt:P31 wd:Q18616576 .
  BIND(wd:Q18616576 AS ?type)
}

List all entities that are classified as Wikidata properties.

Which items in Wikidata are instances of the class "Wikidata property"?

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q18616576> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> * ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } }


Question: Television series released after 1979 with IMDb IDs, English titles, and awards, including production companies, directors, and award names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?series ?year ?label ?imdbId ?productionCompany ?publicationDate ?director ?award1Label ?award2Label WHERE {
  ?series wdt:P31 wd:Q5398426 .
  ?series wdt:P345 ?imdbId .
  ?series rdfs:label ?label .
  ?series wdt:P577 ?publicationDate .
  BIND( YEAR( ?publicationDate ) AS ?year ) OPTIONAL {
    ?series wdt:P272 ?productionCompany .
  }
  OPTIONAL {
    ?series wdt:P57 ?director .
  }
  OPTIONAL {
    ?series wdt:P166 ?award1 .
    ?award1 rdfs:label ?award1Label .
    FILTER ( LANG( ?award1Label ) = "en" )
  }
  OPTIONAL {
    ?series wdt:P166 ?award2 .
    ?award2 rdfs:label ?award2Label .
    FILTER ( LANG( ?award2Label ) = "en" )
  }
  FILTER ( LANG( ?label ) = "en" ) FILTER ( ?year > 1979 ) FILTER ( BOUND( ?award1 ) || BOUND( ?award2 ) )
}
ORDER BY ASC ( ?imdbId )
LIMIT 250

What are the English-named TV series released after 1979 that have IMDb IDs and have won at least one award, along with their production companies, directors, and award names?

List TV series from after 1979 that have IMDb IDs and have received awards, showing their English titles, publication years, production companies, directors, and up to two award names.

SELECT ?var1 ( YEAR ( ?var2 ) AS ?var3 ) ?var4 ?var5 ?var6 ?var2 ?var7 ?var8 ?var9Label ?var10Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5398426> . ?var1 <http://www.wikidata.org/prop/direct/P345> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P272> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var9 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var10 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P57> ?var7 . } FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . FILTER ( ( ( YEAR ( ?var2 ) > "1979"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( BOUND ( ?var10 ) || BOUND ( ?var9 ) ) ) . } ORDER BY ASC( ?var5 ) OFFSET 1500 LIMIT 250


Question: Does Minecraft have a MobyGames game ID?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?game wdt:P1933 "minecraft" .
}

Is there a Wikidata item for Minecraft that is linked to the MobyGames ID 'minecraft'?

Check if Minecraft is associated with the MobyGames ID 'minecraft' in Wikidata.

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


Question: What are the 100 largest cities in the world by population, along with their populations and geographic coordinates?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1Label ?var2 ?var3 WHERE {
  ?var1 wdt:P31 wd:Q1637706 .
  ?var1 wdt:P1082 ?var2 .
  ?var1 wdt:P625 ?var3 .
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}
ORDER BY DESC(?var2)
LIMIT 100

Can you list the top cities with over a million residents, sorted by population size, and include their coordinates?

Which cities have more than a million people, and what are their exact locations and population numbers?

SELECT ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1637706> . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var2 ) LIMIT 100


Question: What legislative terms are associated with the House of Commons and the National Assembly of Slovenia?

SELECT ?parliament ?parliamentLabel ?legislativeTerm ?legislativeTermLabel ?country ?countryLabel WHERE { VALUES ?parliament { wd:Q11005 wd:Q1568676 } ?parliament wdt:P1001 ?country . ?legislativeTerm wdt:P31/wdt:P279* wd:Q15238777 ; wdt:P1001 ?country . ?parliament rdfs:label ?parliamentLabel . ?legislativeTerm rdfs:label ?legislativeTermLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?parliamentLabel) = "en") FILTER(LANG(?legislativeTermLabel) = "en") FILTER(LANG(?countryLabel) = "en") }

Show me the parliamentary terms for the UK House of Commons and Slovenia’s National Assembly, along with the countries they belong to.

Which historical sessions of the UK Parliament and Slovenian National Assembly exist in Wikidata, and what countries do they represent?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q11005> ) ( <http://www.wikidata.org/entity/Q1568676> ) } ?var1 ( <http://www.wikidata.org/prop/P361> / <http://www.wikidata.org/prop/statement/P361> )* ?var2 . OPTIONAL { ?var4 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> ) ?var5 . ?var5 <http://www.wikidata.org/prop/P279> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P279> <http://www.wikidata.org/entity/Q15238777> . ?var6 <http://www.wikidata.org/prop/qualifier/P642> ?var2 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/P31> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q15238777> . ?var8 <http://www.wikidata.org/prop/qualifier/P642> ?var2 . } BIND ( COALESCE ( ?var4 , ?var7 ) AS ?var3 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the items in the "Pancakes" category, and what are their alternate names?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?alternateName WHERE {
  ?item wdt:P910 wd:Q6932800 .
  OPTIONAL {
    ?item wdt:P2561 ?alternateName .
  }
}
LIMIT 100

List all pancakes and their aliases from Wikidata.

Which dishes categorized as pancakes have alternative names?

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


Question: Greek-labeled people who died in 1897

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

Who are the people with Greek-language labels that died in 1897?

List the names of individuals who died in 1897 and have a Greek label.

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 >= "1897-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1897-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: English label of the CDATA entity in Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label WHERE {
  wd:Q357626 rdfs:label ?label .
  FILTER ( LANGMATCHES( LANG( ?label ) , "en" ) )
}

What is the English name of the Wikidata item for CDATA?

Show me the English label for the CDATA entity on Wikidata.

SELECT DISTINCT * WHERE { <http://www.wikidata.org/entity/Q357626> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( LANGMATCHES ( LANG ( ?var1Label ) , "EN" ) ) ) . } LIMIT 1


Question: What properties are most frequently used to link items to the Garden of Gethsemane?

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

Which properties connect the most number of items to Gethsemane, and how many times are they used?

Show me the top properties associated with Gethsemane, ordered by how often they appear, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q205333> . 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: Top 100 paintings with the most images on Wikimedia Commons

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 ?paintingLabel ?painting(COUNT(?image) AS ?imageCount) WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P18 ?image .
  ?painting rdfs:label ?paintingLabel .
  FILTER(LANG(?paintingLabel) = "en")
}
GROUP BY ?painting ?paintingLabel
ORDER BY DESC(?imageCount)
LIMIT 100

Which paintings have the highest number of images on Wikimedia Commons, and how many images do they have?

Show me the 100 paintings that are most frequently illustrated on Wikimedia Commons, along with their English names and image counts.

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


Question: Tram lines in Vienna with their lengths, start dates, and Wikimedia Commons categories

SELECT ?tramLine ?tramLineLabel ?length ?startTime ?commonsCategory WHERE { wd:Q74002385 wdt:P527 ?tramLine . ?tramLine wdt:P31 wd:Q74002385 ; rdfs:label ?tramLineLabel . FILTER(LANG(?tramLineLabel) = "en") OPTIONAL { ?tramLine wdt:P373 ?commonsCategory . } OPTIONAL { ?tramLine p:P2043 [ ps:P2043 ?length ; pq:P580 ?startTime ] . } } ORDER BY ASC(?tramLineLabel)

What are the tram lines in Vienna, their lengths, when those lengths were recorded, and their corresponding Wikimedia Commons categories?

List all tram lines in Vienna along with their lengths, the dates those lengths became valid, and their Wikimedia Commons categories, sorted alphabetically.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15145593> ; <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1741> ; <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q129612> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P2043> [ <http://www.wikidata.org/prop/statement/P2043> ?var2 ; <http://www.wikidata.org/prop/qualifier/P580> ?var3 ] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var1Label )


Question: Countries and their populations, sorted alphabetically

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 ?countryLabel ?population WHERE {
  ?country wdt:P31 wd:Q6256 ; wdt:P1082 ?population .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  FILTER(isLiteral(?population))
}
ORDER BY ASC(?countryLabel)

What is the population of each country, listed in alphabetical order?

Show me a list of all countries with their populations, ordered by country name.

SELECT DISTINCT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> ; <http://www.wikidata.org/prop/direct/P1082> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var2Label ?var1 ORDER BY ASC( ?var1 )


Question: What properties are used to link individuals or elections to the Liberal Democrats, and what qualifiers are associated with those statements?

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

Show me all people and elections associated with the Liberal Democrats, along with the type of relationship (e.g., member or candidate) and any additional details like end dates or number of seats.

List all non-instance-of statements connecting entities to the Liberal Democrats, including any qualifier information such as time periods or seat counts.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q9624> . ?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: People born on December 9, 1962

SELECT DISTINCT ?person WHERE { ?person wdt:P569 ?birthDate . FILTER ( ?birthDate >= "1962-12-09T00:00:00Z"^^xsd:dateTime && ?birthDate <= "1962-12-09T23:59:59Z"^^xsd:dateTime ) }

List all individuals whose date of birth is exactly December 9, 1962.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var2 >= "1962-12-09T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1962-12-09T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What works, inventions, or organizations were created, discovered, published, or officially opened on December 9, 1962?

SELECT DISTINCT ?item WHERE { ?item (wdt:P571 | wdt:P575 | wdt:P577 | wdt:P1619) ?date . FILTER ( ?date >= "1962-12-09T00:00:00Z"^^xsd:dateTime && ?date <= "1962-12-09T23:59:59Z"^^xsd:dateTime ) }

Which entities on Wikidata have a date of inception, discovery, publication, or official opening on December 9, 1962?

List all items that began or were released on December 9, 1962, including films, TV shows, inventions, or institutions.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P571> | <http://www.wikidata.org/prop/direct/P575> | <http://www.wikidata.org/prop/direct/P577> | <http://www.wikidata.org/prop/direct/P1619> ) ?var2 . FILTER ( ( ( ?var2 >= "1962-12-09T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1962-12-09T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: List all U.S. gubernatorial elections with their states and dates, ordered alphabetically by state.

SELECT ?stateLabel ?electionDate ?timePrecision ?election ?electionLabel ?office ?officeLabel WHERE { ?election wdt:P541 ?office . ?office wdt:P279 wd:Q889821 . ?office wdt:P1001 ?state . OPTIONAL { ?election wdt:P585 ?electionDate . } OPTIONAL { ?election (p:P585 / ps:P585 / wikibase:timePrecision) ?timePrecision . } ?state rdfs:label ?stateLabel . ?election rdfs:label ?electionLabel . ?office rdfs:label ?officeLabel . FILTER(LANG(?stateLabel) = "en") FILTER(LANG(?electionLabel) = "en") FILTER(LANG(?officeLabel) = "en") } ORDER BY ASC(?stateLabel) ASC(?electionDate)

What are the dates of U.S. gubernatorial elections for each state, and which governor position was contested in each?

Show me a timeline of U.S. state gubernatorial elections, including the state, election name, and date, sorted by state and year.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P541> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q889821> . ?var6 <http://www.wikidata.org/prop/direct/P1001> ?var1 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P585> ?var2 . } OPTIONAL { ?var4 ( <http://www.wikidata.org/prop/P585> / <http://www.wikidata.org/prop/statement/P585> / <http://wikiba.se/ontology#timePrecision> ) ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )ASC( ?var2 )


Question: Relationships of Pablo Picasso with other humans in Spanish context

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 ?var2Label ?var3 ?var4 ?var5 ?var5Label WHERE {
  ?var1 wdt:P31 wd:Q5 .
  ?var5 wdt:P31 wd:Q5 .
  ?var1 rdfs:label ?var2Label .
  VALUES(?var2Label) {("Pablo Picasso" @es)
  }
  VALUES ?var3 {
    wdt:P25 wdt:P22 wdt:P40 wdt:P26 wdt:P3373 wdt:P1038 wdt:P3342
  }
  ?var1 ?var3 ?var5 .
  OPTIONAL {
    ?var3 rdfs:label ?var4 .
  }
  OPTIONAL {
    ?var5 rdfs:label ?var5Label .
  }
}
ORDER BY ASC(?var2Label)

Who are the family members and close associates of Pablo Picasso, and what are their relationships to him?

List all humans related to Pablo Picasso by family or significant relationships, along with the nature of those relationships.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . VALUES ( ?var2Label ) { ( "string1"@es ) } { ?var5 ?var3 ?var1 . } UNION { ?var1 ?var3 ?var5 . } OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,es". } } ORDER BY ASC( ?var1Label )


Question: Image of Mary Johnston with SNAC ARK ID w6s47324

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

What is the Wikimedia Commons image for Mary Johnston, identified by SNAC ARK ID w6s47324?

Show me the picture of the person whose SNAC ARK ID is w6s47324.

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


Question: What organizations or entities were dissolved this month?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?inception ?dissolved WHERE {
  ?item wdt:P571 ?inception ; wdt:P576 ?dissolved .
  FILTER ( YEAR( ?dissolved ) = YEAR( NOW () ) && MONTH( ?dissolved ) = MONTH( NOW () ) ) .
  ?item rdfs:label ?itemLabel .
}
ORDER BY ?dissolved

Which projects or institutions ceased operations in the current month and year?

List all entities that ended their existence in the same month as today.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { BIND ( ( ?var4 - ?var3 ) AS ?var5 ). BIND ( FLOOR ( ( NOW ( ) - ?var4 ) ) AS ?var6 ). BIND ( ( ?var4 + STRDT ( CONCAT ( "P", <http://www.w3.org/2001/XMLSchema#string> ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var5 ) ) , "D" ) , <http://www.w3.org/2001/XMLSchema#duration> ) ) AS ?var7 ). ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 ; <http://www.wikidata.org/prop/direct/P576> ?var4 . FILTER ( ( ( ?var5 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( YEAR ( ?var7 ) = YEAR ( NOW ( ) ) ) && ( MONTH ( ?var7 ) = MONTH ( NOW ( ) ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var7 )


Question: Which Wikidata items have the Twitter usernames: aarontay, emcandre, i4oc_org, lirazelf, mlpoulter, nwspk, SemanticMW, Wikicite, wikidata, zuphilip, MsPhelps, or mrjohnc?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "aarontay" "emcandre" "i4oc_org" "lirazelf" "mlpoulter" "nwspk" "SemanticMW" "Wikicite" "wikidata" "zuphilip" "MsPhelps" "mrjohnc" } }

Who are the people or organizations on Wikidata that use the Twitter handles @aarontay, @emcandre, @i4oc_org, @lirazelf, @mlpoulter, @nwspk, @SemanticMW, @Wikicite, @wikidata, @zuphilip, @MsPhelps, or @mrjohnc?

List the Wikidata entities corresponding to these Twitter usernames: aarontay, emcandre, i4oc_org, lirazelf, mlpoulter, nwspk, SemanticMW, Wikicite, wikidata, zuphilip, MsPhelps, and mrjohnc.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "WikidataAT" ) ( "string1" ) ( "string2" ) ( "Wikidata" ) ( "SemanticMW" ) ( "string3" ) ( "MsPhelps" ) ( "i4oc_org" ) ( "string4" ) ( "string5" ) ( "zuphilip" ) ( "notknut" ) ( "wikidata" ) ( "emcandre" ) ( "WiciCymru" ) ( "WIKI_NLW" ) ( "lirazelf" ) ( "mlpoulter" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "mrjohnc" ) ( "string9" ) ( "tmtm" ) ( "string10" ) ( "mhl20" ) ( "nwspk" ) ( "string11" ) ( "string12" ) ( "markcridge" ) ( "kringln" ) ( "NatMus_SWE" ) ( "WikiDigi" ) ( "Cybrsalon" ) ( "string13" ) ( "string14" ) ( "aarontay" ) ( "Wikicite" ) ( "jsalsman" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "noniq" ) } }


Question: Humans with the surname Bonnici

SELECT DISTINCT ?person WHERE { ?person wdt:P31 wd:Q5 ; wdt:P734 wd:Q37276484 }

Who are the people with the last name Bonnici?

List all humans whose family name is Bonnici.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Bonnici"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: List all Pokémon species with their English names.

SELECT DISTINCT ?pokemon ?pokemonLabel WHERE { ?pokemon wdt:P31/wdt:P279* wd:Q3966183 . ?pokemon rdfs:label ?pokemonLabel . FILTER(LANG(?pokemonLabel) = 'en') }

What are all the Pokémon species in the Pokémon franchise, and what are their English names?

Show me the English labels of all Pokémon species, including those that are subclasses like fire-type or legendary Pokémon.

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


Question: What entities were founded, invented, published, or officially opened in the year 1690?

SELECT DISTINCT ?item WHERE { ?item (wdt:P571 | wdt:P575 | wdt:P577 | wdt:P1619) ?date . FILTER ( ?date >= "1690-01-01T00:00:00Z"^^xsd:dateTime && ?date <= "1690-12-31T23:59:59Z"^^xsd:dateTime ) }

List all items from Wikidata that have a creation, discovery, publication, or opening date in 1690.

Which historical items began to exist in 1690, including books, buildings, mines, or inventions?

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P571> | <http://www.wikidata.org/prop/direct/P575> | <http://www.wikidata.org/prop/direct/P577> | <http://www.wikidata.org/prop/direct/P1619> ) ?var2 . FILTER ( ( ( ?var2 >= "1690-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1690-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What is Jan Hegenberg's date of birth?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?dob ?dobLabel WHERE {
  wd:Q1681821 wdt:P569 ?dob .
}

When was the German musician Jan Hegenberg born?

Can you tell me the birth date of Jan Hegenberg, also known as Gamer No.1?

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


Question: When was the Xbox 360 released?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?publicationDate WHERE {
  wd:Q48263 wdt:P577 ?publicationDate .
}

Can you tell me the release date of the Xbox 360?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q48263> <http://www.wikidata.org/prop/direct/P:577> ?var1 . }


Question: Wikidata properties with Polish labels and descriptions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?entity ?label ?description WHERE {
  ?entity rdfs:label ?label .
  ?entity schema:description ?description .
  FILTER(LANG(?label) = "pl")
  FILTER(LANG(?description) = "pl")
}
LIMIT 100

Which Wikidata entities have both a Polish label and a Polish description?

Show me up to 100 Wikidata entities that have Polish-language 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 <https://query.wikidata.org/bigdata/namespace/wdq/?x> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pl" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pl" ) ) ) . } LIMIT 100


Question: Labels, descriptions, and Wikipedia links for the painting "Garçon à la pipe" in English, German, French, and Italian.

SELECT ?label ?description ?wikipedia WHERE { VALUES (?lang ?sort) { ("en" 2) ("de" 3) ("fr" 4) ("it" 5) } wd:Q80317 rdfs:label ?label . FILTER (LANG(?label) = ?lang) OPTIONAL { wd:Q80317 schema:description ?description . FILTER (LANG(?description) = ?lang) } OPTIONAL { ?wikipedia schema:about wd:Q80317 ; schema:isPartOf ?wikiSite . FILTER (STRSTARTS(STR(?wikiSite), CONCAT("https://", ?lang, ".wikipedia.org/"))) } } ORDER BY ?sort

What are the labels, descriptions, and Wikipedia pages for Pablo Picasso’s painting "Garçon à la pipe" in English, German, French, and Italian?

Please provide the names, brief descriptions, and corresponding Wikipedia links for the painting "Garçon à la pipe" in English, German, French, and Italian.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q80317> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "undefined""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q80317> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q80317> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "undefined" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q80317> <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q80317> ; <http://schema.org/inLanguage> "undefined"; <http://schema.org/isPartOf> <https://undefined.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: What are all the properties that are subproperties of "point in time" in Wikidata?

SELECT ?prop ?propLabel WHERE { ?prop wdt:P1647* wd:P585 . ?prop rdfs:label ?propLabel .}

List all date-related properties in Wikidata that inherit from "point in time".

Show me the labels and IDs of properties that are indirect subproperties of the "point in time" property.

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


Question: What are some historical events and their locations?

SELECT ?event ?eventLabel ?location WHERE { ?event wdt:P31 wd:Q1190554 ; wdt:P276 ?location . ?event rdfs:label ?eventLabel . FILTER(LANG(?eventLabel) = "en") } LIMIT 10

Can you list events classified as occurrences along with the places where they happened?

Where did events like bombings, visits, and attacks take place?

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


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

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

Confirm whether the VIAF ID 7557885 is linked to any entity in Wikidata.

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


Question: Items with genre architecture

SELECT ?item ?statement WHERE { ?item p:P136 ?statement . ?statement ps:P136 wd:Q12271 . } LIMIT 101

Which people, buildings, or artworks are classified under the genre of architecture?

List all creative works and individuals whose artistic genre is architecture.

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


Question: What are the French and English labels for the Wikidata disambiguation page of "API"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?frLabel ?enLabel WHERE {
  wd:Q227704 rdfs:label ?frLabel .
  wd:Q227704 rdfs:label ?enLabel .
  FILTER(LANGMATCHES(LANG(?frLabel) , "fr"))
  FILTER(LANGMATCHES(LANG(?enLabel) , "en"))
}
LIMIT 1

Show the French and English versions of the label for the entity Q227704 on Wikidata.

Retrieve the French and English labels for the API disambiguation page on Wikidata.

SELECT DISTINCT( <http://www.w3.org/2001/XMLSchema#string> ( ?var1 ) AS ?var2 )( <http://www.w3.org/2001/XMLSchema#string> ( ?var3 ) AS ?var4 ) WHERE { <http://www.wikidata.org/entity/Q227704> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q227704> <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "FR" ) ) ) . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . } LIMIT 10


Question: Tram lines in Vienna and their lengths

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P361 wd:Q129612 . OPTIONAL { ?var1 p:P2043 [ ps:P2043 ?var2 ] . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } ORDER BY ASC(?var1Label)

What are the tram lines that are part of Vienna’s tram transport system, and what are their lengths?

List all tram subsystems in Vienna along with their lengths, sorted alphabetically by name.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q129612> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P2043> [ <http://www.wikidata.org/prop/statement/P2043> ?var2 ; <http://www.wikidata.org/prop/qualifier/P580> ?var3 ] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1Label ) )ASC( ?var1Label )


Question: Is Peter Buhl Jensen an instance of a class that is a subclass of artificial physical objects?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q35670254 wdt:P31 ?type .
  ?type wdt:P279 * wd:Q8205328 .
}

Does Peter Buhl Jensen belong to any category that is a type of human-made object?

Confirm whether Peter Buhl Jensen is classified as an artifact or a subclass of artifacts.

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


Question: Who are the ancestors of Pope John Paul II, and who are their children?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P40* wd:Q989 . OPTIONAL { ?var1 wdt:P40 ?var2 . } ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

Show the family tree leading to Pope John Paul II, listing each ancestor and their direct child.

For each ancestor of Pope John Paul II, who is their child?

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