Question: What is the most specific concept that both the Korean Peninsula and Palestinians are instances or subclasses of?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ancestor ( MIN( ?distFromKP ) + MIN( ?distFromP ) AS ?totalDistance ) WHERE {
  {
    SELECT ?ancestor ( COUNT( ?step ) AS ?distFromKP ) WHERE {
      wd:Q483134 wdt:P31 ?cls .
      ?cls wdt:P279 + ?step .
      ?step wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
    HAVING ( COUNT( ?step ) <= 20 )
  }
  {
    SELECT ?ancestor ( COUNT( ?step ) AS ?distFromP ) WHERE {
      wd:Q201190 wdt:P279 + ?step .
      ?step wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
    HAVING ( COUNT( ?step ) <= 20 )
  }
}
GROUP BY ?ancestor
ORDER BY ASC ( ?totalDistance )
LIMIT 1

What is the common ancestor in the Wikidata taxonomy with the shortest total distance from both the Korean Peninsula and Palestinians?

Which top-level category includes both the Korean Peninsula and Palestinians, and how far are they from it in the subclass hierarchy?

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


Question: What is the English name and description of the language with UNESCO Atlas ID 1651?

SELECT ?language ?languageLabel ?description WHERE { ?language wdt:P2355 "1651" . ?language rdfs:label ?languageLabel . FILTER (LANG(?languageLabel) = "en") OPTIONAL { ?language schema:description ?description . FILTER (LANG(?description) = "en") } }

Which language is identified by the UNESCO ID 1651, and what is its English description?

Tell me the English label and description of the language listed as 1651 in the UNESCO Atlas of Endangered Languages.

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


Question: What are the top-level categories that Donald Trump and the Korean Peninsula belong to?

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 ?trumpClass ?trumpClassLabel ?peninsulaClass ?peninsulaClassLabel WHERE {
  wd:Q22686 wdt:P31 ?trumpClass .
  ?trumpClass rdfs:label ?trumpClassLabel .
  FILTER ( LANG( ?trumpClassLabel ) = "en" ) wd:Q483134 wdt:P31 ?peninsulaClass .
  ?peninsulaClass rdfs:label ?peninsulaClassLabel .
  FILTER ( LANG( ?peninsulaClassLabel ) = "en" )
}

What class is Donald Trump an instance of, and what class is the Korean Peninsula an instance of?

Show the main categories for Donald Trump and the Korean Peninsula in Wikidata.

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


Question: What is the most specific category that both Ryan Leslie and Kim Jong-un belong to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonClass ( 0 AS ?totalDepth ) WHERE {
  wd:Q1361271 wdt:P31 ?commonClass .
  wd:Q56226 wdt:P31 ?commonClass .
}
ORDER BY ASC ( ?totalDepth )
LIMIT 1

Which class is shared by both Ryan Leslie and Kim Jong-un as their instance?

What is the common superclass (via instance of) for Ryan Leslie and Kim Jong-un?

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


Question: Which countries with a Ministry of National Defense participated in World War II?

SELECT ?country ?countryLabel WHERE { ?defenseMinistry wdt:P31 wd:Q1788820 ; wdt:P17 ?country . ?country wdt:P1344 ?event . ?event ^wdt:P527 wd:Q362 . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } ORDER BY ?countryLabel

Can you list the countries that had a defense ministry and were involved in World War II?

What nations, identified by their defense ministries, took part in the Second World War?

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


Question: Who is the French-labeled person named Éric Cantona in Wikidata?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Éric Cantona"@fr . ?item wdt:P31 wd:Q5 }

Find the human entity in Wikidata that has the French label "Éric Cantona".

What Wikidata item represents Éric Cantona as a human, with his name in French?

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


Question: What are the paternal ancestors of James I of Aragon up to four generations back, and who were their fathers?

SELECT ?ancestor ?ancestorLabel ?directFather WHERE { { wd:Q212052 wdt:P22 ?ancestor . OPTIONAL { ?ancestor wdt:P22 ?directFather . } } UNION { wd:Q212052 wdt:P22 ?father . ?father wdt:P22 ?ancestor . OPTIONAL { ?ancestor wdt:P22 ?directFather . } } UNION { wd:Q212052 wdt:P22 ?father . ?father wdt:P22 ?grandfather . ?grandfather wdt:P22 ?ancestor . OPTIONAL { ?ancestor wdt:P22 ?directFather . } } UNION { wd:Q212052 wdt:P22 ?father . ?father wdt:P22 ?grandfather . ?grandfather wdt:P22 ?greatGrandfather . ?greatGrandfather wdt:P22 ?ancestor . OPTIONAL { ?ancestor wdt:P22 ?directFather . } } ?ancestor rdfs:label ?ancestorLabel . FILTER(LANG(?ancestorLabel) = "en") } ORDER BY ?ancestor

Show me James I of Aragon’s lineage through his male line for four generations, including each ancestor’s name and their immediate father.

Who are the fathers, grandfathers, great-grandfathers, and great-great-grandfathers of James I of Aragon, and who was each of their own fathers?

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/Q212052> ; <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> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P22> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Mountains over 6000 meters elevation with their countries and first ascents

SELECT DISTINCT ?mountain ?mountainLabel ?coordinates ?elevation ?country ?countryLabel ?event ?eventLabel WHERE { ?mountain ( p:P2044 / psn:P2044 / wikibase:quantityAmount ) ?elevation ; wdt:P625 ?coordinates ; wdt:P17 ?country ; wdt:P793 ?event . FILTER (?elevation > 6000) OPTIONAL { ?mountain rdfs:label ?mountainLabel . FILTER(LANG(?mountainLabel) = "en") } OPTIONAL { ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } OPTIONAL { ?event rdfs:label ?eventLabel . FILTER(LANG(?eventLabel) = "en") } } ORDER BY ASC(?mountainLabel) LIMIT 50

What are the mountains higher than 6000 meters above sea level, and in which countries are they located?

List all mountains above 6000 meters in elevation, including their locations, countries, and notable events like first ascents.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var6 ?var6Label ?var7 ?var8 ?var8Label WHERE { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value-normalized/P2044> / <http://wikiba.se/ontology#quantityAmount> ) ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var2 ; <http://www.wikidata.org/prop/direct/P17> ?var4 ; <http://www.wikidata.org/prop/direct/P793> ?var6 . FILTER ( ( ( ?var3 > "6000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 ) LIMIT 50


Question: What entities are named after Prince Bernhard of the Netherlands?

SELECT ?namedEntity ?namedEntityLabel WHERE { ?namedEntity wdt:P138 wd:Q57304 . ?namedEntity rdfs:label ?namedEntityLabel . FILTER(LANG(?namedEntityLabel) = "en") }

Which places, species, or awards were named in honor of Prince Bernhard, Prince Consort of the Netherlands?

List all things named after Prince Bernhard of the Netherlands, along with their English labels.

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


Question: Who are the humans born in Paris and members of the Evangelical Church of Czech Brethren?

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 ?person ?personLabel WHERE {
  ?person wdt:P140 wd:Q782911 .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P19 wd:Q90 .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Which person was born in Paris, is human, and follows the Evangelical Church of Czech Brethren?

List all people born in Paris who belong to the Evangelical Church of Czech Brethren.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P140> <http://www.wikidata.org/entity/Q782911> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q90> . OPTIONAL { ?var2 <http://schema.org/about> ?var3 . ?var2 <http://schema.org/inLanguage> "cs". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: What is the most specific common category that both Amazon and the Metropolitan Transportation Authority belong to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonSuperclass WHERE {
  wd:Q3884 wdt:P31 ?typeA .
  ?typeA wdt:P279 ?superA1 .
  ?superA1 wdt:P279 ?commonSuperclass .
  wd:Q1146109 wdt:P31 ?typeM .
  ?typeM wdt:P279 ?superM1 .
  ?superM1 wdt:P279 ?commonSuperclass .
}
LIMIT 1

What superclass do Amazon and the MTA share through their organizational types?

Find the most specific organizational class that includes both Amazon and the Metropolitan Transportation Authority as instances.

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


Question: What is the most general category that both Nashville and Seattle belong to?

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

What class do Nashville and Seattle share as their highest common ancestor in the Wikidata hierarchy?

What is the common superclass of Nashville and Seattle in terms of their type classification?

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


Question: What country is both Goldman Sachs and Silicon Valley located in?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country WHERE {
  wd:Q193326 wdt:P17 ?country .
  wd:Q163820 wdt:P17 ?country .
}

Which country do Goldman Sachs and Silicon Valley share as their location?

Where are Goldman Sachs and Silicon Valley both situated?

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


Question: What cities host the headquarters of online news magazines?

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 ?magazine ?magazineLabel ?city ?cityLabel WHERE {
  ?magazine wdt:P31 / wdt:P279 * wd:Q1153191 .
  ?magazine wdt:P159 ?city .
  ?city wdt:P31 / wdt:P279 * wd:Q515 .
  ?magazine rdfs:label ?magazineLabel .
  ?city rdfs:label ?cityLabel .
  FILTER(LANG(?magazineLabel) = "en")
  FILTER(LANG(?cityLabel) = "en")
}
ORDER BY ?magazineLabel
LIMIT 10

Which newspapers and magazines are based in which cities?

Can you list news publications along with the cities where their headquarters are located?

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


Question: What is the most specific common category that both Newsweek and Atlanta belong to in the Wikidata taxonomy?

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

What is the highest-level concept that includes both Newsweek and Atlanta as instances?

What is the shared superclass of Newsweek and Atlanta in Wikidata's hierarchy?

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


Question: What roles or attributes are associated with England’s participation in events on Wikidata?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?event ?statement(SAMPLE(?q) AS ?qualifier) WHERE {
  ?statement ps:P710 wd:Q21 .
  ?event p:P710 ?statement .
  OPTIONAL {
    VALUES ?q {
      pq:P1355 pq:P1356 pq:P1352 pq:P1813
    }
    ?statement ?q ?value .
  }
}
GROUP BY ?event ?statement

Which qualifier properties (like number of wins or ranking) have been used to describe England’s involvement in various events?

Show me the types of additional information (such as wins, losses, or rankings) that have been recorded for England’s participation in events.

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


Question: Wikipedia articles about Albert Einstein in different languages

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?article ?lang WHERE {
  ?article schema:about wd:Q937 ; schema:inLanguage ?lang .
}

In which languages are there Wikipedia pages about Albert Einstein?

Show me all the Wikipedia and Wikiquote pages about Albert Einstein along with their language codes.

SELECT * WHERE { ?var1 <http://schema.org/about> <https://query.wikidata.org/bigdata/namespace/wdq/undefined> ; <http://schema.org/inLanguage> ?var2 . }


Question: What are the population figures for De Rijp, along with its BAG code and flag image?

SELECT ?flag ?bag_code ?population WHERE { wd:Q2208222 wdt:P981 ?bag_code ; wdt:P1082 ?population . OPTIONAL { wd:Q2208222 wdt:P41 ?flag . } }

What are the historical population numbers of De Rijp in the Netherlands, and what is its administrative BAG code and flag?

Show me all recorded population values for the Dutch village of De Rijp, including its BAG residence ID and the image of its flag.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { ?var4 <http://www.w3.org/2000/01/rdf-schema#label> "De Rijp"@nl ; <http://www.wikidata.org/prop/direct/P981> ?var2 ; <http://www.wikidata.org/prop/direct/P1082> ?var3 . FILTER ( ( isLITERAL ( "De Rijp"@nl ) ) ) . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P41> ?var1 . } }


Question: Businesses with ticker symbols starting with 'A' and their English names, stock exchanges, and ticker symbols.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?business ?businessLabel ?exchangeStmt ?ticker WHERE {
  ?business ( wdt:P31 / wdt:P279 * ) wd:Q4830453 .
  ?business p:P414 ?exchangeStmt .
  ?exchangeStmt pq:P249 ?ticker .
  FILTER ( STRSTARTS( UCASE( ?ticker ) , "A" ) ) .
  ?business rdfs:label ?businessLabel .
  FILTER ( LANG( ?businessLabel ) = "en" )
}

Which publicly traded companies have ticker symbols that start with the letter 'A', and what are their English names and the stock exchanges they’re listed on?

List all businesses (in English) that have a stock ticker symbol beginning with 'A', along with the ticker and the exchange they’re listed on.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/P414> ?var2 . ?var2 <http://www.wikidata.org/prop/qualifier/P249> ?var3 . FILTER ( ( ( LCASE ( STR ( ?var3 ) ) = "A" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Greek place names and their Macedonian Wikipedia titles in Greece, with coordinates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?place ?greekLabel ?macedonianTitle ?coordinates WHERE {
  ?place wdt:P17 wd:Q41 .
  ?macedonianPage schema:about ?place ; schema:isPartOf <https://mk.wikipedia.org/> ; schema:name ?macedonianTitle .
  ?place rdfs:label ?greekLabel .
  OPTIONAL {
    ?place wdt:P625 ?coordinates .
  }
  FILTER(LANG(?greekLabel) = "el")
}

What are the Greek names of places in Greece, their corresponding titles on the Macedonian Wikipedia, and their geographic coordinates?

List all places in Greece with their Greek labels, Macedonian Wikipedia page titles, and coordinates where available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q41> . ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/isPartOf> <https://mk.wikipedia.org/> . ?var5 <http://schema.org/name> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . } FILTER ( ( ( LANG ( ?var2 ) = "el" ) ) ) . FILTER ( ( ( LANG ( ?var6 ) = "mk" ) ) ) . }


Question: What is the Wikidata item for the Dutch municipality Apeldoorn that has a BAG code?

SELECT ?municipality WHERE { ?municipality rdfs:label "Apeldoorn"@nl ; wdt:P981 ?bagCode . }

Which entity in Wikidata represents Apeldoorn in the Netherlands and is identified by a BAG residence ID?

Find the Wikidata ID of Apeldoorn, ensuring it has a BAG code.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Apeldoorn"@nl ; <http://www.wikidata.org/prop/direct/P981> ?var2 . }


Question: UN/LOCODE locations within 100 km of Berlin with coordinates and distances

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?location ?locationLabel ?coords ?distance ?berlinType ?berlinTypeLabel WHERE {
  wd:Q64 wdt:P625 ?berlinCoords .
  ?location wdt:P1937 ?unLocode ; wdt:P625 ?coords .
  BIND(geof:distance(?berlinCoords , ?coords) AS ?distance)
  .
  FILTER(?distance <= 100)
  .
  OPTIONAL {
    wd:Q64 wdt:P31 ?berlinType
  }
  .
  ?location rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
  .
  OPTIONAL {
    ?berlinType rdfs:label ?berlinTypeLabel .
    FILTER(LANG(?berlinTypeLabel) = "en")
  }
}
ORDER BY ASC(?distance)

What are the locations near Berlin that have a UN/LOCODE code, and how far are they from Berlin?

List all places within 100 kilometers of Berlin that are assigned a UN/LOCODE, including their names, coordinates, and distances from Berlin.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label WHERE { <http://www.wikidata.org/entity/Q64> <http://www.wikidata.org/prop/direct/P625> ?var5 . 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> ?var5 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "100". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var3 . } ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q499348> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . } } ORDER BY ASC( ?var3 )


Question: Geographic features within 15 km of 30°N, 85°W

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?coord WHERE {
  ?item wdt:P625 ?coord .
  FILTER ( geof:latitude ( ?coord ) >= 29.865 && geof:latitude ( ?coord ) <= 30.135 ) .
  FILTER ( geof:longitude ( ?coord ) >= -85.135 && geof:longitude ( ?coord ) <= -84.865 ) .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ?itemLabel

What are the places located near 30 degrees north and 85 degrees west?

List all named geographic locations in English within a 15-kilometer radius of the point (-85, 30).

SELECT ?var1 ?var2 WHERE { 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> "POINT(-85 30)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "15". } }


Question: List pairs of distinct items that share the same Wikimedia Commons category.

SELECT DISTINCT ?item1 ?item2 ?category WHERE { ?item1 wdt:P373 ?category . ?item2 wdt:P373 ?category . FILTER (?item1 != ?item2) FILTER (STR(?item1) < STR(?item2)) } LIMIT 100

Which pairs of entities on Wikidata are categorized under the same Commons category but are not the same item?

Show me up to 100 examples of two different things that are both linked to the same Wikimedia Commons category, ensuring no duplicates by ordering them lexicographically.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P373> ?var3 . MINUS { ?var1 ?var4 ?var2 . } FILTER ( ( ( ?var1 != ?var2 ) && ( STR ( ?var1 ) < STR ( ?var2 ) ) ) ) . } LIMIT 100000


Question: What are some examples of types of commercial buildings?

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

Can you list all the subclasses of commercial buildings in Wikidata?

What kinds of buildings fall under the category of commercial buildings?

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


Question: List American musical groups.

SELECT ?band WHERE { ?band wdt:P31 wd:Q215380 ; wdt:P495 wd:Q30 } LIMIT 100

Show me up to 100 musical groups from the United States.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1255792> . } LIMIT 100


Question: What are the birth and death dates of George Franklin Knowlton?

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 ?personLabel ?birthDate ?deathDate WHERE {
  BIND(wd:Q55061534 AS ?person)
  .
  ?person wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel
  FILTER(LANG(?personLabel) = 'en')
  .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
}

Can you tell me the birth and death dates of the American entomologist George Franklin Knowlton?

Show me the English label, birth date, and death date for the human entity George Franklin Knowlton.

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


Question: What is the full name and birth date of Chris Hadfield, and has he passed away?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personName ?birthDate ?deathDate WHERE {
  wd:Q1076962 wdt:P1477 ?personName .
  wd:Q1076962 wdt:P569 ?birthDate .
  OPTIONAL {
    wd:Q1076962 wdt:P570 ?deathDate .
  }
}

When was Christopher Austin Hadfield born, and is he still alive?

Provide the official name, date of birth, and date of death for the Canadian astronaut Chris Hadfield.

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


Question: What are the birth and death dates of John M. Pratt?

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND( wd:Q6245925 AS ?person ) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } }

Can you tell me when John M. Pratt was born and when he died?

Provide the full name, birth date, and death date of the American tax resistor John M. Pratt.

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


Question: Jane Russell birth and death dates

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND(wd:Q217033 AS ?person) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } }

When was Jane Russell born and when did she die?

What are the birth and death dates of the American actress Jane Russell?

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


Question: Birth and death dates of William Bancroft

SELECT ?personLabel ?birthDate ?deathDate WHERE { wd:Q16031674 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { wd:Q16031674 wdt:P569 ?birthDate . } OPTIONAL { wd:Q16031674 wdt:P570 ?deathDate . } }

When was William Bancroft born and when did he die?

Can you tell me the birth and death dates of William Bancroft, the American politician?

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


Question: What are the birth and death dates of David Sassoon?

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND( wd:Q1176501 AS ?person ) . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Can you tell me when David Sassoon was born and when he died, based on Wikidata?

Why does Wikidata list two different birth dates for David Sassoon, but only one death date?

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


Question: Who were the notable people born in Rensselaerville, New York, and when were they born and died?

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 ?personLabel ?birthDate ?deathDate WHERE {
  ?person wdt:P19 wd:Q3709139 ; wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

List people from Rensselaerville with their birth and death dates.

Can you find the birth and death dates of humans who were born in the town of Rensselaerville?

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


Question: What are the categories that Houston and the 2006 Brazilian Grand Prix belong to?

SELECT ?class ?classLabel WHERE { { wd:Q16555 wdt:P31 ?class . } UNION { wd:Q54429 wdt:P31 ?class . } ?class rdfs:label ?classLabel . FILTER(LANG(?classLabel) = "en") } ORDER BY ?class LIMIT 5

What classes is Houston classified under, and what class is the 2006 Brazilian Grand Prix classified under?

Can you list the direct types of Houston and the 2006 Brazilian Grand Prix in Wikidata?

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


Question: What is the most specific category that includes both Lewis Hamilton and Red Bull Racing?

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 ?commonClass ?label WHERE {
  wd:Q9673 wdt:P31 ?type1 .
  wd:Q173663 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?commonClass .
  ?type2 wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(CONTAINS(LCASE(?label) , "person") || CONTAINS(LCASE(?label) , "organization"))
}
ORDER BY ?label
LIMIT 1

What common superclass connects a Formula One driver like Lewis Hamilton with a Formula One team like Red Bull Racing?

Find the highest-level concept that applies to both humans and organizations, exemplified by Lewis Hamilton and Red Bull Racing.

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


Question: What is the most specific category that both Jos Verstappen and the Philadelphia Eagles belong to through their types?

SELECT ?commonSuperclass ?label WHERE { wd:Q5 wdt:P279* wd:Q53617489 . wd:Q17156793 wdt:P279* wd:Q53617489 . wd:Q53617489 rdfs:label ?label . FILTER(LANG(?label) = "en") }

What is the highest-level common class in the hierarchy that includes both a human and a sports team?

What is the shared superclass in Wikidata's ontology between a person and a sports team?

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


Question: What is the event series that the 2006 Brazilian Grand Prix belongs to?

SELECT ?class ?classLabel WHERE { wd:Q54429 wdt:P31 ?class . ?class rdfs:label ?classLabel . FILTER(LANG(?classLabel) = "en") }

Which Formula One event category includes the 2006 Brazilian Grand Prix as a specific instance?

What is the general name of the race series for which the 2006 Brazilian Grand Prix is a particular edition?

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


Question: What is the category of the 2010 World 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 ?type ?label WHERE {
  wd:Q928040 wdt:P31 ?type .
  OPTIONAL {
    ?type rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}
LIMIT 1

What class does the 2010 World Series belong to?

What type of event is the 2010 World Series?

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


Question: Which lexemes in Wikidata are referenced by the Nynorskordboka dictionary, and what are their corresponding IDs?

SELECT ?lexeme ?nynorskordbokaId WHERE { ?statement prov:wasDerivedFrom ?ref . ?ref pr:P10041 ?nynorskordbokaId . ?statement ps:P5191 ?lexeme . } LIMIT 5

Show me the lexemes that have references to the Nynorskordboka dictionary along with their Nynorskordboka IDs.

What are the Nynorskordboka IDs for lexemes in Wikidata that are sourced from the Nynorskordboka dictionary?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var2 . } LIMIT 1


Question: American football coach and Indianapolis Colts common sport

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sport WHERE {
  wd:Q4046340 wdt:P106 ?occupation .
  ?occupation wdt:P641 ?sport .
  wd:Q193753 wdt:P31 ?teamType .
  ?teamType wdt:P641 ?sport .
  FILTER(?sport != wd:Q4046340)
  FILTER(?sport != wd:Q193753)
}
LIMIT 1

What sport is associated with both Bruce Arians and the Indianapolis Colts?

Find the sport that links Bruce Arians, an American football coach, with the Indianapolis Colts, an American football team.

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


Question: What movie has the IMDb ID tt4849438?

SELECT ?movie WHERE { ?movie wdt:P345 "tt4849438" . }

Which film on Wikidata is associated with the IMDb identifier tt4849438?

Find the Wikidata item for the movie with IMDb ID tt4849438.

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


Question: Who are some famous Brazilian actors and football players?

SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P27 wd:Q155 ; wdt:P31 wd:Q5 ; wdt:P106 ?occupation ; rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . VALUES ?occupation { wd:Q33999 wd:Q937857 wd:Q10798782 wd:Q245068 wd:Q2405480 } } ORDER BY ?personLabel LIMIT 10

Can you list Brazilian citizens who are known for being actors or footballers?

Which notable people from Brazil work as actors or professional football players?

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


Question: What is the most general category that both Manchester City F.C. and Cape Canaveral Space Force Station belong to through their types?

SELECT ?commonType (COUNT(?mid1) AS ?dist1) (COUNT(?mid2) AS ?dist2) ((COUNT(?mid1) + COUNT(?mid2)) AS ?total)
WHERE {
  wd:Q476028 wdt:P279+ ?mid1 .
  ?mid1 wdt:P279* ?commonType .
  wd:Q194188 wdt:P279+ ?mid2 .
  ?mid2 wdt:P279* ?commonType .
  FILTER (?commonType != wd:Q476028)
  FILTER (?commonType != wd:Q194188)
}
GROUP BY ?commonType
ORDER BY ASC(?total)
LIMIT 1

How many subclass steps are required to reach the common ancestor of Manchester City F.C. and Cape Canaveral Space Force Station's types?

Which class is the closest common superclass of an association football club and a spaceport?

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


Question: Which movie has the Elonet ID 936163?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P2346 "936163" .
}

What is the Wikidata item for the film identified by Elonet ID 936163?

Can you find the movie in Wikidata that corresponds to the Elonet film ID 936163?

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


Question: Wikidata item for the English Wikipedia page titled "Cancer" and its properties

SELECT ?item ?property ?value WHERE { ?wikipediaPage schema:about ?item . ?wikipediaPage schema:name "Cancer"@en . ?item ?property ?value . } LIMIT 10

What is the Wikidata item for the Wikipedia article "Cancer", and what information is associated with it?

Show me all properties of the Wikidata entity linked to the English Wikipedia page "Cancer".

SELECT * WHERE { ?var1 ?var2Label "Cancer"@en . ?var1 ?var3 ?var4 . } LIMIT 3


Question: Who is the human that uses "Bavard" as a pseudonym?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?human WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P742 "Bavard" .
}

Which person is known by the alias Bavard?

Find all humans whose pseudonym is Bavard.

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


Question: What are all the components of the International Space Station, up to five levels deep?

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

Can you list the parts of the ISS, including parts of its parts, up to five levels deep, in English?

Show me the hierarchical structure of the International Space Station’s components, going up to five layers deep, with their English names.

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/Q25271> ; <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> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<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: List Norwegian handball players and their NHF player IDs.

SELECT ?player ?playerLabel ?nhfId WHERE { ?player wdt:P3700 ?nhfId . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") } LIMIT 1000

Who are the players registered in the Norwegian Handball Federation, and what are their NHF IDs?

Show me the names of Norwegian handball players along with their unique identifiers on the NHF website.

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


Question: Does the GND ID 4142950-3 correspond to an entity in Wikidata?

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

Is there a Wikidata item for the archdeacon with the German National Library ID 4142950-3?

Confirm that the term "archdeacon" is registered in Wikidata with the GND identifier 4142950-3.

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


Question: What causes stomach cancer?

SELECT ?cause ?causeLabel WHERE { ?cause wdt:P1542 wd:Q189588 . ?cause rdfs:label ?causeLabel . FILTER(LANG(?causeLabel) = "en") }

Which substances or factors are known to cause gastric cancer?

What has stomach cancer as its effect according to Wikidata?

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


Question: What is the next season of "Desafío 2014: Marruecos, las mil y una noches"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sequel ?sequelLabel ?property ?propertyLabel WHERE {
  ?sequel ?propertyItem wd:Q16556252 .
  ?property wikibase:directClaim ?propertyItem .
  ?sequel rdfs:label ?sequelLabel .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?sequelLabel ) = "en" ) FILTER ( LANG( ?propertyLabel ) = "en" )
}
LIMIT 100

Which TV show follows "Desafío 2014: Marruecos, las mil y una noches" in the series, and what is the relationship type?

How is the sequel to "Desafío 2014: Marruecos, las mil y una noches" connected in Wikidata, and what is its title?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q16556252> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What are the Czech labels and descriptions of properties used to describe the Evangelical A. C. Church in Košice?

SELECT ?property ?propertyLabel ?propertyDescription WHERE { wd:Q5415659 ?propertyUri ?value . ?property wikibase:directClaim ?propertyUri . ?property rdfs:label ?propertyLabel . ?property schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "cs") FILTER(LANG(?propertyDescription) = "cs") } LIMIT 100

Show me the Czech labels and descriptions of all properties associated with the Evangelical A. C. Church in Košice.

Which properties describe the Evangelical A. C. Church in Košice, and what are their Czech labels and descriptions?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q5415659> . ?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 ) = "cs" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "cs" ) ) ) . } LIMIT 100


Question: What properties and values describe the Ehrenfriedhof Kastel cemetery?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ?value ?valueLabel WHERE {
  wd:Q120256 ?prop ?value .
  OPTIONAL {
    ?value rdfs:label ?valueLabel
  }
}
LIMIT 100

Can you list the attributes of the Ehrenfriedhof Kastel cemetery in Germany?

What information is available about the Ehrenfriedhof Kastel cemetery in Wikidata?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q120256> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What film has the Allcinema ID 321572?

SELECT ?film WHERE { ?film wdt:P2465 "321572" . }

Which film on Wikidata is associated with the Allcinema film identifier 321572?

Find the Wikidata item for the film with Allcinema ID 321572.

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


Question: What properties and their values are associated with the St.-Jürgen-Friedhof cemetery in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?propertyLabel ?value ?valueLabel WHERE {
  wd:Q1029658 ?property ?value .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) ) .
  BIND( STRAFTER( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) AS ?propId ) .
  BIND( IRI( CONCAT ( "http://www.wikidata.org/entity/" , ?propId ) ) AS ?propertyEntity ) .
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) .
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER ( LANG( ?valueLabel ) = "en" )
  }
}
LIMIT 100

Can you list the direct attributes of the St.-Jürgen-Friedhof cemetery, including their labels and values?

What do we know about the St.-Jürgen-Friedhof cemetery? Show its properties, labels, and corresponding values.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q1029658> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Number of works citing Leslie Webster’s publications, grouped by year.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year(COUNT(DISTINCT ?citingWork) AS ?count) WHERE {
  ?leslieWork wdt:P50 wd:Q46741310 .
  ?citingWork wdt:P2860 ?leslieWork .
  ?citingWork wdt:P577 ?publicationDate .
  BIND(STR(YEAR(?publicationDate)) AS ?year)
}
GROUP BY ?year
ORDER BY DESC(?year)

How many works cite Leslie Webster’s works each year, based on their publication date?

Show me the count of works that cite Leslie Webster’s publications, grouped by the year those works were published.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q46741310> . } , "string1", "string2" ) AS ?var4 ). BIND ( STR ( YEAR ( ?var5 ) ) AS ?var1 ). ?var6 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q46741310> . ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var6 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var5 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: How many academic articles cite the study on medieval skeletal treponematosis, grouped by publication year and whether they have an author?

SELECT ?year ( COUNT( DISTINCT ?citingWork ) AS ?count ) ?hasAuthor WHERE { BIND( wd:Q35303396 AS ?targetArticle ) . ?citingWork wdt:P2860 ?targetArticle . ?citingWork wdt:P577 ?pubDate . BIND( STR( YEAR( ?pubDate ) ) AS ?year ) BIND( IF( EXISTS { ?citingWork wdt:P50 [] } , "has author" , "no author" ) AS ?hasAuthor ) } GROUP BY ?year ?hasAuthor ORDER BY DESC ( ?year )

Show the number of works citing "Evidence of skeletal treponematosis from the medieval burial..." broken down by year and whether they list an author.

For the scholarly article on treponematosis, list how many citing publications were published each year, and indicate whether each citing work has an author.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q35303396> AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> ?var6 . } , "string1", "string2" ) AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P50> ?var6 . } BIND ( STR ( YEAR ( ?var7 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P577> ?var7 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: Female members of the 43rd UK Parliament with their birth dates, death dates, and images.

PREFIX p: <http://www.wikidata.org/prop/>
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/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE {
  ?var1 wdt:P21 wd:Q6581072 .
  ?var1 p:P39 ?var5 .
  ?var5 ps:P39 wd:Q41582608 .
  OPTIONAL {
    ?var1 wdt:P569 ?var2 .
  }
  OPTIONAL {
    ?var1 wdt:P570 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P18 ?var4 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = 'en' )
}

Who are the female members of the 43rd Parliament of the United Kingdom, and what are their dates of birth, death, and images?

List the English names, birth dates, death dates, and images of all female members of the 43rd UK Parliament.

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


Question: Who directed the film "Death Proof"?

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 ?director ?directorLabel WHERE {
  wd:Q1137310 wdt:P57 ?director .
  ?director rdfs:label ?directorLabel .
  FILTER(LANG(?directorLabel) = "en")
}
LIMIT 50

What is the English name of the director of the movie Death Proof?

Can you tell me the director of Death Proof and their name in English?

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


Question: What street is named after the Dölzschen cemetery?

SELECT ?item ?itemLabel ?property ?propertyLabel WHERE { ?item ?statementProperty wd:Q1457317 . ?property wikibase:directClaim ?statementProperty . ?item rdfs:label ?itemLabel . ?property rdfs:label ?propertyLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?propertyLabel) = "en") } LIMIT 100

Which property in Wikidata links Friedhofsweg to Dölzschen cemetery?

Can you tell me what entity is connected to Dölzschen cemetery using the "named after" relationship?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q1457317> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Which Wikidata items have the Twitter username "ash_crow", and how many sitelinks do they have?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername ?sitelinkCount WHERE {
  ?item wdt:P2002 ?twitterUsername .
  OPTIONAL {
    ?item wikibase:sitelinks ?sitelinkCount
  }
  VALUES ?twitterUsername {
    "ash_crow"
  }
}
ORDER BY ASC ( ?sitelinkCount )

Who is the Wikidata entity associated with the Twitter handle "ash_crow", and does it have any sitelinks?

Show me the Wikidata item linked to the Twitter username "ash_crow", along with its sitelink count if available, sorted by the number of sitelinks.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "rdhwn" ) ( "nycjaylee" ) ( "string3" ) ( "string4" ) ( "Patafisik" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "MaelLeHir" ) ( "Blouchtika" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "ash_crow" ) ( "string14" ) ( "maamyisa" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "cleantech" ) ( "Bpifrance" ) ( "string19" ) ( "bevellin" ) ( "Pymouss" ) ( "string20" ) ( "string21" ) ( "ssougou" ) ( "string22" ) ( "string23" ) ( "GEOMAR_de" ) ( "string24" ) ( "nojhan" ) ( "string25" ) ( "Toulouse" ) ( "moswaa" ) ( "Fluorette" ) ( "string26" ) } } ORDER BY ASC( ?var3 )


Question: What countries, continents, and administrative regions is Munich part of?

SELECT DISTINCT ?item ?itemLabel WHERE { wd:Q1726 (wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501)* ?item . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 100

List all geographic and political entities that Munich belongs to, including its state, country, and continent.

Starting from Munich, what places can you reach by following its administrative divisions, country, and continent?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q1726> 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: Stadiums where the 2014 FIFA World Cup was held

SELECT ?venueLabel ?venue WHERE { wd:Q79859 wdt:P276 ?venue . ?venue rdfs:label ?venueLabel . FILTER(LANG(?venueLabel) = "en") }

Which stadiums hosted matches during the 2014 FIFA World Cup?

List the English names and Wikidata IDs of the venues used for the 2014 FIFA World Cup in Brazil.

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


Question: List of French athletes with their archived CNOSF athlete IDs.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?athlete ?cnosfId WHERE {
  ?athlete wdt:P4050 ?cnosfId .
}

Which French athletes have an archived CNOSF (EspritBleu) identifier in Wikidata?

Show me the Wikidata items for French athletes along with their CNOSF athlete identifiers.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4050> ?var2 . }


Question: Is the Mattmark Dam a type of software?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q47144421 wdt:P31 / wdt:P279 * wd:Q7397 .
}

Is the Mattmark Dam an instance of any subclass of software?

Confirm whether the Mattmark Dam belongs to any category that is a subclass of software.

ASK WHERE { <http://www.wikidata.org/entity/Q47144421> ( <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: Is there a Wikidata item with GND ID 4050974-6?

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

Does the concept of a radio receiver have a GND identifier in Wikidata?

Confirm whether the GND ID 4050974-6 is linked to any entity in Wikidata.

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


Question: Does Wikidata contain an entity with GND ID 1141730758?

Is there a person in Wikidata identified by the German National Library ID 1141730758?

Check if the GND ID 1141730758 corresponds to any entity in Wikidata.

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


Question: What are the largest cities in the world by population (over 1 million), and what are their populations?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P1082 ?var2 . ?var1 wdt:P31 wd:Q1637706 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } ORDER BY DESC(?var2)

Can you show me a list of million-plus cities with their English names and population figures, ordered from the most populous to the least?

Which cities have more than a million residents, and how many people live in each, ranked from highest to lowest population?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <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". } OPTIONAL { } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1637706> . } ORDER BY DESC( ?var2 )


Question: List automobile manufacturers and automotive industry businesses founded after 1950, along with their country, website, logo, and identifiers.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?company ?country ?website ?logo ?gkgId ?bbcId WHERE {
  {
    ?company wdt:P31 wd:Q786820 .
  } UNION {
    ?company wdt:P31 wd:Q4830453 .
    ?company wdt:P452 wd:Q190117 .
  }
  ?company wdt:P571 ?inception .
  FILTER ( ?inception > "1950-01-01" ^^ xsd:date ) OPTIONAL {
    ?company wdt:P17 ?country .
  }
  OPTIONAL {
    ?company wdt:P856 ?website .
  }
  OPTIONAL {
    ?company wdt:P154 ?logo .
  }
  OPTIONAL {
    {
      ?company wdt:P2671 ?gkgId .
    } UNION {
      ?company wdt:P646 ?gkgId .
    }
  }
  OPTIONAL {
    ?company wdt:P1617 ?bbcId .
  }
}
ORDER BY ASC ( ?company )
LIMIT 1000

Which companies in the automotive industry were founded after 1950, and what are their official websites, logos, and Google or Freebase IDs?

Show me companies that make cars or operate in the automotive sector, started after 1950, including their country, website, logo, and any available Google Knowledge Graph or Freebase identifiers.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 ?var6 ?var7 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q786820> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/direct/P452> <http://www.wikidata.org/entity/Q190117> . } ?var1 <http://www.wikidata.org/prop/direct/P571> ?var8 . FILTER ( ( ( ?var9 > "1950"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P154> ?var5 . } OPTIONAL { { ?var1 <http://www.wikidata.org/prop/direct/P2671> ?var6 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P646> ?var6 . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1617> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,ar,be,bg,bn,ca,cs,da,de,el,en,es,et,fa,fi,he,hi,hu,hy,id,it,ja,jv,ko,nb,nl,eo,pa,pl,pt,ro,ru,sh,sk,sr,sv,sw,te,th,tr,uk,yue,vec,vi,zh". } } ORDER BY ASC( ?var1Label ) LIMIT 1000


Question: What entities are associated with France, and what properties link them to France?

SELECT ?item ?itemLabel ?propertyItem ?propertyLabel WHERE { ?item ?property wd:Q142 . ?propertyItem wikibase:directClaim ?property . ?item rdfs:label ?itemLabel . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?propertyLabel) = "en") } LIMIT 100

List all items linked to France along with their English labels and the corresponding property names in English.

Which properties connect other entities to France, and what are those entities called in English?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q1596814> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: How many articles citing the 2017 meta-analysis on maternal micronutrients were published each year, and do they have authors?

SELECT ?year (COUNT(DISTINCT ?citingWork) AS ?count) ?hasAuthor WHERE { BIND(wd:Q43923999 AS ?targetArticle) . ?citingWork wdt:P2860 ?targetArticle . OPTIONAL { ?citingWork wdt:P577 ?publicationDate . BIND(STR(YEAR(?publicationDate)) AS ?year) } OPTIONAL { BIND(IF(EXISTS{?citingWork wdt:P50 []}, "has author", "no author") AS ?hasAuthor) } } GROUP BY ?year ?hasAuthor ORDER BY DESC(?year)

Show the number of citing works for the study on maternal multiple micronutrient trials, grouped by publication year and whether they list any authors.

Between 2017 and 2020, how many papers cited the meta-analysis on maternal micronutrients, and were they all authored?

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q43923999> AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> ?var6 . } , "string1", "string2" ) AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P50> ?var6 . } BIND ( STR ( YEAR ( ?var7 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P577> ?var7 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: What is the common field of work associated with both Silicon Valley and India?

SELECT ?field (COUNT(*) AS ?count) WHERE { { ?entity wdt:P159/wdt:P131* wd:Q163820 ; wdt:P101 ?field . } UNION { ?entity wdt:P159/wdt:P131* wd:Q668 ; wdt:P101 ?field . } } GROUP BY ?field ORDER BY DESC(?count) LIMIT 1

Which industry is most closely linked to both Silicon Valley and India?

What field do companies in Silicon Valley and India primarily operate in?

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


Question: List emperors with their birth dates, death dates, and reign periods, ordered by start of reign.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?emperor ?reignStart ?reignEnd ?birthDate ?deathDate WHERE {
  ?emperor wdt:P31 wd:Q5 .
  ?emperor p:P39 ?reign .
  ?reign ps:P39 wd:Q39018 .
  OPTIONAL {
    ?reign pq:P580 ?reignStart .
  }
  OPTIONAL {
    ?reign pq:P582 ?reignEnd .
  }
  OPTIONAL {
    ?emperor wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?emperor wdt:P570 ?deathDate .
  }
}
ORDER BY ASC ( ?reignStart )

Who were the emperors, and when were they born, when did they die, and during what years did they rule?

Please provide a list of all emperors, including their birth and death dates and the start and end of their reigns, sorted chronologically by when they began ruling.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5Label ?var6Label ?var7 ?var8 ?var9Label ?var10Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var11 . ?var11 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q39018> . OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P642> ?var2 . } OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P1365> ?var5 . } OPTIONAL { ?var11 <http://www.wikidata.org/prop/qualifier/P1366> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P509> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1196> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P53> ?var10 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var3 )


Question: What books or works are about Subhas Chandra Bose?

SELECT ?work ?workLabel WHERE { ?work wdt:P921 wd:Q2153 . ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") }

Works with Subhas Chandra Bose as the main subject

Can you list the works that focus on Subhas Chandra Bose?

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


Question: What is the most specific shared category that both Washington, D.C. and Athens County belong to?

SELECT ?commonAncestor (?dist1 + ?dist2 AS ?totalDistance)
WHERE {
  {
    SELECT (COUNT(?mid1) AS ?dist1)
    WHERE {
      wd:Q61 wdt:P31 ?type1 .
      ?type1 wdt:P279+ ?mid1 .
      ?mid1 wdt:P279* wd:Q82794 .
    }
  }
  {
    SELECT (COUNT(?mid2) AS ?dist2)
    WHERE {
      wd:Q485588 wdt:P31 ?type2 .
      ?type2 wdt:P279+ ?mid2 .
      ?mid2 wdt:P279* wd:Q82794 .
    }
  }
  BIND(wd:Q82794 AS ?commonAncestor)
}
ORDER BY ASC(?totalDistance)
LIMIT 1

Which administrative or geographic classification do Washington, D.C. and Athens County have in common, and how far are they in the hierarchy from it?

Find the common superclass in the Wikidata taxonomy that both the U.S. capital and a U.S. county share, and compute the sum of their distances to it.

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


Question: What is the most specific category that both Russia and India belong to?

SELECT ?ancestor
WHERE {
  wd:Q159 wdt:P31 ?ancestor .
  wd:Q668 wdt:P31 ?ancestor .
  FILTER NOT EXISTS {
    ?otherCommon wdt:P279 ?ancestor .
    wd:Q159 wdt:P31 ?otherCommon .
    wd:Q668 wdt:P31 ?otherCommon .
  }
}

Which class is the lowest common ancestor of Russia and India in the Wikidata taxonomy?

Find the most specific type that is shared by both Russia and India.

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


Question: What organization did Anita Borg found?

SELECT ?institute WHERE { wd:Q11483 wdt:P800 ?institute . } LIMIT 1

Which organization is associated with Anita Borg as her notable work?

What is the name of the institute founded by computer scientist Anita Borg?

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


Question: What are the categories that San Francisco and Europe belong to in Wikidata?

SELECT ?sfType ?sfTypeLabel ?europeType ?europeTypeLabel WHERE { wd:Q62 wdt:P31 ?sfType . wd:Q46 wdt:P31 ?europeType . ?sfType rdfs:label ?sfTypeLabel . ?europeType rdfs:label ?europeTypeLabel . FILTER(LANG(?sfTypeLabel) = "en" && LANG(?europeTypeLabel) = "en") }

Is there any shared classification between San Francisco and Europe in Wikidata’s hierarchy?

What is the most general category that includes both San Francisco and Europe?

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


Question: What categories are shared between Mexico City and Los Angeles?

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 ?commonType ?commonTypeLabel WHERE {
  wd:Q1489 wdt:P31 ?commonType .
  wd:Q65 wdt:P31 ?commonType .
  ?commonType rdfs:label ?commonTypeLabel .
  FILTER(LANG(?commonTypeLabel) = "en")
}
ORDER BY ?commonTypeLabel

What is the most specific type that both Mexico City and Los Angeles belong to?

Which of these — city, big city, megacity, or metropolis — is the most specific category common to both Mexico City and Los Angeles?

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


Question: What is the most specific category that both Singapore and China belong to?

SELECT ?commonType
WHERE {
  wd:Q334 wdt:P31 ?commonType .
  wd:Q148 wdt:P31 ?commonType .
  FILTER NOT EXISTS {
    ?otherCommonType wdt:P279 ?commonType .
    wd:Q334 wdt:P31 ?otherCommonType .
    wd:Q148 wdt:P31 ?otherCommonType .
  }
}

Which class is the most specific common type shared by Singapore and China?

Find the most specific shared classification for Singapore and China based on their types in Wikidata.

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


Question: Which Wikidata items have Twitter usernames "envlh", "RERC_SNCF", or "tnoisette"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "envlh" "RERC_SNCF" "tnoisette"
  }
}

Who are the people or organizations on Wikidata with the Twitter handles @envlh, @RERC_SNCF, and @tnoisette?

List the Wikidata entities linked to the Twitter accounts envlh, RERC_SNCF, and tnoisette.

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