Question: What country is both Bruno Mars and Hartsfield–Jackson Atlanta International Airport associated with?

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

Which country is the citizenship of Bruno Mars and the location of Hartsfield–Jackson Atlanta International Airport?

Where are Bruno Mars and Hartsfield–Jackson Atlanta International Airport both connected to?

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/Q214861> ; <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/Q1450> ; <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 common higher-level categories shared by New South Wales and Hollywood?

SELECT ?commonSuperclass ?label WHERE { wd:Q5852411 wdt:P279* ?commonSuperclass . wd:Q123705 wdt:P279* ?commonSuperclass . ?commonSuperclass rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ?label

Which classes are both a state of Australia and a neighborhood subclasses of?

Find all the abstract categories that include both geographic regions like New South Wales and neighborhoods like Hollywood.

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/Q3224> ; <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/Q34006> ; <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 a common superclass of the types of Hollywood Bowl and Minneapolis?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonClass WHERE {
  wd:Q976218 wdt:P31 ?type1 .
  wd:Q36091 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?commonClass .
  ?type2 wdt:P279 * ?commonClass .
  FILTER(?commonClass != ?type1 && ?commonClass != ?type2)
}
LIMIT 1

Find a shared category that both Hollywood Bowl and Minneapolis belong to through their types.

What is the most specific class that both Hollywood Bowl and Minneapolis are instances of, via their classifications?

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/Q976218> ; <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/Q36091> ; <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 main categories that All Nippon Airways and Chris Hemsworth belong to?

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 ?entity ?entityLabel ?class ?classLabel WHERE {
  VALUES ?entity {
    wd:Q204284 wd:Q54314
  }
  ?entity wdt:P31 ?class .
  ?entity rdfs:label ?entityLabel .
  ?class rdfs:label ?classLabel .
  FILTER(LANG(?entityLabel) = "en")
  FILTER(LANG(?classLabel) = "en")
}
ORDER BY ?entity

Are there any shared classifications between the airline All Nippon Airways and the actor Chris Hemsworth?

How are All Nippon Airways and Chris Hemsworth classified in Wikidata, and do their categories overlap?

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/Q204284> ; <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/Q54314> ; <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: Common classes of Natalie Wood and Audrey Hepburn

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

What types do Natalie Wood and Audrey Hepburn have in common?

Show me the shared categories (types) that both Natalie Wood and Audrey Hepburn belong to.

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/Q918> ; <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/Q180919> ; <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 humans and cities belong to?

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 ?commonAncestor ?commonAncestorLabel WHERE {
  wd:Q5 wdt:P279 * ?commonAncestor .
  wd:Q515 wdt:P279 * ?commonAncestor .
  ?commonAncestor rdfs:label ?commonAncestorLabel .
  FILTER(LANG(?commonAncestorLabel) = "en")
}
ORDER BY ?commonAncestor
LIMIT 1

What is the highest-level class that includes both a person like Victoria Derbyshire and a place like Paris?

What is the common superclass of the class "human" and the class "city" 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/Q7926687> ; <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/Q90> ; <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: Railway stations in the Czech Republic with images and Wikipedia pages

SELECT DISTINCT ?station ?stationLabel ?image ?wikipediaPage WHERE { ?station wdt:P31 wd:Q55488 . ?station wdt:P17 wd:Q213 . OPTIONAL { ?station wdt:P18 ?image . } OPTIONAL { ?wikipediaPage schema:about ?station . ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> . } ?station rdfs:label ?stationLabel . FILTER(LANG(?stationLabel) = "en") } LIMIT 50

What are the railway stations in the Czech Republic, and do they have images or English Wikipedia articles?

List English-named railway stations in the Czech Republic, including their images and links to English Wikipedia pages.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } LIMIT 50


Question: Does Lina Maly have a VIAF identifier of 18147370691141441978?

Is there a Wikidata item with the VIAF cluster ID 18147370691141441978?

Confirm if the Virtual International Authority File ID 18147370691141441978 is assigned to any entity in Wikidata.

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


Question: Who were the Prime Ministers of Dominica, and when did they serve?

SELECT ?primeMinister ?primeMinisterLabel ?startDate ?endDate ?replaced ?replacedBy WHERE { ?primeMinister wdt:P31 wd:Q5 . ?primeMinister p:P39 ?statement . ?statement ps:P39 wd:Q1756747 . OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P1365 ?replaced . } OPTIONAL { ?statement pq:P1366 ?replacedBy . } OPTIONAL { ?primeMinister rdfs:label ?primeMinisterLabel . FILTER(LANG(?primeMinisterLabel) = "en") } } ORDER BY ASC(?startDate) LIMIT 10

What is the sequence of Prime Ministers of Dominica, including who each succeeded and was succeeded by?

List the Prime Ministers of Dominica in chronological order, along with their start and end dates, and their predecessors and successors.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q1756747> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: What administrative regions and continents does the village of Ažvinčiai belong to?

SELECT DISTINCT ?var1 WHERE { wd:Q12649905 (wdt:P131|wdt:P17|wdt:P30)* ?var1 . FILTER (?var1 != wd:Q12649905) } LIMIT 100

Starting from Ažvinčiai, what countries and continents is it part of, including its immediate administrative subdivisions?

Show me the geographic hierarchy above Ažvinčiai, including its municipality, country, and continent.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q12649905> 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: Events that occurred on February 7, 1963

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?event WHERE {
  ?event(wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P1191) ?date .
  FILTER(?date >= "1963-02-07T00:00:00Z" ^^ xsd:dateTime && ?date <= "1963-02-07T23:59:59Z" ^^ xsd:dateTime)
}

What events took place on February 7, 1963?

List all entities such as performances, flights, spacecraft events, or service entries that happened on February 7, 1963.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P1191> ) ?var2 . FILTER ( ( ( ?var2 >= "1963-02-07T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1963-02-07T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What structures are part of the Kommunalfriedhof Wandlitz cemetery?

SELECT ?item (SAMPLE(?labelItem) AS ?itemLabel) ?property (SAMPLE(?labelProp) AS ?propertyLabel) WHERE { ?item wdt:P361 wd:Q1780367 . ?item skos:prefLabel ?labelItem . wd:P361 skos:prefLabel ?labelProp . FILTER(LANG(?labelItem) = "en" || LANG(?labelItem) = "") FILTER(LANG(?labelProp) = "en" || LANG(?labelProp) = "") } GROUP BY ?item ?property LIMIT 100

Which entities are related to Kommunalfriedhof Wandlitz by the "part of" relationship?

List all items that belong to the Kommunalfriedhof Wandlitz cemetery.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q1780367> . ?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: List all presidents of Lebanon with their terms, who they replaced, and who replaced them, sorted by start date.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 ?president ?presidentLabel ?startDate ?endDate ?replaced ?replacedBy WHERE {
  ?president wdt:P31 wd:Q5 .
  ?president p:P39 ?statement .
  ?statement ps:P39 wd:Q22001564 .
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P1365 ?replaced .
  }
  OPTIONAL {
    ?statement pq:P1366 ?replacedBy .
  }
  OPTIONAL {
    ?president rdfs:label ?presidentLabel .
    FILTER ( LANG( ?presidentLabel ) = "en" )
  }
}
ORDER BY ASC ( ?startDate )
LIMIT 50

Who were the presidents of Lebanon, when did they serve, and who were their predecessors and successors?

Please provide a chronological list of Lebanon’s presidents, including the start and end dates of their terms, the president they succeeded, and the president who succeeded them.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q22001564> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Who is the French-named person named "Henri Matisse" in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Henri Matisse" @fr .
  ?item wdt:P31 wd:Q5 .
}

What entity in Wikidata has the French label "Henri Matisse" and is a human?

Find the human being whose name in French is "Henri Matisse".

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


Question: List all cities in Wikidata.

SELECT ?city WHERE { ?city wdt:P31 wd:Q515 . }

What are all the entities that are classified as cities?

Show me all the items that are instances of the city category.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> <http://www.wikidata.org/prop/direct/Q515> . }


Question: List all Deputy Prime Ministers of Luxembourg with their terms in office and who they replaced or were replaced by.

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?person ?personLabel ?startDate ?endDate ?replacedPerson ?replacedByPerson WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q29217646 .
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P1365 ?replacedPerson .
  }
  OPTIONAL {
    ?statement pq:P1366 ?replacedByPerson .
  }
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER ( LANG( ?personLabel ) = "en" )
  }
}
ORDER BY ASC ( ?startDate )

Who have been the Deputy Prime Ministers of Luxembourg, and when did their terms start and end? Who did they replace and who replaced them?

Show me the chronological list of Deputy Prime Ministers of Luxembourg, including the start and end dates of their terms, and the predecessors and successors in the role.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q29217646> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Is Vienna a twin city of Benevento through a chain of other twin cities?

SELECT ?twinCity WHERE { VALUES ?twinCity { wd:Q1741 } wd:Q13437 wdt:P190+ ?twinCity . }

What city connected to Benevento via a series of twin city relationships is Vienna?

Is Vienna transitively twinned with Benevento?

SELECT ?var1 ?var2 ?var3 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q1741> ) } <http://www.wikidata.org/entity/Q13437> <http://www.wikidata.org/prop/direct/P190> * ?var2 . } LIMIT 2


Question: German districts and their administrative regions (states, municipalities, country)

SELECT DISTINCT ?district ?districtLabel ?administrativeEntity ?administrativeEntityLabel WHERE { ?district (wdt:P31/wdt:P279*) wd:Q106658 . ?district (wdt:P150/wdt:P131*) ?administrativeEntity . VALUES ?adminType { wd:Q6256 wd:Q1221156 wd:Q106658 wd:Q262166 } ?administrativeEntity wdt:P31 ?adminType . OPTIONAL { ?district rdfs:label ?districtLabel . FILTER(LANG(?districtLabel) = "en") } OPTIONAL { ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = "en") } } ORDER BY ?districtLabel

What states, countries, or municipalities are German districts located in or contain?

List all German districts along with the administrative entities they belong to or contain, such as states or municipalities.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q106658> . ?var1 ( <http://www.wikidata.org/prop/direct/P150> / <http://www.wikidata.org/prop/direct/P131> *) ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3Label . VALUES ( ?var3Label ) { ( <http://www.wikidata.org/prop/direct/P1082> ) ( <http://www.wikidata.org/prop/direct/P6> ) ( <http://www.wikidata.org/prop/direct/P190> ) ( <http://www.wikidata.org/prop/direct/P31> ) ( <http://www.wikidata.org/prop/direct/P571> ) ( <http://www.wikidata.org/prop/direct/P150> ) ( <http://www.wikidata.org/prop/direct/P206> ) ( <http://www.wikidata.org/prop/direct/P527> ) } } } ORDER BY DESC( ?var1 )


Question: What are some municipalities and their corresponding administrative regions and countries?

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 ?municipio ( SAMPLE( ?label_municipio ) AS ?municipioLabel ) ( SAMPLE( ?label_admin ) AS ?administrativeEntityLabel ) ( SAMPLE( ?label_country ) AS ?countryLabel ) WHERE {
  ?municipio wdt:P31 wd:Q1763214 .
  OPTIONAL {
    ?municipio wdt:P131 ?administrativeEntity .
    ?administrativeEntity rdfs:label ?label_admin .
    FILTER ( LANG( ?label_admin ) = "en" )
  }
  OPTIONAL {
    ?municipio wdt:P17 ?country .
    ?country rdfs:label ?label_country .
    FILTER ( LANG( ?label_country ) = "en" )
  }
  ?municipio rdfs:label ?label_municipio .
  FILTER ( LANG( ?label_municipio ) = "en" )
}
GROUP BY ?municipio
LIMIT 150

Can you list municipalities along with the state or province they belong to and their country?

Show me examples of municipalities in Portuguese-speaking and Spanish-speaking countries, including their higher administrative divisions and sovereign states.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en,ca,gl". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1763214> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } } LIMIT 150


Question: Directors who directed both drama and comedy films after 2016, with average duration and count per genre by country.

SELECT ?director ?country ?avgDramaDuration ?dramaCount ?avgComedyDuration ?comedyCount WHERE { { SELECT (AVG(?duration) AS ?avgDramaDuration) (COUNT(?film) AS ?dramaCount) ?director ?country WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P57 ?director . ?director wdt:P31 wd:Q5 . ?film wdt:P577 ?releaseDate . ?film wdt:P136 wd:Q130232 . ?film wdt:P495 ?country . ?country wdt:P31 wd:Q6256 . ?film wdt:P2047 ?duration . FILTER(?releaseDate >= "2016-01-01T00:00:00Z"^^xsd:dateTime) } GROUP BY ?director ?country } { SELECT (AVG(?duration) AS ?avgComedyDuration) (COUNT(?film) AS ?comedyCount) ?director ?country WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P57 ?director . ?director wdt:P31 wd:Q5 . ?film wdt:P577 ?releaseDate . ?film wdt:P136 wd:Q157443 . ?film wdt:P495 ?country . ?country wdt:P31 wd:Q6256 . ?film wdt:P2047 ?duration . FILTER(?releaseDate >= "2016-01-01T00:00:00Z"^^xsd:dateTime) } GROUP BY ?director ?country } }

Which directors have made both drama and comedy films released after 2016 from the same country, and what are the average durations and number of films in each genre?

Show me a list of directors and their countries who directed at least one drama and one comedy film after 2016, along with the average runtime and count of films in each genre.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { FILTER ( ( ( ?var2 = ?var5 ) ) ) . FILTER ( ( ( ?var3 = ?var6 ) ) ) . { SELECT( AVG ( ?var7 ) AS ?var1 )( COUNT ( ?var8 ) AS ?var9 )( ?var10 AS ?var2 )( ?var11 AS ?var3 ) WHERE { ?var8 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var8 <http://www.wikidata.org/prop/direct/P57> ?var10 . ?var10 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var8 <http://www.wikidata.org/prop/direct/P577> ?var12 . ?var8 <http://www.wikidata.org/prop/direct/P136> ?var13 . ?var13 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q201658> . ?var8 <http://www.wikidata.org/prop/direct/P495> ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var8 <http://www.wikidata.org/prop/direct/P2047> ?var7 . FILTER ( ( ( ?var13 = <http://www.wikidata.org/entity/Q130232> ) ) ) . FILTER ( ( ( ?var12 >= "2016-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } GROUP BY ?var10 ?var11 } { SELECT( AVG ( ?var7 ) AS ?var4 )( COUNT ( ?var8 ) AS ?var14 )( ?var10 AS ?var5 )( ?var11 AS ?var6 ) WHERE { ?var8 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var8 <http://www.wikidata.org/prop/direct/P57> ?var10 . ?var10 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var8 <http://www.wikidata.org/prop/direct/P577> ?var12 . ?var8 <http://www.wikidata.org/prop/direct/P136> ?var13 . ?var13 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q201658> . ?var8 <http://www.wikidata.org/prop/direct/P495> ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var8 <http://www.wikidata.org/prop/direct/P2047> ?var7 . FILTER ( ( ( ?var13 = <http://www.wikidata.org/entity/Q157443> ) ) ) . FILTER ( ( ( ?var12 >= "2016-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } GROUP BY ?var10 ?var11 } }


Question: What administrative area is the Pewee Valley Confederate Cemetery located in, and what type of place is it?

SELECT ?location ?locationLabel ?type ?typeLabel WHERE { wd:Q1534200 wdt:P131 ?location . ?location wdt:P31 ?type . ?location rdfs:label ?locationLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?locationLabel) = 'en') . FILTER(LANG(?typeLabel) = 'en') }

Where is the Pewee Valley Confederate Cemetery situated, and what kind of entity is that location?

Tell me the city or region where the Pewee Valley Confederate Cemetery is located and classify that location.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q1534200> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the children of Vladimir Putin?

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 ?child ?childLabel WHERE {
  wd:Q7747 wdt:P40 ?child .
  ?child rdfs:label ?childLabel .
  FILTER(LANG(?childLabel) = "en")
}
ORDER BY ASC(?childLabel)

List the English names of Vladimir Putin’s children.

Show me the names of Vladimir Putin’s children in English, sorted alphabetically.

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


Question: What is the Dutch term for the occupation of Johannes van den Bosch?

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

In Dutch, what job title is associated with the historical figure Johannes van den Bosch?

What is the label in Dutch for the occupation of the person identified as Johannes van den Bosch in Wikidata?

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


Question: Dutch occupation label for Johannes van den Bosch

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?occupationLabel ?occupation WHERE {
  wd:Q731865 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "nl")
}

What is Johannes van den Bosch's occupation in Dutch?

Show me the Dutch term for the occupation of Johannes van den Bosch

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


Question: What are the Dutch labels for the occupations of Constantijn Huygens?

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

In Dutch, what jobs did Constantijn Huygens have?

Can you list Constantijn Huygens’s occupations in Dutch?

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


Question: What are Pablo Picasso’s occupations in Dutch?

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

Can you list the Dutch labels for all the occupations of the artist Pablo Picasso?

Which Dutch-language terms describe Pablo Picasso’s professional roles?

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


Question: Image of Henry P. Fletcher with SNAC ARK ID w6sb4r3c

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

What is the Wikimedia Commons image for the person with SNAC ARK ID w6sb4r3c?

Show me the picture of the individual identified by the SNAC ARK ID w6sb4r3c.

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


Question: Humans with the surname Page.

SELECT DISTINCT ?human WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P734 wd:Q13563379 . }

Who are the people whose last name is Page?

List all humans who have the family name Page.

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


Question: Is there a Wikidata item with BVPB authority ID 25179?

Does the Biblioteca Virtual del Patrimonio Bibliográfico identifier "25179" correspond to any entity in Wikidata?

Confirm whether the BVPB ID "25179" is assigned to any author or topic in Wikidata.

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


Question: List of Prime Ministers of Togo with their terms and succession order, sorted by start date.

SELECT ?prime_minister ?prime_ministerLabel ?start_date ?end_date ?replaced ?replaced_by WHERE { ?prime_minister wdt:P31 wd:Q5 . ?prime_minister p:P39 ?statement . ?statement ps:P39 wd:Q30100661 . OPTIONAL { ?statement pq:P580 ?start_date . } OPTIONAL { ?statement pq:P582 ?end_date . } OPTIONAL { ?statement pq:P1365 ?replaced . } OPTIONAL { ?statement pq:P1366 ?replaced_by . } OPTIONAL { ?prime_minister rdfs:label ?prime_ministerLabel . FILTER(LANG(?prime_ministerLabel) = "en") } } ORDER BY ASC(?start_date)

Who were the Prime Ministers of Togo, when did they serve, and who did they replace or get replaced by?

Show me the chronological sequence of Togo’s Prime Ministers, including their time in office and who preceded or succeeded them.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q30100661> . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1365> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1366> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Who is the French actress named Claude Jade?

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 DISTINCT ?item WHERE {
  ?item rdfs:label "Claude Jade" @fr .
  ?item wdt:P31 wd:Q5 .
}

What human entity has the French label "Claude Jade"?

Can you find the person known as "Claude Jade" in French?

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


Question: Most common properties linking entities to Tunis.

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

Which properties are used most frequently to connect people or things to Tunis, and how many times?

Show me all properties that link more than one entity to Tunis, sorted by how often they’re used, with the most common ones first.

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


Question: Works with their authors and creation dates, sorted by newest first.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?work ?workLabel ?author ?authorLabel ?date WHERE {
  ?work wdt:P50 ?author .
  ?work wdt:P571 ?date .
  ?work rdfs:label ?workLabel .
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?workLabel ) = "en" ) FILTER ( LANG( ?authorLabel ) = "en" )
}
ORDER BY DESC ( ?date )
LIMIT 500

What are the most recent creative works, who authored them, and when were they created?

List the top 500 creative works in English, along with their authors and inception dates, ordered from newest to oldest.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { BIND ( COALESCE ( <http://www.w3.org/2001/XMLSchema#datetime> ( ?var4 ) , <http://www.w3.org/2001/XMLSchema#datetime> ( "1000-01-01") ) AS ?var5 ). BIND ( CONCAT ( STR ( YEAR ( ?var5 ) ) , "-", STR ( MONTH ( ?var5 ) ) , "-", STR ( DAY ( ?var5 ) ) ) AS ?var7 ). BIND ( ( ( ( ( ( ( YEAR ( ?var5 ) *"10000000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) + ( MONTH ( ?var5 ) *"100000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( DAY ( ?var5 ) *"1000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( HOURS ( ?var5 ) *"10000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( MINUTES ( ?var5 ) *"100"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + SECONDS ( ?var5 ) ) AS ?var6 ). ?var3 ?var8 ?var2 . ?var8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#singletonPropertyOf> <http://www.w3.org/2000/01/rdf-schema#label> . ?var8 ?var9 ?var1 . ?var9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#singletonPropertyOf> <http://sp7.ru/ontology/author> . ?var8 ?var10 ?var4 . ?var10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#singletonPropertyOf> <http://sp7.ru/ontology/date> . } ORDER BY DESC( ?var6 ) LIMIT 500


Question: What are the Twitter/X accounts for major French media outlets like Le Monde, BFMTV, and France Info?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "lemondefr" "BFMTV" "franceinfo" "afpfr" "LeHuffPost"
  }
}
ORDER BY ?username

Can you list the entities on Wikidata that have the Twitter usernames 'lemondefr', 'BFMTV', 'franceinfo', 'afpfr', or 'LeHuffPost'?

Show me the organizations on Wikidata that are linked to these Twitter handles: @lemondefr, @BFMTV, @franceinfo, @afpfr, and @LeHuffPost.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "ChPiret" ) ( "Sifaoui" ) ( "lemondefr" ) ( "string4" ) ( "justinecj" ) ( "BFMTV" ) ( "LeHuffPost" ) ( "string5" ) ( "franceinfo" ) ( "afpfr" ) ( "string6" ) } } ORDER BY ASC( ?var3 )


Question: Who are the people with the surname Guillerm?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P734 wd:Q63760225 .
  ?person wdt:P31 wd:Q5 .
}

List all humans whose family name is Guillerm.

Which individuals are known to have Guillerm as their last name?

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


Question: French departments and their coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?department ?departmentLabel ?coordinates WHERE {
  ?department wdt:P31 wd:Q6465 .
  ?department wdt:P625 ?coordinates .
  ?department rdfs:label ?departmentLabel .
  FILTER(LANG(?departmentLabel) = "en")
}

What are the English names and geographic coordinates of all French departments?

Show me the names and locations of all departments in France.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Most common property linking companies to São Paulo Stock Exchange

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property_item ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ?direct_property wd:Q796297 .
  ?property_item wikibase:directClaim ?direct_property .
  ?property_item rdf:type wikibase:Property .
}
GROUP BY ?property_item
ORDER BY DESC ( ?count )
LIMIT 1

Which property is most frequently used to indicate that a company is listed on the São Paulo Stock Exchange?

Show me the property that connects the most companies to B3 (São Paulo Stock Exchange), along with how many companies are connected.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q796297> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: Does Wikidata contain a football player with Transfermarkt ID 28595?

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

Is there a footballer in Wikidata who has the Transfermarkt player ID 28595?

Confirm if the player with Transfermarkt ID 28595 is listed in Wikidata.

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


Question: List all editions of the International Semantic Web Conference with their short names, start and end dates, and locations.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?conference ?shortName ?startDate ?endDate ?location WHERE {
  ?conference wdt:P179 wd:Q6053150 .
  OPTIONAL {
    ?conference wdt:P1813 ?shortName .
  }
  OPTIONAL {
    ?conference wdt:P580 ?startDate .
  }
  OPTIONAL {
    ?conference wdt:P582 ?endDate .
  }
  OPTIONAL {
    ?conference wdt:P276 ?location .
  }
}
LIMIT 100

What are the start dates, end dates, short names, and locations of all ISWC conferences?

Show me the schedule details (short name, start and end dates, and location) for every International Semantic Web Conference edition.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q6053150> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P276> ?var5 . } } LIMIT 100


Question: List the International Semantic Web Conference editions with their ordinal number, start date, location, and coordinates.

SELECT ?conference ?shortName ?ordinal ?startDate ?locationLabel ?coordinates WHERE { ?conference p:P179 ?statement . ?statement ps:P179 wd:Q6053150 ; pq:P1545 ?ordinal . OPTIONAL { ?conference wdt:P1813 ?shortName . } OPTIONAL { ?conference wdt:P580 ?startDate . } OPTIONAL { ?conference wdt:P276 ?location . ?location rdfs:label ?locationLabel . ?location wdt:P625 ?coordinates . FILTER (LANG(?locationLabel) = "en") } } LIMIT 100

What are the short names, ordinal numbers, start dates, locations, and geographic coordinates of all conferences in the International Semantic Web Conference series?

Show me the details of each International Semantic Web Conference, including its series number, when it was held, where it took place (in English), and its location coordinates.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q6053150> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P179> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P179> <http://www.wikidata.org/entity/Q6053150> . ?var7 <http://www.wikidata.org/prop/qualifier/P1545> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P276> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . ?var8 <http://www.wikidata.org/prop/direct/P625> ?var6 . } FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . } LIMIT 100


Question: Who is buried in Evergreen Cemetery in Menomonie, Wisconsin, and what is their description?

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

List people buried at Evergreen Cemetery along with their biographical descriptions.

What are the names and descriptions of individuals interred at Evergreen Cemetery?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q5417184> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


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

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

Can you show me the Wikimedia Commons image for James J. Davis, who has the SNAC ARK ID w6v12qnw?

I need the image file from Wikimedia Commons for the person identified by the SNAC ARK ID w6v12qnw.

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


Question: What are the properties of the Yellow River, along with the count of values and their English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ( SAMPLE( ?pl ) AS ?propertyLabel ) ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ", " ) AS ?valueLabels ) WHERE {
  wd:Q7355 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = "en" ) .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?pl .
  FILTER ( LANG( ?pl ) = "en" ) .
}
GROUP BY ?property

For each property of the Yellow River, what is its English name, how many values does it have, and what are those values in English?

Can you list the English labels of properties associated with the Yellow River, how many times each property is used, and the corresponding values?

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q7355> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Which Wikidata item has the Twitter username "frimelle"?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "frimelle" } }

Who is the person on Wikidata with the Twitter handle frimelle?

Show me the Wikidata entity linked to the Twitter account @frimelle.

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


Question: What is the Twitter username for Lucie-Aimée Kaffee?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?user ?username WHERE {
  wd:Q37860261 wdt:P2002 ?username .
}

Find the X (Twitter) account of the Wikimedian computer scientist Lucie-Aimée Kaffee.

Show me the Twitter handle associated with the Wikidata item for Lucie-Aimée Kaffee.

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


Question: What is the type, location, coordinates, and inception date of the Arrondissement of Saint-Pierre?

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 ?type ?typeLabel ?location ?coordinates ?inception WHERE {
  wd:Q702426 wdt:P31 ?type .
  wd:Q702426 wdt:P131 ?location .
  wd:Q702426 wdt:P625 ?coordinates .
  wd:Q702426 wdt:P571 ?inception .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?typeLabel) = "en")
}

Can you tell me what kind of administrative unit the Arrondissement of Saint-Pierre is, where it is located, its geographic coordinates, and when it was established?

Please provide the classification, administrative location, GPS coordinates, and founding date of the Arrondissement of Saint-Pierre.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P31> ?var1 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P585> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P580> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P580> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q702426> <http://www.wikidata.org/prop/direct/P571> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Does World Cup 90 have a Lemon 64 ID of 3268?

Is the Commodore 64 game World Cup 90 registered in the Lemon 64 database with the identifier 3268?

Confirm if the game World Cup 90 is identified as 3268 in the Lemon 64 database.

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


Question: Horror films listed in Wikidata

SELECT ?film ?filmLabel WHERE { ?film wdt:P136 wd:Q200092 . ?film rdfs:label ?filmLabel . FILTER(LANG(?filmLabel) = "en") }

What are some horror films according to Wikidata?

List the English titles of all films classified under the horror film genre.

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


Question: Is Wizardry: Proving Grounds of the Mad Overlord listed in Wikidata with Lemon 64 ID 4163?

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

Does the Commodore 64 game "Wizardry: Proving Grounds of the Mad Overlord" have the identifier 4163 in the Lemon 64 database according to Wikidata?

Confirm if the Lemon 64 ID 4163 corresponds to Wizardry: Proving Grounds of the Mad Overlord in Wikidata.

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


Question: What are the instance types, administrative locations, coordinates, and inception date of Gol Pond?

SELECT DISTINCT ?instance ?instanceLabel ?location ?coordinates ?inception WHERE { wd:Q3591756 wdt:P31 ?instance . OPTIONAL { ?instance rdfs:label ?instanceLabel . FILTER(LANG(?instanceLabel) = "en") } OPTIONAL { wd:Q3591756 wdt:P131 ?location . } OPTIONAL { wd:Q3591756 wdt:P625 ?coordinates . } OPTIONAL { wd:Q3591756 wdt:P571 ?inception . } }

Can you tell me what kind of entity Gol Pond is, where it is located, its coordinates, and when it was created?

Show me the administrative areas, geographic coordinates, and creation date of Gol Pond, along with its classification(s).

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P31> ?var1 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P585> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P580> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P580> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q3591756> <http://www.wikidata.org/prop/direct/P571> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What type of organization was the French Resistance, and during which conflict and time period did it operate?

SELECT DISTINCT ?instance ?instanceLabel ?conflict ?conflictLabel ?startTime ?endTime WHERE { wd:Q3457812 wdt:P31 ?instance ; wdt:P607 ?conflict . ?instance rdfs:label ?instanceLabel . ?conflict rdfs:label ?conflictLabel . ?conflict wdt:P580 ?startTime ; wdt:P582 ?endTime . FILTER(LANG(?instanceLabel) = "en") FILTER(LANG(?conflictLabel) = "en")}

When did World War II take place, and how is the French Resistance connected to it?

Tell me about the French Resistance: what category does it belong to, and what war was it part of, including its start and end dates?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P31> ?var1 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P585> ?var4 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P580> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P580> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q3457812> <http://www.wikidata.org/prop/direct/P571> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Is there a Commodore 64 game in Wikidata with Lemon 64 ID 2729?

Does the game Turrican have the Lemon 64 identifier 2729?

Confirm if the Lemon 64 ID 2729 corresponds to a game in the Wikidata database.

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


Question: What are some examples of trading posts in history?

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

List up to 21 trading posts along with their names.

Which historical locations served as trading posts, and what are they called?

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


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

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

Which language is identified by the UNESCO Atlas of the World's Languages in Danger ID 1685, and what is its English label and description?

Show me the English name and description of the endangered language with UNESCO ID 1685.

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


Question: Who are the humans named Alain Mahé in French?

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

Which people named Alain Mahé are listed with a French label in Wikidata?

List all individuals with the French name 'Alain Mahé' who are classified as human.

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


Question: What are the places within 740 meters of Mitchell railway station, and what administrative regions are they in?

SELECT ?place ?placeLabel ?coord ?admin ?adminLabel WHERE { wd:Q14935497 wdt:P625 ?centerCoord . ?place wdt:P625 ?coord . FILTER(geof:distance(?centerCoord, ?coord) < 0.74) . OPTIONAL { ?place rdfs:label ?placeLabel . FILTER(LANG(?placeLabel) = "en") } OPTIONAL { ?place wdt:P131 ?admin . ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) = "en") } } ORDER BY ASC(?placeLabel)

List nearby landmarks and institutions near Mitchell railway station in Queensland, including their names and local government areas.

Show all English-labeled locations close to Mitchell railway station (within 0.74 km), along with their coordinates and the Queensland region they belong to.

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


Question: Who are the human members of the Black Lunch Table who were born, died, or lived in New York City or its administrative areas?

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 ?birthPlaceLabel ?deathPlaceLabel ?residenceLabel WHERE {
  ?person wdt:P463 wd:Q28781198 .
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P19 ?birthPlace .
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER(LANG(?birthPlaceLabel) = "en")
  }
  OPTIONAL {
    ?person wdt:P20 ?deathPlace .
    ?deathPlace rdfs:label ?deathPlaceLabel .
    FILTER(LANG(?deathPlaceLabel) = "en")
  }
  OPTIONAL {
    ?person wdt:P551 ?residence .
    ?residence rdfs:label ?residenceLabel .
    FILTER(LANG(?residenceLabel) = "en")
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  {
    ?person(wdt:P19 | wdt:P20 | wdt:P551) wd:Q60 .
  } UNION {
    ?person(wdt:P19 | wdt:P20 | wdt:P551) ?loc .
    ?loc wdt:P131 * wd:Q60 .
  }
}
ORDER BY ASC(?personLabel)

List all humans affiliated with the Black Lunch Table and their birthplaces, death places, or residences in New York City or its boroughs.

Show me members of the Black Lunch Table who have any connection (birth, death, or residence) to New York City, including places like Brooklyn or Queens that are part of it.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P972> <http://www.wikidata.org/entity/Q28781198> . ?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/prop/direct/P20> | <http://www.wikidata.org/prop/direct/P551> ) <http://www.wikidata.org/entity/Q60> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P19> | <http://www.wikidata.org/prop/direct/P20> | <http://www.wikidata.org/prop/direct/P551> ) ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q60> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } GROUP BY ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ORDER BY ASC( ?var1Label )


Question: How many people who were citizens of Canada East have a picture on Wikimedia Commons?

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

What is the number of historical figures from Canada East with an associated image?

List the count of individuals from Canada East who have images documented on Commons.

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


Question: How many humans were born between January 1 and June 30, 1911?

SELECT ?birthYear (COUNT(?human) AS ?count) WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P569 ?birth . BIND(YEAR(?birth) AS ?birthYear) FILTER(?birth >= "1911-01-01"^^xsd:date && ?birth < "1911-07-01"^^xsd:date) } GROUP BY ?birthYear

Can you tell me the number of people born in the first half of 1911?

What is the count of individuals born in 1911 from the start of the year until June 30?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var4 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P570> ?var5 . } BIND ( STR ( YEAR ( ?var4 ) ) AS ?var1 ). FILTER ( ( ( ?var4 >= "1911-01-02"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var4 < "1911-07-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1


Question: List artists with RKDartists IDs from Wikidata.

SELECT ?item ?id WHERE { ?item wdt:P650 ?id . } LIMIT 100

Which artists have an RKDartists ID, and what are those IDs?

Show me up to 100 artists from Wikidata that are assigned an RKDartists ID along with their identifiers.

SELECT * WHERE { ?var1 <http://www.wikidata.org/entity/P650> ?var2 . } LIMIT 100


Question: Works about Georgia with their authors, languages, and publication dates.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?work ?title ?author ?language ?publicationDate WHERE {
  ?work p:P921 ?statement .
  ?statement ps:P921 wd:Q230 .
  OPTIONAL {
    ?work wdt:P1476 ?title .
  }
  OPTIONAL {
    ?work wdt:P50 ?author .
  }
  OPTIONAL {
    ?work wdt:P407 ?language .
  }
  OPTIONAL {
    ?work wdt:P577 ?publicationDate .
  }
}
LIMIT 100

What are the books and articles about Georgia, and who wrote them, in what language, and when were they published?

Show me all works that have Georgia as their main subject, along with their titles, authors, languages, and publication years.

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


Question: What properties are used to describe places located in the municipality of Oss?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?property WHERE {
  ?item wdt:P131 wd:Q9859 .
  ?item ?property ?value .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) )
}

Can you list all the direct properties (like population, name, etc.) associated with locations in Oss, Netherlands?

I want to know all the direct claims (e.g., population, ID numbers) about places that are administratively part of Oss.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/entity/Q6422240> ? <http://www.wikidata.org/entity/Q9859> . ?var2 ?var1 ?var3 . <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var4 <http://wikiba.se/ontology#directClaim> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Cities with their earliest written records, sorted from most recent to oldest.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?city ?earliestRecord WHERE {
  ?city wdt:P1249 ?earliestRecord .
  ?city wdt:P31 wd:Q515 .
}
ORDER BY DESC ( ?earliestRecord )

Which cities have the most recent first historical mentions, and when were they first recorded?

List cities along with the date of their earliest known written record, ordered from newest to oldest.

SELECT ?var1 ( ?var2 AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . } ORDER BY DESC( ?var3 )


Question: VIAF ID of Irenaeus

SELECT ?viafId WHERE { wd:Q182123 wdt:P214 ?viafId . } LIMIT 1

What is the VIAF identifier for Irenaeus?

Can you provide a VIAF cluster ID for the 2nd-century theologian Irenaeus?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q182123> <http://www.wikidata.org/prop/direct/P214> ?var1 . } LIMIT 1


Question: What are the subtopics or aspects of sport?

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 {
  ?item wdt:P1269 wd:Q349 .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 100

Can you list the categories that are facets of sport?

Show me the items that are considered subcategories of sport, such as "2004 in sports" or "July 2008 in sports".

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P971> <http://www.wikidata.org/entity/Q349> . ?var1 <http://www.wikidata.org/prop/direct/P1269> <http://www.wikidata.org/entity/Q349> . } LIMIT 100


Question: What is the RKDartists ID of Claude Monet?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?rkdId WHERE {
  wd:Q296 wdt:P650 ?rkdId
}
LIMIT 1000

Can you find the RKDartists identifier for the painter Claude Monet?

What external identifier does Claude Monet have in the RKDartists database?

SELECT * WHERE { <http://www.wikidata.org/entity/Q296> <http://www.wikidata.org/entity/56860> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P650> ?var2 . } } LIMIT 1000


Question: What is the English label of Douglas Adams?

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

What is Douglas Adams called in English?

Show the English name of the person with Wikidata ID Q42.

SELECT ?var1Label ?var2 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q42> AS ?var3 ). BIND ( "N/A" AS ?var4 ). BIND ( "Name"@de AS ?var1Label ). <http://www.wikidata.org/entity/Q42> <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } UNION { BIND ( ?var3 AS ?var2 ). <http://www.wikidata.org/entity/Q42> ?var4 ?var3 . ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( isLITERAL ( ?var3 ) ) ) . } }


Question: What are all the classes that beer is a subclass of, including its ancestors in the taxonomy?

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

Show me the full hierarchy of categories that beer belongs to as a subclass.

What abstract categories, like substance or fluid, include beer as a subclass?

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


Question: What is the Swedish label, Commons category, population, ISO 2-letter code, and ISO 3-letter code for Luxembourg?

SELECT ?label ?commonsCategory ?population ?iso2 ?iso3 WHERE { BIND( wd:Q32 AS ?country ) . BIND( "sv" AS ?lang ) . ?country rdfs:label ?label . FILTER ( LANGMATCHES( LANG( ?label ), ?lang ) ) . OPTIONAL { ?country wdt:P373 ?commonsCategory } . OPTIONAL { ?country wdt:P1082 ?population } . OPTIONAL { ?country wdt:P297 ?iso2 } . OPTIONAL { ?country wdt:P298 ?iso3 } .}

Can you tell me the Swedish name of Luxembourg along with its population, Wikimedia Commons category, and its ISO country codes?

Show me Luxembourg’s details in Swedish: its name, population, Commons category, and ISO 3166-1 codes.

CONSTRUCT { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://www.wikidata.org/prop/direct/P373> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P32> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P45> ?var6 } WHERE { BIND ( <http://www.wikidata.org/entity/Q32> AS ?var1 ). BIND ( "sv" AS ?var7 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://www.wikidata.org/prop/direct/P373> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P32> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P45> ?var6 . } FILTER ( ( LANGMATCHES ( LANG ( ?var2Label ) , ?var7 ) ) ) . }


Question: Is there a Twitter/X account with username "plast" in Wikidata?

ASK WHERE { ?entity wdt:P2002 "plast" . }

Does any organization or entity on Wikidata have the Twitter username "plast"?

Can you confirm that the Ukrainian scouting organization Plast has the Twitter handle "plast" listed in Wikidata?

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


Question: Movie with elFilm ID 56887

SELECT ?movie WHERE { ?movie wdt:P3143 "56887" . }

Tell me the movie that corresponds to the elFilm ID 56887.

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


Question: What do Arizona and the Super Bowl have in common?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?property ?value WHERE {
  wd:Q816 ?property ?value .
  wd:Q32096 ?property ?value .
  FILTER(?property != rdf:type)
}
ORDER BY ?property

Which country is both Arizona and the Super Bowl associated with?

What shared property links Arizona and the Super Bowl 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/Q816> ; <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/Q32096> ; <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: Does any entity have the Twitter username 'olympics'?

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

Is there an entity on Wikidata with the X (Twitter) handle 'olympics'?

Check if the Twitter username 'olympics' is assigned to any item in Wikidata.

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


Question: What is the common field that connects Reuters and Amanda Petrusich?

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

What profession or industry do Reuters and Amanda Petrusich both belong to?

What is the shared domain of activity between the news agency Reuters and the music journalist Amanda Petrusich?

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/Q130879> ; <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/Q16199458> ; <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 Formula One drivers and public companies belong to?

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 ?common WHERE {
  wd:Q82652 wdt:P31 ?type1 .
  wd:Q248 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?common .
  ?type2 wdt:P279 * ?common .
  ?common rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  .
  FILTER(CONTAINS(STR(?label) , "person or organization"))
}

What is the common superclass of Felipe Massa's occupation and Intel's type?

Which ontological category is the least common ancestor of a Formula One driver and a public company?

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/Q82652> ; <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/Q248> ; <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 an actor from Brazil?

SELECT ?actor ?actorLabel WHERE { ?actor wdt:P106 wd:Q33999 ; wdt:P17 wd:Q155 . ?actor rdfs:label ?actorLabel FILTER(LANG(?actorLabel) = 'en') } ORDER BY ?actorLabel LIMIT 1

Which person has the occupation of actor and is from Brazil?

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/Q155> ; <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/Q241471> ; <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 Thomson Reuters and Intel belong to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonClass ( COUNT( ?superclass ) AS ?depth ) WHERE {
  wd:Q1141267 wdt:P31 ?commonClass .
  wd:Q248 wdt:P31 ?commonClass .
  ?commonClass wdt:P279 + ?superclass .
}
GROUP BY ?commonClass
ORDER BY DESC ( ?depth )
LIMIT 1

Which class, shared by Intel and Thomson Reuters, has the most superclasses in the Wikidata hierarchy?

Find the common class with the deepest hierarchy that both Intel and Thomson Reuters are instances of.

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/Q1141267> ; <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/Q248> ; <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 shared category that both Berlin and India belong to, based on their types and their hierarchical relationships?

SELECT ?ancestor (COUNT(?mid1) + COUNT(?mid2) AS ?totalDistance)
WHERE {
  wd:Q64 wdt:P31 ?typeBerlin .
  wd:Q668 wdt:P31 ?typeIndia .

  ?typeBerlin wdt:P279 ?mid1 .
  ?mid1 wdt:P279 ?ancestor .

  ?typeIndia wdt:P279 ?mid2 .
  ?mid2 wdt:P279 ?ancestor .

  FILTER(?ancestor != ?typeBerlin)
  FILTER(?ancestor != ?typeIndia)
}
GROUP BY ?ancestor
ORDER BY ASC(?totalDistance)
LIMIT 1

What is the common administrative classification that includes both Berlin and India, considering their hierarchical subclass relationships?

Find the nearest common ancestor in the subclass hierarchy between the types of Berlin 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/Q64> ; <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 entities have a Freebase ID and an alternative label containing 'mountain'?

SELECT ?item WHERE { ?item wdt:P646 ?fid . ?item skos:altLabel ?altLabel . FILTER(LANG(?altLabel) = 'en') . FILTER(CONTAINS(LCASE(?altLabel), "mountain")) }

Which items in Wikidata are known by the term 'mountain' in their alternative labels and have a Freebase identifier?

List all entities with a Freebase ID whose English alternative labels include the word 'mountain'.

SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P31> ) ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P646> ?var3 . ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var4 . FILTER ( ( REGEX ( ?var4 , "string1" ) ) ) . }


Question: What is the most specific category that both Silicon Valley and the West Bank are instances of?

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 DISTINCT ?label WHERE {
  wd:Q163820 wdt:P31 ?typeSV .
  wd:Q36678 wdt:P31 ?typeWB .
  ?typeSV wdt:P279 * wd:Q82794 .
  ?typeWB wdt:P279 * wd:Q82794 .
  wd:Q82794 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}

What do Silicon Valley and the West Bank have in common in terms of their classification in Wikidata?

Which broader category includes both Silicon Valley and the West Bank according to 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/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/Q36678> ; <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: Does the European External Action Service have the Twitter username eu_eeas?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?entity wdt:P2002 "eu_eeas" .
}

Is the X (Twitter) handle for the European External Action Service eu_eeas?

Confirm if eu_eeas is the official X username for the European External Action Service.

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


Question: What is the most specific category that both India and London belong to through their class hierarchies?

SELECT ?ancestor ?label WHERE { wd:Q6256 wdt:P279* ?ancestor . wd:Q515 wdt:P279* ?ancestor . ?ancestor rdfs:label ?label . FILTER (?ancestor != wd:Q6256 && ?ancestor != wd:Q515) FILTER (LANG(?label) = "en") } ORDER BY ASC(?ancestor) LIMIT 1

What is the common superclass of the class that India is an instance of and the class that London is an instance of?

What is the most specific concept that includes both countries and cities in the Wikidata ontology?

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/Q668> ; <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/Q84> ; <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 shared category between the Las Vegas Strip and South Dakota in the Wikidata hierarchy?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ancestor ?dist1 ?dist2 WHERE {
  {
    SELECT ?ancestor ( COUNT( ?mid1 ) AS ?dist1 ) WHERE {
      wd:Q79007 wdt:P279 + ?mid1 .
      ?mid1 wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid2 ) AS ?dist2 ) WHERE {
      wd:Q35657 wdt:P279 + ?mid2 .
      ?mid2 wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  FILTER ( ?ancestor != wd:Q79007 && ?ancestor != wd:Q35657 )
}
ORDER BY ( ?dist1 + ?dist2 )
LIMIT 1

Which entity is the closest common ancestor of the Las Vegas Strip and South Dakota when tracing their subclass relationships?

Find the entity that requires the fewest total subclass steps to reach from both the Las Vegas Strip and South Dakota.

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/Q745608> ; <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/Q1211> ; <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: Entities with English labels and Freebase IDs, along with their significant events.

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

Which entities have significant events recorded in Wikidata, and what are their English names and Freebase IDs?

Show me a list of entities, their English names, Freebase IDs, and the notable events associated with them.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P793> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P646> ?var4 . }


Question: Where is Twitter headquartered?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?headquarters WHERE {
  wd:Q918 wdt:P159 ?headquarters .
}

What city is the headquarters of Twitter located in?

How are Twitter and San Francisco related?

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/Q918> ; <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/Q62> ; <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 closely related common superclass between Japan and the United States Fleet Forces Command, based on the sum of subclass hops?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?ancestor ( ?dist1 + ?dist2 AS ?totalDistance ) WHERE {
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist1 ) WHERE {
      wd:Q3624078 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist2 ) WHERE {
      wd:Q105499501 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
}
ORDER BY ASC ( ?totalDistance )
LIMIT 1

Find the entity that is a subclass ancestor of both Japan and the US Fleet Forces Command with the minimum total distance in the subclass hierarchy.

Which common superclass of Japan and the US Fleet Forces Command has the shortest combined path length in the subclass tree?

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/Q2297940> ; <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/Q17> ; <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 Wikidata item has the IMDb ID nm0001569?

SELECT ?item ?itemLabel WHERE { ?item wdt:P345 "nm0001569" . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Who is the person associated with the IMDb identifier nm0001569?

Show me the name of the person with IMDb ID nm0001569.

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