Question: What is the most specific shared category that includes both Beijing and Chinese Americans in the Wikidata taxonomy?

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 ?ancestorLabel ?dist1 ?dist2 ( ?dist1 + ?dist2 AS ?total ) WHERE {
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist1 ) WHERE {
      wd:Q108178728 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  {
    SELECT ?ancestor ( COUNT( ?mid ) AS ?dist2 ) WHERE {
      wd:Q41710 wdt:P279 + ?mid .
      ?mid wdt:P279 * ?ancestor .
    }
    GROUP BY ?ancestor
  }
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER ( LANG( ?ancestorLabel ) = "en" )
}
ORDER BY ASC ( ?total )
LIMIT 1

Which human group is the closest common ancestor of national capitals and ethnic groups like Chinese Americans?

Find the lowest-level class that both Beijing (as a capital) and Chinese Americans (as an ethnic group) belong to, based on their subclass hierarchies.

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/Q956> ; <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/Q1146100> ; <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: Tributaries of the Kootenay River and their drainage basins

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 ?var1 ?var1Label ?var2 ?var2Label WHERE {
  ?var1 wdt:P403 wd:Q2262 .
  ?var1 ( wdt:P31 / wdt:P279 * ) wd:Q355304 .
  OPTIONAL {
    ?var1 wdt:P4614 ?var2 .
  }
  OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER ( LANG( ?var1Label ) = "en" )
  }
  OPTIONAL {
    ?var2 rdfs:label ?var2Label .
    FILTER ( LANG( ?var2Label ) = "en" )
  }
}

Which rivers flow into the Kootenay River, and what drainage basins do they belong to?

List all the watercourses that drain into the Kootenay River, including their drainage basins if available.

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


Question: Tributaries of the Okanogan River and its drainage basin

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 ?tributary ?tributaryLabel ?basin ?basinLabel ?mainRiver ?mainRiverLabel WHERE {
  ?tributary wdt:P403 + wd:Q271058 .
  wd:Q271058 wdt:P4614 ?basin .
  ?tributary ( wdt:P31 / wdt:P279 * ) wd:Q355304 .
  BIND( wd:Q271058 AS ?mainRiver ) ?tributary rdfs:label ?tributaryLabel .
  ?basin rdfs:label ?basinLabel .
  ?mainRiver rdfs:label ?mainRiverLabel .
}

Which rivers flow into the Okanogan River, and what is the name of the drainage basin they belong to?

List all watercourses that feed into the Okanogan River, along with the label of the Okanogan River and its drainage basin.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P403> * <http://www.wikidata.org/entity/Q271058> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var3 <http://www.wikidata.org/prop/direct/P4614> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P4614> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the sovereign island countries in the world?

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 ?country ?label WHERE {
  ?country wdt:P31 wd:Q112099 .
  ?country rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'en' )
}

List all countries that are entirely located on islands.

Which nations are classified as island countries?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23442> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } ) ) . FILTER ( ( REGEX ( ?var2 , "string1" ) ) ) . }


Question: Dog breeds with English names and images on Wikimedia Commons

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 ?breed ?breedLabel ?image WHERE {
  ?breed wdt:P31 wd:Q39367 .
  ?breed rdfs:label ?breedLabel .
  FILTER ( LANG( ?breedLabel ) = "en" ) FILTER ( STRSTARTS( STR( ?breed ) , "http://www.wikidata.org/entity/Q" ) ) OPTIONAL {
    ?breed wdt:P18 ?image .
  }
}

What are the English names of dog breeds and their associated images on Wikimedia Commons?

Show me a list of dog breeds in English along with their images from Wikimedia Commons, if available.

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


Question: List all presidential elections and their labels in different languages.

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 ?election ?label WHERE {
  ?election wdt:P31 wd:Q858439 .
  ?election rdfs:label ?label .
}

What are all the presidential elections recorded in Wikidata, and what are their names in various languages?

Show me every instance of a presidential election along with its human-readable labels in all available languages.

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


Question: List politicians and their given names, places of death, employers, educational backgrounds, and sources that describe them, all in English.

SELECT ?politician ?politicianLabel ?givenName ?givenNameLabel ?placeOfDeath ?placeOfDeathLabel ?employer ?employerLabel ?educatedAt ?educatedAtLabel ?describedBySource ?describedBySourceLabel WHERE {  ?politician (wdt:P106/wdt:P279*) wd:Q82955 .  ?politician rdfs:label ?politicianLabel .  ?politician wdt:P735 ?givenName .  ?givenName rdfs:label ?givenNameLabel .  ?politician wdt:P20 ?placeOfDeath .  ?placeOfDeath rdfs:label ?placeOfDeathLabel .  ?politician wdt:P108 ?employer .  ?employer rdfs:label ?employerLabel .  ?politician wdt:P69 ?educatedAt .  ?educatedAt rdfs:label ?educatedAtLabel .  ?politician wdt:P1343 ?describedBySource .  ?describedBySource rdfs:label ?describedBySourceLabel .  FILTER (LANG(?politicianLabel) = "en")  FILTER (LANG(?givenNameLabel) = "en")  FILTER (LANG(?placeOfDeathLabel) = "en")  FILTER (LANG(?employerLabel) = "en")  FILTER (LANG(?educatedAtLabel) = "en")  FILTER (LANG(?describedBySourceLabel) = "en")} LIMIT 10000

What are the given names, places of death, employers, educational institutions, and reference sources for politicians, with all labels in English?

Show me detailed information about politicians including their first names, where they died, who they worked for, where they studied, and which encyclopedias or books describe them — all in English.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q82955> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P20> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P108> ?var9 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var10 . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var11 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . ?var1 <http://www.wikidata.org/prop/direct/P1343> ?var13 . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var14 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var8 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var10 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var14 ) = "en" ) ) ) . } LIMIT 10000


Question: Notable cats that are instances of house cats.

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

What are some famous individual cats that belong to the species of house cat?

List the names of well-known pet cats in English that are classified as house cats.

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


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

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

List the English labels and descriptions of all properties that have statements about the dog (wd:Q144).

Show me the properties and their English definitions that are used to describe the domestic dog in Wikidata.

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


Question: List U.S. presidents in order from youngest to oldest, along with their birth dates and birth places.

SELECT ?president ?presidentLabel ?birthDate ?birthPlaceLabel WHERE { ?president wdt:P39 wd:Q11696 . ?president wdt:P569 ?birthDate . ?president wdt:P19 ?birthPlace . ?president rdfs:label ?presidentLabel . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?presidentLabel) = "en") . FILTER(LANG(?birthPlaceLabel) = "en") . } ORDER BY DESC(?birthDate)

Who are the U.S. presidents sorted by birth date from most recent to oldest, and where and when were they born?

Show me the names, birth dates, and birth places of all U.S. presidents, ordered with the youngest first.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: Who has VIAF ID 33514680?

SELECT ?item ?itemLabel WHERE { ?item wdt:P214 "33514680" . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } }

What person is associated with the Virtual International Authority File identifier 33514680?

Find the Wikidata entity for the VIAF ID 33514680.

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


Question: What are some examples of volcanic landforms?

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

List all known volcanic landforms and their names.

Which geographical features are classified as volcanic landforms?

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


Question: Examples of volcanic landforms

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 ?landform ?landformLabel WHERE {
  ?landform wdt:P31 wd:Q29025902 .
  ?landform rdfs:label ?landformLabel .
  FILTER ( LANG( ?landformLabel ) = "en" )
}
LIMIT 10

What are some examples of volcanic landforms?

List ten volcanic landforms with their names.

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


Question: Properties used on association football teams with English labels and descriptions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  ?team wdt:P31 wd:Q15944511 .
  ?team ?property ?value .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) ) .
  BIND( IRI( REPLACE( STR( ?property ) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/" ) ) AS ?propertyItem ) .
  ?propertyItem rdfs:label ?propertyLabel .
  ?propertyItem schema:description ?propertyDescription .
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( LANG( ?propertyDescription ) = "en" )
}
GROUP BY ?property ?propertyLabel ?propertyDescription
LIMIT 100

What properties are used on association football teams, and what are their English labels and descriptions?

List the English labels and descriptions of all properties used on association football teams.

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


Question: What are the different types of sports venues and their examples?

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 ?venue ?classLabel WHERE {
  ?venue wdt:P31 ?class .
  ?class wdt:P279 wd:Q23764314 .
  ?class rdfs:label ?classLabel .
  FILTER(LANG(?classLabel) = "en")
}

List sports locations and their specific categories, such as stadium or arena, that are subclasses of sports location.

Which places are used for sports, and what kind of sports facilities are they classified as?

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


Question: Who are the architects educated at the University of Wisconsin–Madison, and where were they born?

SELECT ?architect ?architectLabel ?birthPlaceLabel WHERE { ?architect wdt:P69 wd:Q838330 . ?architect wdt:P106 wd:Q42973 . ?architect wdt:P19 ?birthPlace . ?architect rdfs:label ?architectLabel . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?architectLabel) = "en") FILTER(LANG(?birthPlaceLabel) = "en") }

List the names and birthplaces of all architects who attended the University of Wisconsin–Madison.

Which architects studied at UW–Madison, and what are their birth cities?

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


Question: Dogs with recorded gender in Wikidata

SELECT ?dog WHERE { ?dog wdt:P31 wd:Q144 . ?dog wdt:P21 ?gender . }

Which dogs have their sex or gender specified in Wikidata?

List all notable dogs that have a recorded biological sex.

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


Question: English title and description of the TV episode with IMDb ID tt5267086

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

What is the English title and description of the TV episode on IMDb with ID tt5267086?

Show me the English name and summary of the Grimm episode that has the IMDb ID tt5267086.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt5267086". 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: Islands in Northern Mariana Islands with coordinates

SELECT DISTINCT ?island ?islandLabel ?coordinates WHERE { ?island wdt:P31 ?subclass . ?subclass wdt:P279* wd:Q23442 . ?island wdt:P131 wd:Q16644 . OPTIONAL { ?island wdt:P625 ?coordinates . } ?island rdfs:label ?islandLabel . FILTER(LANG(?islandLabel) = "en") } LIMIT 1000

What are the islands in the Northern Mariana Islands and their geographic coordinates?

List the islands located in the Northern Mariana Islands along with their latitude and longitude.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q3359409> ^ <http://www.wikidata.org/prop/direct/P361> + ?var1 . <http://www.wikidata.org/entity/Q271669> (^ <http://www.wikidata.org/prop/direct/P279> */^ <http://www.wikidata.org/prop/direct/P31> ) ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 1000


Question: List the Prime Ministers of Fiji in reverse chronological order, including their terms, who they replaced, and who replaced them.

SELECT DISTINCT ?primeMinister ?primeMinisterLabel ?startDate ?endDate ?predecessor ?successor WHERE { wd:Q712 wdt:P1313 wd:Q1469153 . ?primeMinister p:P39 ?statement . ?primeMinister wdt:P31 wd:Q5 . ?statement ps:P39 wd:Q1469153 . OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P1365 ?predecessor . } OPTIONAL { ?statement pq:P155 ?predecessor . } OPTIONAL { ?statement pq:P1366 ?successor . } OPTIONAL { ?statement pq:P156 ?successor . } OPTIONAL { ?primeMinister rdfs:label ?primeMinisterLabel . FILTER(LANG(?primeMinisterLabel) = "en") } } ORDER BY DESC(?startDate)

Who were the Prime Ministers of Fiji, when did they serve, and who were their predecessors and successors?

Show me the complete sequence of Fiji’s Prime Ministers with their start and end dates, and indicate who came before and after each one, ordered from most recent to earliest.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 ?var5Label ?var6 ?var6Label WHERE { <http://www.wikidata.org/entity/Q712> <http://www.wikidata.org/prop/direct/P1313> ?var7 . ?var2 <http://www.wikidata.org/prop/P39> ?var8 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var8 <http://www.wikidata.org/prop/statement/P39> ?var7 . OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P1365> ?var5 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P155> ?var5 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P1366> ?var6 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P156> ?var6 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P1545> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var3 )


Question: Who became prime minister in 2004?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?description WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 ?position .
  ?position wdt:P279 * wd:Q14212 .
  ?statement pq:P580 ?startDate .
  FILTER(YEAR(?startDate) = 2004)
  ?person rdfs:label ?personLabel .
  ?person schema:description ?description .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?description) = "en")
}
LIMIT 100

Which individuals assumed the role of prime minister (or a similar position) in the year 2004, and what are their English descriptions?

List the names and English descriptions of all people who became prime minister or a direct subtype of prime minister in 2004.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P39> / <http://www.wikidata.org/prop/direct/P279> ) <http://www.wikidata.org/entity/Q14212> . ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var1 <http://schema.org/description> ?var2 . ?var1 <http://schema.org/name> ?var3 . ?var4 <http://www.wikidata.org/prop/statement/P39> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q14212> . ?var4 <http://www.wikidata.org/prop/qualifier/P580> ?var6 . FILTER ( ( ( YEAR ( ?var6 ) = "2004"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Prime ministers who started their term in 2002

SELECT ?var1 ?var1Label WHERE { ?var1 p:P39 ?var2 . ?var2 ps:P39 ?var3 . ?var3 wdt:P279* wd:Q14212 . ?var2 pq:P580 ?var4 . FILTER (YEAR(?var4) = 2002) . ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "en") } LIMIT 100

Who became prime minister or head of government in 2002?

List the people who took office as prime minister or a similar position in 2002.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P39> / <http://www.wikidata.org/prop/direct/P279> ) <http://www.wikidata.org/entity/Q14212> . ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/p39> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q14212> . ?var2 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . FILTER ( ( ( YEAR ( ?var4 ) = "2002"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } LIMIT 100


Question: Top food items with labels in Spanish, English, French, Italian, and German, along with their Spanish descriptions and countries.

SELECT ?food (COUNT(?food) AS ?count) (MAX(?temp_label_es) AS ?label_es) (MAX(?temp_label_en) AS ?label_en) (MAX(?temp_label_fr) AS ?label_fr) (MAX(?temp_label_it) AS ?label_it) (MAX(?temp_label_de) AS ?label_de) (MAX(?temp_desc_es) AS ?desc_es) (SAMPLE(?temp_country) AS ?country) WHERE { ?food wdt:P31 wd:Q2095 . ?food rdfs:label ?label . ?food schema:description ?desc . BIND(IF(LANG(?label) = "es", ?label, "") AS ?temp_label_es) BIND(IF(LANG(?label) = "en", ?label, "") AS ?temp_label_en) BIND(IF(LANG(?label) = "fr", ?label, "") AS ?temp_label_fr) BIND(IF(LANG(?label) = "it", ?label, "") AS ?temp_label_it) BIND(IF(LANG(?label) = "de", ?label, "") AS ?temp_label_de) BIND(IF(LANG(?desc) = "es", ?desc, "") AS ?temp_desc_es) FILTER( (?temp_label_es != "") || (?temp_label_en != "") || (?temp_label_fr != "") || (?temp_label_it != "") || (?temp_label_de != "") ) OPTIONAL { ?food wdt:P27 ?temp_country } } GROUP BY ?food ORDER BY DESC(?count) LIMIT 100

What are the most common food items in Wikidata that have labels in at least one of the major European languages, and what are their Spanish descriptions and associated countries?

Please list the top 100 food items with their multilingual labels (Spanish, English, French, Italian, German), Spanish descriptions, and countries of origin, sorted by how frequently they appear in Wikidata.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 )( MAX ( ?var3 ) AS ?var3 )( MAX ( ?var4 ) AS ?var4 )( MAX ( ?var5 ) AS ?var5 )( MAX ( ?var6 ) AS ?var6 )( MAX ( ?var7 ) AS ?var7 )( SAMPLE ( ?var8 ) AS ?var8 )( SAMPLE ( ?var9 ) AS ?var9 ) WHERE { BIND ( IF ( ( LANG ( ?var10 ) = "es" ), ?var10 , "" ) AS ?var3 ). BIND ( IF ( ( LANG ( ?var10 ) = "en" ), ?var10 , "" ) AS ?var4 ). BIND ( IF ( ( LANG ( ?var10 ) = "fr" ), ?var10 , "" ) AS ?var5 ). BIND ( IF ( ( LANG ( ?var10 ) = "it" ), ?var10 , "" ) AS ?var6 ). BIND ( IF ( ( LANG ( ?var10 ) = "de" ), ?var10 , "" ) AS ?var7 ). BIND ( IF ( ( LANG ( ?var8 ) = "es" ), ?var8 , "" ) AS ?var8 ). FILTER ( ( ( CONCAT ( ?var3 , ?var4 , ?var5 , ?var6 , ?var7 ) != "" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var9 . } ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var10 . ?var1 <http://schema.org/description> ?var8 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1150


Question: What is the most specific category that both Hartsfield–Jackson Atlanta International Airport and Autódromo José Carlos Pace belong to?

SELECT ?commonAncestor ?label
WHERE {
  wd:Q214861 wdt:P31 ?type1 .
  wd:Q171387 wdt:P31 ?type2 .

  ?type1 wdt:P279* ?commonAncestor .
  ?type2 wdt:P279* ?commonAncestor .

  OPTIONAL { ?commonAncestor rdfs:label ?label . FILTER(LANG(?label) = "en") }
}
ORDER BY ?commonAncestor
LIMIT 1

What do an airport and a motorsport racing track have in common in terms of their classification in Wikidata?

What is the highest-level class that includes both airports and race tracks?

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/Q171387> ; <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 some examples of cultural institutions as subclasses in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q3152824 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = "en" )
}
LIMIT 500

Can you list the subclasses of "cultural institution" in English?

Show me the English labels of all entities that are subclasses of a cultural institution.

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


Question: Food items with labels in Spanish, English, French, Italian, and German, ordered by number of languages.

PREFIX schema: <http://schema.org/>
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 ?foodItem ( COUNT( ?label ) AS ?label_count ) ( MAX( IF( LANG( ?label ) = "es" , ?label , "" ) ) AS ?label_es ) ( MAX( IF( LANG( ?label ) = "en" , ?label , "" ) ) AS ?label_en ) ( MAX( IF( LANG( ?label ) = "fr" , ?label , "" ) ) AS ?label_fr ) ( MAX( IF( LANG( ?label ) = "it" , ?label , "" ) ) AS ?label_it ) ( MAX( IF( LANG( ?label ) = "de" , ?label , "" ) ) AS ?label_de ) ( MAX( IF( LANG( ?description ) = "es" , ?description , "" ) ) AS ?desc_es ) WHERE {
  {
    ?foodItem wdt:P31 wd:Q2095 .
  } UNION {
    ?foodItem wdt:P279 * wd:Q2095 .
  }
  ?foodItem rdfs:label ?label .
  ?foodItem schema:description ?description .
  FILTER ( LANG( ?label ) IN ( "es" , "en" , "fr" , "it" , "de" ) )
}
GROUP BY ?foodItem
ORDER BY DESC ( ?label_count )
LIMIT 1150

Which food-related entities have the most language labels across Spanish, English, French, Italian, and German, and what are their names and Spanish descriptions?

Show me the top food classes and instances with their names in five European languages and their Spanish descriptions, sorted by how many languages they have labels in.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 )( MAX ( ?var3 ) AS ?var3 )( MAX ( ?var4 ) AS ?var4 )( MAX ( ?var5 ) AS ?var5 )( MAX ( ?var6 ) AS ?var6 )( MAX ( ?var7 ) AS ?var7 )( SAMPLE ( ?var8 ) AS ?var8 ) WHERE { BIND ( IF ( ( LANG ( ?var9 ) = "es" ), ?var9 , "" ) AS ?var3 ). BIND ( IF ( ( LANG ( ?var9 ) = "en" ), ?var9 , "" ) AS ?var4 ). BIND ( IF ( ( LANG ( ?var9 ) = "fr" ), ?var9 , "" ) AS ?var5 ). BIND ( IF ( ( LANG ( ?var9 ) = "it" ), ?var9 , "" ) AS ?var6 ). BIND ( IF ( ( LANG ( ?var9 ) = "de" ), ?var9 , "" ) AS ?var7 ). BIND ( IF ( ( LANG ( ?var8 ) = "es" ), ?var8 , "" ) AS ?var8 ). FILTER ( ( ( CONCAT ( ?var3 , ?var4 , ?var5 , ?var6 , ?var7 ) != "" ) ) ) . ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var9 . ?var1 <http://schema.org/description> ?var8 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1150


Question: List theatres with their Theatres Trust Database IDs and English Wikipedia pages.

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

What are the English names, Theatres Trust IDs, and Wikipedia links for theatres in the Theatres Trust Database?

Show me up to 10 theatres from the Theatres Trust Database, including their English labels, their unique database IDs, and their corresponding English Wikipedia pages.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4079> ?var2 . OPTIONAL { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <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> "en,en". } } LIMIT 10


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

SELECT ?series ?imdbId ?label ?year ?productionCompany ?director ?publicationDate WHERE { ?series wdt:P31 wd:Q5398426 . ?series wdt:P345 ?imdbId . ?series rdfs:label ?label . FILTER(LANG(?label) = "en") . ?series wdt:P577 ?publicationDate . BIND(YEAR(?publicationDate) AS ?year) . FILTER(?year > 1970) . OPTIONAL { ?series wdt:P166 ?award . ?award rdfs:label ?awardLabel . FILTER(LANG(?awardLabel) = "en") . FILTER(CONTAINS(LCASE(?awardLabel), "emmy")) } . OPTIONAL { ?series wdt:P1411 ?nomination . ?nomination rdfs:label ?nomLabel . FILTER(LANG(?nomLabel) = "en") . FILTER(CONTAINS(LCASE(?nomLabel), "emmy")) } . OPTIONAL { ?series wdt:P272 ?productionCompany . } . OPTIONAL { ?series wdt:P57 ?director . } . FILTER(BOUND(?award) || BOUND(?nomination)) } ORDER BY ASC(?imdbId) LIMIT 250

Which English-language TV shows released after 1970 have received or been nominated for an Emmy Award, and what are their IMDb IDs, directors, and production companies?

List TV series from after 1970 that have won or been nominated for an Emmy, including their IMDb IDs, English titles, directors, and production companies.

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


Question: Mexican cuisine dishes without images, ranked by number of associated Wikipedia articles, with Spanish labels.

PREFIX schema: <http://schema.org/>
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 ?dish ?label_es ( COUNT( DISTINCT ?media_item ) AS ?media_count ) WHERE {
  ?dish wdt:P31 wd:Q207965 .
  ?media_item schema:about ?dish .
  OPTIONAL {
    ?dish rdfs:label ?label_es .
    FILTER ( LANG( ?label_es ) = "es" )
  } MINUS {
    ?dish wdt:P18 []
  }
}
GROUP BY ?dish ?label_es
ORDER BY DESC ( ?media_count )
LIMIT 50

Which Mexican cuisine items have no images on Wikimedia Commons but are referenced in multiple Wikipedia pages, and what are their Spanish names?

Show me the top Mexican cuisine topics that lack images but have the most media links, prioritizing those with Spanish labels.

SELECT ?var1 ?var2 ( COUNT ( DISTINCT ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q207965> . ?var3 <http://schema.org/about> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "es" ) ) ) . } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var4 ) LIMIT 50


Question: What are some Italian dishes with their names in Italian?

SELECT ?dish ?dishLabel WHERE { ?dish wdt:P31 wd:Q192786 . ?dish rdfs:label ?dishLabel . FILTER (LANG(?dishLabel) = "it") }

Show me Italian food items and their Italian labels.

Which culinary traditions of Italy have Italian-language names?

SELECT ?var1 ?var2 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7213615> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . }


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

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

Check if the VIAF ID 306095517 is linked to any item in Wikidata.

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


Question: Political parties with their names and member counts

SELECT ?party ?memberCount ?partyLabel WHERE { ?party wdt:P31 wd:Q7278 . OPTIONAL { ?party wdt:P2124 ?memberCount . } ?party rdfs:label ?partyLabel . FILTER(LANG(?partyLabel) = "en") }

What are the names of all political parties in Wikidata, and how many members do they have?

Show me a list of all political parties in English, along with their membership numbers if available.

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


Question: List all presidents of Ethiopia with their terms, predecessors, and successors.

SELECT ?president ?presidentLabel ?startDate ?endDate ?predecessor ?successor WHERE { ?president wdt:P31 wd:Q5 . ?president p:P39 ?statement . ?statement ps:P39 wd:Q3409186 . OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P1365 ?predecessor . } OPTIONAL { ?statement pq:P1366 ?successor . } ?president rdfs:label ?presidentLabel . FILTER(LANG(?presidentLabel) = "en") } ORDER BY ASC(?startDate)

Who were the presidents of Ethiopia, when did they serve, and who came before and after them?

Show me the chronological sequence of Ethiopian presidents, including their start and end dates and their immediate 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/Q3409186> . 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: List all rivers in Wikidata.

SELECT ?river WHERE { ?river wdt:P31 wd:Q4022 }

What are all the rivers listed in Wikidata?

Show me all entities classified as rivers in Wikidata.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q47521> . } }


Question: List all individual dogs known in Wikidata, including those belonging to dog breeds or subclasses.

SELECT ?dog WHERE { ?dog (wdt:P31 / wdt:P279*) wd:Q144 .}

What are all the named and unnamed dogs that are either instances of "dog" or of a subclass of "dog"?

Show me all entities in Wikidata that represent individual dogs, whether directly classified as dogs or as members of a dog subclass.

SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q144> . }


Question: What foods have Spanish labels?

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31 ?subclass . ?subclass wdt:P279* wd:Q2095 . ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "es") }

Which edible items are labeled in Spanish in Wikidata?

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . }


Question: Which Wikidata items have Twitter usernames "Apple", "wikidata", "belett", or "ash_crow"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "Apple" "wikidata" "belett" "ash_crow"
  }
}

Who are the entities on Wikidata with the Twitter handles "Apple", "wikidata", "belett", and "ash_crow"?

List the Wikidata entities and their corresponding Twitter usernames for the handles "Apple", "wikidata", "belett", and "ash_crow".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Litlok" ) ( "belett" ) ( "Wikidata" ) ( "string1" ) ( "ash_crow" ) ( "string2" ) ( "wikidata" ) ( "adwords" ) ( "PoulpyWP" ) ( "nojhan" ) ( "maamyisa" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "Apple" ) } } ORDER BY ASC( ?var3 )


Question: Football clubs in Cologne, excluding the first four

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?club ?clubLabel WHERE {
  ?club wdt:P31 wd:Q476028 .
  ?club wdt:P131 wd:Q365 .
  ?club rdfs:label ?clubLabel .
  FILTER ( langMatches( lang( ?clubLabel ) , "en" ) )
}
OFFSET 4

What are the football clubs based in Cologne, starting from the fifth result?

List the football clubs in Cologne after the first four, showing their names.

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


Question: Politicians born after 1875 and their birth dates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?politician ?politicianLabel ?birthDate WHERE {
  ?politician wdt:P106 wd:Q82955 .
  ?politician wdt:P569 ?birthDate .
  FILTER(YEAR(?birthDate) > 1875)
}

Who are the politicians born after 1875, and when were they born?

List all politicians with their birth dates, filtering for those born after 1875.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var3 ( <http://www.wikidata.org/prop/P569> / <http://www.wikidata.org/prop/statement/value/P569> ) ?var4 . ?var4 <http://wikiba.se/ontology#timePrecision> "9"^^<http://www.w3.org/2001/XMLSchema#integer> . ?var4 <http://wikiba.se/ontology#timeValue> ?var2 . FILTER ( ( ( YEAR ( ?var2 ) > "1875"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: Welsh football players

SELECT DISTINCT ?player WHERE { ?player wdt:P31 wd:Q5 ; wdt:P106 wd:Q937857 ; wdt:P27 wd:Q25 . } LIMIT 1000

Who are the football players who are citizens of Wales?

List all humans who play association football and hold Welsh citizenship.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q25> . ?var1 <http://www.wikidata.org/prop/direct/P1532> <http://www.wikidata.org/entity/Q25> . } LIMIT 1000


Question: Indonesian food dishes that are subclasses of food

SELECT DISTINCT ?food ?foodLabel WHERE { ?food wdt:P279+ wd:Q2095 . ?food wdt:P495 wd:Q252 . ?food rdfs:label ?foodLabel . FILTER(LANG(?foodLabel) = "id" || LANG(?foodLabel) = "en") }

What are some traditional Indonesian foods based on their classification as food items?

List all Indonesian food items and their names in English and Indonesian.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> + <http://www.wikidata.org/entity/Q2095> . { { ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q252> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q252> . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "id". } }


Question: What are the books and chapters of the Tanakh in English?

SELECT ?item ?label WHERE { ?item wdt:P361+ wd:Q83367 . ?item rdfs:label ?label . FILTER(LANG(?label) = "en") }

List all parts of the Hebrew Bible, including its subcomponents like books and verses, with their English names.

Which English-named texts are part of the Tanakh, either directly or as parts of its parts?

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


Question: What are the names of all dog breeds listed in Wikidata?

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 ?breed ?breedLabel WHERE {
  ?breed wdt:P31 wd:Q39367 .
  ?breed rdfs:label ?breedLabel .
  FILTER ( LANG( ?breedLabel ) = "en" )
}

Can you list all dog breeds and their English labels from Wikidata?

Which entities in Wikidata are classified as dog breeds?

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


Question: Spanish-labeled food items containing "jamón"

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?label WHERE {
  ?item wdt:P31 wd:Q2095 .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "es")
  .
  FILTER(CONTAINS(LCASE(?label) , "jamón") || CONTAINS(LCASE(?label) , "jamon"))
}
ORDER BY DESC(?label)
LIMIT 50

What food items have Spanish labels that include the word "jamón"?

Show me food items whose Spanish name contains "jamón", sorted in descending order by label.

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


Question: What Spanish-labeled food items are part of which Spanish-labeled cuisines or food systems?

SELECT ?foodItem ?foodCategory ?categoryLabel ?foodLabel WHERE { ?foodItem (wdt:P31/wdt:P279*) wd:Q2095 . ?foodItem wdt:P361 ?foodCategory . ?foodCategory rdfs:label ?categoryLabel . ?foodItem rdfs:label ?foodLabel . FILTER (LANG(?categoryLabel) = "es") . FILTER (LANG(?foodLabel) = "es") . } ORDER BY ASC(?foodCategory) ASC(?foodItem) LIMIT 15000

Which foods in Spanish are components of specific cuisines or food categories, and what are those categories called in Spanish?

List food items and the culinary traditions they belong to, both in Spanish.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . ?var1 <http://www.wikidata.org/prop/direct/P361> + ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } ORDER BY ASC( ?var2 )ASC( ?var1 ) LIMIT 15000


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

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

Which river in Central Europe is identified by the Great Russian Encyclopedia Online ID 2289490, and what is its English description?

Show me the English name and description of the entity with Great Russian Encyclopedia Online ID 2289490.

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


Question: What are all the chapters in the Book of Psalms?

SELECT ?psalm WHERE { ?psalm wdt:P31 wd:Q29154515 ; wdt:P361 wd:Q41064 . }

Which individual Psalms are part of the Book of Psalms in the Bible?

List all the individual chapters of the Bible that belong to the Book of Psalms.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q29154515> ; <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q41064> . }


Question: What Wikipedia pages in English or German are about the movie with IMDb ID tt1375666?

SELECT ?item ?wikipedia_page WHERE { ?item wdt:P345 "tt1375666" . ?wikipedia_page schema:about ?item . { ?wikipedia_page schema:inLanguage "en" . } UNION { ?wikipedia_page schema:inLanguage "de" . } }

Which English or German-language Wikipedia pages discuss the film identified by IMDb ID tt1375666?

Show me all the English and German web pages related to the movie Inception (IMDb: tt1375666).

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


Question: Politicians and their dates of birth

SELECT ?politician ?politicianLabel ?dateOfBirth WHERE { ?politician wdt:P106 wd:Q82955 . ?politician wdt:P569 ?dateOfBirth . ?politician rdfs:label ?politicianLabel . FILTER(LANG(?politicianLabel) = "en") } LIMIT 100

Who are some politicians and when were they born?

List 100 politicians along with their birth dates.

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


Question: Who are the alumni of the University of Rennes?

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

People who studied at Université de Rennes 1.

List the names of individuals who attended the University of Rennes.

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


Question: What is the English label of the airport with IATA code ARM that is not a disambiguation page?

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 ?item ?label WHERE {
  ?item wdt:P238 "ARM" .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(NOT EXISTS {
    ?item wdt:P31 wd:Q4167410
  })
}

Which airport has the IATA code ARM and is not a disambiguation page, and what is its English name?

Show me the English name of the non-disambiguation Wikidata item that has the IATA code "ARM".

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "ARM"@en . } UNION { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "arm"@en . } UNION { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Arm"@en . } ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: Japanese labels and images of association football venues

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 ?venue ?venueLabel ?image WHERE {
  ?venue wdt:P31 wd:Q1154710 .
  ?venue wdt:P18 ?image .
  OPTIONAL {
    ?venue rdfs:label ?venueLabel .
    FILTER ( LANG( ?venueLabel ) = "ja" )
  }
}
LIMIT 100

What are the Japanese names and images of association football stadiums?

Show me association football venues with Japanese labels and their corresponding images from Wikimedia Commons.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16714657> . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ja" ) ) ) . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "ja" ) ) ) . } } LIMIT 100


Question: What are the geographic locations (city and country) associated with the Theatre of NOTE?

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 ?location ?locationLabel WHERE {
  wd:Q7777517 ( wdt:P30 | wdt:P17 | wdt:P131 ) ?location .
  ?location rdfs:label ?locationLabel .
  FILTER ( LANG( ?locationLabel ) = "en" )
}

In which city and country is the Theatre of NOTE located?

Show the administrative and national context of the Theatre of NOTE in English.

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


Question: What are the chapters and stories in the Book of Genesis?

SELECT ?part WHERE { ?part wdt:P361 wd:Q9184 .}

Which narratives or sections are part of the Book of Genesis?

List all the parts that constitute the Book of Genesis.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q9184> . }


Question: Players who played for AC Milan

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 ?playerLabel WHERE {
  ?player wdt:P54 wd:Q1543 .
  ?player rdfs:label ?playerLabel .
  FILTER(LANG(?playerLabel) = "en")
}

List all players who have been members of AC Milan.

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


Question: List of Knesset members with English names

SELECT ?person ?personLabel WHERE { ?person wdt:P39 wd:Q4047513 . OPTIONAL { ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") } }

Who are the members of the Knesset and what are their English names?

Please provide the names of all Knesset members in English.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q4047513> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2937> ?var5 . } }


Question: Official website, location country, and official language of Deutsche Botschaftsschule Peking

SELECT ?school ?website ?countryLabel ?languageLabel ?schoolLabel WHERE {
  BIND(wd:Q1202241 AS ?school)
  ?school wdt:P856 ?website .
  BIND(wd:Q148 AS ?country)
  ?country rdfs:label ?countryLabel .
  ?country wdt:P37 ?language .
  ?language rdfs:label ?languageLabel .
  ?school rdfs:label ?schoolLabel .
  FILTER(LANG(?schoolLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
  FILTER(LANG(?languageLabel) = "en")
  FILTER(STR(?languageLabel) = "Standard Chinese")
}

What is the official website of the German Embassy School in Beijing, and what is the official language of the country where it is located?

Please provide the official website of the Deutsche Botschaftsschule Peking, the name of the country it is located in, and the official language of that country.

SELECT ?var1 ?var2 ?var3Label ?var4Label ?var5Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2385804> . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 ; <http://www.wikidata.org/prop/direct/P17> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . ?var3 <http://www.wikidata.org/prop/direct/P37> ?var6 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q148> . FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q1202241> ) ) ) . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: What are the English and German Wikipedia articles about the movie with IMDb ID tt1375666?

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt1375666" . ?wikipedia_page schema:about ?movie . FILTER( STRSTARTS(STR(?wikipedia_page), "https://en.wikipedia.org/wiki/") || STRSTARTS(STR(?wikipedia_page), "https://de.wikipedia.org/wiki/") ) }

Show me the Wikipedia pages in English and German for the film "Inception".

Which Wikipedia articles in English or German discuss the movie identified by IMDb ID tt1375666?

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


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

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipedia_page ?imdb WHERE {
  ?item wdt:P345 "tt1375666" .
  ?wikipedia_page schema:about ?item .
  FILTER ( STRSTARTS( STR( ?wikipedia_page ) , "https://en.wikipedia.org/" ) || STRSTARTS( STR( ?wikipedia_page ) , "https://de.wikipedia.org/" ) ) .
  ?item wdt:P345 ?imdb .
}

Which Wikipedia articles in English and German are about the film identified by IMDb ID tt1375666?

Show me the IMDb ID and the English and German Wikipedia links for the movie tt1375666.

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


Question: American football players with Wikipedia pages and images on Wikimedia Commons.

SELECT ?player ?playerLabel ?image ?wikipediaPage WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P106 wd:Q19204627 . ?player wdt:P18 ?image . ?wikipediaPage schema:about ?player . ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> . ?player rdfs:label ?playerLabel . FILTER(LANG(?playerLabel) = "en") }

Who are the American football players that have a Wikipedia page and a publicly available image on Wikimedia Commons, along with their English names?

List the names, Wikimedia Commons images, and English Wikipedia links of all human American football players.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q19204627> . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1Label ?var2Label ?var1 ?var3 ?var4


Question: Humans who participated in events with "Olympic" in the title

SELECT ?humanLabel ?event ?eventTitle WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P1344 ?event . ?event wdt:P1476 ?eventTitle . ?human rdfs:label ?humanLabel . FILTER (LANG(?humanLabel) = "en") FILTER (REGEX(?eventTitle, "Olympic", "i")) } LIMIT 19

Which humans took part in events related to the Olympics?

Show me the names of people who participated in Olympic events and the titles of those events, in English.

SELECT ?var1 ?var2Label ?var3 ?var3Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P1344> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( REGEX ( ?var3Label , "string1" ) ) ) . } LIMIT 19


Question: Who are the members of the Knesset?

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 ?member ?memberLabel WHERE {
  ?member wdt:P39 wd:Q4047513 .
  ?member rdfs:label ?memberLabel .
  FILTER(LANG(?memberLabel) = "en")
}

Which individuals have served as members of the Israeli parliament?

List the English names of all people who have held the position of Knesset member.

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


Question: What are the country, administrative region, and continent where the Intimate Theatre is located?

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 ?location ?locationLabel WHERE {
  {
    wd:Q15228761(wdt:P17 | wdt:P131) ?location .
  } UNION {
    wd:Q15228761 wdt:P17 ?country .
    ?country wdt:P30 ?location .
  }
  ?location rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
}

Can you tell me the geographical hierarchy of the Intimate Theatre in London, including its country and continent?

Show me the location details of the Intimate Theatre — its administrative area, country, and continent.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q15228761> 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: Which football clubs have Twitter usernames "stokecity", "WBA", or "CPFC"?

SELECT ?team ?twitter WHERE { ?team wdt:P2002 ?twitter . VALUES ?twitter { "stokecity" "WBA" "CPFC" } } ORDER BY ASC (?team)

What are the Wikidata entities for the Twitter accounts @stokecity, @WBA, and @CPFC?

List the football teams associated with the Twitter handles stokecity, WBA, and CPFC.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "CPFC" ) ( "string2" ) ( "WBA" ) ( "string3" ) ( "string4" ) ( "stokecity" ) ( "string5" ) ( "losclive" ) ( "NBFootball" ) ( "papesouare" ) } } ORDER BY ASC( ?var3 )


Question: What are the administrative area, country, and continent where the Coliseum Theatre is located?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?administrativeEntity ?country ?continent WHERE {
  wd:Q31209196 wdt:P131 ?administrativeEntity ; wdt:P17 ?country .
  ?country wdt:P30 ?continent .
}

Where is the Coliseum Theatre situated in terms of its city, country, and continent?

Can you tell me the location hierarchy of the Coliseum Theatre, including the city, country, and continent?

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


Question: What are the birth and death dates of Miki Sawada?

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

Who is Miki Sawada, and when was she born and when did she die?

Can you provide the English name, date of birth, and date of death for the Japanese writer and social worker Miki Sawada?

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


Question: Airports in Australia with their coordinates and IATA codes.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?airport ?coordinates ?iataCode WHERE {
  ?airport wdt:P17 wd:Q408 .
  ?airport wdt:P2786 ?coordinates .
  OPTIONAL {
    ?airport wdt:P238 ?iataCode .
  }
}

What are the geographic coordinates and IATA codes of airports located in Australia?

List all aerodromes in Australia along with their reference points and IATA codes, if available.

SELECT ?var1 ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q408> . ?var1 <http://www.wikidata.org/prop/direct/P2786> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var3 . } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } }


Question: Birth dates of members of the 57th Parliament of the United Kingdom

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?personLabel ?birthDate WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q30524710 .
  ?person wdt:P569 ?birthDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}

Who were the members of the 57th Parliament of the United Kingdom and when were they born?

List the names and birth dates of all people who served as members of the 57th Parliament of the United Kingdom.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q30524710> . ?var3 <http://www.wikidata.org/prop/qualifier/P569> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: FC Barcelona players born after 1980, shorter than 170 cm, with birthplace coordinates.

SELECT ?player ?playerLabel ?height ?birthplaceLabel ?dob ?coords WHERE { ?player wdt:P54 wd:Q7156 . ?player wdt:P2048 ?height . ?player wdt:P19 ?birthplace . ?player wdt:P569 ?dob . ?birthplace wdt:P625 ?coords . ?player rdfs:label ?playerLabel . ?birthplace rdfs:label ?birthplaceLabel . FILTER ( YEAR(?dob) > 1980 ) FILTER ( ?height < 1.7 ) FILTER (lang(?playerLabel) = "en") FILTER (lang(?birthplaceLabel) = "en") } LIMIT 100

Who are the FC Barcelona players born after 1980 who are shorter than 1.7 meters, and where were they born?

List the names, heights, birthplaces, and birthplace coordinates of FC Barcelona players born after 1980 who are under 170 cm tall, in English.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P54> <http://www.wikidata.org/entity/Q7156> . ?var1 <http://www.wikidata.org/prop/direct/P2048> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var7 <http://www.wikidata.org/prop/direct/P625> ?var6 . FILTER ( ( ( YEAR ( ?var5 ) > "1980"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( ?var2 < "170"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "da,en". } } LIMIT 100


Question: What are some countries and their current heads of state?

SELECT DISTINCT ?country ?headOfState WHERE { ?country wdt:P35 ?headOfState . } LIMIT 10

List up to 10 countries along with the names of their heads of state.

Who are the heads of state for various countries according to Wikidata?

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/prop/direct/P35> ?var1 ?var2 . } LIMIT 10


Question: Female domestic cats with English names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?cat ?catLabel WHERE {
  ?cat wdt:P31 wd:Q146 ; wdt:P21 wd:Q43445 .
  ?cat rdfs:label ?catLabel .
  FILTER(LANG(?catLabel) = "en")
}

What are the names of female house cats in Wikidata?

List the English-labeled female domestic cats, identified as instances of house cats and female organisms.

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


Question: Families of sponges in the order Hadromerida

SELECT ?family ?familyLabel WHERE { ?family wdt:P105 wd:Q35409 . ?family wdt:P171 wd:Q1189104 . ?family rdfs:label ?familyLabel . FILTER(LANG(?familyLabel) = "en") }

What are the family-level taxonomic groups within the sponge order Hadromerida?

List all sponge families that belong to the order Hadromerida.

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


Question: What are the different types and examples of fishing?

SELECT ?item ?label WHERE { { ?item wdt:P31 wd:Q14373 . } UNION { ?item wdt:P279 wd:Q14373 . } ?item rdfs:label ?label . FILTER(LANG(?label) = "en") }

Can you list all the subclasses and instances of fishing?

Show me all known forms of fishing, such as fly fishing or net fishing, along with their names in English.

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


Question: Image of the entity with SNAC ARK ID w6f29nwg

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

What is the image associated with Barack Obama in the SNAC system?

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

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


Question: Image of the person with SNAC ARK ID w6f29nwg.

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

What is the image of Barack Obama as linked by his SNAC ARK ID?

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

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


Question: What are all the occupations and types of athletes?

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

What are the different kinds of athletes and specific athlete roles recognized in Wikidata?

List all entities that are either athletes or subclasses of athletes, along with their English labels.

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


Question: University teachers in Germany with official websites

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?website ?personLabel WHERE {
  ?person wdt:P39 wd:Q1622272 .
  ?person wdt:P27 wd:Q183 .
  OPTIONAL {
    ?person wdt:P856 ?website .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 1000

Who are the university teachers from Germany, and do they have official websites?

List all university teachers who are citizens of Germany, including their official websites if available, and show their English names.

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


Question: What categories does boat noodles belong to?

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

What are the broader culinary classes that include boat noodles?

Is boat noodles a type of Thai cuisine or noodle dish?

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


Question: Japanese-labeled works about ramen and the Japanese name for ramen.

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 ?ramenLabel ?item ?itemLabel WHERE {
  ?item wdt:P921 wd:Q234646 .
  wd:Q234646 rdfs:label ?ramenLabel .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?ramenLabel) = "ja")
  FILTER(LANG(?itemLabel) = "ja")
}
LIMIT 100

What Japanese-language items are about ramen, and what is ramen called in Japanese?

Show me Japanese labels for things that have ramen as their main subject, along with the Japanese name for ramen.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q234646> . ?var3 <http://www.wikidata.org/prop/direct/P407> ?var1 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ja" ) ) ) . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "ja" ) ) ) . } } LIMIT 100


Question: Image of the entity with SNAC ARK ID w6f29nwg

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

What is the image of Barack Obama as identified by the SNAC ARK ID w6f29nwg?

Show me the Wikimedia Commons image linked to the SNAC ARK ID w6f29nwg.

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


Question: What is the image of the person with SNAC ARK ID w6f29nwg?

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

Image of Barack Obama from SNAC ARK ID w6f29nwg

Show me the Wikimedia Commons image linked to the SNAC ARK ID w6f29nwg.

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


Question: List association football players born after 2000 with English names starting with 'Ker'.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P569 ?var2 . ?var1 wdt:P106 wd:Q937857 . OPTIONAL { ?var1 wdt:P570 ?var3 . } FILTER ( ?var2 > "2000-01-01"^^xsd:date ) ?var1 rdfs:label ?var1Label . FILTER ( LANG(?var1Label) = "en" ) FILTER ( STRSTARTS( LCASE(?var1Label), "ker" ) ) } LIMIT 10

Who are the human association football players born after January 1, 2000, whose names in English start with 'Ker'?

Show me the names, birth dates, and optionally death dates of football players born after 2000 whose English Wikipedia labels begin with 'Ker'.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . } FILTER ( ( ( ?var2 > "2000-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( STRSTARTS ( ?var4Label , "Ker" ) ) ) . FILTER ( ( ( LANG ( ?var5 ) = "en" ) && ( LANG ( ?var6 ) = "nl" ) ) ) . } LIMIT 10


Question: List of U.S. presidents who are human and have English labels.

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

Who are all the real people who have served as President of the United States?

Please provide the names of all U.S. presidents, ensuring only actual humans are included and their names are in English.

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


Question: Genera in the sponge family Corallistidae

SELECT ?genus ?genusLabel WHERE { ?genus wdt:P105 wd:Q34740 ; wdt:P171 wd:Q4117310 . ?genus rdfs:label ?genusLabel . FILTER(LANG(?genusLabel) = "en") }

What are the genera classified under the family Corallistidae?

List all sponge genera that belong to the family Corallistidae and have the taxonomic rank of genus.

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


Question: Male football players and their birth countries and cities

SELECT DISTINCT ?player ?birthCountry ?birthPlace WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P21 wd:Q6581097 . ?player wdt:P106 wd:Q937857 . ?player wdt:P19 ?birthPlace . ?birthPlace wdt:P17 ?birthCountry . } LIMIT 20000

Who are the male association football players, and where were they born (city and country)?

List all male professional football players along with the countries and cities of their birth.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1532> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 20000


Question: Who are Spanish football players who played for the Catalonia national team but do not have an official sporting nationality?

SELECT DISTINCT ?player WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P106 wd:Q937857 . ?player wdt:P27 wd:Q29 . ?player wdt:P54 wd:Q17228 . MINUS { ?player wdt:P1532 ?country } } LIMIT 300

Which human football players from Spain have played for the Catalonia national team without being officially associated with another country in sports?

List all Spanish citizens who have been members of the Catalonia national football team and have no declared sporting nationality.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q29> . ?var1 <http://www.wikidata.org/prop/direct/P54> <http://www.wikidata.org/entity/Q17228> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1532> _:b1 . } } LIMIT 300


Question: Image of Barack Obama from SNAC ARK ID w6f29nwg

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6f29nwg?

Show me the image of the person whose SNAC ARK ID is w6f29nwg.

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


Question: Female football players without Spanish descriptions

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?player WHERE {
  ?player wdt:P31 wd:Q5 .
  ?player wdt:P106 wd:Q937857 .
  ?player wdt:P21 wd:Q6581072 .
  OPTIONAL {
    ?player schema:description ?desc .
    FILTER ( LANG( ?desc ) = "es" )
  }
  FILTER ( ! BOUND( ?desc ) )
}
LIMIT 300

Which female football players do not have a description in Spanish on Wikidata?

List female association football players who lack a Spanish-language description.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q43445> . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . OPTIONAL { ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . } LIMIT 300


Question: Is Simone Ciburri a politician by type inheritance?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX hint: <http://www.bigdata.com/queryHints#>
ASK WHERE {
  wd:Q26997625(wdt:P31 / wdt:P279 *) wd:Q82955 .
  hint:Prior hint:gearing "forwards" .
}

Does the entity Q26997625 belong to a class that is a subclass of politician?

Check whether Simone Ciburri is classified as a politician through its type hierarchy.

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


Question: Alumni of Indian Institute of Technology Delhi

SELECT ?alumnus WHERE { ?alumnus wdt:P69 wd:Q1194650 .}

List all people who studied at IIT Delhi.

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


Question: Image of the person with SNAC ARK ID w6f29nwg.

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

What is the image of Barack Obama as linked in Wikidata via his SNAC ARK ID?

Show me the Wikimedia Commons image associated with the SNAC ARK ID w6f29nwg.

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


Question: Football players with ForaDeJogo ID and their teams, where name contains "Cristiano Ronaldo".

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?label ?team WHERE {
  ?player wdt:P3046 ?foradejogoId ; wdt:P54 ?team .
  ?player rdfs:label ?label .
  FILTER ( isLiteral( ?label ) ) FILTER ( lang( ?label ) = "en" ) FILTER ( contains( lcase( ?label ) , "cristiano ronaldo" ) )
}

Which football team is Cristiano Ronaldo associated with, according to his ForaDeJogo player ID?

Show me the English name and current or former team of the football player with the ForaDeJogo ID and whose name is Cristiano Ronaldo.

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3046> ?var3 ; <http://www.wikidata.org/prop/direct/P54> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( REGEX ( STR ( ?var1Label ) , "string1", "i" ) ) ) . }


Question: Movie theaters in India and their locations

SELECT DISTINCT ?theater ?theaterLabel ?adminAreaLabel WHERE { ?theater wdt:P31 wd:Q41253 . ?theater wdt:P17 wd:Q668 . OPTIONAL { ?theater wdt:P131 ?adminArea . ?adminArea rdfs:label ?adminAreaLabel . FILTER(LANG(?adminAreaLabel) = "en") } ?theater rdfs:label ?theaterLabel . FILTER(LANG(?theaterLabel) = "en") } LIMIT 200

What are the names of movie theaters in India, and in which cities or districts are they located?

List all movie theaters in India along with the administrative areas they are situated in, using English labels.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q668> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,cy,fr,de,es,nl,hy,ja,ru,ca". } } LIMIT 200


Question: Aerodromes in the United Kingdom with their coordinates

SELECT ?var3Label ?var2 WHERE { ?var3 ( p:P31 / ps:P31 / wdt:P279* ) wd:Q62447 . ?var3 wdt:P17 wd:Q145 . ?var3 rdfs:label ?var3Label . OPTIONAL { ?var3 wdt:P625 ?var2 . } FILTER(LANG(?var3Label) = "en") }

What are the names and locations of all aerodromes in the United Kingdom?

List the English names and geographic coordinates of all airfields and airports in the UK.

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


Question: Movie theaters in Argentina with their cities or provinces

SELECT DISTINCT ?theater ?theaterLabel ?adminAreaLabel WHERE { ?theater wdt:P31 wd:Q41253 . ?theater wdt:P17 wd:Q414 . OPTIONAL { ?theater wdt:P131 ?adminArea . ?adminArea rdfs:label ?adminAreaLabel . FILTER(LANG(?adminAreaLabel) = "en") } ?theater rdfs:label ?theaterLabel . FILTER(LANG(?theaterLabel) = "en") } LIMIT 500

What are the movie theaters in Argentina and in which cities or provinces are they located?

List all movie theaters in Argentina along with the administrative areas they are located in.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q414> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,cy,fr,de,es,nl,hy,ja,ru,ca". } } LIMIT 500


Question: Human football players with Spanish descriptions containing "Futbolista", including their gender and country.

SELECT DISTINCT ?player ?gender ?country ?description WHERE { ?player wdt:P31 wd:Q5 . ?player wdt:P106 wd:Q937857 . ?player wdt:P21 ?gender . ?player wdt:P27 ?country . ?player schema:description ?description . FILTER (LANG(?description) = "es") . FILTER (REGEX(?description, "Futbolista", "i")) } LIMIT 3

Who are some football players who are described as "Futbolista" in Spanish, and what are their gender and country of citizenship?

List up to three football players who have a Spanish-language Wikipedia description mentioning "Futbolista", along with their gender and country.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . OPTIONAL { ?var1 <http://schema.org/description> ?var4 . FILTER ( ( ( LANG ( ?var5 ) = "es" ) ) ) . FILTER ( ( REGEX ( ?var4 , "Futbolista" ) ) ) . } } LIMIT 3


Question: Railway stations with number of platform tracks grouped in fives and their coordinates.

SELECT ?station ?stationLabel ( FLOOR( ?tracks / 5 ) AS ?trackGroups ) ?coords WHERE { ?station wdt:P1103 ?tracks ; wdt:P625 ?coords . OPTIONAL { ?station skos:prefLabel ?stationLabel . FILTER(LANG(?stationLabel) = "en") } }

What are the railway stations, their English names, the number of platform tracks divided into groups of five, and their geographic coordinates?

Show me railway stations along with their English names, how many groups of five tracks they have, and their locations on Earth.

SELECT ?var1 ?var1Label ( FLOOR ( ( ?var2 /"5"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1103> ?var2 ; <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Who are the presidents of the United States?

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 ?person ?personLabel WHERE {
  ?person wdt:P39 wd:Q11696 .
  ?person rdfs:label ?personLabel
  FILTER ( LANG( ?personLabel ) = 'en' )
}

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

Which people have served as President of the United States?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2567845> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: What images are associated with Günther Schörner through his employers, birthplace, country, field of work, occupations, or gender?

SELECT DISTINCT ?image WHERE { wd:Q1561844 ?property ?entity . ?entity wdt:P18 ?image . FILTER (?entity != wd:Q5) . FILTER (?property IN (wdt:P108, wdt:P19, wdt:P27, wdt:P101, wdt:P106, wdt:P21)) . }

Show me all Wikimedia Commons images linked to Günther Schörner’s affiliations, origins, or categories, excluding portraits of people.

Retrieve images of places and concepts related to Günther Schörner, such as universities he worked at, his birthplace, and his academic fields.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q1561844> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q1561844> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1561844> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }