Question: What landmarks and places in southeast England have images and Commons categories on Wikimedia?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?coord .
  BIND( STRAFTER( STR( ?coord ) , "POINT(" ) AS ?coordWithoutPrefix ) .
  BIND( STRBEFORE( ?coordWithoutPrefix , " " ) AS ?lonStr ) .
  BIND( STRBEFORE( STRAFTER( ?coordWithoutPrefix , " " ) , ")" ) AS ?latStr ) .
  BIND( xsd:double ( ?lonStr ) AS ?lon ) .
  BIND( xsd:double ( ?latStr ) AS ?lat ) .
  FILTER ( ?lon >= -1 && ?lon <= 1 && ?lat >= 52 && ?lat <= 53 ) .
  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

Show me notable locations between longitude -1 and 1 and latitude 52 and 53, along with their addresses and associated media.

Can you list buildings and sites in eastern England with their photos and Wikipedia Commons categories?

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(-1 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(1 53)"^^<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: What are the Ukrainian-language names for parts of Earth?

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 ?part ?partLabel WHERE {
  ?part wdt:P361 wd:Q2 .
  ?part rdfs:label ?partLabel .
  FILTER ( LANG( ?partLabel ) = "uk" )
}
ORDER BY ASC ( ?part )
LIMIT 10000

Can you list the components of Earth with their Ukrainian labels?

Which geological and geographical parts of Earth have Ukrainian-language Wikipedia labels?

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q2> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "uk" ) ) ) . } ORDER BY ASC( ?var1 ) LIMIT 10000


Question: What are the properties and their English-labeled values associated with Kreis 1 in Zürich?

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

Which entities are linked to Kreis 1 (Zürich), and what are their English names?

Show me the relationships of Kreis 1 with other entities, including their English labels.

SELECT ?var1Label ?var2 ?var3Label ?var4 WHERE { <http://www.wikidata.org/entity/Q445559> ?var1 ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Humans with "Féréol" in their French name

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

Who are the French-speaking people whose name includes "Féréol"?

List all humans whose French label contains the name "Féréol".

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


Question: List cultural landmarks in Siedlce, Poland, including their images, Commons categories, heritage status, and types.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?item ?itemLabel ?admin1Label ?admin2Label ?image ?commonsCategory ?heritageDesignation ?instanceTypeLabel WHERE {
  ?item wdt:P131 * wd:Q319813 .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
  OPTIONAL {
    ?item wdt:P131 ?admin1 .
    ?admin1 rdfs:label ?admin1Label .
    FILTER(LANG(?admin1Label) = "en")
  }
  OPTIONAL {
    ?item wdt:P131 ?admin1 .
    ?admin1 wdt:P131 ?admin2 .
    ?admin2 rdfs:label ?admin2Label .
    FILTER(LANG(?admin2Label) = "en")
  }
  OPTIONAL {
    ?item wdt:P18 ?image
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory
  }
  OPTIONAL {
    ?item p:P1435 ?heritageDesignationStatement .
    ?heritageDesignationStatement ps:P1435 ?heritageDesignation
  }
  OPTIONAL {
    ?item wdt:P31 ?instanceType .
    ?instanceType rdfs:label ?instanceTypeLabel .
    FILTER(LANG(?instanceTypeLabel) = "en")
  }
}
LIMIT 200

What are the notable buildings and monuments in Siedlce, and what administrative regions do they belong to?

Show me all heritage sites in Siedlce with their photos, Wikipedia Commons categories, and whether they are officially protected monuments.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 ?var6 ?var7 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(23 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(23 52)"^^<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/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P373> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.wikidata.org/prop/P1435> ?var9 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } LIMIT 2000


Question: List Indian villages and administrative areas between 74°E and 82°E longitude and 0°N and 11°N latitude with their coordinates, images, Wikimedia Commons categories, and postal codes.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?postalCode WHERE {
  ?item wdt:P625 ?coord .
  FILTER ( geof:longitude ( ?coord ) >= 74 && geof:longitude ( ?coord ) <= 82 ) FILTER ( geof:latitude ( ?coord ) >= 0 && geof:latitude ( ?coord ) <= 11 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?postalCode .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What are the geographic locations in southern India (between 74°E–82°E and 0°N–11°N) and what are their labels, coordinates, images, Commons categories, and postal codes?

Show me all places in the region spanning from 74°E to 82°E and 0°N to 11°N, including their English names, coordinates, and any associated images, Wikimedia Commons categories, or postal codes.

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(74 0)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(82 11)"^^<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: Cities in Sardinia with coordinates, images, and Wikimedia Commons categories

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?location ?image ?commonsCategory WHERE {
  VALUES ?item {
    wd:Q1897 wd:Q13652 wd:Q13629 wd:Q1901 wd:Q1902 wd:Q13649 wd:Q13630
  }
  ?item wdt:P625 ?location .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
}
LIMIT 100

What are the cities in northern Sardinia with available images and associated Wikimedia Commons categories?

Show me the names, locations, images, and Commons categories of major cities in the 39–41°N and 7–11°E region of Italy.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 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(7 39)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(11 41)"^^<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 . } 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: List all municipalities in Croatia.

SELECT ?municipality WHERE { ?municipality wdt:P31 wd:Q57058 .}

What are the names of all municipalities in Croatia?

Can you show me all the administrative municipalities that are part of Croatia?

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


Question: Croatian names of places with population over 50,000

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 ?label WHERE {
  ?place wdt:P31 ?class .
  ?class wdt:P279 * wd:Q2221906 .
  ?place wdt:P1082 ?population .
  ?place rdfs:label ?label .
  FILTER ( LANG( ?label ) = "hr" ) .
  FILTER ( ?population > 50000 ) .
}

What are the Croatian-language labels for places with more than 50,000 inhabitants?

List all places with a population exceeding 50,000, using their Croatian names.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q17334923> . ?var2 <http://www.wikidata.org/prop/direct/P1082> ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "hr" ) ) ) . FILTER ( ( ( ?var4 > "50000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: Cities with Hebrew and English labels, their countries, and when those countries became associated.

SELECT DISTINCT ?city ?heLabel ?yiLabel ?enLabel ?countryLabel ?startTime WHERE { ?city wdt:P31/wdt:P279* wd:Q515 . ?city rdfs:label ?heLabel . FILTER(LANG(?heLabel) = "he") OPTIONAL { ?city rdfs:label ?yiLabel . FILTER(LANG(?yiLabel) = "yi") } ?city rdfs:label ?enLabel . FILTER(LANG(?enLabel) = "en") ?city wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") ?country p:P580 ?statement . ?statement psv:P580 ?startTime .} LIMIT 100

Which cities have labels in Hebrew and English, what countries are they in, and when did those country associations begin?

Show me cities that have Hebrew and English names, along with their English-named countries and the start dates of those country affiliations, including any Yiddish names if available.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6 ?var7Label ?var8 ?var9 WHERE { { ?var1 (( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> )| <http://www.wikidata.org/prop/direct/P31> ) <http://www.wikidata.org/entity/Q515> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var7 . ?var7 <http://www.wikidata.org/prop/P580> ?var8 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "yi" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he,yi,en". } FILTER ( ( ( LANG ( ?var2Label ) = "he" ) ) ) . } LIMIT 100


Question: Top 100 most popular Wikidata items by number of Wikipedia links.

PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?item WHERE {
  ?item wikibase:sitelinks ?sitelinks .
}
ORDER BY DESC(?sitelinks)
LIMIT 100

Which 100 Wikidata items have the most Wikipedia articles linked to them?

List the 100 most linked-to entities on Wikidata, ranked by how many Wikipedia pages reference them.

SELECT ?var1 WHERE { ?var1 <http://www.ontotext.com/owlim/RDFRank#hasRDFRank> ?var2 . } ORDER BY DESC( ?var2 ) LIMIT 100


Question: Cities, towns, or villages within 5 km of (-1, 45) with images, population, area, and their types.

SELECT ?item ?itemLabel ?population ?area ?location ?image (GROUP_CONCAT(DISTINCT ?instanceTypeLabel; SEPARATOR=", ") AS ?instanceTypes) (GROUP_CONCAT(DISTINCT ?subclassLabel; SEPARATOR=", ") AS ?subclasses) WHERE { ?item wdt:P18 ?image . ?item wdt:P625 ?location . ?item wdt:P31 ?instanceType . OPTIONAL { ?item wdt:P1082 ?population . } OPTIONAL { ?item wdt:P2046 ?area . } ?item (wdt:P279)* ?subclass . FILTER(?instanceType IN (wd:Q515, wd:Q1549591, wd:Q486972, wd:Q1322478)) FILTER(geof:distance(?location, "POINT(-1 45)"^^geo:wktLiteral) <= 5000) ?item rdfs:label ?itemLabel . ?instanceType rdfs:label ?instanceTypeLabel . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?instanceTypeLabel) = "en") FILTER(LANG(?subclassLabel) = "en") } GROUP BY ?item ?itemLabel ?population ?area ?location ?image LIMIT 500

What are the populated places within 5 kilometers of latitude 45 and longitude -1 that have images, and what are their population, area, and classification types?

List all named settlements within a 5-kilometer radius of POINT(-1 45) that have an associated image, and include their population, area, and hierarchical class labels in English.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ( GROUP_CONCAT ( DISTINCT ?var6Label ; SEPARATOR = ", " ) AS ?var7 )( GROUP_CONCAT ( DISTINCT ?var8 ; SEPARATOR = ", " ) AS ?var9 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var6 . ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var3 . } SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(-1 45)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "5". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } GROUP BY ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 LIMIT 500


Question: Heritage sites in Poland with administrative location, image, and type

SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?instance ?instanceLabel WHERE { ?item wdt:P17 wd:Q36 . ?item p:P1435 ?statement . ?statement ps:P1435 wd:Q112670032 . OPTIONAL { ?item wdt:P131 ?admin . } OPTIONAL { ?item wdt:P18 ?image . } 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 20

What are the cultural heritage monuments in Poland, and what are their administrative regions, images, and classifications?

List cultural heritage monuments in Poland along with their locations, images, and what kind of entities they are.

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(19 54)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(19 54)"^^<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> "en,pl,ru". } }


Question: What administrative regions and countries is the hamlet Berläş part of, including its continent?

SELECT DISTINCT ?entity WHERE { { wd:Q18766977 (wdt:P131 | wdt:P17) ?entity . } UNION { wd:Q18766977 wdt:P17 ?country . ?country wdt:P30 ?entity . } }

Show all places that Berläş belongs to, from district up to continent.

Which countries, administrative areas, and continents are connected to Berläş through direct or indirect location relationships?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q18766977> 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: Countries and regions with their associated geographic overviews and types.

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 ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE {
  BIND( "mainsnak" AS ?var4 ) .
  ?var1 wdt:P2633 ?var2 .
  ?var2 ( wdt:P31 / wdt:P279 * ) wd:Q46865913 .
  OPTIONAL {
    ?var2 wdt:P31 ?var3 .
  }
  OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER ( LANG( ?var1Label ) = "en" )
  }
  OPTIONAL {
    ?var2 rdfs:label ?var2Label .
    FILTER ( LANG( ?var2Label ) = "en" )
  }
  OPTIONAL {
    ?var3 rdfs:label ?var3Label .
    FILTER ( LANG( ?var3Label ) = "en" )
  }
}
LIMIT 100

Which countries or concepts are linked to a specific geographic overview (like "geography of France"), and what type of geographic item is that overview?

Show me the entities that have a "geography of topic" relationship to a geographic overview, along with the label of the overview and its type.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { { BIND ( "mainsnak" AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P2633> ?var2 . } UNION { BIND ( "qualifier" AS ?var4 ). ?var5 <http://www.wikidata.org/prop/qualifier/P2633> ?var2 . ?var1 ?var6 ?var5 . } UNION { BIND ( "reference" AS ?var4 ). ?var7 <http://www.wikidata.org/prop/reference/P2633> ?var2 . ?var8 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var7 . ?var1 ?var9 ?var8 . } VALUES ( ?var10 ) { ( <http://www.wikidata.org/entity/Q46865913> ) ( <http://www.wikidata.org/entity/Q1071> ) } MINUS { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var10 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Countries and their Russian names along with other language labels.

SELECT ?country ?label ?label_ru WHERE { ?country wdt:P31 wd:Q6256 . ?country rdfs:label ?label . ?country rdfs:label ?label_ru . FILTER(LANG(?label_ru) = "ru") }

What are the Russian names of all countries, and what are some of their names in other languages?

Show me a list of all countries with their Russian labels and one example of a label in another language.

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


Question: What administrative regions and countries is the Besoldsches Haus located in?

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

Can you list the city, region, state, and country that contain the Besoldsches Haus building?

Show me the geographical hierarchy of Besoldsches Haus in Germany, starting from the city up to the country.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q41298006> 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: List Polish municipalities and their TERC codes with English names.

SELECT ?municipality ?municipalityLabel ?tercCode WHERE { ?municipality wdt:P1653 ?tercCode . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

What are the English names and TERC municipality codes of all Polish municipalities in Wikidata?

Can you provide a list of all Polish municipalities, including their official TERC codes and their English labels?

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


Question: Hamlets in Russia

SELECT ?hamlet ?hamletLabel WHERE { ?hamlet wdt:P31 wd:Q5084 . ?hamlet wdt:P17 wd:Q159 . ?hamlet rdfs:label ?hamletLabel FILTER(LANG(?hamletLabel) = 'en') }

List all small settlements (hamlets) in Russia.

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


Question: Country, region, and continent of Tulebras

SELECT DISTINCT ?country ?region ?continent WHERE { wd:Q631828 wdt:P17 ?country . wd:Q631828 wdt:P131 ?region . ?country wdt:P30 ?continent .}

In which country and administrative region is Tulebras located, and what continent is it part of?

Tell me the country, administrative region, and continent of the municipality of Tulebras.

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


Question: What are the names of all geographic regions in Wikidata?

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

List of geographic regions with English labels

Can you show me the English names of all entities classified as geographic regions?

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


Question: Dorchester settlements in the UK with their descriptions and coordinates

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "en") . FILTER (CONTAINS(LCASE(?var1Label), "dorchester")) . ?var1 wdt:P31/wdt:P279* wd:Q486972 . ?var1 wdt:P131+ wd:Q145 . OPTIONAL { ?var1 schema:description ?var2 . FILTER (LANG(?var2) = "en") } ?var1 wdt:P625 ?var3 .}

What are the Dorchester places in the United Kingdom, their English descriptions, and geographic coordinates?

List all Dorchester human settlements in the UK along with their English descriptions and locations.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q503331> ) ( <http://www.wikidata.org/entity/Q227185> ) ( <http://www.wikidata.org/entity/Q1820610> ) ( <http://www.wikidata.org/entity/Q2670087> ) ( <http://www.wikidata.org/entity/Q941059> ) ( <http://www.wikidata.org/entity/Q979356> ) ( <http://www.wikidata.org/entity/Q1024037> ) ( <http://www.wikidata.org/entity/Q2110698> ) ( <http://www.wikidata.org/entity/Q1243764> ) ( <http://www.wikidata.org/entity/Q3036982> ) ( <http://www.wikidata.org/entity/Q3036984> ) ( <http://www.wikidata.org/entity/Q33804451> ) ( <http://www.wikidata.org/entity/Q5297582> ) ( <http://www.wikidata.org/entity/Q5297583> ) ( <http://www.wikidata.org/entity/Q5297587> ) ( <http://www.wikidata.org/entity/Q21487157> ) ( <http://www.wikidata.org/entity/Q26607150> ) ( <http://www.wikidata.org/entity/Q37019072> ) ( <http://www.wikidata.org/entity/Q5297585> ) ( <http://www.wikidata.org/entity/Q5297589> ) ( <http://www.wikidata.org/entity/Q5297590> ) ( <http://www.wikidata.org/entity/Q5297591> ) ( <http://www.wikidata.org/entity/Q501263> ) ( <http://www.wikidata.org/entity/Q502431> ) ( <http://www.wikidata.org/entity/Q226918> ) ( <http://www.wikidata.org/entity/Q2975925> ) ( <http://www.wikidata.org/entity/Q1243780> ) ( <http://www.wikidata.org/entity/Q2749941> ) ( <http://www.wikidata.org/entity/Q5475055> ) ( <http://www.wikidata.org/entity/Q22586552> ) ( <http://www.wikidata.org/entity/Q895073> ) ( <http://www.wikidata.org/entity/Q22586543> ) ( <http://www.wikidata.org/entity/Q21929612> ) ( <http://www.wikidata.org/entity/Q22586563> ) ( <http://www.wikidata.org/entity/Q35700593> ) ( <http://www.wikidata.org/entity/Q22932477> ) ( <http://www.wikidata.org/entity/Q5297623> ) ( <http://www.wikidata.org/entity/Q5297625> ) ( <http://www.wikidata.org/entity/Q20465348> ) ( <http://www.wikidata.org/entity/Q5297596> ) ( <http://www.wikidata.org/entity/Q5297599> ) ( <http://www.wikidata.org/entity/Q17514563> ) ( <http://www.wikidata.org/entity/Q31680288> ) ( <http://www.wikidata.org/entity/Q16962407> ) ( <http://www.wikidata.org/entity/Q26410531> ) ( <http://www.wikidata.org/entity/Q26514273> ) ( <http://www.wikidata.org/entity/Q27087036> ) ( <http://www.wikidata.org/entity/Q17101562> ) ( <http://www.wikidata.org/entity/Q26476099> ) ( <http://www.wikidata.org/entity/Q16962411> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: Towns in the United States

SELECT ?town ?townLabel WHERE { ?town wdt:P17 wd:Q30 . ?town wdt:P31 wd:Q3957 . } LIMIT 100

What towns are located in the United States?

List towns that are in the United States.

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


Question: Russian names of cities in Belarus

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 ?city ?cityLabel WHERE {
  ?city wdt:P31 / wdt:P279 * wd:Q515 .
  ?city wdt:P17 wd:Q184 .
  ?city rdfs:label ?cityLabel .
  FILTER(LANG(?cityLabel) = "ru")
}
LIMIT 10

What are the names of cities in Belarus in Russian?

List up to 10 cities in Belarus with their labels in Russian.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q184> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ru" ) ) ) . } LIMIT 10


Question: List all cities and towns in Oklahoma.

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 ?subdivision ?subdivisionLabel WHERE {
  wd:Q1649 wdt:P150 * ?subdivision .
  ?subdivision rdfs:label ?subdivisionLabel .
  FILTER(LANG(?subdivisionLabel) = "en")
}

What are all the administrative subdivisions of Oklahoma?

Show me all the places that are directly or indirectly contained within the state of Oklahoma.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1649> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Undirected"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxVisited> "80"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P150> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P150> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the first-level administrative divisions of the United States?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?division ?list ?country WHERE {
  ?division wdt:P279 wd:Q10864048 .
  ?division wdt:P17 ?country .
  ?country wdt:P297 "US" .
  OPTIONAL {
    ?division wdt:P360 ?list .
  }
}

Which administrative regions like states and territories are directly under the United States government?

List all U.S. states and insular areas that are classified as first-level administrative divisions.

SELECT DISTINCT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P279> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q56061> . ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q10864048> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P360> ?var2 . } ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P297> "US". }


Question: Cities in the United States and their alternative names

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?city ?cityLabel ?altName WHERE {
  ?city wdt:P17 wd:Q30 ; wdt:P31 wd:Q515 .
  ?city rdfs:label ?cityLabel .
  FILTER(LANG(?cityLabel) = "en")
  OPTIONAL {
    ?city skos:altLabel ?altName .
    FILTER(LANG(?altName) = "en")
  }
}
LIMIT 100

What are the names of cities in the United States, and what other names are they known by?

List up to 100 cities in the United States along with their English labels and alternative names.

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


Question: What is the French commune named Gruissan that is located in the Aude department?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Gruissan" @en ; wdt:P131 ?admin .
  ?admin rdfs:label "Aude" @en
}

Find the entity for Gruissan that is administratively part of Aude.

Which location called Gruissan is in the Aude region of France?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Gruissan"@es ; ( <https://www.wikidata.org/entity/P131> / <http://www.w3.org/2000/01/rdf-schema#label> ) "Aude"@es . }


Question: Heritage-listed buildings in Ravensburg with their images and designations

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?itemLabel ?heritageLabel ?address ?image WHERE {
  ?item wdt:P1435 ?heritage .
  ?item wdt:P131 wd:Q6832 .
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item rdfs:label ?itemLabel .
  ?heritage rdfs:label ?heritageLabel .
  FILTER(LANG(?itemLabel) = "en")
  FILTER(LANG(?heritageLabel) = "en")
}
LIMIT 500

What are the cultural heritage sites in Ravensburg, Germany, and what are their official heritage designations and images?

Show me a list of heritage-designated locations in Ravensburg, including their names, heritage status, and associated images from Wikimedia Commons.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q6832> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?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,cy,fr,de,es,nl,hy,ja,ru,ca". } } LIMIT 500


Question: What properties are used for items located in Nuremberg?

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

Which direct properties have values for entities located in Nuremberg?

List all direct properties that are used to describe things located in Nuremberg.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/entity/Q6422240> ? <http://www.wikidata.org/entity/Q2090> . ?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: Is Schreder Hollow classified as a geographical feature?

ASK WHERE {
  wd:Q35279663 (wdt:P31/wdt:P279*) wd:Q618123 .
  hint:Prior hint:gearing "forwards" .
}

Does Schreder Hollow belong to the hierarchy of geographical features?

What category does Schreder Hollow fall under in the geographical classification system?

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


Question: What are the cities in the United States?

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 ?city ?cityLabel WHERE {
  ?city wdt:P17 wd:Q30 ; wdt:P31 wd:Q515 .
  ?city rdfs:label ?cityLabel .
  FILTER(LANG(?cityLabel) = "en")
}
LIMIT 100

Can you list the cities located in the United States?

Which entities in the United States are classified as cities?

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


Question: What geographic and administrative regions is Tavola part of, including its country and continent?

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

Starting from Tavola, what places can you reach by following administrative divisions, countries, or continents?

Show me all the locations that Tavola belongs to, from its immediate administrative unit up to the continent it’s on.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q944481> 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: Villages in Uruguay

SELECT ?village ?villageLabel WHERE { ?village wdt:P31 wd:Q532 ; wdt:P17 wd:Q77 . ?village rdfs:label ?villageLabel . FILTER(LANG(?villageLabel) = "es") } LIMIT 10

What are the names of villages in Uruguay?

List up to 10 villages in Uruguay, showing their names in Spanish.

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


Question: List 10 towns in Wikidata.

SELECT ?town ?townLabel WHERE { ?town wdt:P31 wd:Q3957 . ?town rdfs:label ?townLabel . FILTER(LANG(?townLabel) = "en") } LIMIT 10

What are 10 examples of towns according to Wikidata?

Can you show me the names of 10 towns, using their English labels from Wikidata?

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


Question: Human settlements in the United Kingdom with their descriptions and coordinates.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?itemLabel ?description ?location WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q486972 .
  ?item wdt:P131 + wd:Q145 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
  ?item wdt:P625 ?location .
}

What are the names, English descriptions, and geographic locations of all human settlements in the United Kingdom?

List all towns and villages in the UK along with their English descriptions and map coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q13131985> ) ( <http://www.wikidata.org/entity/Q1529978> ) ( <http://www.wikidata.org/entity/Q17062870> ) ( <http://www.wikidata.org/entity/Q7837463> ) ( <http://www.wikidata.org/entity/Q3402398> ) ( <http://www.wikidata.org/entity/Q20584714> ) ( <http://www.wikidata.org/entity/Q24664229> ) ( <http://www.wikidata.org/entity/Q26392679> ) ( <http://www.wikidata.org/entity/Q28974062> ) ( <http://www.wikidata.org/entity/Q19392961> ) ( <http://www.wikidata.org/entity/Q29500252> ) ( <http://www.wikidata.org/entity/Q29497351> ) ( <http://www.wikidata.org/entity/Q27087206> ) ( <http://www.wikidata.org/entity/Q29485542> ) ( <http://www.wikidata.org/entity/Q19604593> ) ( <http://www.wikidata.org/entity/Q27790082> ) ( <http://www.wikidata.org/entity/Q17020861> ) ( <http://www.wikidata.org/entity/Q33401113> ) ( <http://www.wikidata.org/entity/Q23683214> ) ( <http://www.wikidata.org/entity/Q29498889> ) ( <http://www.wikidata.org/entity/Q20713824> ) ( <http://www.wikidata.org/entity/Q7837466> ) ( <http://www.wikidata.org/entity/Q7837468> ) ( <http://www.wikidata.org/entity/Q7837467> ) ( <http://www.wikidata.org/entity/Q7837469> ) ( <http://www.wikidata.org/entity/Q7837470> ) ( <http://www.wikidata.org/entity/Q7837472> ) ( <http://www.wikidata.org/entity/Q7837473> ) ( <http://www.wikidata.org/entity/Q7837474> ) ( <http://www.wikidata.org/entity/Q7837475> ) ( <http://www.wikidata.org/entity/Q7837476> ) ( <http://www.wikidata.org/entity/Q7837477> ) ( <http://www.wikidata.org/entity/Q7837478> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: What administrative regions include the village of Mikoszewo in Poland?

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 ?administrativeEntity ?administrativeEntityLabel WHERE {
  wd:Q2521604 wdt:P131 * ?administrativeEntity .
  ?administrativeEntity rdfs:label ?administrativeEntityLabel .
  FILTER ( LANG( ?administrativeEntityLabel ) = "en" )
}

What are all the administrative divisions that contain Mikoszewo, from the village up to the country level?

List all the administrative entities that Mikoszewo belongs to, including itself, along with their English names.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q2521604> <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> "pl, en". } }


Question: Places in Munich not named after a person or entity

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P131 wd:Q1726 . ?var1 rdfs:label ?var1Label . FILTER (NOT EXISTS { ?var1 wdt:P138 ?var2 } ) FILTER(LANG(?var1Label) = "en") }

What locations in Munich are not named after someone else?

List all buildings, streets, and stations in Munich that don't have a namesake.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q1726> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P138> ?var2 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What is the superclass of geographical feature?

SELECT ?superclass WHERE { wd:Q618123 wdt:P279 ?superclass . }

What category does geographical feature belong to as a subclass?

Tell me the broader category that includes geographical features.

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


Question: What places are historically or geographically connected to Paris through administrative, national, or continental boundaries?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?location WHERE {
  wd:Q90 ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) * ?location .
}
LIMIT 100

Show all locations that can be reached from Paris via country, region, continent, or enclave relationships.

What entities are linked to Paris through chains of location-based relationships like being in a country or on a continent?

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


Question: What are the geographic entities associated with Rees, including its administrative divisions, country, and continent?

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

Show me the full geographic hierarchy of Rees, from the town up to the continent it belongs to.

Which countries and continents is Rees part of, and what administrative regions lie between it and the country?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q243474> 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: Berlin cultural heritage items with a P2424 ID but no official heritage designation.

SELECT DISTINCT ?item ?label WHERE { ?item wdt:P2424 [] . MINUS { ?item wdt:P1435 [] . } OPTIONAL { ?item rdfs:label ?label . FILTER(LANG(?label) = "en") } }

Which buildings and sites in Berlin are listed in the Berlin cultural heritage database but are not officially protected as heritage sites?

Show me all items in Berlin’s cultural heritage database that don’t have a legal heritage status.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2424> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1435> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What administrative regions and continent does Atambua belong to?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1 ?var1Label WHERE {
  wd:Q753347 ( wdt:P131 | wdt:P17 | wdt:P30 ) + ?var1 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}

What country, province, and continent is Atambua located in?

Show me the geographical hierarchy of Atambua, including its administrative divisions and continent.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q753347> 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: Human settlements in the United Kingdom with their coordinates and English descriptions.

SELECT DISTINCT ?settlement ?settlementLabel ?desc ?coord WHERE { ?settlement wdt:P31/wdt:P279* wd:Q486972 ; wdt:P17 wd:Q145 ; wdt:P625 ?coord . OPTIONAL { ?settlement schema:description ?desc FILTER(LANG(?desc) = "en") } . ?settlement rdfs:label ?settlementLabel . FILTER(LANG(?settlementLabel) = "en") } LIMIT 10

What are the human settlements in the United Kingdom, and what are their English descriptions and geographic coordinates?

List human settlements in the UK along with their English descriptions and locations.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q7334579> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: What administrative regions were dissolved or reorganized, and when did their subdivisions stop being part of them?

SELECT ?container ?containerLabel ?contained ?containedLabel ?rank ?endTime WHERE { ?container p:P150 [ ps:P150 ?contained ; wikibase:rank ?rank ; pq:P582 ?endTime ] . ?container rdfs:label ?containerLabel . ?contained rdfs:label ?containedLabel . FILTER(LANG(?containerLabel) = "en") FILTER(LANG(?containedLabel) = "en") } LIMIT 10

Show me places that were once part of another administrative area but are no longer, along with the date the connection ended.

Which territories were historically contained within other administrative entities, and when did those relationships end?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/P150> [ <http://www.wikidata.org/prop/statement/P150> ?var2 ; <http://wikiba.se/ontology#rank> ?var3 ; <http://www.wikidata.org/prop/qualifier/P582> ?var4 ] . } LIMIT 10


Question: What are the English names of all departments of France?

SELECT ?departmentLabel WHERE { ?department wdt:P31 wd:Q6465 . OPTIONAL { ?department wdt:P1448 ?officialName . } OPTIONAL { ?department wdt:P2561 ?alternateName . } ?department rdfs:label ?departmentLabel . FILTER(LANG(?departmentLabel) = "en") }

Can you list the official English labels for French departments, including historical ones?

Show me the names of French departments in English.

SELECT ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/prop/novalue/P40> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Human settlements in the United Kingdom with English descriptions and geographic coordinates

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?description ?coord WHERE {
  ?item wdt:P31 / wdt:P279 * wd:Q486972 .
  ?item wdt:P131 * wd:Q145 .
  ?item wdt:P625 ?coord .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  ?item schema:description ?description .
  FILTER ( LANG( ?description ) = "en" )
}

What are the human settlements in the UK that have an English description and known geographic coordinates?

List all human settlements in the United Kingdom along with their English names, descriptions, and coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q1638504> ) ( <http://www.wikidata.org/entity/Q28197589> ) ( <http://www.wikidata.org/entity/Q23699702> ) ( <http://www.wikidata.org/entity/Q23662342> ) ( <http://www.wikidata.org/entity/Q28197583> ) ( <http://www.wikidata.org/entity/Q25253514> ) ( <http://www.wikidata.org/entity/Q23981402> ) ( <http://www.wikidata.org/entity/Q23753448> ) ( <http://www.wikidata.org/entity/Q23893850> ) ( <http://www.wikidata.org/entity/Q751919> ) ( <http://www.wikidata.org/entity/Q3406209> ) ( <http://www.wikidata.org/entity/Q24488211> ) ( <http://www.wikidata.org/entity/Q22643044> ) ( <http://www.wikidata.org/entity/Q23683168> ) ( <http://www.wikidata.org/entity/Q23730307> ) ( <http://www.wikidata.org/entity/Q23662945> ) ( <http://www.wikidata.org/entity/Q6661108> ) ( <http://www.wikidata.org/entity/Q6661112> ) ( <http://www.wikidata.org/entity/Q24707605> ) ( <http://www.wikidata.org/entity/Q23699149> ) ( <http://www.wikidata.org/entity/Q23767337> ) ( <http://www.wikidata.org/entity/Q23844172> ) ( <http://www.wikidata.org/entity/Q23981767> ) ( <http://www.wikidata.org/entity/Q23703905> ) ( <http://www.wikidata.org/entity/Q29592571> ) ( <http://www.wikidata.org/entity/Q33454889> ) ( <http://www.wikidata.org/entity/Q27794632> ) ( <http://www.wikidata.org/entity/Q24668968> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: What are the direct subclasses of third-order administrative division?

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

Which administrative units are considered immediate types under the category of third-order administrative division?

Can you list the types of administrative divisions that are classified directly under third-order administrative division in Wikidata?

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


Question: Zwenkau city in Landkreis Leipzig, English label and coordinates

SELECT ?label ?coord WHERE { wd:Q10779 wdt:P31 wd:Q515 ; wdt:P131 wd:Q6308 ; wdt:P625 ?coord ; rdfs:label ?label . FILTER (LANG(?label) = "en") }

What is the English name and geographic coordinates of Zwenkau, which is a city in the Landkreis Leipzig district?

Please provide the English label and coordinates of Zwenkau, confirming it is a city located in Landkreis Leipzig.

SELECT * WHERE { BIND ( <http://www.wikidata.org/entity/Q15284> AS ?var1 ). BIND ( <http://www.wikidata.org/entity/Q6308> AS ?var2 ). ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 ; <http://www.wikidata.org/prop/direct/P131> ?var2 ; <http://www.wikidata.org/prop/direct/P625> ?var4 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q10779> ) ) ) . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: What continent is France part of?

SELECT DISTINCT ?result WHERE { wd:Q142 (wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501)* ?result .}

List all entities that France is directly or indirectly connected to through continent, country, administrative division, or enclave relationships.

What are all the geographic and political entities related to France through hierarchical or spatial containment?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q14080693> 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 is the type and start date of the departmental council of La Réunion?

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 ?type ?typeLabel ?startTime WHERE {
  wd:Q23782071 wdt:P31 ?type ; wdt:P580 ?startTime .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?typeLabel ) = "fr" )
}

When was the departmental council of La Réunion established, and what type of administrative body is it?

What is the French label for the type of the departmental council of La Réunion, and when did it begin operations?

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


Question: List all known dictatorships in Wikidata.

SELECT ?dictatorship ?dictatorshipLabel WHERE { ?dictatorship wdt:P31 wd:Q317 . ?dictatorship rdfs:label ?dictatorshipLabel . FILTER(LANG(?dictatorshipLabel) = "en") }

What are the historical regimes classified as dictatorships on Wikidata?

Show me the names of all entities that are instances of dictatorship, along with their English labels.

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


Question: What are the buildings and institutions in Providence, Rhode Island, along with their images and Wikimedia Commons categories?

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 ?coord ?image ?commonsCategory WHERE {
  ?item wdt:P131 wd:Q18383 .
  OPTIONAL {
    ?item wdt:P625 ?coord .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

Show me the names, locations, photos, and Commons categories of places in Providence, RI.

List entities located in Providence, Rhode Island, and include their coordinates, images, and associated Wikimedia Commons categories if available.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 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(-71 42)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-71 42)"^^<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 . } 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: Cultural heritage items in Bremen and their designations

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 ?designation WHERE {
  ?item wdt:P131 wd:Q24879 .
  ?item wdt:P1435 ?designation .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
ORDER BY ASC(?designation)

What are the heritage designations of cultural sites located in Bremen?

List all heritage-listed items in Bremen along with their official heritage status, sorted by status.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q24879> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var2 . } ORDER BY ASC( ?var2 )


Question: List all protected cultural heritage monuments in Bremen with their LfD-HB object IDs, sorted by ID.

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 ?monument ?monumentLabel ?lfDId WHERE {
  ?monument wdt:P1435 wd:Q31948690 .
  OPTIONAL {
    ?monument wdt:P4246 ?lfDId .
  }
  ?monument rdfs:label ?monumentLabel .
  FILTER(LANG(?monumentLabel) = "en")
}
ORDER BY ASC(?lfDId)

What are the English-named cultural heritage sites in Bremen that have a designated heritage status, and what are their LfD-HB identifiers?

Please provide a sorted list of Bremen’s protected monuments in English, including their official LfD-HB numbers where available.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q31948690> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P4246> ?var2 . } } ORDER BY ASC( ?var2 )


Question: How many administrative regions contain Bad Abbach?

SELECT ?placeLabel (COUNT(?admin) AS ?count)
WHERE {
  wd:Q177280 rdfs:label ?placeLabel .
  FILTER(LANG(?placeLabel) = "en")
  {
    wd:Q177280 wdt:P131 ?admin .
  } UNION {
    wd:Q177280 wdt:P131 ?level1 . ?level1 wdt:P131 ?admin .
  } UNION {
    wd:Q177280 wdt:P131 ?level1 . ?level1 wdt:P131 ?level2 . ?level2 wdt:P131 ?admin .
  } UNION {
    wd:Q177280 wdt:P131 ?level1 . ?level1 wdt:P131 ?level2 . ?level2 wdt:P131 ?level3 . ?level3 wdt:P131 ?admin .
  }
}
GROUP BY ?placeLabel

What is the number of administrative levels above Bad Abbach in Germany?

List the count of administrative territorial entities that Bad Abbach is part of, starting from its immediate parent up to the country.

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


Question: What administrative regions and continent is Rue de Navarre 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 ?location ?locationLabel WHERE {
  {
    wd:Q3450927(wdt:P131 + | wdt:P17) ?location .
  } UNION {
    wd:Q3450927(wdt:P131 + | wdt:P17) ?country .
    ?country wdt:P30 ?location .
  }
  ?location rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
}

Can you list all the places that Rue de Navarre belongs to, including its country and continent?

Show me the geographic and administrative hierarchy of Rue de Navarre in Paris, from the street up to Europe.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q3450927> 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: Things located in Thun and their types

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?type WHERE {
  ?item wdt:P131 wd:Q68978 .
  ?item wdt:P31 ?type .
}
ORDER BY ?item

What are the items located in Thun, Switzerland, and what categories do they belong to?

List all entities in Thun along with their classifications.

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


Question: What are the items classified as capital cities in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?capitalCity WHERE {
  ?capitalCity wdt:P31 wd:Q5119 .
}

List all entities that are instances of a capital city.

Show me all things that are tagged as capital cities.

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


Question: What are the communes in the Jura department of France, and what images are available for them?

SELECT ?commune ?image WHERE { ?commune wdt:P31 wd:Q484170 . ?commune wdt:P131 wd:Q3120 . OPTIONAL { ?commune wdt:P18 ?image . } }

List all communes in the Jura department in France along with their images from Wikimedia Commons.

Show me all French communes located in the Jura department, including their associated images if they exist.

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


Question: Geographic hierarchy of Bandar Rahmat village including country, province, and continent.

SELECT DISTINCT ?item WHERE { wd:Q25285623 (wdt:P131|wdt:P17|wdt:P30|wdt:P376|wdt:P501)* ?item .}

What countries, continents, and administrative regions is Bandar Rahmat part of, directly or indirectly?

Show all administrative and geographic entities that Bandar Rahmat belongs to through its location hierarchy.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q25285623> 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: Items in Sardinia with coordinates between 9° and 11° longitude and 39° and 41° latitude, including their images, Commons categories, and addresses.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?location .
  FILTER ( geof:latitude ( ?location ) >= 39 && geof:latitude ( ?location ) <= 41 ) FILTER ( geof:longitude ( ?location ) >= 9 && geof:longitude ( ?location ) <= 11 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
  }
}
LIMIT 3000

What are the places located in the region of Sardinia, Italy, that have geographic coordinates between 39° and 41° north and 9° and 11° east, and what images, Wikimedia Commons categories, and street addresses are associated with them?

Show me all entities in the area around Sardinia with coordinates between 9–11°E and 39–41°N, along with their labels, 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(10 40)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(10 40)"^^<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: French regions and their INSEE codes

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(SAMPLE(?label) AS ?regionLabel) ?inseeCode WHERE {
  ?region(wdt:P31 / wdt:P279 *) wd:Q36784 .
  ?region wdt:P2585 ?inseeCode .
  ?region rdfs:label ?label .
}
GROUP BY ?region ?inseeCode
ORDER BY ?inseeCode

What are the names and INSEE codes of all French administrative regions?

Please list the French regions along with their INSEE region codes.

SELECT ?var1Label ?var2 WHERE { SELECT * WHERE { ?var3Label ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q36784> . ?var3Label <http://www.wikidata.org/prop/P2585> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P2585> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } }


Question: What historical connections exist between Frankfurt and other political or educational institutions in 19th-century Hesse and Prussia?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?source ?sourceLabel ?prop ?propLabel ?target ?targetLabel WHERE {
  VALUES ?source {
    wd:Q160208 wd:Q1741304 wd:Q1794 wd:Q1955646 wd:Q21 wd:Q2665812 wd:Q314243 wd:Q316276 wd:Q516056 wd:Q560777 wd:Q622565 wd:Q1444918
  }
  VALUES ?target {
    wd:Q160208 wd:Q1741304 wd:Q1794 wd:Q1955646 wd:Q21 wd:Q2665812 wd:Q314243 wd:Q316276 wd:Q516056 wd:Q560777 wd:Q622565 wd:Q1444918
  }
  ?source ?prop ?target .
  FILTER(?source != ?target)
  .
  OPTIONAL {
    ?source rdfs:label ?sourceLabel .
    FILTER(LANG(?sourceLabel) = 'en')
  }
  .
  OPTIONAL {
    ?prop rdfs:label ?propLabel .
    FILTER(LANG(?propLabel) = 'en')
  }
  .
  OPTIONAL {
    ?target rdfs:label ?targetLabel .
    FILTER(LANG(?targetLabel) = 'en')
  }
}
ORDER BY ?source ?target
LIMIT 100

Who were the notable people linked to the Musterschule in Frankfurt, and how were they connected to other entities in the region?

Show the relationships among historical figures and places in Hesse and Prussia, such as Karl Ludwig Funck, Rolf Tiedemann, and the Musterschule.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label 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.BFS". <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1615753> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q2665812> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q1794> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q160208> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q1955646> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q1444918> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q21> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q1741304> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q316276> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q314243> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q622565> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q560777> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#target> <http://www.wikidata.org/entity/Q516056> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#out> ?var4 . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#out1> ?var1 . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#out2> ?var2 . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> . <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#maxVisited> "10000"^^<http://www.w3.org/2001/XMLSchema#integer> . } ?var2 ?var5 ?var4 . ?var3 <http://wikiba.se/ontology#directClaim> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( ?var1 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } LIMIT 1000


Question: What are the English names of the French department Calvados and its commune Campigny?

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

Show me the English labels for Calvados and Campigny in Wikidata.

Is Campigny part of Calvados, and what are their official English names?

SELECT ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P150> ?var2 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P3333> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1366> ?var3 . } } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P3333> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1366> ?var3 . } } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P3333> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1366> ?var3 . } } OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P3333> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1366> ?var3 . } } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P3333> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1366> ?var3 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q3249> ) ) ) . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q232080> ) ) ) . } ORDER BY ASC( ?var2 )


Question: Places in Northern Europe between longitude 19–32 and latitude 60–70 with their coordinates and English names.

SELECT ?item ?itemLabel ?coord WHERE { ?item wdt:P625 ?coord . FILTER(geof:longitude(?coord) >= 19 && geof:longitude(?coord) <= 32) FILTER(geof:latitude(?coord) >= 60 && geof:latitude(?coord) <= 70) ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en")}

What are the English-named locations in the region bounded by 19°E to 32°E and 60°N to 70°N, and what are their geographic coordinates?

List all places in the area from 19°E to 32°E and 60°N to 70°N, showing their English labels and exact coordinates.

SELECT ?var1 ?var1Label ?var2 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#cornerWest> "POINT(19 60)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(32 70)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fi,sv,en". } }


Question: Streets and churches in eastern France with coordinates between 46°N and 47°N and 5°E and 6°E, along with their images and Wikimedia Commons categories.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?location .
  FILTER ( geof:latitude ( ?location ) >= 46 && geof:latitude ( ?location ) <= 47 && geof:longitude ( ?location ) >= 5 && geof:longitude ( ?location ) <= 6 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What are the geographic features like streets and churches located between 46°N and 47°N latitude and 5°E and 6°E longitude in France, and what images and Commons categories are associated with them?

Show me all labeled geographic items (e.g., roads, churches) in the region around 46–47°N and 5–6°E, including their coordinates, images from Wikimedia Commons, and associated Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 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(5 46)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(5 46)"^^<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 . } 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: Coordinates of Nenzlingen, Switzerland

SELECT ?coordinates WHERE { wd:Q66401 wdt:P625 ?coordinates .}

What are the geographic coordinates of Nenzlingen?

Can you tell me the latitude and longitude of the municipality of Nenzlingen in Switzerland?

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


Question: What are the current population figures for Swiss municipalities, along with the date they were recorded and the source URLs?

SELECT ?referenceUrl ?population ?date ?municipalityCode WHERE { ?municipality wdt:P771 ?municipalityCode ; p:P1082 ?populationStatement . ?populationStatement ps:P1082 ?population ; pq:P585 ?date ; wikibase:rank wikibase:PreferredRank . OPTIONAL { ?populationStatement prov:wasDerivedFrom ?reference . ?reference pr:P854 ?referenceUrl . } }

Can you show me the official population statistics for Swiss municipalities that have reference URLs, including the BFS code and the year of data collection?

Which Swiss municipalities have their population data sourced from official websites, and what are the population numbers and dates?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { ?var5 <http://www.wikidata.org/prop/direct/P771> ?var4 ; <http://www.wikidata.org/prop/P1082> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P1082> ?var2 ; <http://www.wikidata.org/prop/qualifier/P585> ?var3 ; <http://wikiba.se/ontology#rank> ?var7 . FILTER ( ( REGEX ( STR ( ?var7 ) , "string1" ) ) ) . } OPTIONAL { ?var6 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var8 . ?var8 <http://www.wikidata.org/prop/reference/P854> ?var1 . } }


Question: What towns and villages in Western Europe (between latitudes 50°N and 53°N and longitudes 2°W and 10°E) have images and Wikimedia Commons categories associated with them?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?item ?itemLabel ?coord ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?coord .
  FILTER ( geof:latitude ( ?coord ) >= 50 && geof:latitude ( ?coord ) <= 53 && geof:longitude ( ?coord ) >= -2 && geof:longitude ( ?coord ) <= 10 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

List English-labeled locations in the region from the UK to western Germany with their coordinates, photos, and Commons categories.

Show me places in the bounding box from (-2, 50) to (10, 53) that have public domain images and Commons categories, along with their names in English.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 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(-2 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(10 53)"^^<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 . } 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 countries, administrative regions, and continents is Karpacz located in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  wd:Q606126(wdt:P17 | wdt:P131 | wdt:P30) + ?item .
}
LIMIT 10

Can you list all the geographic entities that Karpacz belongs to, from local to global?

What is the geographic hierarchy above Karpacz, including its country, region, and continent?

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


Question: What are the capital cities of the Swiss cantons?

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 ?capital ?capitalLabel WHERE {
  ?canton wdt:P31 wd:Q23058 .
  ?canton wdt:P36 ?capital .
  ?capital rdfs:label ?capitalLabel .
  FILTER ( LANG( ?capitalLabel ) = "en" )
}
ORDER BY ?capitalLabel

List the administrative capitals of each canton in Switzerland.

Which cities serve as the capitals for the 26 cantons of Switzerland?

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/P36> <http://www.wikidata.org/entity/Q23058> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q39> . } LIMIT 100


Question: What is the English label and description of the Wikidata item for "Contra", and does it have an image?

SELECT ?label ?description ?image WHERE { OPTIONAL { wd:Q293299 rdfs:label ?label . FILTER(LANG(?label) = "en") } OPTIONAL { wd:Q293299 wdt:P18 ?image . } OPTIONAL { wd:Q293299 schema:description ?description . FILTER(LANG(?description) = "en") } }

Show me the English name and description of the disambiguation page for "Contra" on Wikidata, along with any associated image.

Can you provide the English label and description of the Wikidata entry for "Contra", and if available, its image?

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q293299> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q293299> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q293299> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: Coordinates of Recherswil, a municipality in Switzerland.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coordinates WHERE {
  wd:Q66849 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .
}

What are the geographic coordinates of Recherswil?

Please provide the latitude and longitude of Recherswil, Switzerland.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q66849> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: What are the current second-level administrative divisions in France?

SELECT ?division ?divisionLabel ?type ?typeLabel WHERE { wd:Q16507666 p:P131 ?statement . ?statement ( ps:P131 / wdt:P131* ) ?division . FILTER NOT EXISTS { ?statement pq:P582 ?end . } ?division wdt:P31 ?type . ?type p:P279 ?subclassStatement . ?subclassStatement ps:P279 wd:Q13220204 . FILTER NOT EXISTS { ?subclassStatement pq:P582 ?end . } ?division rdfs:label ?divisionLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?divisionLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

Which departments in France are currently active as second-level administrative divisions?

List the administrative divisions in France that are classified as second-level subdivisions and their types.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { <http://www.wikidata.org/entity/Q16507666> <http://www.wikidata.org/prop/P131> ?var3 . ?var3 ( <http://www.wikidata.org/prop/statement/P131> / <http://www.wikidata.org/prop/direct/P131> *) ?var1 . FILTER ( ( NOT EXISTS { ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/P279> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P279> <http://www.wikidata.org/entity/Q13220204> . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: Current regions of France with their geographic coordinates.

SELECT ?region ?regionLabel ?coordinates ?dissolvedDate WHERE { ?region (wdt:P31/wdt:P279*) wd:Q36784 . ?region wdt:P625 ?coordinates . OPTIONAL { ?region wdt:P576 ?dissolvedDate . } FILTER ( !BOUND(?dissolvedDate) ) . ?region rdfs:label ?regionLabel . FILTER (LANG(?regionLabel) = "en") }

Which regions of France are still active (not dissolved), and what are their coordinates?

Please list the names and locations of all existing administrative regions in France.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q36784> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . }


Question: What properties are used to link entities to France, and which entities are linked using those properties?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE {
  ?var1 ?var3 wd:Q142 .
  ?var2 wikibase:directClaim ?var3 .
  OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER ( LANG( ?var1Label ) = "en" )
  }
  OPTIONAL {
    ?var2 rdfs:label ?var2Label .
    FILTER ( LANG( ?var2Label ) = "en" )
  }
}
LIMIT 100

Show me the items connected to France and the properties that connect them, along with their English labels.

Which properties point to France, and what are the items that use those properties to reference France?

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


Question: How many countries have at least one city or town in them, based on English-labeled data in Wikidata?

SELECT (COUNT(DISTINCT ?countryLabel) AS ?count) WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 . ?city wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }

What is the number of distinct countries that contain urban settlements classified as cities or their subclasses?

List the count of countries with English labels that host any entity classified as a city or any of its subtypes.

SELECT( COUNT ( DISTINCT ?var1Label ) AS ?var2 ) WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var3 <http://www.wikidata.org/prop/direct/P17> ?var4 . OPTIONAL { ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } LIMIT 10


Question: Communes in Mayenne department with their arrondissement names in French and coordinates.

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 ?commune ?arrondissement_label ?coordinates WHERE {
  ?commune wdt:P31 wd:Q484170 ; wdt:P131 ?arrondissement ; wdt:P625 ?coordinates .
  ?arrondissement wdt:P31 wd:Q194203 ; wdt:P131 wd:Q12620 ; rdfs:label ?arrondissement_label .
  FILTER ( LANG( ?arrondissement_label ) = "fr" )
}

What are the communes in the Mayenne department of France, along with the French names of the arrondissements they belong to and their geographic coordinates?

List all communes in Mayenne, showing which arrondissement each belongs to (in French) and their coordinates.

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/Q484170> ; <http://www.wikidata.org/prop/direct/P131> ?var4 ; <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q194203> ; <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q12620> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "fr" ) ) ) . }


Question: Wikimedia disambiguation pages with Egyptian Arabic descriptions

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?disambigPage ?desc WHERE {
  ?disambigPage wdt:P31 wd:Q4167410 .
  ?disambigPage schema:description ?desc
  FILTER ( LANG( ?desc ) = 'arz' )
}

What are the disambiguation pages on Wikimedia that have descriptions in Egyptian Arabic?

Show me all disambiguation pages in Wikidata that are described in Egyptian Arabic.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167410> . ?var1 <http://schema.org/description> "string1"@arz . }


Question: What administrative and geographic regions does Pouy-de-Touges belong to, including its country and continent?

SELECT DISTINCT ?location WHERE { wd:Q1143796 (wdt:P131|wdt:P17|wdt:P30)* ?location }

Pouy-de-Touges administrative hierarchy: department, region, country, continent?

Show all places that Pouy-de-Touges is part of, from local canton up to the continent of Europe.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q1143796> 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 properties are used to link other items to the entity "dacha"?

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

Which Wikidata properties have "dacha" as their object, and what are their names in English?

Can you list the English labels of all properties that connect other entities to a dacha?

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


Question: What are the INSEE canton codes for French cantons?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?canton ?code WHERE {
  ?canton wdt:P2506 ?code .
}
LIMIT 10

Can you list some French cantons and their corresponding INSEE codes?

Which French administrative cantons have INSEE codes assigned in Wikidata?

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


Question: Which properties link the Ivanovski disambiguation page to other entities more than once?

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

How many times are the properties schema:about, different from (wdt:P1889), and different from (ps:P1889) used to connect the Wikidata item Q16871109 to other entities, and which ones appear more than once?

Show me the properties that are used to link the disambiguation page for Ivanovski to other entities at least twice, sorted by frequency.

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


Question: Territories with INSEE code but no ISO 3166-1 alpha-2 code

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?territory ?territoryLabel ?inseeCode WHERE {
  ?territory wdt:P3422 ?inseeCode .
  FILTER NOT EXISTS {
    ?territory wdt:P297 []
  }
  .
  ?territory rdfs:label ?territoryLabel .
  FILTER ( LANG( ?territoryLabel ) = "en" )
}
LIMIT 1000

Which geographic regions are assigned a French INSEE code but do not have an official ISO country code?

List all territories recognized by France’s INSEE system that are not assigned an ISO 3166-1 alpha-2 country code, along with their English labels and INSEE codes.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3422> ?var3 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P297> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 1000