Question: List all second-level administrative divisions in South Korea with their English and Chinese 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 DISTINCT ?item ?enLabel ?zhLabel WHERE {
  ?item(wdt:P31 / wdt:P279 *) wd:Q13220204 .
  ?item wdt:P17 wd:Q884 .
  OPTIONAL {
    ?item rdfs:label ?enLabel .
    FILTER(LANG(?enLabel) = "en")
  }
  OPTIONAL {
    ?item rdfs:label ?zhLabel .
    FILTER(LANG(?zhLabel) = "zh")
  }
}

What are the English and Chinese labels for all second-level administrative divisions in South Korea?

Please provide a list of South Korea’s second-level administrative divisions, including their English and Chinese translations where available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q13220204> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q13220204> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q13220204> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q884> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var2 ) = "zh" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ko,zh,en". } }


Question: What entities are connected to Cristiano Ronaldo, and what properties link them?

SELECT ?entity ?entityLabel ?propertyItem ?propertyLabel WHERE { ?entity ?propertyItem wd:Q1054 . ?property wikibase:directClaim ?propertyItem . OPTIONAL { ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") } OPTIONAL { ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } } LIMIT 100

Show me all entities related to Cristiano Ronaldo along with the English labels of those relationships.

Which items mention Cristiano Ronaldo, and what kind of connections do they have with him?

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


Question: Did Philip Mechanicus serve as the mayor of Amsterdam?

Is it true that Philip Mechanicus held the office of mayor of Amsterdam?

Was Philip Mechanicus ever the mayor of Amsterdam?

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


Question: What are the names of rivers in French?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label WHERE {
  ?var1 wdt:P31 wd:Q4022 ; rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "fr")
}

Can you list all rivers that have a French-language name?

Which rivers are labeled in French on Wikidata?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4022> ; <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "fr" ) ) ) . FILTER ( ( REGEX ( ?var2 , "^rivière$" ) ) ) . }


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

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

Does the IMDb identifier nm1010600 exist in Wikidata?

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

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


Question: Female National Portrait Gallery sitters without images on Commons, with birth dates and English Wikipedia pages.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?npgId ?birthDate WHERE {
  ?person wdt:P1816 ?npgId .
  ?person wdt:P21 wd:Q6581072 . MINUS {
    ?person wdt:P18 ?image .
  }
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  ?enWpPage schema:about ?person ; schema:isPartOf <https://en.wikipedia.org/> .
}

Who are the women listed in the National Portrait Gallery (London) who don’t have images on Wikimedia Commons and have English Wikipedia articles?

List the names, NPG IDs, and birth dates of female sitters in the National Portrait Gallery (London) who lack images on Commons and have English Wikipedia pages.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1816> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P13> <http://www.wikidata.org/entity/Q6581072> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } ?var5 <http://schema.org/about> ?var1 . FILTER ( ( EXISTS { ?var6 <http://schema.org/about> ?var1 . ?var6 <http://schema.org/inLanguage> "en". } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: Who is the person with the IMDb ID nm0634445?

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

What is the name of the individual associated with IMDb identifier nm0634445?

Can you tell me who has the IMDb ID nm0634445?

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


Question: Movie with elCinema ID 2009221

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

Which movie has the elCinema film ID 2009221?

Tell me the movie that corresponds to the elCinema ID 2009221.

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


Question: French National Assembly members, their IDs, and places of birth

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?assemblyId ?birthPlace WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P39 wd:Q3044918 .
  ?person wdt:P4123 ?assemblyId .
  ?person wdt:P19 ?birthPlace .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the members of the French National Assembly, what are their official IDs, and where were they born?

List the names, French National Assembly IDs, and birthplaces of all members of the French National Assembly.

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/P39> <http://www.wikidata.org/prop/direct/Q3044918> . ?var1 <http://www.wikidata.org/prop/direct/P4123> ? ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . }


Question: People in the National Portrait Gallery (London) with known birth dates but no image on Wikimedia Commons.

SELECT ?person ?personLabel ?birthDate WHERE { ?person wdt:P1816 ?npgId ; wdt:P569 ?birthDate ; rdfs:label ?personLabel . MINUS { ?person wdt:P18 [] . } FILTER(LANG(?personLabel) = "en") }

Who are the individuals listed in the National Portrait Gallery (London) who have a recorded birth date but no image on Wikimedia Commons?

List the names and birth dates of people in the National Portrait Gallery (London) for whom no image is available on Wikimedia Commons.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1816> ?var3 ; <http://www.wikidata.org/prop/direct/P569> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What properties are associated with the electric multiple unit (EMU) on Wikidata?

SELECT DISTINCT ?property WHERE { wd:Q483373 ?property ?value .}

Which properties link the entity "electric multiple unit" to other values in Wikidata?

List all the properties used to describe the electric multiple unit (Q483373), including labels, descriptions, and external identifiers.

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q483373> ?var1 ?var2 . }


Question: What are the natural satellites in our solar system and which planets or bodies do they orbit?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?var1Label ?var2Label WHERE {
  ?var1 wdt:P31 wd:Q2537 .
  ?var1 p:P397 ?stmt .
  ?stmt ps:P397 ?var2 .
  ?var1 rdfs:label ?var1Label .
  ?var2 rdfs:label ?var2Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var2Label) = "en")
}

List the moons of the solar system along with their parent astronomical bodies.

Which celestial bodies orbit other astronomical objects in the solar system, and what are those parent bodies?

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


Question: What are all the categories that a road bridge is a subclass of?

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

What broader classes include road bridges in the Wikidata ontology?

Can you list the hierarchical parent classes of a road bridge, from general to specific?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q537127> <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: Who has the IMDb ID nm0871158?

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

Which person is identified by the IMDb identifier nm0871158?

Tell me the name of the person with IMDb ID nm0871158.

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


Question: Watercourses in France that are instances of subclasses of watercourse

SELECT ?watercourse ?label WHERE { ?watercourse (wdt:P31 / wdt:P279) wd:Q355304 ; wdt:P17 wd:Q142 . ?watercourse rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the water-related features in France that belong to a subclass of watercourse, such as canals or aqueducts?

List the names of all canals, aqueducts, and similar water features located in France.

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


Question: What entities and properties are linked to the University of Chile?

SELECT ?item ?property WHERE { ?item ?property wd:Q232141 .}

What kinds of relationships connect other items to the University of Chile?

Show me all the statements and references where the University of Chile is mentioned as the object.

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


Question: People educated at Tel Aviv University

SELECT ?person ?personLabel WHERE { ?person wdt:P69 wd:Q319239 . ?person wdt:P31 wd:Q5 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10

Who are the people that attended Tel Aviv University?

List the names of humans who studied at Tel Aviv University.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q319239> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he,en". } ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q185836> . } LIMIT 10


Question: Wikipedia category pages about fruit vegetables

SELECT ?wikipediaPage (strafter(str(?wikipediaPage), "https://") AS ?wikipediaPageTitle) WHERE { ?wikipediaPage schema:about wd:Q1470762 . FILTER(REGEX(str(?wikipediaPage), "^https://[a-z]+\\.wikipedia\\.org/")) } ORDER BY ?wikipediaPageTitle

Which Wikipedia pages are dedicated to the category of fruit vegetables?

List the Wikipedia category pages that cover fruit vegetables, showing their language and title.

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


Question: Does Anselm Schubert have a GND ID of 123515920?

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

Is there a person in Wikidata with the German National Library ID 123515920?

Verify if the GND identifier 123515920 corresponds to any entity in Wikidata.

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


Question: Universities with Japanese names and their Wikimedia Commons categories, sorted by number of categories.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?university ?labelJa(COUNT(?category) AS ?categoryCount) WHERE {
  ?university wdt:P31 wd:Q3918 .
  ?university wdt:P373 ?category .
  OPTIONAL {
    ?university rdfs:label ?labelJa .
    FILTER(LANG(?labelJa) = "ja")
  }
}
GROUP BY ?university ?labelJa
ORDER BY DESC(?categoryCount)
LIMIT 100

Which universities have Japanese-language labels and are associated with Wikimedia Commons categories, and how many categories do they have?

List the top 100 universities that have Commons categories, showing their Japanese labels if available, and count how many Commons categories each has.

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


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

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

Is there a person in Wikidata identified by the GND ID 1154651894?

Confirm if the German National Library ID 1154651894 is assigned to any entity in Wikidata.

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


Question: Is the GND ID "4075586-1" assigned to the concept of ecumenism in Wikidata?

Does Wikidata link the German National Library ID "4075586-1" to ecumenism?

Is there a Wikidata item for ecumenism with the GND identifier 4075586-1?

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


Question: Video games using the Build engine and their 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 ?game ?gameLabel ?engineLabel WHERE {
  ?game wdt:P31 wd:Q7889 .
  ?game wdt:P408 ?engine .
  ?game rdfs:label ?gameLabel .
  ?engine rdfs:label ?engineLabel .
  FILTER(LANG(?gameLabel) = "en")
  .
  FILTER(LANG(?engineLabel) = "en")
  .
}
LIMIT 10

What are some video games that use the Build engine, and what are their English titles?

Show me 10 video games along with the names of the software engines they use, in English.

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


Question: Michelin-listed entities that are not restaurants and their types

SELECT ?item ?itemLabel ?type ?typeLabel WHERE { ?item wdt:P4160 [] . OPTIONAL { ?item wdt:P31 ?type . } MINUS { ?item (wdt:P31/wdt:P279*) wd:Q11707 . } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") } } LIMIT 100

What entities have a Michelin Restaurants ID but are not classified as restaurants, and what are their types?

Show me non-restaurant entities with a Michelin Restaurants ID along with their classifications.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4160> [] . MINUS { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q11707> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } } LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


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

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

Is there a person in Wikidata identified by the IMDb ID nm3516556?

Confirm whether the IMDb identifier nm3516556 is registered in Wikidata.

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


Question: Does the IMDb ID nm0313421 exist in Wikidata?

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

Is there a Wikidata item associated with the IMDb identifier nm0313421?

Check if the person with IMDb ID nm0313421 is listed in Wikidata.

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


Question: What Wikidata item has the GND ID 4206779-0?

SELECT ?item WHERE { ?item wdt:P227 "4206779-0" . } LIMIT 1

Which entity in Wikidata is identified by the German National Library ID 4206779-0?

Find the Wikidata item for the GND ID 4206779-0.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4206779-0". } LIMIT 1


Question: What are the radii of all known planets and planetary bodies in the universe?

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

Can you list the names of planets and their radii, including exoplanets and dwarf planets?

Show me the radius in kilometers for every celestial body classified as a planet or a subclass of a planet.

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


Question: List all U.S. Secretaries of State with their terms in office, including their political party affiliations and dates.

SELECT ?person ?personLabel ?party_start ?party_end ?position_start ?position_end WHERE { ?person wdt:P31 wd:Q5 ; p:P39 ?position_statement ; p:P102 ?party_statement . ?position_statement ps:P39 wd:Q14213 . OPTIONAL { ?position_statement pq:P580 ?position_start . } OPTIONAL { ?position_statement pq:P582 ?position_end . } OPTIONAL { ?party_statement pq:P580 ?party_start . } OPTIONAL { ?party_statement pq:P582 ?party_end . } OPTIONAL { ?person wdt:P102 ?party . } OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } }

Who have been the U.S. Secretaries of State, and when did they serve? Do we know which political parties they belonged to and during what periods?

Please provide a list of all individuals who have held the position of United States Secretary of State, along with the start and end dates of their terms, and their political party memberships if available.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 ?var6 ?var7 ?var7Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/P39> ?var8 ; <http://www.wikidata.org/prop/P102> ?var9 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q14213> . FILTER ( ( ( ?var7 = <http://www.wikidata.org/entity/Q14213> ) ) ) . OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P39> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P102> ?var2 . } OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What film has the elFilm ID 124408?

SELECT ?film WHERE { ?film wdt:P3143 "124408" . }

Which movie on Wikidata is identified by the elFilm ID "124408"?

I need to find the Wikidata entry for the film with the elFilm identifier 124408.

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


Question: People who served as members of the French National Assembly and their term start dates.

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 p: <http://www.wikidata.org/prop/>
SELECT ?person ?personLabel ?start WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q3044918 .
  ?statement pq:P580 ?start .
  ?person rdfs:label ?personLabel .
}

Who are the individuals who held a seat in the French National Assembly, and when did their terms begin?

List all members of the French National Assembly along with the start dates of their terms.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q3044918> . ?var4 <http://www.wikidata.org/prop/direct/P580> ?var2 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/prop/novalue/P582> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Food items that are orange in color

SELECT ?item WHERE { ?item wdt:P31/wdt:P279* wd:Q2095 ; wdt:P462 wd:Q39338 . } LIMIT 100

What foods have an orange color?
List all food items that are orange.

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


Question: What is the type, location, and coordinates of Plaine du Gol?

SELECT DISTINCT ?instance ?instanceLabel ?location ?locationLabel ?coordinates ?pointInTime ?startTime ?inception ?dateOfBirth WHERE { wd:Q3391004 wdt:P31 ?instance . wd:Q3391004 wdt:P131 ?location . wd:Q3391004 wdt:P625 ?coordinates . OPTIONAL { wd:Q3391004 wdt:P585 ?pointInTime . } OPTIONAL { wd:Q3391004 wdt:P580 ?startTime . } OPTIONAL { wd:Q3391004 wdt:P571 ?inception . } OPTIONAL { wd:Q3391004 wdt:P569 ?dateOfBirth . } OPTIONAL { ?instance rdfs:label ?instanceLabel . FILTER(LANG(?instanceLabel) = "en") } OPTIONAL { ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") } }

Can you tell me the administrative region and geographic coordinates of the coastal plain known as Plaine du Gol?

Where is Plaine du Gol located, what kind of geographical feature is it, and what are its coordinates?

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


Question: Does Wikidata contain an entry with GND ID 134581520?

Is there a person in Wikidata whose German National Library ID is 134581520?

Confirm whether the GND ID 134581520 is assigned to any entity in Wikidata.

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


Question: Does the German National Library ID "4124411-4" exist in Wikidata?

Is there an entity in Wikidata associated with the GND ID 4124411-4?

What is the Wikidata item for the GND ID 4124411-4?

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


Question: Astronomical objects orbiting the Sun

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

Which minor solar system bodies have the Sun as their parent astronomical body?

List the English names of celestial objects that orbit the Sun.

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


Question: What are some yellow fruits?

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

List all fruits that are yellow in color, including both specific types and categories.

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


Question: Japanese names of fruits and their colors.

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 ?fruitLabel ?colorLabel WHERE {
  ?fruit wdt:P279 wd:Q3314483 .
  ?fruit rdfs:label ?fruitLabel .
  FILTER(LANG(?fruitLabel) = "ja")
  ?fruit wdt:P462 ?color .
  ?color rdfs:label ?colorLabel .
  FILTER(LANG(?colorLabel) = "ja")
}
LIMIT 100

What are the Japanese names of fruits and the colors they are associated with?

Show me a list of fruits in Japanese along with their corresponding colors in Japanese.

SELECT DISTINCT ?var1Label ?var2Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q3314483> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ja" ) ) ) . ?var3 <http://www.wikidata.org/prop/direct/P462> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "ja" ) ) ) . } LIMIT 100


Question: Is there a Wikidata item with GND ID 139076468?

Does the German National Library ID 139076468 correspond to any entity in Wikidata?

Check if the GND identifier 139076468 is registered in Wikidata.

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


Question: Current members of the 11th Tanzanian Parliament with their names, birth dates, official profile URLs, and reference URLs.

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?mp ?name ?birthYear ?profileUrl ?referenceUrl WHERE {
  ?mp p:P39 ?statement .
  ?statement ps:P39 wd:Q17599130 ; pq:P2937 wd:Q46952785 .
  FILTER ( NOT EXISTS {
    ?statement pq:P582 []
  }
  ) .
  ?mp rdfs:label ?name .
  FILTER ( LANG( ?name ) = "en" ) .
  OPTIONAL {
    ?mp wdt:P569 ?birthDate .
    BIND( SUBSTR( STR( ?birthDate ) , 1 , 10 ) AS ?birthYear )
  }
  OPTIONAL {
    ?mp wdt:P973 ?profileUrl .
  }
  OPTIONAL {
    ?statement prov:wasDerivedFrom [ pr:P854 ?referenceUrl ] .
  }
}

Who are the current members of the 11th Parliament of Tanzania, and what are their English names, birth dates, parliamentary profile links, and reference URLs?

List all currently serving MPs in Tanzania’s 11th Parliament, including their English names, birth years, official website links, and sources cited in Wikidata.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q17599130> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q46952785> . FILTER ( ( NOT EXISTS { ?var9 <http://www.wikidata.org/prop/qualifier/P582> [] . } ) ) . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P973> / <http://www.wikidata.org/prop/qualifier/P1810> ) ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var11 . } OPTIONAL { BIND ( SUBSTR ( STR ( ?var12 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P569> ?var12 . } OPTIONAL { ?var9 ( <http://www.wikidata.org/prop/qualifier/P4100> | <http://www.wikidata.org/prop/qualifier/P102> ) ?var13 . } OPTIONAL { ?var9 <http://www.wikidata.org/prop/qualifier/P768> ?var14 . } OPTIONAL { ?var9 <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P854> ?var8 ] . } BIND ( ?var8 AS ?var7 ). BIND ( COALESCE ( ?var10 , ?var15 ) AS ?var2 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var15 . FILTER ( ( ( LANG ( ?var15 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var14 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } }


Question: Lakes in Eswatini with their area, coordinates, and other physical dimensions

SELECT DISTINCT ?lake ?lakeLabel ?latitude ?longitude ?area ?areaUnit ?length ?lengthUnit ?width ?widthUnit ?watershedArea ?watershedAreaUnit ?perimeter ?perimeterUnit WHERE {  ?lake (wdt:P31/wdt:P279*) wd:Q23397 .  ?lake wdt:P17 wd:Q1050 .  OPTIONAL {    ?lake (p:P625/psv:P625) ?coord .    ?coord wikibase:geoLatitude ?latitude ;           wikibase:geoLongitude ?longitude .  }  OPTIONAL {    ?lake (p:P2046/psv:P2046) ?areaStmt .    ?areaStmt wikibase:quantityAmount ?area ;              wikibase:quantityUnit ?areaUnit .  }  OPTIONAL {    ?lake (p:P2043/psv:P2043) ?lengthStmt .    ?lengthStmt wikibase:quantityAmount ?length ;                wikibase:quantityUnit ?lengthUnit .  }  OPTIONAL {    ?lake (p:P2049/psv:P2049) ?widthStmt .    ?widthStmt wikibase:quantityAmount ?width ;               wikibase:quantityUnit ?widthUnit .  }  OPTIONAL {    ?lake (p:P2053/psv:P2053) ?watershedStmt .    ?watershedStmt wikibase:quantityAmount ?watershedArea ;                   wikibase:quantityUnit ?watershedAreaUnit .  }  OPTIONAL {    ?lake (p:P2547/psv:P2547) ?perimeterStmt .    ?perimeterStmt wikibase:quantityAmount ?perimeter ;                   wikibase:quantityUnit ?perimeterUnit .  }  OPTIONAL { ?lake rdfs:label ?lakeLabel . FILTER(LANG(?lakeLabel) = "en") } } ORDER BY DESC(?area)

What are the lakes in Eswatini, and what are their areas, coordinates, and sizes (length, width, watershed area, perimeter)?

List all lakes in Eswatini, including their geographic coordinates and measurable dimensions like area, length, width, watershed area, and perimeter, sorted by largest area first.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1050> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: What are the birth names of philosophers?

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 ?person ?personLabel ?birthName WHERE {
  ?person wdt:P106 wd:Q4964182 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = 'en' ) .
  OPTIONAL {
    ?person wdt:P1477 ?birthName
  }
}

Can you list philosophers along with their birth names, if available?

Which people who are philosophers have their full birth names recorded in Wikidata, and what are those names?

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


Question: List rolling stock of the London and South Western Railway with their fleet numbers and names.

SELECT ?var1 (SAMPLE(?label) AS ?var1Label) (GROUP_CONCAT(DISTINCT ?var2; separator="; ") AS ?var3) (GROUP_CONCAT(DISTINCT ?var4; separator="; ") AS ?var5) (GROUP_CONCAT(DISTINCT ?var6; separator="; ") AS ?var7) (GROUP_CONCAT(DISTINCT ?var8; separator="; ") AS ?var9) WHERE { ?var1 (wdt:P31/wdt:P279*) wd:Q1414135 . ?var1 p:P2802 ?var10 . ?var10 ps:P2802 ?var2 ; pq:P2378 wd:Q1130022 . OPTIONAL { ?var1 wdt:P580 ?var6 . } OPTIONAL { ?var1 wdt:P582 ?var8 . } OPTIONAL { ?var1 rdfs:label ?label . FILTER(LANG(?label) = "en") } OPTIONAL { ?var1 wdt:P2561 ?var4 . } } GROUP BY ?var1 ?var6 ?var8 ORDER BY ASC(?var1Label) ASC(?var6) ASC(?var2) ASC(?var8)

Which railway vehicles were operated by the London and South Western Railway, and what were their fleet numbers and alternative names?

Show me all the rolling stock assigned to the London and South Western Railway, including their registration numbers and known names, sorted alphabetically by name.

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( DISTINCT ?var2 ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4 ) AS ?var5 )( GROUP_CONCAT ( DISTINCT YEAR ( ?var6 ) ) AS ?var7 )( GROUP_CONCAT ( DISTINCT YEAR ( ?var8 ) ) AS ?var9 ) 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/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1414135> . { ?var1 <http://www.wikidata.org/prop/P2802> ?var10 . ?var10 <http://www.wikidata.org/prop/statement/P2802> ?var2 ; <http://www.wikidata.org/prop/qualifier/P2378> <http://www.wikidata.org/entity/Q1130022> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var4 . } } GROUP BY ?var1 ?var1Label ?var6 ORDER BY ASC( ?var1Label )ASC( ?var6 )ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) )ASC( ?var8 )


Question: What are the names of universities in Chile and the people who studied there?

SELECT ?universityLabel ?personLabel WHERE { ?university wdt:P31 wd:Q3918 . ?university wdt:P17 wd:Q298 . ?person wdt:P69 ?university . ?university rdfs:label ?universityLabel . ?person rdfs:label ?personLabel . FILTER(LANG(?universityLabel) = 'en') FILTER(LANG(?personLabel) = 'en') }

List Chilean universities along with their alumni whose names are available in English.

Who are the notable alumni of universities in Chile, and which universities did they attend?

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3918> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/p17> <http://www.wikidata.org/entity/Q298> . ?var4 <http://www.wikidata.org/prop/direct/P69> ?var3 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . }


Question: What are the superclasses of beer in English?

SELECT ?var1Label ?var2 ?var3Label WHERE { wd:Q44 rdfs:label ?var1Label . wd:Q44 schema:description ?var2 . ?var3 ^wdt:P279 wd:Q44 . FILTER(LANG(?var1Label) = "en") . FILTER(LANG(?var2) = "en") . ?var3 rdfs:label ?var3Label . FILTER(LANG(?var3Label) = "en") }

What is the label and description of beer, and what categories does it belong to as a subclass?

Show me the English name, description, and parent categories of beer.

SELECT ?var1Label ?var2 ?var3Label WHERE { <http://www.wikidata.org/entity/Q44> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/Q44> <http://schema.org/description> ?var2 . ?var3 ^ <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q44> . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Film with elFilm ID 408736

SELECT ?film WHERE { ?film wdt:P3143 "408736" . }

Which film is identified by the elFilm ID 408736?

Tell me the name of the movie that has the elFilm ID 408736.

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


Question: What film has the elCinema ID 2011379?

SELECT ?film WHERE { ?film wdt:P3135 "2011379" . }

Which movie on Wikidata is associated with the elCinema identifier 2011379?

Find the Wikidata item for the film identified as 2011379 in elCinema.

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


Question: Does the German National Library ID "5266582-3" exist in Wikidata?

Is there a Wikidata item associated with the GND ID 5266582-3?

Confirm that Leipziger Singakademie is represented in Wikidata using its GND ID 5266582-3.

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


Question: Labels in English, German, and French for Köln-Ehrenfeld station, along with its image, coordinates, and English Wikipedia page.

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

What are the English, German, and French names of Köln-Ehrenfeld station, and what is its image, location, and corresponding English Wikipedia article?

Please provide the multilingual labels (English, German, French) for Köln-Ehrenfeld station, its Wikimedia Commons image, geographic coordinates, and link to its English Wikipedia page.

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


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

SELECT ?person WHERE { ?person wdt:P69 wd:Q232141 .}

Can you list all the people who studied at the University of Chile?

Which individuals have the University of Chile as their alma mater?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3918> . ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q232141> . }


Question: People with the occupation of philosopher

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

Who are the people listed as philosophers on Wikidata?

List the names of all individuals whose occupation is philosopher, in English.

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


Question: Japanese names of botanical fruits and their kana readings

SELECT ?fruit ?label ?kana WHERE { ?fruit wdt:P279 wd:Q1364 . ?fruit rdfs:label ?label . OPTIONAL { ?fruit wdt:P1814 ?kana . } FILTER (LANG(?label) = "ja") } ORDER BY ASC(?label)

What are the Japanese names for subclasses of fruit in botany, and do they have kana readings?

List all botanical fruits with their Japanese labels, sorted alphabetically by label.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q1364> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1814> ?var3 . } FILTER ( ( ( LANG ( ?var2 ) = "ja" ) ) ) . } ORDER BY ASC( ?var1 )


Question: Does the German National Library ID 120108887 exist in Wikidata?

Is there a person in Wikidata with the GND ID 120108887?

Check if the entity with GND ID 120108887 is present in Wikidata.

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


Question: Persian-language labels of humans, skipping the first 3800 results, showing next 100.

SELECT DISTINCT ?label WHERE { ?person wdt:P31 ?class . ?class wdt:P279* wd:Q5 . ?person rdfs:label ?label . FILTER (LANG(?label) = "fa") } LIMIT 100 OFFSET 3800

What are the Persian names of humans starting from the 3801st entry in Wikidata?

List 100 Persian-language labels of humans, excluding the first 3800 entries.

SELECT DISTINCT ?var1 WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q215627> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "fa" ) ) ) . } } LIMIT 100 OFFSET 3800


Question: Which Twitter/X users have usernames 'envlh' or 'EFF', and how many Wikipedia and other Wikimedia site links do they have, sorted by least links first?

SELECT ?item ?username (COUNT(?page) AS ?sitelinks) WHERE { ?item wdt:P2002 ?username . VALUES ?username { "envlh" "EFF" } . ?page schema:about ?item . } GROUP BY ?item ?username ORDER BY ASC(?sitelinks)

Who are the entities on Wikidata with Twitter usernames 'envlh' or 'EFF', and how many sitelinks do they have, ordered from fewest to most?

List the Wikidata items for the Twitter usernames 'envlh' and 'EFF', along with their total number of sitelinks, sorted by the number of sitelinks in ascending order.

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


Question: Does the Wikidata item for Hans Pauer have the GND ID 11606059X?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q50316388 wdt:P227 "11606059X" .
}

Is Hans Pauer identified by GND ID 11606059X in Wikidata?

Verify that Hans Pauer’s GND ID in Wikidata is 11606059X.

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


Question: Does the entity with GND ID 142206415 exist in Wikidata?

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

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

Confirm whether Ragnar Bragason is linked to the GND ID 142206415 in Wikidata.

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


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

Is there a person or organization in Wikidata identified by the GND number 124615678?

Confirm whether the GND ID 124615678 is assigned to any entity in Wikidata.

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


Question: What are the largest lakes in Nepal, and what are their area, length, width, volume, watershed area, and perimeter?

SELECT DISTINCT ?lake ?latitude ?longitude ?area ?areaUnit ?length ?lengthUnit ?width ?widthUnit ?volume ?volumeUnit ?watershedArea ?watershedAreaUnit ?perimeter ?perimeterUnit WHERE {  ?lake (wdt:P31/wdt:P279*) wd:Q23397 .  ?lake wdt:P17 wd:Q837 .  OPTIONAL {    ?lake wdt:P625 ?coord .    BIND(geof:latitude(?coord) AS ?latitude)    BIND(geof:longitude(?coord) AS ?longitude)  }  OPTIONAL {    ?lake p:P2046/psv:P2046 ?areaNode .    ?areaNode wikibase:quantityAmount ?area ;              wikibase:quantityUnit ?areaUnit .  }  OPTIONAL {    ?lake p:P2043/psv:P2043 ?lengthNode .    ?lengthNode wikibase:quantityAmount ?length ;                wikibase:quantityUnit ?lengthUnit .  }  OPTIONAL {    ?lake p:P2049/psv:P2049 ?widthNode .    ?widthNode wikibase:quantityAmount ?width ;               wikibase:quantityUnit ?widthUnit .  }  OPTIONAL {    ?lake p:P2234/psv:P2234 ?volumeNode .    ?volumeNode wikibase:quantityAmount ?volume ;                wikibase:quantityUnit ?volumeUnit .  }  OPTIONAL {    ?lake p:P2053/psv:P2053 ?watershedNode .    ?watershedNode wikibase:quantityAmount ?watershedArea ;                   wikibase:quantityUnit ?watershedAreaUnit .  }  OPTIONAL {    ?lake p:P2547/psv:P2547 ?perimeterNode .    ?perimeterNode wikibase:quantityAmount ?perimeter ;                   wikibase:quantityUnit ?perimeterUnit .  }} ORDER BY DESC(?area)

List all lakes in Nepal along with their geographic coordinates and physical dimensions such as area, length, width, volume, and perimeter, sorted by area in descending order.

Provide a detailed overview of Nepal’s lakes including their size (area, volume, perimeter), location (latitude/longitude), and watershed area, ordered from largest to smallest by area.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q837> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: What are the names of all beers in their original languages?

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 ?beer ?label WHERE {
  ?beer wdt:P31 wd:Q44 .
  OPTIONAL {
    ?beer rdfs:label ?label .
  }
}

List all beers and their labels in any language.

Can you show me the labels for all beer items in Wikidata?

SELECT ?var1 ?var2 ?var3Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q44> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1705> ?var3Label . } }


Question: Who is the person with IMDb ID nm0877297?

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

Which Wikidata entity corresponds to the IMDb identifier nm0877297?

Find the person associated with the IMDb ID nm0877297.

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


Question: List all IBU biathlete IDs in Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?ibuId WHERE {
  ?biathlete wdt:P2459 ?ibuId .
}
GROUP BY ?ibuId

What are the unique IBU biathlete identifiers stored in Wikidata?

Can you provide a list of all IBU biathlete IDs from the International Biathlon Union's database as recorded in Wikidata?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P2459> ?var1 . } GROUP BY ?var1


Question: Films and their screenwriters

SELECT ?film ?screenwriter ?screenwriterLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P58 ?screenwriter . ?screenwriter rdfs:label ?screenwriterLabel . FILTER(LANG(?screenwriterLabel) = "en") } LIMIT 200

Who are the screenwriters of films listed on Wikidata?

List 200 films along with the names of the people who wrote their screenplays, in English.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 64000


Question: What film has the elCinema ID 2036143?

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

Which movie on Wikidata is associated with the elCinema film ID 2036143?

Find the Wikidata item for the film identified by elCinema ID 2036143.

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


Question: Films and their screenwriters in English

SELECT ?film ?screenwriter ?screenwriterLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P58 ?screenwriter . ?screenwriter rdfs:label ?screenwriterLabel . FILTER(LANG(?screenwriterLabel) = "en") } LIMIT 100

Who are the screenwriters of films listed on Wikidata?

Show me a list of films along with the names of their screenwriters, using English labels.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 59400


Question: What is the Japanese name of Nisho Gakusha University High School?

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

Can you tell me the Japanese label for the entity Q11371671?

How is Nisho Gakusha University High School written in Japanese?

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var2 <http://schema.org/about> <http://www.wikidata.org/entity/Q11371671> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "ja". FILTER ( ( ( SUBSTR ( STR ( ?var2 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } }


Question: List all active communes in the Nord department of France and their populations.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?commune ?communeLabel ?population WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P131 wd:Q12661 .
  ?commune wdt:P1082 ?population .
  FILTER ( NOT EXISTS {
    ?commune pq:P582 ?endTime
  }
  ) .
  ?commune rdfs:label ?communeLabel .
  FILTER ( LANG( ?communeLabel ) = "en" )
}

Which communes in the Nord department of France are still existing, and what are their populations?

Show me the names and population figures of all currently active communes located in the Nord department, excluding those that have been abolished.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q12661> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } ) ) . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Does Wikidata have an entry for the GND ID 1153717972?

Is there a Wikidata item for Davide Astori identified by the GND ID 1153717972?

Confirm whether the German National Library ID 1153717972 is linked to any entity in Wikidata.

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


Question: Does the German National Library ID "124768776" correspond to an entity in Wikidata?

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

Is there a person in Wikidata with the GND identifier 124768776?

Does Wikidata contain a record for the individual identified by the GND ID 124768776?

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


Question: What properties describe Lac des Nymphes, and what are their values?

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

List the English labels of properties and their values for the lake Lac des Nymphes.

Can you show me the direct attributes of Lac des Nymphes in Wikidata, including the property names and their English labels?

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


Question: Is Wojciech Paszkowski linked to the IMDb ID nm0665192 in Wikidata?

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

Does the Internet Movie Database identifier nm0665192 exist in Wikidata?

Can you confirm that the IMDb ID nm0665192 is associated with any entity in Wikidata?

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


Question: Is there a Wikidata entry for the person with IMDb ID nm1306583?

ASK WHERE { ?person wdt:P345 "nm1306583" . }

Does the IMDb identifier nm1306583 correspond to a known person in Wikidata?

Is László Sirkó listed in Wikidata with the IMDb ID nm1306583?

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


Question: Images of Hanka Bielicka, her death place (Warsaw), and the awards she received.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?image WHERE {
  {
    wd:Q428422 wdt:P18 ?image .
  } UNION {
    wd:Q428422 wdt:P20 / wdt:P18 ?image .
  } UNION {
    wd:Q428422 wdt:P166 / wdt:P18 ?image .
  }
}

What images are associated with the Polish actress Hanka Bielicka, including her portrait, the city where she died, and the medals she was awarded?

Show me all images related to Hanka Bielicka: her personal photo, pictures of Warsaw (where she died), and photos of the Polish state awards she received.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q428422> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q428422> !( <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 { <http://www.wikidata.org/entity/Q428422> (^ <http://www.wikidata.org/prop/direct/P50> /( <http://www.wikidata.org/prop/direct/P921> *| <http://www.wikidata.org/prop/direct/P50> )/ <http://www.wikidata.org/prop/direct/P18> ) ?var1 . } }


Question: List of deserts in the world with their English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?desert ?desertLabel WHERE {
  ?desert wdt:P31 wd:Q8514 .
  ?desert rdfs:label ?desertLabel .
  FILTER ( lang( ?desertLabel ) = "en" )
}

What are the names of all deserts in English?

Show me all known deserts and their English labels.

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/Q8514> . }


Question: Who is the person with the IMDb ID nm0259589?

SELECT ?person WHERE { ?person wdt:P345 "nm0259589" . }

Can you tell me who has the IMDb identifier nm0259589?

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


Question: Who is the person with IMDb ID nm0598400?

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

Which Wikidata entity corresponds to the IMDb identifier nm0598400?

Find the name of the person associated with the IMDb ID nm0598400 in English.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0598400". } ORDER BY ASC( ?var1 )


Question: What is the most general category that both a botanical garden and Cape Town belong to?

SELECT ?commonAncestor WHERE { wd:Q167346 wdt:P279* ?commonAncestor . wd:Q5465 wdt:P31 ?class . ?class wdt:P279* ?commonAncestor . FILTER NOT EXISTS { ?commonAncestor wdt:P279 ?furtherAncestor . } }

What is the highest-level class that includes both botanical gardens and the city of Cape Town?

What is the broadest concept that encompasses both a botanical garden and Cape Town in the Wikidata ontology?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q167346> ; <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/Q5465> ; <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: Tennis qualification events without competition class on Italian Wikipedia

SELECT ?event WHERE { ?event wdt:P31 wd:Q21170330 . MINUS { ?event wdt:P2094 [] . } ?wikipedia_page schema:about ?event ; schema:isPartOf <https://it.wikipedia.org/> . }

Which tennis qualification events are not classified under any competition class but have an Italian Wikipedia page?

List all tennis qualification events that lack a competition class designation but are documented on the Italian Wikipedia.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21170330> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2094> [] . } ?var2 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . }


Question: What is the name of the airport with the IATA code BRU?

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

Which airport is identified by the IATA code BRU?

Can you tell me the English label for the airport that has the IATA code BRU?

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


Question: Which athlete has the World Athletics ID 255577?

SELECT ?athlete ?athleteLabel WHERE { ?athlete wdt:P1146 "255577" . }

Who is the athlete associated with the IAAF ID 255577?

Find the Wikidata entity for the World Athletics athlete with ID '255577'.

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


Question: People who were members of the Nazi Party and their spouses.

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 ?spouse ?spouseLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P102 wd:Q7320 .
  ?person wdt:P26 ?spouse .
  ?person rdfs:label ?personLabel .
  ?spouse rdfs:label ?spouseLabel .
  FILTER ( LANG( ?personLabel ) = "en" || LANG( ?personLabel ) = "" ) .
  FILTER ( LANG( ?spouseLabel ) = "en" || LANG( ?spouseLabel ) = "" )
}

Who were the spouses of individuals who belonged to the Nazi Party?

List the names of all Nazi Party members and their spouses.

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


Question: Watercourses in Estonia without an EELIS code

SELECT ?watercourse ?watercourseLabel WHERE { ?watercourse (wdt:P31/wdt:P279*) wd:Q355304 . ?watercourse wdt:P17 wd:Q191 . FILTER NOT EXISTS { ?watercourse wdt:P4689 ?code . } ?watercourse rdfs:label ?watercourseLabel . FILTER(LANG(?watercourseLabel) = "en") } LIMIT 100

Which watercourses in Estonia are not registered in the Estonian Nature Information System (EELIS)?

List the English names of all streams and rivers in Estonia that do not have an entry in the EELIS environmental register.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "et,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q191> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P4689> ?var2 . } ) ) . } LIMIT 100


Question: What topics are included in the Swedish Wikipedia list of essential articles?

SELECT ?item WHERE { ?item wdt:P972 wd:Q5460604 }

Which concept is cataloged under the Swedish Wikipedia project "Articles that should exist on Wikipedia"?

Show me the items that are part of the Swedish Wikipedia’s recommended article list.

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


Question: Portuguese athletes in track and field and their World Athletics IDs

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 ?athleteLabel ?sportLabel ?athleteId WHERE {
  ?athlete wdt:P31 wd:Q5 .
  ?athlete wdt:P27 wd:Q45 .
  ?athlete(wdt:P641 / wdt:P279 *) wd:Q542 .
  OPTIONAL {
    ?athlete wdt:P641 ?sport .
    ?sport rdfs:label ?sportLabel .
    FILTER(LANG(?sportLabel) = "en")
  }
  OPTIONAL {
    ?athlete wdt:P1146 ?athleteId .
  }
  ?athlete rdfs:label ?athleteLabel .
  FILTER(LANG(?athleteLabel) = "en")
}
ORDER BY ASC(?athleteLabel)

Who are the Portuguese human athletes participating in athletics or its sub-sports, and what are their sports and World Athletics IDs?

List all Portuguese athletes who compete in athletics (including sub-disciplines like long jump or triathlon), along with their specific sport and World Athletics ID, sorted alphabetically by name.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q45> . ?var1 ( <http://www.wikidata.org/prop/direct/P641> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q542> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P641> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1146> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt,pt". } } ORDER BY ASC( ?var1Label )


Question: List viruses with their ICTV genome composition and Species Wiki pages.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?virus ?genomeComposition ?speciesWikiPage WHERE {
  ?virus p:P4628 [ ps:P4628 ?genomeComposition ] .
  ?speciesWikiPage schema:about ?virus ; schema:isPartOf <https://species.wikimedia.org/> .
}

What are the genome types of viruses according to ICTV, and what are their corresponding pages on Species Wiki?

Show me the Wikidata items for viruses, their ICTV virus genome composition classifications (e.g., ssRNA+, dsDNA), and the links to their pages on species.wikimedia.org.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P4628> [ <http://www.wikidata.org/prop/statement/P4628> ?var2 ] . ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://species.wikimedia.org/> . }


Question: What are the English and German Wikipedia pages for the movie or TV show with IMDb ID tt0053880?

SELECT ?item ?wikipedia_page WHERE { ?item wdt:P345 "tt0053880" . ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

Show me the Wikipedia articles in English and German about the item identified by IMDb ID tt0053880.

Which Wikipedia pages in English and German discuss the TV show with IMDb ID tt0053880?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0053880". } ?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: Does the IMDb ID nm0812350 exist in Wikidata?

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

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

Confirm if the IMDb ID nm0812350 is linked to any entity in Wikidata.

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


Question: Italian prime ministers and their birthplaces, including the province and region in Italian.

SELECT ?primeMinister ?primeMinisterLabel ?birthPlace ?birthPlaceLabel ?admin1 ?admin1Label ?admin2 ?admin2Label WHERE { ?primeMinister wdt:P39 wd:Q796897 . OPTIONAL { ?primeMinister rdfs:label ?primeMinisterLabel . FILTER (LANG(?primeMinisterLabel) = "it") } OPTIONAL { ?primeMinister wdt:P19 ?birthPlace . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER (LANG(?birthPlaceLabel) = "it") } OPTIONAL { ?birthPlace wdt:P131 ?admin1 . ?admin1 rdfs:label ?admin1Label . FILTER (LANG(?admin1Label) = "it") } OPTIONAL { ?admin1 wdt:P131 ?admin2 . ?admin2 rdfs:label ?admin2Label . FILTER (LANG(?admin2Label) = "it") } }

Who are the prime ministers of Italy, and where were they born, along with the administrative divisions (province and region) in Italian?

Show me the list of Italian prime ministers with their Italian-language labels, birthplaces in Italian, and the corresponding province and region names also in Italian.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q796897> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "it" ) ) ) . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var5 . FILTER ( ( ( LANG ( ?var6 ) = "it" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "it" ) ) ) . ?var5 <http://www.wikidata.org/prop/direct/P131> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . FILTER ( ( ( LANG ( ?var8 ) = "it" ) ) ) . } }


Question: List of Prime Ministers of Italy

SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5 ; wdt:P39 wd:Q796897 . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } } ORDER BY ?itemLabel

Show me the names of all people who have served as Prime Minister of Italy.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P301> <http://www.wikidata.org/entity/Q213928> . } LIMIT 20


Question: What are the ICAO codes and runway designations for all airports in Brazil?

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 ?airport ?airportLabel ?icaoCode ?runway WHERE {
  {
    SELECT ?airport(SAMPLE(?label) AS ?airportLabel) WHERE {
      ?airport wdt:P31 wd:Q1248784 .
      ?airport wdt:P17 wd:Q155 .
      ?airport rdfs:label ?label .
      FILTER(LANG(?label) IN("pt" , "en"))
    }
    GROUP BY ?airport
  }
  OPTIONAL {
    ?airport wdt:P239 ?icaoCode .
  }
  OPTIONAL {
    ?airport wdt:P529 ?runway .
  }
}

List Brazilian airports with their names, ICAO codes, and runway directions.

Show me the names, ICAO codes, and runway numbers of all airports located in Brazil.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q155> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P529> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P239> ?var2 . } }


Question: ICAO codes, runways, and coordinates of all airfields in Brazil

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 ?airfield ?airfieldLabel ?icaoCode ?runway ?coordinates WHERE {
  ?airfield wdt:P31 wd:Q62447 .
  ?airfield wdt:P17 wd:Q155 .
  OPTIONAL {
    ?airfield wdt:P239 ?icaoCode .
  }
  OPTIONAL {
    ?airfield wdt:P529 ?runway .
  }
  OPTIONAL {
    ?airfield wdt:P625 ?coordinates .
  }
  ?airfield rdfs:label ?airfieldLabel .
  FILTER(LANG(?airfieldLabel) = "en")
}

What are the names, ICAO codes, runway designations, and coordinates of airfields located in Brazil?

List all airfields in Brazil with their English names, ICAO airport codes, runway directions, and geographic coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q62447> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P239> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q155> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P529> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . } }


Question: What are the different types of beer styles listed in Wikidata?

SELECT ?beerStyle ?beerStyleLabel WHERE { ?beerStyle wdt:P31 wd:Q1998962 . ?beerStyle rdfs:label ?beerStyleLabel . FILTER(LANG(?beerStyleLabel) = 'en') }

Can you list the English names of all beer styles?

Show me the English labels of all items classified as beer styles.

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


Question: English label and description of beer

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

What is the English name and description of beer?

Show me the English label and description for the entity beer.

SELECT ?var1Label ?var2 ?var3Label WHERE { <http://www.wikidata.org/entity/Q44> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/Q44> <http://schema.org/description> ?var2 . OPTIONAL { <http://www.wikidata.org/entity/Q44> <http://www.wikidata.org/prop/direct/P31> * ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q44> <http://www.wikidata.org/prop/direct/P18> ?var4 . } FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What movie has the elCinema film ID 2025365?

SELECT ?movie WHERE { ?movie wdt:P3135 "2025365" . }

Which film in Wikidata is identified by the elCinema ID 2025365?

Find the movie in Wikidata that corresponds to the elCinema film ID 2025365.

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


Question: Offices that are parts of broader offices, both instances of office.

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 ?specificOffice ?broaderOffice WHERE {
  ?broaderOffice wdt:P527 ?specificOffice .
  ?specificOffice wdt:P31 wd:Q4164871 .
  ?broaderOffice wdt:P31 wd:Q4164871 .
  ?specificOffice rdfs:label ?specificLabel .
  ?broaderOffice rdfs:label ?broaderLabel .
  FILTER ( LANG( ?specificLabel ) = "en" ) FILTER ( LANG( ?broaderLabel ) = "en" )
}
ORDER BY ASC ( ?specificLabel )

Which specific offices are parts of broader offices, and both are classified as offices?

List specific offices (like Queen Consort of England) that are considered parts of more general offices (like Consort of England), where both are types of office.

SELECT ?var1 ?var2 WHERE { ?var1 ?var3 ?var4 . OPTIONAL { } ?var4 ?var5 ?var2 . ?var6 <http://wikiba.se/ontology#statementProperty> ?var5 . ?var6 <http://wikiba.se/ontology#claim> ?var3 . ?var4 <http://www.wikidata.org/prop/qualifier/P31> <http://www.wikidata.org/entity/Q4164871> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: What are the websites that describe human biblical figures?

SELECT ?biblicalCharacter ?biblicalCharacterLabel ?url WHERE {
  ?biblicalCharacter wdt:P31 wd:Q20643955 .
  ?biblicalCharacter wdt:P973 ?url .
}
LIMIT 10

Can you list some biblical characters and the web pages that describe them?

Which URLs are linked to human characters from the Bible in Wikidata?

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


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

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

Can you tell me the name and English description of the musical term identified as 3177133 in the Great Russian Encyclopedia?

Show me the English label and description for the semitone entry in the Great Russian Encyclopedia using its old ID 3177133.

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


Question: What are the German labels of properties used by Berlin Westhafen station, how many values each has, and what are those values in German?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q465972 ?property ?value . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propLabel . ?value rdfs:label ?valueLabel . FILTER(LANG(?propLabel) = "de") FILTER(LANG(?valueLabel) = "de") } GROUP BY ?property

Show me for each property of Berlin Westhafen station in German: its name, how many times it’s used, and the German names of its values.

List all properties of Berlin Westhafen station with their German labels, value counts, and the German labels of their values.

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


Question: Who are the Time Person of the Year recipients who are either popes or politicians?

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 ?person ?name ?country WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P166 wd:Q207826 ; wdt:P27 ?country ; rdfs:label ?name .
  FILTER(LANG(?name) = "en")
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  {
    ?person wdt:P39 wd:Q19546
  } UNION {
    ?person wdt:P106 wd:Q82955
  }
}

Which humans who received the Time Person of the Year award are either popes or politicians, and what countries are they citizens of?

List the names and countries of citizenship of all Time Person of the Year winners who are either popes or politicians.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P39> ?var5 ; <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q207826> ; <http://www.wikidata.org/prop/direct/P106> ?var6 ; <http://www.wikidata.org/prop/direct/P27> ?var7 ; <http://schema.org/description> ?var8 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var8 ) = "en" ) ) ) . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . VALUES ( ?var1 ?var6 ?var5 ) { ( UNDEF UNDEF <http://www.wikidata.org/entity/Q19546> ) ( UNDEF <http://www.wikidata.org/entity/Q82955> UNDEF ) } }


Question: What films, books, or other works are primarily about house cats, and what type of work are they?

SELECT DISTINCT ?var1 ?var1Label ?var2Label WHERE { ?var1 wdt:P921 wd:Q146 . ?var1 wdt:P31 ?var2 . ?var1 rdfs:label ?var1Label . ?var2 rdfs:label ?var2Label . FILTER(LANG(?var1Label) = "en") FILTER(LANG(?var2Label) = "en") } LIMIT 100

Can you list works that feature the house cat as their main subject and classify them by type, such as film or article?

Show me the titles and categories of creative works (like movies or articles) that have the domestic cat as their central theme.

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


Question: English label and description of the person with Great Russian Encyclopedia Online ID 2166275

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

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

Show me the English name and brief bio of the individual listed in the Great Russian Encyclopedia Online with ID 2166275.

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


Question: List railway stations in Italy with their coordinates and Italian Wikipedia pages.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?station ?coordinates ?wikipediaPage WHERE {
  ?station wdt:P31 wd:Q55488 .
  ?station wdt:P17 wd:Q38 .
  ?station wdt:P625 ?coordinates .
  ?wikipediaPage schema:about ?station .
  ?wikipediaPage schema:isPartOf <https://it.wikipedia.org/> .
}

What are the railway stations in Italy, their geographic coordinates, and their corresponding Italian Wikipedia articles?

Show me all railway stations located in Italy, including their GPS coordinates and links to their Italian Wikipedia pages.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q55488> . ?var1 ?var3 <http://www.wikidata.org/entity/Q38> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://it.wikipedia.org/> . }


Question: What are some examples of volcanic landforms 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 ?volcanicLandform ?volcanicLandformLabel WHERE {
  ?volcanicLandform wdt:P31 wd:Q29025902 .
  OPTIONAL {
    ?volcanicLandform rdfs:label ?volcanicLandformLabel .
    FILTER ( LANG( ?volcanicLandformLabel ) = 'en' )
  }
}

List the named volcanic landforms and their English labels.

Which entities are classified as volcanic landforms, and what are their names in English?

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


Question: Tennis events classified as sports competition or recurring sporting event with their labels.

SELECT ?event ?eventLabel ?type ?typeLabel WHERE { VALUES ?type { wd:Q18608583 wd:Q13406554 } ?event wdt:P641 wd:Q847 ; wdt:P31 ?type . ?event rdfs:label ?eventLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?eventLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

What are the tennis tournaments that are either sports competitions or recurring sporting events, and what are their types?

List all tennis events that are instances of sports competition or recurring sporting event, along with their English labels and type labels.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q11313106> ) ( <http://www.wikidata.org/entity/Q18608583> ) ( <http://www.wikidata.org/entity/Q13406554> ) } ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> ; <http://www.wikidata.org/prop/direct/P31> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List all Finnish MPs and individuals with a Finnish parliamentary ID who are not listed as members.

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 ?personLabel WHERE {
  {
    ?person wdt:P39 wd:Q17592486 .
  } UNION {
    FILTER NOT EXISTS {
      ?person wdt:P39 wd:Q17592486 .
    }
    ?person wdt:P2181 [] .
  }
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who are the people who either served in the Finnish Parliament or have an official ID in the Finnish Parliament database but are not recorded as members?

Provide a list of all individuals linked to the Finnish Parliament either by holding office or by having a parliamentary ID, excluding duplicates who are already listed as members.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q17592486> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2181> [] . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q17592486> . } ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fi". } }


Question: List rivers and streams in the Czech Republic with their source and mouth coordinates.

SELECT ?watercourse ?watercourseLabel ?sourceCoordinate ?mouthCoordinate WHERE { ?watercourse (wdt:P31/wdt:P279*) wd:Q355304 . ?watercourse wdt:P17 wd:Q213 . ?watercourse p:P625 ?sourceStmt . ?sourceStmt ps:P625 ?sourceCoordinate . ?sourceStmt pq:P518 wd:Q7376362 . ?watercourse p:P625 ?mouthStmt . ?mouthStmt ps:P625 ?mouthCoordinate . ?mouthStmt pq:P518 wd:Q1233637 . ?watercourse rdfs:label ?watercourseLabel . FILTER(LANG(?watercourseLabel) = "en") } LIMIT 1000

What are the source and mouth coordinates of watercourses in the Czech Republic?

Show me the English names, source locations, and mouth locations of all watercourses (including streams and tributaries) located in the Czech Republic.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . ?var1 <http://www.wikidata.org/prop/P625> _:b1 . _:b1 <http://www.wikidata.org/prop/statement/P625> ?var3 . _:b1 <http://www.wikidata.org/prop/qualifier/P518> <http://www.wikidata.org/entity/Q7376362> . ?var1 <http://www.wikidata.org/prop/P625> _:b2 . _:b2 <http://www.wikidata.org/prop/statement/P625> ?var4 . _:b2 <http://www.wikidata.org/prop/qualifier/P518> <http://www.wikidata.org/entity/Q1233637> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } } LIMIT 1000


Question: What are the scientific names and English labels of all species in the Panthera genus?

SELECT ?species ?scientificName ?label WHERE { ?species wdt:P171 wd:Q127960 . ?species wdt:P225 ?scientificName . ?species rdfs:label ?label . FILTER (LANG(?label) = "en") }

List the English names and Latin names of animals that are direct descendants of the Panthera genus.

Show me the species belonging to the Panthera genus along with their common English names and scientific names.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "" ) || LANGMATCHES ( LANG ( ?var1Label ) , "en" ) ) ) . } ?var3 <http://www.wikidata.org/prop/direct/P225> ?var4 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "" ) || LANGMATCHES ( LANG ( ?var3Label ) , "en" ) ) ) . } ?var3 <http://www.wikidata.org/prop/direct/P171> ?var1 . ?var3 ( <http://www.wikidata.org/prop/direct/P171> / <http://www.wikidata.org/prop/direct/P171> ) <http://www.wikidata.org/entity/Q127960> . }


Question: Labels and images of Malus pumila in English, French, German, and Italian

SELECT ?label ?image WHERE { wd:Q158657 rdfs:label ?label . FILTER(LANG(?label) IN ("en", "fr", "de", "it")) OPTIONAL { wd:Q158657 wdt:P18 ?image . } } ORDER BY ?label

What are the names and pictures of the domestic apple tree (Malus pumila) in English, French, German, and Italian?

Show me the common names and associated images of Malus pumila in four languages: English, French, German, and Italian.

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