Question: What are the birth and death dates of Lewis Meriam, the author of the Meriam Report?

SELECT ?authorLabel ?birthDate ?deathDate WHERE { wd:Q59528419 wdt:P31 wd:Q5 . wd:Q59528419 rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") . OPTIONAL { wd:Q59528419 wdt:P569 ?birthDate . } OPTIONAL { wd:Q59528419 wdt:P570 ?deathDate . } }

Who was the author of the Meriam Report, and when were they born and died?

Find the birth and death year of the person who wrote the 1928 Meriam Report on Native American conditions.

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


Question: Who are the people with the surname Niedra?

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 ?human ?humanLabel WHERE {
  ?human wdt:P31 wd:Q5 ; wdt:P734 wd:Q16347921 .
  ?human rdfs:label ?humanLabel .
}

Can you list all humans who have Niedra as their family name?

Which individuals are known by the last name Niedra?

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


Question: What are the birth and death dates of Granville Leveson-Gower, 3rd Earl Granville?

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

What is the full name, date of birth, and date of death of the British diplomat Granville Leveson-Gower, 3rd Earl Granville?

Can you provide the English label, birth date, and death date for the person with Wikidata ID Q1149862?

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


Question: What are the birth and death dates of George Barrington, 7th Viscount Barrington?

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

George Barrington, 7th Viscount Barrington — born when? died when?

Can you tell me the full name and lifespan (birth and death dates) of George Barrington, 7th Viscount Barrington?

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


Question: What is the date of birth of Patrick Baudry, and is he still alive?

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

Can you tell me Patrick Baudry’s full name, when he was born, and when he died?

Patrick Baudry: When was he born, and what is his status (living or deceased)?

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


Question: What properties are associated with the country that succeeded West Germany?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property WHERE {
  wd:Q183 ?property ?value .
}

Can you list all the data properties available for Germany, the successor state of West Germany?

What information is available about Germany, which replaced West Germany in 1990?

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


Question: What are the birth and death dates of Charles Williams Nash?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q358835 rdfs:label ?personLabel .
  wd:Q358835 wdt:P31 wd:Q5 .
  OPTIONAL {
    wd:Q358835 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q358835 wdt:P570 ?deathDate .
  }
  FILTER(LANG(?personLabel) = "en" || LANG(?personLabel) = "")
}

Can you tell me when Charles Williams Nash was born and when he died?

Provide the full name, date of birth, and date of death for the American businessman Charles Williams Nash.

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


Question: Cities named Paris with their population and country

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 ?place ?label ?population ?country WHERE {
  VALUES ?place {
    wd:Q90 wd:Q1018504 wd:Q118213226 wd:Q13107162 wd:Q2219239 wd:Q2220917 wd:Q3181341 wd:Q3305306 wd:Q538772 wd:Q576584 wd:Q6065229
  }
  ?place rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(STR(?label) = "Paris")
  .
  ?place wdt:P17 ?country .
  ?place wdt:P1082 ?population .
}
LIMIT 10

What are the populations and countries of places named Paris in English?

List all places called Paris, along with their population and the country they are in.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var1 ?var5Label "Paris"@en . ?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,en". } } LIMIT 10


Question: What are the birth and death dates of Henry Ringling North?

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

Can you tell me when Henry Ringling North was born and when he died?

Provide the full name and lifespan (birth and death dates) of Henry Ringling North.

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


Question: What are the birth and death dates of Fanny Crosby?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q257456 rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  OPTIONAL {
    wd:Q257456 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q257456 wdt:P570 ?deathDate .
  }
}

Can you tell me when Fanny Crosby was born and when she died?

Show me the full name, birth date, and death date of the 19th-century hymnwriter Fanny Crosby.

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


Question: What are the birth and death dates of Shorty Medlocke?

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

Can you tell me the English name, birth date, and death date of the American musician Shorty Medlocke?

Who is Shorty Medlocke, and when was he born and died?

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


Question: What are the birth and death dates of Sir Alexander Lauder, 4th Baronet?

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

Please provide the birth date and death date of Sir Alexander Lauder, 4th Baronet, along with his full name.

Sir Alexander Lauder, 4th Baronet — date of birth, date of death, full name

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


Question: What are the date of birth and date of death associated with the Rankin baronets?

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 ?var1Label ?var3 ?var4 WHERE {
  BIND( wd:Q7293278 AS ?var1 ) .
  OPTIONAL {
    ?var1 wdt:P569 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P570 ?var4 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANGMATCHES( LANG( ?var1Label ) , "en" ) )
}

Can you provide the birth and death dates for the Rankin baronetcy?

Show the label and any birth or death dates for the entity Rankin baronets.

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


Question: In which country is the Seville Cathedral located?

SELECT DISTINCT ?country ?countryLabel WHERE { wd:Q231606 wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }

Tell me the country where Seville Cathedral is.

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


Question: Humans with the surname Debatisse.

SELECT DISTINCT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5 ; wdt:P734 wd:Q98224689 . ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en" || LANG(?humanLabel) = "fr") }

Who are the people with the last name Debatisse?

List all humans whose family name is Debatisse, along with their names in English or French.

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


Question: List Brazilian historical heritage sites from the Infopatrimônio database with their coordinates, images, and cities.

SELECT ?heritageItem ?heritageLabel ?ipatrimonioId ?coordinates ?image ?administrativeEntity ?administrativeLabel WHERE { ?heritageItem wdt:P4372 ?ipatrimonioId . OPTIONAL { ?heritageItem wdt:P131 ?administrativeEntity . ?administrativeEntity rdfs:label ?administrativeLabel . FILTER(LANG(?administrativeLabel) = "pt") } OPTIONAL { ?heritageItem wdt:P625 ?coordinates . } OPTIONAL { ?heritageItem wdt:P18 ?image . } ?heritageItem rdfs:label ?heritageLabel . FILTER(LANG(?heritageLabel) = "pt") } LIMIT 1000

What are the Brazilian heritage assets registered in the Infopatrimônio system, and where are they located, including their coordinates and photos?

Show me all Brazilian historical monuments from the Infopatrimônio database, along with their Portuguese labels, geographic coordinates, associated images from Wikimedia Commons, and the cities they belong to.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,pt". } ?var1 <http://www.wikidata.org/prop/direct/P4372> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } } LIMIT 1000


Question: What is the Wikidata identifier for the person named Guy Verhofstadt in French?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Guy Verhofstadt" @fr . ?item wdt:P31 wd:Q5 . }

Find the human entity in Wikidata whose French label is "Guy Verhofstadt".

Who is the French-labeled person named Guy Verhofstadt that is classified as a human?

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


Question: Humans with the surname Grillet in French or English.

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

Who are the people with the last name Grillet, and what are their names in French or English?

List all humans whose family name is Grillet, along with their labels in French or English.

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


Question: Cities and landmarks in South America between latitudes -37 and 1 and longitudes -82 and -54, with their images and Wikimedia Commons categories.

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?address WHERE { ?item wdt:P625 ?coord . BIND(REPLACE(STR(?coord), "POINT\\(", "") AS ?temp1) BIND(REPLACE(?temp1, "\\)", "") AS ?lonLat) BIND(STRBEFORE(?lonLat, " ") AS ?lonStr) BIND(STRAFTER(?lonLat, " ") AS ?latStr) BIND(xsd:double(?lonStr) AS ?lon) BIND(xsd:double(?latStr) AS ?lat) FILTER(?lat >= -37 && ?lat <= 1 && ?lon >= -82 && ?lon <= -54) OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } OPTIONAL { ?item wdt:P969 ?address . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 3000

What are the cities and geographic features in South America located between 37°S and 1°N, and 82°W and 54°W, and what images and Commons categories are associated with them?

List English-named places in the South American region bounded by (-82, -37) and (-54, 1), along with their coordinates, images, Commons categories, and addresses if available.

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


Question: Humans with "Dumay" in their French name

SELECT DISTINCT ?person WHERE { ?person rdfs:label ?label . FILTER(LANG(?label) = "fr") FILTER(CONTAINS(LCASE(?label), "dumay")) ?person wdt:P31 wd:Q5 .}

Who are the French-speaking people with the surname Dumay?

List all humans whose French label includes the name Dumay.

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


Question: Walter McKinnon birth and death dates

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

When was Walter McKinnon born and when did he die?

What is Walter McKinnon’s full name, date of birth, and date of death?

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


Question: What are the coordinates of Edifício Prudência and the administrative areas it is located in?

SELECT ?buildingCoords ?adminAreaCoords WHERE { wd:Q10270252 wdt:P625 ?buildingCoords . OPTIONAL { wd:Q10270252 wdt:P131 ?adminArea . ?adminArea wdt:P625 ?adminAreaCoords . } }

Coordinates of Edifício Prudência and its administrative territorial entities

Show me the location of Edifício Prudência and the locations of the administrative regions it belongs to.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q10270252> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q10270252> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: Places in Lisbon with Portuguese Wikipedia pages and coordinates

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 wdt:P131/wdt:P131* wd:Q597 . ?var1 wdt:P625 ?var2 . ?var3 schema:about ?var1 . OPTIONAL { ?var1 wdt:P18 ?var4 . } OPTIONAL { ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } FILTER (STRSTARTS(STR(?var3), "https://pt.wikipedia.org/")) }

What are the locations in Lisbon that have articles on the Portuguese Wikipedia, along with their coordinates and images?

Show me all places located in Lisbon, including their geographic coordinates, English labels, Portuguese Wikipedia links, and any associated images.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q597> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var3 <http://schema.org/about> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( ( SUBSTR ( STR ( ?var3 ) ,"09"^^<http://www.w3.org/2001/XMLSchema#integer> ,"18"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) || ( SUBSTR ( STR ( ?var3 ) ,"09"^^<http://www.w3.org/2001/XMLSchema#integer> ,"17"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string2" ) ) ) . }


Question: What are the consolidated city-counties in the United States and which states are they located in?

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 ?cityCountyLabel ?stateLabel WHERE {
  ?cityCounty wdt:P31 wd:Q3301053 .
  ?cityCounty wdt:P131 ?state .
  ?cityCounty rdfs:label ?cityCountyLabel .
  ?state rdfs:label ?stateLabel .
  FILTER(LANG(?cityCountyLabel) = "en")
  FILTER(LANG(?stateLabel) = "en")
}

Can you list all the U.S. consolidated city-counties along with their corresponding states?

Which states contain consolidated city-counties, and what are their names?

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


Question: What are some pairs of civil parishes in Portugal that share a border, listed in one direction only to avoid duplicates?

SELECT ?place1 ?place1Label ?place2 ?place2Label WHERE { ?place1 (p:P47/ps:P47) ?place2 . ?place1 wdt:P17 wd:Q45 . MINUS { ?place2 (p:P47/ps:P47) ?place1 . } OPTIONAL { ?place1 rdfs:label ?place1Label . FILTER(LANG(?place1Label) = "en") } OPTIONAL { ?place2 rdfs:label ?place2Label . FILTER(LANG(?place2Label) = "en") } } LIMIT 500

List places in Portugal and the places they border, showing only one direction of each border relationship.

Which civil parishes in Portugal are adjacent to other civil parishes, and what are their names?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/P47> / <http://www.wikidata.org/prop/statement/P47> ) ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q45> . MINUS { ?var2 ( <http://www.wikidata.org/prop/P47> / <http://www.wikidata.org/prop/statement/P47> ) ?var1 . } } LIMIT 500 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: What are the birth and death dates of Alexander Ogston?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q4719783 rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  OPTIONAL {
    wd:Q4719783 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q4719783 wdt:P570 ?deathDate .
  }
}

Can you tell me when Alexander Ogston was born and when he died?

Show me the English name, birth date, and death date of the British surgeon Alexander Ogston.

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


Question: Buildings, cities, and churches in Portugal with their images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?label ?image WHERE {
  ?item wdt:P17 wd:Q45 .
  ?item wdt:P31 / wdt:P279 * ?instanceType .
  FILTER(?instanceType IN(wd:Q486972 , wd:Q515 , wd:Q1549591 , wd:Q131072 , wd:Q17304241))
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 100

What are the English-named places in Portugal, and which ones have images on Wikimedia Commons?

List entities such as cities, buildings, and churches located in Portugal, along with their English labels and available images.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q45> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Neighborhoods in Paranapiacaba, Brazil

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?neighborhood ?neighborhoodLabel WHERE {
  ?neighborhood wdt:P131 wd:Q15963338 .
  ?neighborhood wdt:P31 wd:Q19658107 .
  ?neighborhood rdfs:label ?neighborhoodLabel .
  FILTER ( LANG( ?neighborhoodLabel ) = "en" || LANG( ?neighborhoodLabel ) = "pt" )
}
LIMIT 100

What are the neighborhoods located in Paranapiacaba, Brazil?

List the names of all neighborhoods (bairros) in Paranapiacaba, including their labels in English or Portuguese.

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


Question: Polish cities with coat of arms images on Commons and Polish Wikipedia pages

SELECT ?item ?itemLabel ?coatOfArms ?polishPage WHERE {
  ?item wdt:P17 wd:Q36 .
  ?item wdt:P94 ?coatOfArms .
  ?polishPage schema:about ?item ;
         schema:inLanguage "pl" .
  FILTER(REGEX(STR(?coatOfArms), "COA|herb", "i"))
  OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }
}

Which entities in Poland have a coat of arms image containing "COA" or "herb" in its filename, along with a Polish-language Wikipedia page?

Show me the English names, coat of arms images, and Polish Wikipedia links for places in Poland that have a coat of arms file with "COA" or "herb" in the filename.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q36> . ?var1 <http://www.wikidata.org/prop/direct/P94> ?var2 . ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "pl". FILTER ( ( REGEX ( STR ( ?var3 ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } }


Question: Portuguese landmarks with images, Commons categories, and addresses

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?image ?commonsCategory ?address WHERE {
  ?item wdt:P17 wd:Q45 .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

What are some entities in Portugal that have images, Wikimedia Commons categories, and street addresses?

List English-labeled entities in Portugal along with their images, Commons categories, and addresses.

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


Question: Who are the people with the surname Galicher?

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

List all humans whose family name is Galicher.

Which individuals are known by the last name Galicher?

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


Question: What identifier properties are specifically used in Brazil?

SELECT ?property ?propertyLabel WHERE { ?property wdt:P17 wd:Q155 . ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = 'en') } LIMIT 100

Can you list the English-labeled properties in Wikidata that are associated with Brazil?

Show me the names of data fields in Wikidata that are tied to Brazil, such as national ID systems or databases.

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


Question: What are the war memorials commemorating World War II, their locations, and images?

SELECT ?memorial ?memorialLabel ?coordinates ?image WHERE { ?memorial wdt:P547 wd:Q362 ; wdt:P625 ?coordinates . OPTIONAL { ?memorial wdt:P18 ?image . } ?memorial rdfs:label ?memorialLabel . FILTER(LANG(?memorialLabel) = "en") }

Show me the English-named war memorials for World War II along with their geographic coordinates and photos if available.

Where are the World War II memorials located, and do they have associated images on Wikimedia Commons?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ?var4 <http://www.wikidata.org/entity/Q362> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, fr, de, pl". } }


Question: List Dutch water boards with a coat of arms image but no structured coat of arms item, along with their English labels and Dutch Wikipedia pages.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?coatOfArmsImage ?waterBoard ?label ?dutchWikipediaPage WHERE {
  ?waterBoard wdt:P31 wd:Q702081 .
  ?waterBoard wdt:P94 ?coatOfArmsImage .
  FILTER(NOT EXISTS {
    ?waterBoard wdt:P237 []
  })
  OPTIONAL {
    ?dutchWikipediaPage schema:about ?waterBoard ; schema:inLanguage "nl" .
  }
  OPTIONAL {
    ?waterBoard rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
}

Which water boards in the Netherlands have an image of their coat of arms on Wikimedia Commons but do not have a defined coat of arms in Wikidata, and what are their English names and Dutch Wikipedia links?

Show me the coat of arms images, English names, and Dutch Wikipedia links for all regional water authorities in the Netherlands that lack a formal coat of arms item in Wikidata.

SELECT ?var1 ?var2 ?var2Label ?var3 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q702081> . ?var2 <http://www.wikidata.org/prop/direct/P94> ?var1 . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P237> ?var4 . } ) ) . OPTIONAL { ?var3 <http://schema.org/about> ?var2 . ?var3 <http://schema.org/inLanguage> "nl". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl". } }


Question: French-labeled buildings with their coordinates, images, and elevations.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?building ?coordinates ?image ?label ?elevation WHERE {
  ?building wdt:P31 wd:Q41176 .
  OPTIONAL {
    ?building wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?building wdt:P18 ?image .
  }
  ?building rdfs:label ?label .
  FILTER ( LANG( ?label ) = "fr" ) .
  OPTIONAL {
    ?building wdt:P2044 ?elevation .
  }
}
LIMIT 20

What are the French names of buildings, along with their geographic coordinates, images from Wikimedia Commons, and elevations above sea level?

Show me up to 20 buildings in French, including their locations, pictures, and altitudes if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41176> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "fr" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2044> ?var5 . } } LIMIT 20


Question: Departments of Peru and their coordinates

SELECT ?department ?coordinate WHERE { ?department wdt:P31 wd:Q861184 ; wdt:P625 ?coordinate .}

What are the geographic coordinates of all departments in Peru?

List the departments of Peru along with their latitude and longitude.

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


Question: What is the image of the flag of Switzerland?

SELECT ?image WHERE { wd:Q39 wdt:P163 ?flag . ?flag wdt:P18 ?image . }

Show the Wikimedia Commons image files associated with the flags of Switzerland.

Which image files represent the national flag and civil ensign of Switzerland on Wikimedia Commons?

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


Question: Unclassified geolocated locations in Brazil with no instance, subclass, or part-of relationships.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P17 wd:Q155 .
  ?item wdt:P625 ?coord . MINUS {
    ?item wdt:P31 ?instance .
  } MINUS {
    ?item wdt:P279 ?subclass .
  } MINUS {
    ?item wdt:P361 ?partOf .
  } MINUS {
    ?item wdt:P131 ?admin .
  } MINUS {
    ?item wdt:P2959 ?duplicate .
  } MINUS {
    ?item wdt:P460 ?sameAs .
  } MINUS {
    ?item wdt:P1269 ?facet .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER(LANG(?itemLabel) = "pt")
  }
  OPTIONAL {
    ?item skos:prefLabel ?itemLabel .
    FILTER(LANG(?itemLabel) = "pt")
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER(LANG(?itemLabel) = "en")
  }
  OPTIONAL {
    ?item skos:prefLabel ?itemLabel .
    FILTER(LANG(?itemLabel) = "en")
  }
}
ORDER BY ASC(?itemLabel)
LIMIT 10000

What are the geographic locations in Brazil that are not classified as any type of entity in Wikidata but have coordinates?

List all unclassified places in Brazil that have coordinates and are not parts of other entities, subclasses, or duplicates.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt,de,en,fr,ms,ca". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q155> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var3 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var4 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var5 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2959> ?var6 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P460> ?var7 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1269> ?var8 . } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var9 . } ORDER BY ASC( ?var1Label ) LIMIT 10000


Question: What properties and values are associated with the Kings Arms pub in Hanwell, including the count and English labels of each value?

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

For the Kings Arms pub in Hanwell, what are the English labels of its properties, how many values does each have, and what are those values in English?

Show me all the properties of the Kings Arms pub in Hanwell, along with their English names, the number of values each property has, and the English labels of those values.

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


Question: What are the municipalities in Argentina, along with their coordinates, images, Commons categories, and addresses?

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 ?municipality ?municipalityLabel ?coord ?image ?commonsCategory ?address WHERE {
  ?municipality wdt:P31 wd:Q15284 .
  ?municipality wdt:P17 wd:Q414 .
  OPTIONAL {
    ?municipality wdt:P625 ?coord .
  }
  OPTIONAL {
    ?municipality wdt:P18 ?image .
  }
  OPTIONAL {
    ?municipality wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?municipality wdt:P969 ?address .
  }
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "en")
}
LIMIT 3000

Can you list all municipalities in Argentina and include their labels, geographic coordinates, images, Wikimedia Commons categories, and postal addresses if available?

Show me all administrative municipalities in Argentina with their labels and optional media and address information.

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


Question: What are all the classes and their superclasses that Gripsholm Castle belongs to in Wikidata?

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

What types and broader categories does Gripsholm Castle fall under according to Wikidata’s ontology?

List all the English-labeled classes (including parent classes) that Gripsholm Castle is an instance of or a subclass of.

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


Question: What are the towers located in France?

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 ?tower ?towerLabel WHERE {
  ?tower wdt:P31 wd:Q12518 .
  ?tower wdt:P17 wd:Q142 .
  ?tower rdfs:label ?towerLabel .
  FILTER(LANG(?towerLabel) = "en")
}

Can you list the English-named towers in France?

Which structures classified as towers are situated in France?

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


Question: How many municipalities are there in each province of Argentina?

SELECT ?provinceLabel (COUNT(?municipality) AS ?municipalityCount) WHERE { ?municipality wdt:P31 wd:Q15284 . ?municipality wdt:P17 wd:Q414 . ?municipality wdt:P131 ?province . ?province wdt:P17 wd:Q414 . ?province rdfs:label ?provinceLabel . FILTER(LANG(?provinceLabel) = "en") } GROUP BY ?provinceLabel

Can you list the administrative divisions in Argentina and the number of municipalities in each?

SELECT ?var1Label ( COUNT ( ?var1Label ) AS ?var2 ) WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,es". } ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15284> . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q414> . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q414> . } GROUP BY ?var1Label


Question: What are the English labels for the entity "palace"?

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

Can you show me how "palace" is labeled in English variants like en, en-gb, and en-ca?

What are the different English versions of the word "palace" in this knowledge base?

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


Question: What are the birth and death dates of Osborne Reynolds?

SELECT ?personLabel ?dob ?dod WHERE { BIND( wd:Q323267 AS ?person ) . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?dob . } OPTIONAL { ?person wdt:P570 ?dod . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = 'en') }

Can you tell me when Osborne Reynolds was born and when he died?

Who is Osborne Reynolds, and what are his dates of birth and death?

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


Question: Humans with the surname Thevenot or Thévenot

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 ?person ?label WHERE {
  ?person rdfs:label ?label .
  FILTER(LANG(?label) IN("fr" , "en"))
  .
  FILTER(REGEX(?label , "(?i)thévenot$|thevenot$"))
  .
  ?person wdt:P31 wd:Q5 .
}
ORDER BY ?label

Who are the people named Thevenot or Thévenot in Wikidata?

List all humans in Wikidata whose first or full name ends with "Thevenot" or "Thévenot" in English or French.

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


Question: What properties and values are associated with the castle Wilde Schneeburg in Oberried?

SELECT ?property ?propertyLabel ?value ?valueLabel WHERE { wd:Q206061 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . OPTIONAL { ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") } FILTER(LANG(?propertyLabel) = "en") }

Can you list the details known about the castle Wilde Schneeburg, Oberried, including its type, location, and identifiers?

Show me all the information available in Wikidata about the castle Wilde Schneeburg, Oberried, with labels in English.

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


Question: Mosques in Spain with their coordinates and images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?mosque ?coordinates ?image WHERE {
  ?mosque wdt:P31 / wdt:P279 * wd:Q32815 .
  ?mosque wdt:P17 wd:Q29 .
  ?mosque wdt:P625 ?coordinates .
  ?mosque wdt:P18 ?image .
}

What are the locations and images of all mosques in Spain, including subclasses of mosques?

Show me a list of mosques in Spain along with their geographic coordinates and corresponding images from Wikimedia Commons.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q32815> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q29> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . }


Question: What are the date of birth and date of death of John Horgan?

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

Can you tell me the full name, birth date, and death date of the Canadian politician John Horgan?

Who is John Horgan, and when was he born and when did he die?

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


Question: What are the broader categories that a memorial is a type of?

SELECT DISTINCT ?subclass WHERE { wd:Q5003624 wdt:P279* ?subclass . FILTER (?subclass != wd:Q5003624) } LIMIT 20

What classes is a memorial a subclass of, including indirect parent classes?

Can you list the hierarchical parent categories of a memorial in Wikidata?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q5003624> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: What are the key details about Balintore Castle, such as its location, architect, and architectural style?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ?propLabel ?value ?valueLabel WHERE {
  wd:Q4850964 ?prop ?value .
  FILTER ( STRSTARTS( STR( ?prop ) , "http://www.wikidata.org/prop/direct/" ) ) OPTIONAL {
    ?prop rdfs:label ?propLabel .
    FILTER ( LANG( ?propLabel ) = "en" )
  }
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER ( LANG( ?valueLabel ) = "en" )
  }
}
ORDER BY ?propLabel

List all properties and their values associated with Balintore Castle in Wikidata.

Can you show me what information is available about Balintore Castle, including its country, heritage status, and coordinates?

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


Question: List all current sovereign countries with their flag images.

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 ?state ?stateLabel ?flag WHERE {
  ?state wdt:P31 wd:Q3624078 .
  FILTER(NOT EXISTS {
    ?state wdt:P31 wd:Q3024240
  })
  ?state wdt:P41 ?flag .
  ?state rdfs:label ?stateLabel .
  FILTER(LANG(?stateLabel) = "en")
}
ORDER BY ASC(?stateLabel)

What are the English names and flag images of all existing sovereign states, excluding former countries?

Show me the names and flag pictures of all currently recognized nations, but not defunct ones, using English labels.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . ?var1 <http://www.wikidata.org/prop/direct/P41> ?var2 . 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 birth and death dates of William Home Lizars?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q1616131 rdfs:label ?personLabel .
  OPTIONAL {
    wd:Q1616131 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q1616131 wdt:P570 ?deathDate .
  }
  FILTER(LANG(?personLabel) = "en")
}

Can you tell me the full name, date of birth, and date of death of the Scottish painter William Home Lizars?

Show me the English label, birth date, and death date for the person with Wikidata ID Q1616131.

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


Question: Entities named after Mecklenburg Castle and the property used

SELECT ?item ?itemLabel ?propertyLabel WHERE { ?item wdt:P138 wd:Q318146 . ?item rdfs:label ?itemLabel . wd:P138 rdfs:label ?propertyLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?propertyLabel) = "en")} LIMIT 100

Which town is named after Mecklenburg Castle, and what is the property that expresses this relationship?

Show me the entity that is designated as Mecklenburg Castle and the name of the property linking them, in English.

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


Question: What are the birth and death dates of Archibald Stuart?

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

Can you tell me the full name, birth date, and death date of the American politician Archibald Stuart?

Show me the life span of Archibald Stuart, including his name, when he was born, and when he died.

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


Question: What properties and values are associated with Edzell Castle in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q2373236 ?property ?value .
}
ORDER BY ?property

Tell me about Edzell Castle — what information is available in Wikidata?

What is Edzell Castle linked to in Wikidata?

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


Question: Administrative regions of Brazil

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 ?region ?regionLabel WHERE {
  ?region wdt:P31 wd:Q4683593 .
  ?region rdfs:label ?regionLabel .
  FILTER(LANG(?regionLabel) = "pt")
}
ORDER BY ?regionLabel
LIMIT 100

What are the names of administrative regions in Brazil in Portuguese?

List the Portuguese names of all administrative regions in Brazil.

SELECT ?var1 ?var1Label WHERE { 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/P31> <http://www.wikidata.org/entity/Q4683593> . } LIMIT 100


Question: Countries with diplomatic relations to both France and Israel.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country WHERE {
  wd:Q142 wdt:P530 ?country .
  wd:Q801 wdt:P530 ?country .
}

Which countries maintain diplomatic relations with both France and Israel?

List all countries that have diplomatic ties with both France and Israel.

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/Q159694> ; <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/Q801> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: List countries with their English labels, flag images, and English Wikipedia links.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?country ?countryLabel ?image ?wikipediaPage WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
  OPTIONAL {
    ?country wdt:P18 ?image .
  }
  OPTIONAL {
    ?wikipediaPage schema:about ?country .
    ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> .
  }
}
LIMIT 50

What are the countries in the world, along with their official English names, flag images from Wikimedia Commons, and corresponding English Wikipedia pages?

Please provide a list of up to 50 countries, showing their English names, any available flag or map images, and links to their English Wikipedia articles.

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


Question: What are some images of archaeological sites?

SELECT DISTINCT ?image WHERE { ?work wdt:P921 ?site . ?site wdt:P31 wd:Q839954 . ?work wdt:P18 ?image . }

Can you show me images of places that are archaeological sites?

Show me pictures of ancient sites that are documented in Wikimedia Commons.

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


Question: What entities are connected to Dunbar Castle and what properties relate them?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?var1 ?var1Label ?var3 ?var3Label WHERE {
  ?var1 ?var3 wd:Q2969165 .
  FILTER ( STRSTARTS( STR( ?var1 ) , "http://www.wikidata.org/entity/Q" ) ) OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER ( LANG( ?var1Label ) = "en" )
  }
  OPTIONAL {
    ?var3 rdfs:label ?var3Label .
    FILTER ( LANG( ?var3Label ) = "en" )
  }
}
LIMIT 100

Which people, places, or works are associated with Dunbar Castle, and how are they connected?

Show me all Wikidata entities linked to Dunbar Castle, along with the English labels of the entities and the properties used to link them.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q2969165> . ?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: Heritage sites and monuments near coordinates -9, 53 in Ireland with images and administrative regions.

SELECT DISTINCT ?item ?itemLabel ?admin ?adminLabel ?image ?heritageId ?instance ?instanceLabel WHERE { ?item wdt:P625 ?coord . FILTER(geof:distance(?coord, "Point(-9 53)"^^geo:wktLiteral) < 1) OPTIONAL { ?item wdt:P131 ?admin . } OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item p:P1435 ?heritageStmt . ?heritageStmt ps:P1435 ?heritageId . } OPTIONAL { ?item p:P2186 ?heritageStmt . ?heritageStmt ps:P2186 ?heritageId . } OPTIONAL { ?item wdt:P31 ?instance . } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) = "en") } OPTIONAL { ?instance rdfs:label ?instanceLabel . FILTER(LANG(?instanceLabel) = "en") } } LIMIT 10

What monuments or cultural sites are located within 1 kilometer of latitude 53 and longitude -9, and what are their heritage designations, images, and administrative areas?

List all heritage-listed locations near Point(-9 53), including their labels, images, administrative divisions, and whether they are classified as natural regions, hills, or protected areas.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(-9 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(-9 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } { ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . } UNION { ?var1 <http://www.wikidata.org/prop/P2186> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } }


Question: German and French labels for ISO 3166-2 country subdivisions

SELECT ?subdivision ?label ?isoCode WHERE {
  ?subdivision wdt:P300 ?isoCode .
  ?subdivision rdfs:label ?label .
  FILTER (REGEX(LANG(?label), "de|fr"))
}

What are the German and French names of country subdivisions with their ISO 3166-2 codes?

List all country subdivisions with their ISO 3166-2 codes and their labels in German or French.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P300> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( REGEX ( LANG ( ?var2Label ) , "de|fr" ) ) ) . }


Question: Who are the people with the family name Talavera?

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

List all individuals whose last name is Talavera.

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


Question: Flag images of all sovereign states

SELECT ?flagImage WHERE { ?country wdt:P31 wd:Q3624078 . ?country wdt:P163 ?flag . ?flag wdt:P18 ?flagImage . } LIMIT 16

What are the images of the flags of countries?

Show me the Wikimedia Commons image links for the national flags of all countries.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . ?var2 <http://www.wikidata.org/prop/direct/P163> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var1 . } LIMIT 16


Question: Buildings with images and geographic coordinates

SELECT ?building ?buildingLabel ?latitude ?longitude ?image WHERE { ?building wdt:P18 ?image . ?building p:P625 ?coordinateStatement . ?coordinateStatement psv:P625 ?coordinateValue . ?coordinateValue wikibase:geoLatitude ?latitude ; wikibase:geoLongitude ?longitude . ?building rdfs:label ?buildingLabel FILTER(LANG(?buildingLabel) = 'en') } LIMIT 1

What is a building that has an image on Wikimedia Commons and known geographic coordinates?

Show me one building that has both a photo and its latitude and longitude.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { { SELECT ?var1 ?var5 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . ?var1 <http://www.wikidata.org/prop/P625> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/value/P625> ?var7 . ?var7 <http://wikiba.se/ontology#geoLatitude> ?var3 . ?var7 <http://wikiba.se/ontology#geoLongitude> ?var4 . } OFFSET 1025 LIMIT 1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } }


Question: What are the different height measurements of the Eiffel Tower and their units?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?amount ?unit WHERE {
  wd:Q243 p:P2048 ?statement .
  ?statement psv:P2048 ?valueNode .
  ?valueNode wikibase:quantityAmount ?amount .
  ?valueNode wikibase:quantityUnit ?unit .
}

How tall is the Eiffel Tower according to its recorded height values in Wikidata, and in what units?

Can you list all the height values (in meters) of the Eiffel Tower and specify what each measurement refers to?

SELECT DISTINCT * WHERE { <http://www.wikidata.org/entity/Q243> <http://www.wikidata.org/prop/P2048> ?var1 . ?var1 <http://wikiba.se/ontology#quantityAmount> ?var2 . ?var1 <http://wikiba.se/ontology#quantityUnit> ?var3 . } LIMIT 5


Question: Who are the people with the surname "de Salins"?

SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P734 wd:Q105496624 . ?person wdt:P31 wd:Q5 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en")}

List all humans whose family name is de Salins.

Can you name the individuals known by the last name de Salins?

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


Question: What are the birth and death dates of Joseph Kirkland?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q3389103 rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  OPTIONAL {
    wd:Q3389103 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q3389103 wdt:P570 ?deathDate .
  }
}

When was Joseph Kirkland born and when did he die?

Can you tell me the lifespan of Joseph Kirkland, including his birth and death dates?

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


Question: What type of place is Plaça Major, and what city and island is it located in, along with their types?

SELECT ?placeTypeLabel ?cityTypeLabel ?city ?cityLabel ?islandTypeLabel ?island ?islandLabel WHERE { wd:Q9060903 wdt:P31 ?placeType . wd:Q9060903 wdt:P131 ?city . ?city wdt:P31 ?cityType . ?city wdt:P131 ?island . ?island wdt:P31 ?islandType . ?placeType rdfs:label ?placeTypeLabel . ?cityType rdfs:label ?cityTypeLabel . ?city rdfs:label ?cityLabel . ?island rdfs:label ?islandLabel . ?islandType rdfs:label ?islandTypeLabel . FILTER(LANG(?placeTypeLabel) = "en") FILTER(LANG(?cityTypeLabel) = "en") FILTER(LANG(?cityLabel) = "en") FILTER(LANG(?islandLabel) = "en") FILTER(LANG(?islandTypeLabel) = "en") }

Show the administrative hierarchy of Plaça Major: its category, the city it belongs to (and the city’s category), and the island that city is part of (and the island’s category).

Is Plaça Major a plaza mayor? Which city and island is it part of, and what are the types of those locations?

SELECT DISTINCT ?var1Label ?var2Label ?var3 ?var3Label ?var4Label ?var5 ?var5Label WHERE { BIND ( <http://www.wikidata.org/entity/Q9060903> AS ?var6 ). ?var6 <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var6 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List all humans with the surname Benini.

SELECT DISTINCT ?person WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P734 wd:Q21493508 . }

Who are the people with the last name Benini?

Show me all individuals in Wikidata who have Benini as their family name and are classified as human.

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


Question: People with the surname Spielvogel

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

Who are the people with the last name Spielvogel?

List all humans who have Spielvogel as their family name.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> "spielvogel"@fr . }


Question: Most common property used to classify single-family detached homes in Wikidata

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

What property is most often used to indicate that something is a single-family detached home?

Show me the property that is most frequently used to classify entities as single-family detached homes.

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


Question: Public spaces or works with images and Catalan Wikipedia pages

SELECT ?item ?itemLabel ?coord ?image ?wikipediaPage WHERE { ?item wdt:P18 ?image . ?item wdt:P625 ?coord . FILTER ( EXISTS { ?item (wdt:P31/wdt:P279*) wd:Q386724 } || EXISTS { ?item (wdt:P31/wdt:P279*) wd:Q294440 } ) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") . OPTIONAL { ?wikipediaPage schema:about ?item ; schema:inLanguage "ca" ; schema:isPartOf <https://ca.wikipedia.org/> . } } LIMIT 10

What are some public spaces or creative works that have images and a Catalan Wikipedia page?

Show me up to 10 examples of public spaces or works that have an image and a Catalan Wikipedia page, along with their coordinates and English names.

SELECT ?var1 ?var2Label ( ?var3 AS ?var4 ) ?var5 ?var6 ?var7 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var5 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(3 42)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "2". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca,es,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . } FILTER ( ( EXISTS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q386724> . } || EXISTS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q294440> . } ) ) . OPTIONAL { ?var7 <http://schema.org/about> ?var1 . ?var7 <http://schema.org/inLanguage> "ca". ?var7 <http://schema.org/isPartOf> <https://ca.wikipedia.org/> . } }


Question: What are the administrative and geographical locations associated with the Building of Credit Society in Mogilev?

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

Which country, region, city, and continent does the Building of Credit Society belong to?

Show me the full location hierarchy of the Building of Credit Society, from city up to continent.

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


Question: What countries and cities is the Mandarim Building located in?

SELECT DISTINCT ?location WHERE { wd:Q10270241 (wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501) ?location .}

Which administrative and geographic entities are directly associated with the Mandarim Building in São Paulo?

Show me the direct location hierarchy of the Mandarim Building, including country and city.

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


Question: Who are the humans with the French name 'Charles de Gaulle'?

SELECT DISTINCT ?var1 WHERE { ?var1 rdfs:label "Charles de Gaulle"@fr . ?var1 wdt:P31 wd:Q5 . }

Which people named Charles de Gaulle in French are humans?

List all human individuals whose French label is 'Charles de Gaulle'.

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


Question: What are the names and locations of monuments in India?

SELECT ?monumentLabel ?coordinates WHERE { ?monument (wdt:P31/wdt:P279*) wd:Q4989906 . ?monument wdt:P17 wd:Q668 . ?monument wdt:P625 ?coordinates . ?monument rdfs:label ?monumentLabel . FILTER(LANG(?monumentLabel) = "en") } LIMIT 100

Can you list English-named monuments in India along with their geographic coordinates?

Show me the coordinates of all monuments and their subtypes located in India, along with their English labels.

SELECT ?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/Q4989906> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q668> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 100


Question: What items are related to the Catalan language, and what are their Catalan Wikipedia pages?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?property ?wikipediaPage WHERE {
  VALUES ?property {
    wdt:P407 wdt:P1412 wdt:P2936
  }
  ?item ?property wd:Q7026 .
  ?wikipediaPage schema:about ?item ; schema:inLanguage "ca" ; schema:isPartOf <https://ca.wikipedia.org/> .
}

Show me all Wikipedia pages in Catalan for things that are in the Catalan language.

Which entities use Catalan as a language, and where can I find their Catalan Wikipedia articles?

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P1647> * <http://www.wikidata.org/entity/P2439> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . ?var1 ?var3 <http://www.wikidata.org/entity/Q7026> . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "ca". ?var4 <http://schema.org/isPartOf> <https://ca.wikipedia.org/> . }


Question: List Brazilian municipalities and their states in Portuguese.

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 ?municipality ?municipalityLabel ?stateLabel WHERE {
  ?municipality wdt:P31 wd:Q3184121 .
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "pt")
  .
  OPTIONAL {
    ?municipality wdt:P131 ?state .
    ?state wdt:P31 wd:Q485258 .
    ?state rdfs:label ?stateLabel .
    FILTER(LANG(?stateLabel) = "pt")
    .
  }
}
LIMIT 100

What are the names of municipalities in Brazil and the states they belong to, in Portuguese?

Please provide a list of Brazilian municipalities with their corresponding state names, using Portuguese labels.

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


Question: What properties describe the 2016 South Australian blackout in English?

SELECT ?prop ?propLabel ?description WHERE { VALUES ?prop { wd:P31 wd:P17 wd:P131 wd:P585 wd:P31279 } ?prop a wikibase:Property . ?prop rdfs:label ?propLabel . ?prop schema:description ?description . FILTER (LANG(?propLabel) = "en") FILTER (LANG(?description) = "en") } LIMIT 100

Can you list the English labels and descriptions of properties used in statements about the 2016 South Australian blackout?

Which properties are associated with the 2016 South Australian blackout, and what are their English definitions?

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


Question: What country is known as "França" in Portuguese and has an English Wikipedia page?

SELECT DISTINCT ?country WHERE { ?country rdfs:label "França"@pt ; wdt:P31 wd:Q6256 . ?wikipediaPage schema:about ?country ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . }

Which country's Portuguese name is "França" and is covered in the English Wikipedia?

Find the country with the Portuguese label "França" that also has an English-language Wikipedia article.

SELECT DISTINCT ?var1 WHERE { ?var1 ?var2Label "França"@en ; ?var2Label "França"@pt . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What types is Ghana an instance of?

SELECT ?type WHERE { wd:Q117 wdt:P31 ?type .}

What classes does Ghana belong to in Wikidata?

Show me all the categories that Ghana is classified under as an instance, such as country or sovereign state.

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


Question: What country is Poble Espanyol located in?

SELECT ?country ?countryLabel WHERE { wd:Q1062480 wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }

Which country contains the architectural site Poble Espanyol?

Tell me the English name of the country where Poble Espanyol is located.

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


Question: What is the Russian label and description of the "instance of" property in Wikidata?

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

How is the concept of "university" classified in Russian in Wikidata?

In Russian, what does the property that links universities to their type say?

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


Question: Historic houses with their construction dates and English names.

SELECT ?var1 ?var1Label ?inceptionDate WHERE { ?var1 wdt:P31 wd:Q5773747 . ?var1 wdt:P571 ?inceptionDate . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") FILTER(isLiteral(?inceptionDate)) } LIMIT 10

What are some historic houses, when were they built, and what are their English names?

List historic houses along with their inception years and English labels.

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


Question: Cultural heritage sites with images in the Brenner Pass region (11°E–12°E, 47°N)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?coordinates ?heritage ?heritageLabel WHERE {
  ?item wdt:P625 ?coordinates .
  BIND(STRBEFORE(STRAFTER(STR(?coordinates) , "POINT(") , " ") AS ?lonStr)
  BIND(STRAFTER(STR(?coordinates) , " ") AS ?latStrRaw)
  BIND(STRBEFORE(?latStrRaw , ")") AS ?latStr)
  BIND(xsd:double(?lonStr) AS ?lon)
  BIND(xsd:double(?latStr) AS ?lat)
  FILTER(?lon >= 11 && ?lon <= 12)
  FILTER(?lat >= 46.99 && ?lat <= 47.01)
  OPTIONAL {
    ?item wdt:P131 ?admin .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item p:P1435 ?heritageStmt .
  ?heritageStmt ps:P1435 ?heritage .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER(LANG(?itemLabel) = "en")
  }
  OPTIONAL {
    ?admin rdfs:label ?adminLabel .
    FILTER(LANG(?adminLabel) = "en")
  }
  OPTIONAL {
    ?heritage rdfs:label ?heritageLabel .
    FILTER(LANG(?heritageLabel) = "en")
  }
}

What are the heritage-designated locations with images and their administrative regions between longitude 11° and 12°, and latitude 47°N?

List cultural heritage sites in southern Tyrol and South Tyrol along the 47th parallel north, including their labels, administrative areas, images, and heritage status.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(11 47)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(12 47)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Items that are instances of the same type or subclasses as the savanna biome.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  wd:Q42320 wdt:P31 ?type .
  ?item ( wdt:P31 / wdt:P279 * ) ?type .
}
LIMIT 600

What ecosystems are classified as the same type or a subclass of the savanna?

Show me all entities that belong to the category or subcategories of the savanna biome.

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q42320> <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var2 . } LIMIT 600


Question: What is the name of the skyscraper with the most floors above ground?

SELECT ?buildingLabel WHERE { ?building wdt:P31 wd:Q11303 . ?building wdt:P1101 ?floors . ?building rdfs:label ?buildingLabel . FILTER(LANG(?buildingLabel) = "en") } ORDER BY DESC(?floors) LIMIT 1

Which building has the highest number of stories among all skyscrapers?

Tell me the label of the tallest skyscraper by floor count.

SELECT ?var1Label ?var2 WHERE { SELECT ?var1Label ( MAX ( ?var3 ) AS ?var2 ) 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/Q11303> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1101> ?var3 . } } GROUP BY ?var1Label }


Question: Who are the people with the surname Chrust?

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

Which humans have the family name Chrust?

List all individuals whose last name is Chrust.

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


Question: List of architectural landmarks in Wikidata.

SELECT ?landmark ?landmarkLabel WHERE { ?landmark wdt:P31 wd:Q2319498 . ?landmark rdfs:label ?landmarkLabel . FILTER(LANG(?landmarkLabel) = "en") }

What are some examples of architectural landmarks?

Show me the English names of all buildings and structures classified as architectural landmarks.

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


Question: List all geographic locations with coordinates rounded to the nearest arcminute.

SELECT ?item WHERE { ?item p:P625/psv:P625 ?coord . ?coord wikibase:geoLongitude ?lon . ?coord wikibase:geoLatitude ?lat . FILTER ( ?lat = ROUND(?lat * 60) / 60 ) FILTER ( ?lon = ROUND(?lon * 60) / 60 ) }

Which places on Earth have coordinates that are precise only to the nearest minute of latitude and longitude?

Show me all Wikidata items representing geographic features whose latitude and longitude are exact multiples of 1/60th of a degree (i.e., no seconds or fractional minutes).

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var4 . ?var4 <http://wikiba.se/ontology#geoLongitude> ?var5 . ?var4 <http://wikiba.se/ontology#geoLatitude> ?var6 . FILTER ( ( ( ?var6 = ( ROUND ( ( ?var6 *"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) /"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) ) . FILTER ( ( ( ?var5 = ( ROUND ( ( ?var5 *"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) /"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) ) . }


Question: Who are the people with the surname Gateau?

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

List all humans who have the last name Gateau.

Which individuals are known by the family name Gateau?

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


Question: Monuments with their types and coordinates in English.

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 ?monument ?monumentLabel ?type ?typeLabel ?coordinate WHERE {
  ?monument wdt:P31 wd:Q4989906 .
  ?monument wdt:P31 ?type .
  ?monument wdt:P625 ?coordinate .
  ?monument rdfs:label ?monumentLabel .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?monumentLabel ) = "en" ) FILTER ( LANG( ?typeLabel ) = "en" )
}

What are the English-labeled monuments, their specific types (like statue or sculpture), and their geographic coordinates?

List monuments that are instances of 'monument' along with their English names, their more specific types (e.g., statue), and their coordinates.

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


Question: Monuments with geographic coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?monument WHERE {
  ?monument wdt:P31 wd:Q4989906 .
  ?monument wdt:P625 ?coordinate .
}
LIMIT 10000

Which monuments have known geographic coordinates?

List all monuments that are located at specific coordinates.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4989906> . ?var1 <http://www.wikidata.org/prop/statement/value/P625> ?var3 . } LIMIT 10000


Question: What are the different language titles of the Wikimedia list page for National Register of Historic Places in Hudson County, New Jersey, and what type of page is it?

SELECT ?pageTitle ?instanceType WHERE { wd:Q6976348 wdt:P31 ?instanceType ; rdfs:label ?pageTitle .}

What is the classification and multilingual title of the Wikipedia list page about historic places in Hudson County, New Jersey?

Show me the labels and type of the Wikidata item for the list of historic places in Hudson County, New Jersey.

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


Question: Top 100 most used URL templates in Wikidata and the entities that use them.

SELECT ?formatterUrl ?formatterUrlLabel ?count (GROUP_CONCAT(DISTINCT STRAFTER(STR(?entity), "/entity/"); SEPARATOR=", ") AS ?entityIds) (GROUP_CONCAT(DISTINCT ?entityLabel; SEPARATOR=", ") AS ?entityLabels) WHERE { { SELECT ?formatterUrl (COUNT(DISTINCT ?entity) AS ?count) WHERE { ?entity wdt:P1630 ?formatterUrl . } GROUP BY ?formatterUrl HAVING (?count > 1) ORDER BY DESC(?count) LIMIT 100 } ?entity wdt:P1630 ?formatterUrl . OPTIONAL { ?formatterUrl rdfs:label ?formatterUrlLabel . FILTER(LANG(?formatterUrlLabel) = "en") } OPTIONAL { ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") } } GROUP BY ?formatterUrl ?formatterUrlLabel ?count ORDER BY DESC(?count)

Which URL format strings are used by more than one Wikidata item, and which items use each one?

Show me the most popular identifier templates in Wikidata, how many items use each, and list the items and their labels.

SELECT ?var1 ( SAMPLE ( ?var1Label ) AS ?var1Label )( SAMPLE ( ?var2 ) AS ?var2 )( GROUP_CONCAT ( DISTINCT STRAFTER ( STR ( ?var3 ) , "/entity/" ) ; SEPARATOR = ", " ) AS ?var4 )( GROUP_CONCAT ( DISTINCT ?var3Label ; SEPARATOR = ", " ) AS ?var5 ) WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var3 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P1630> ?var1 . } GROUP BY ?var1 HAVING ( ( ?var2 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var2 ) LIMIT 100 } ?var3 <http://www.wikidata.org/prop/direct/P1630> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } GROUP BY ?var1 ORDER BY DESC( ?var2 )


Question: How many items in Wikidata are associated with any type of identifier?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( ?item ) AS ?count ) WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q853614 .
}

What is the total number of entities in Wikidata that are either identifiers or subclasses of identifiers?

Count all items in Wikidata that have an instance-of or subclass-of relationship to the identifier class (Q853614).

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