Question: Portuguese-labeled facets of topics in Wikidata

SELECT ?item ?label ?description WHERE { ?item wdt:P1269 ?topic . ?item rdfs:label ?label . ?item schema:description ?description . FILTER(LANG(?label) = 'pt') . FILTER(LANG(?description) = 'pt') } LIMIT 100

What are the items in Wikidata that are facets of a topic and have descriptions in Portuguese?

Show me items that are aspects of broader topics and have both a Portuguese label and description.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P1269> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: List all communes in France with their English labels.

SELECT ?commune ?label WHERE { ?commune (wdt:P31/wdt:P279*) wd:Q484170 . ?commune rdfs:label ?label . FILTER(LANG(?label) = 'en') }

What are the English names of all communes in France?

Show me the English labels for every administrative commune in France.

SELECT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q484170> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( ?var1Label = "Earth"@en ) ) ) . }


Question: French communes ending in "ange" and their coordinates

SELECT DISTINCT ?commune ?name ?coordinates WHERE { ?commune wdt:P31 wd:Q484170 ; rdfs:label ?name ; wdt:P625 ?coordinates . FILTER(LANG(?name) = "fr") . FILTER(REGEX(?name, ".*ange$", "i")) . } LIMIT 1000

Which communes in France have names ending in "ange", and where are they located?

List all French communes whose names end with "ange", along with their geographic coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label ; <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( REGEX ( ?var1Label , ".*ange$", "i" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } LIMIT 1000


Question: Towns and villages in Werra-Meißner-Kreis with their coordinates and types in German.

SELECT DISTINCT
  ?place
  ?placeLabel
  ?coords
  (SAMPLE(?type) AS ?typeSample)
  ?typeLabel
WHERE {
  BIND(wd:Q7896 AS ?adminUnit)
  ?place wdt:P131 ?adminUnit .
  ?place wdt:P625 ?coords .
  OPTIONAL { ?place wdt:P31 ?type . }
  OPTIONAL { ?place rdfs:label ?placeLabel . FILTER(LANG(?placeLabel) = "de") }
  OPTIONAL { ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "de") }
}
GROUP BY ?place ?placeLabel ?coords ?typeLabel
ORDER BY ASC(?placeLabel)
LIMIT 20

Which places are located in the same district as Wanfried, and what are their German names, coordinates, and classifications?

List all inhabited places in the Werra-Meißner-Kreis district, including their German labels, geographic coordinates, and types (e.g., town, village), sorted alphabetically.

SELECT DISTINCT ?var1 ?var1Label ( SAMPLE ( ?var2 ) AS ?var2 )( SAMPLE ( ?var2Label ) AS ?var2Label )( SAMPLE ( ?var3 ) AS ?var3 )( SAMPLE ( ?var4 ) AS ?var4 ) ?var5 ?var5Label ?var6 ?var6Label ?var7 ?var7Label WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var2 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q1432> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.wikidata.org/prop/P1435> ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( LANG ( ?var2Label ) IN ( "de" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P149> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P84> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,de". } } GROUP BY ?var1 ?var1Label ?var5 ?var5Label ?var6 ?var6Label ?var7 ?var7Label ORDER BY ASC( ?var1Label )


Question: Coordinates of Tempelhofer Ufer 23–24 and c-base in Berlin.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?location WHERE {
  VALUES ?place {
    wd:Q15260574 wd:Q265688
  }
  ?place wdt:P625 ?location .
}

What are the geographic coordinates of Tempelhofer Ufer 23–24 and c-base?

Can you provide the GPS coordinates for the commercial building at Tempelhofer Ufer 23–24 and the c-base hackspace in Berlin?

SELECT ?var1 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q15260574> ) ( <http://www.wikidata.org/entity/Q15260574> ) ( <http://www.wikidata.org/entity/Q265688> ) } ?var2 <http://www.wikidata.org/prop/direct/P625> ?var1 . }


Question: What are some cities in the world, listed with their English names?

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

Can you list 10 cities and their English labels from Wikidata?

Show me 10 examples of cities along with their English names.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . 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/P17> ?var2 . } LIMIT 10


Question: Communes in France and their populations

SELECT ?commune ?communeLabel ?population WHERE { ?commune wdt:P31 wd:Q484170 . OPTIONAL { ?commune wdt:P1082 ?population . } ?commune rdfs:label ?communeLabel . FILTER(LANG(?communeLabel) = "en") } LIMIT 500

What are the names and populations of communes in France?

List up to 500 communes in France along with their English names and population numbers, if available.

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


Question: What administrative regions in France contain communes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?administrativeEntity WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P17 wd:Q142 .
  ?commune wdt:P131 ?administrativeEntity .
}
LIMIT 10

Which higher-level administrative divisions (like departments or arrondissements) are communes in France part of?

Show me the administrative entities that communes in France are located within.

SELECT( isIRI ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var3 ?var1 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var1 . } } } LIMIT 1


Question: Cities and landmarks in Turkey, Syria, and northern Iraq with coordinates between 29°N–43°N and 32°E–46°E, along with their images, Wikimedia Commons categories, and addresses.

SELECT ?item ?itemLabel ?coordinates ?image ?commonsCategory ?address WHERE { ?item wdt:P625 ?coordinates . BIND(STRBEFORE(STRAFTER(STR(?coordinates), "POINT("), ")") AS ?coords) BIND(STRBEFORE(?coords, " ") AS ?lonVal) BIND(STRAFTER(?coords, " ") AS ?latVal) FILTER(xsd:double(?latVal) >= 29 && xsd:double(?latVal) <= 43) FILTER(xsd:double(?lonVal) >= 32 && xsd:double(?lonVal) <= 46) OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } OPTIONAL { ?item wdt:P969 ?address . } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } } LIMIT 3000

What are the geographic locations (with images, Commons categories, and addresses) located between latitudes 29°N and 43°N and longitudes 32°E and 46°E?

List up to 3,000 places in the Middle East (between 29–43°N and 32–46°E) that have images, Wikimedia Commons categories, or addresses, along with their English names and coordinates.

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(32 29)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(46 43)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Former communes of France with coordinates and century of dissolution

SELECT ?commune ?communeLabel ?coordinates ?century WHERE { ?commune wdt:P31 wd:Q484170 ; wdt:P625 ?coordinates . ?commune p:P31 [ ps:P31 wd:Q484170 ; pq:P582 ?endTime ] . BIND( YEAR( ?endTime ) / 100 AS ?century ) . ?commune rdfs:label ?communeLabel . FILTER(LANG(?communeLabel) = "en") }

Which former communes in France have known coordinates, and in which century did they cease to exist?

List the English names, locations, and dissolution centuries of former communes in France.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( ( YEAR ( ?var4 ) /"100"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/P31> [ <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q484170> ; <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". } }


Question: Municipalities bordering Neu-Ulm city

SELECT ?municipality ?municipalityLabel ?borderingMunicipality ?borderingMunicipalityLabel WHERE { wd:Q4120 wdt:P47 ?borderingMunicipality . ?borderingMunicipality rdfs:label ?borderingMunicipalityLabel . wd:Q4120 rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") FILTER(LANG(?borderingMunicipalityLabel) = "en") FILTER(?borderingMunicipality != wd:Q10410) } ORDER BY ?borderingMunicipalityLabel

Which municipalities share a border with the city of Neu-Ulm?

List all the municipalities that are adjacent to Neu-Ulm in Germany.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q262166> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q10410> . ?var1 <http://www.wikidata.org/prop/direct/P47> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } FILTER ( ( NOT EXISTS { ?var3 <http://www.wikidata.org/prop/direct/P47> ?var1 . } ) ) . } ORDER BY ASC( ?var2 )


Question: List cities in Wikidata with their English names.

SELECT ?city ?cityLabel WHERE { ?city wdt:P31 wd:Q515 . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") } LIMIT 100

What are some cities in the world, and what are their English names according to Wikidata?

Show me up to 100 cities from Wikidata that are classified as cities (Q515), along with their English labels.

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


Question: Cities that are instances of the entity "city" in Wikidata.

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

What are the names of all cities in Wikidata?

List all cities with their English names from Wikidata.

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


Question: Countries whose English name starts with "bel"

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 ?country(GROUP_CONCAT(DISTINCT ?labelWithLang ; SEPARATOR = ", ") AS ?labels) WHERE {
  VALUES(?instance) {(wd:Q6256)
  }
  ?country wdt:P31 ?instance .
  ?country rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(STRSTARTS(LCASE(?label) , "bel"))
  BIND(CONCAT(STR(?label) , " (" , LANG(?label) , ")") AS ?labelWithLang)
}
GROUP BY ?country
LIMIT 10

Which countries have English names starting with "bel", and what are their full labels?

List all countries that are instances of a country and have an English label starting with "bel", along with their language-tagged labels.

SELECT DISTINCT ?var1 ( GROUP_CONCAT ( DISTINCT ?var2 ; SEPARATOR = ", " ) AS ?var3Label ) WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q6256> ) } BIND ( CONCAT ( STR ( ?var5 ) , " (", LANG ( ?var5 ) , ")" ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( LCASE ( ?var6Label ) , LCASE ( "belf" ) ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } GROUP BY ?var1 LIMIT 10


Question: Properties linking more than one item to the La Vega disambiguation page, ordered by frequency.

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q947167 . } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

What properties connect multiple entities to the Wikipedia disambiguation page for "La Vega", and how many connections does each have?

Show me the properties that link more than one entity to the "La Vega" disambiguation page, sorted by how often they are used.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q947167> . 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: Countries and their official languages, with multiple languages concatenated by "~~~".

SELECT ?countryLabel (GROUP_CONCAT(DISTINCT ?languageLabel; SEPARATOR="~~~") AS ?languages) WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P37 ?language . ?country rdfs:label ?countryLabel . ?language rdfs:label ?languageLabel . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?languageLabel) = "en") } GROUP BY ?country ?countryLabel ORDER BY ?countryLabel

What are the official languages of each country, listed as a single string with languages separated by "~~~"?

List all countries along with their official languages, combining multiple languages into one field separated by "~~~".

SELECT ?var1 ( GROUP_CONCAT ( DISTINCT ?var2 ; SEPARATOR = "~~~" ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P37> ?var2 . } GROUP BY ?var1


Question: Countries that are part of Asia

SELECT ?country (SAMPLE(?label) AS ?countryLabel) WHERE { ?country wdt:P31 wd:Q6256 . ?country p:P361 ?statement . ?statement ps:P361 wd:Q48 . ?country rdfs:label ?label . FILTER(LANGMATCHES(LANG(?label), "en")) } GROUP BY ?country ORDER BY DESC(?countryLabel) LIMIT 500

List the countries in Asia, sorted alphabetically in descending order by their English names.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q48> AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/P361> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P361> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } GROUP BY ?var1 ?var1Label ?var2 ?var5 ORDER BY DESC( ?var1Label ) LIMIT 500


Question: Number of disambiguation pages on Wikipedia language editions: bxr, ext, tt, tyv, udm, vep, vls, xmf, yo, zu, uz

SELECT ?wikipedia ( COUNT( * ) AS ?count ) WHERE {
  VALUES ?wikipedia {
    <https://vep.wikipedia.org/>
    <https://ext.wikipedia.org/>
    <https://bxr.wikipedia.org/>
    <https://zu.wikipedia.org/>
    <https://yo.wikipedia.org/>
    <https://xmf.wikipedia.org/>
    <https://vls.wikipedia.org/>
    <https://uz.wikipedia.org/>
    <https://udm.wikipedia.org/>
    <https://tyv.wikipedia.org/>
    <https://tt.wikipedia.org/>
  }
  ?page schema:isPartOf ?wikipedia ;
        schema:about ?item ;
        schema:name ?name .
  ?item wdt:P31 wd:Q4167836 .
}
GROUP BY ?wikipedia
ORDER BY ASC(?wikipedia)

How many disambiguation pages exist on each of the listed Wikipedia language editions?

List the count of disambiguation pages for each of these Wikipedia sites: bxr.wikipedia.org, ext.wikipedia.org, tt.wikipedia.org, tyv.wikipedia.org, udm.wikipedia.org, vep.wikipedia.org, vls.wikipedia.org, xmf.wikipedia.org, yo.wikipedia.org, zu.wikipedia.org, and uz.wikipedia.org.

SELECT ?var1 ?var2 ( COUNT (* ) AS ?var3 ) WHERE { VALUES ( ?var1 ) { ( <https://vep.wikipedia.org/> ) ( <https://ext.wikipedia.org/> ) ( <https://bxr.wikipedia.org/> ) ( <https://zu.wikipedia.org/> ) ( <https://yo.wikipedia.org/> ) ( <https://xmf.wikipedia.org/> ) ( <https://vls.wikipedia.org/> ) ( <https://uz.wikipedia.org/> ) ( <https://udm.wikipedia.org/> ) ( <https://tyv.wikipedia.org/> ) ( <https://tt.wikipedia.org/> ) } BIND ( REPLACE ( STR ( ?var4 ) , ":.*", "" ) AS ?var2 ). ?var5 <http://schema.org/isPartOf> ?var1 ; <http://schema.org/name> ?var4 ; <http://schema.org/about> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> . } GROUP BY ?var1 ?var2 ORDER BY ASC( ?var1 )ASC( ?var3 )


Question: List disambiguation pages in Wikidata along with their Wikipedia links.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?disambiguationPage ?label ?wikipediaPage WHERE {
  ?disambiguationPage wdt:P31 wd:Q4167836 ; rdfs:label ?label .
  ?wikipediaPage schema:about ?disambiguationPage .
  FILTER(CONTAINS(STR(?wikipediaPage) , "wikipedia.org"))
}
LIMIT 1000000

What are the disambiguation pages on Wikidata and which Wikipedia pages are they linked to?

Show me all Wikidata items that are disambiguation pages, their labels in different languages, and the Wikipedia URLs that refer to them.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var3 <http://schema.org/about> ?var1 . FILTER ( ( CONTAINS ( STR ( ?var3 ) , "string1" ) ) ) . } LIMIT 1000000


Question: French intercommunal structures in mainland France with their SIREN numbers and French labels.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?intercommunality ?label ?sirenNumber WHERE {
  ?intercommunality(wdt:P31 / wdt:P279 *) wd:Q2707796 .
  ?intercommunality wdt:P17 wd:Q142 .
  ?intercommunality rdfs:label ?label .
  ?intercommunality wdt:P1616 ?sirenNumber .
  FILTER(LANG(?label) = "fr")
  FILTER(NOT EXISTS {
    ?intercommunality wdt:P131 wd:Q33788
  })
}
LIMIT 50

What are the French intercommunal structures in France (excluding New Caledonia) that have a French label and a SIREN number?

List the French-named intercommunal administrative entities in France (not in New Caledonia) along with their SIREN identifiers.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2707796> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 <http://www.wikidata.org/prop/direct/P1616> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "fr" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q33788> . } ) ) . } LIMIT 50


Question: Who is employed by Willow Creek Community Church?

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

What is the relationship between Rory Noland and Willow Creek Community Church?

Which property links individuals to Willow Creek Community Church in Wikidata, and who are the individuals linked by it?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q72332> . ?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: Items with coordinates between longitude -90 and -27 and latitude 3 and 64, including their images, Commons categories, and postal codes.

SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?postalCode WHERE { ?item wdt:P625 ?location . FILTER(geof:longitude(?location) >= -90 && geof:longitude(?location) <= -27) FILTER(geof:latitude(?location) >= 3 && geof:latitude(?location) <= 64) 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 places located between 3°N and 64°N latitude and -90° and -27° longitude, along with their images, Wikimedia Commons categories, and postal codes?

Show me all entities in that geographic region (from the Caribbean to northern Europe) with their English names, locations, images, Commons categories, and 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(-90 3)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-27 64)"^^<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 all the countries (including subclasses) in Wikidata?

SELECT ?item ?itemLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q3624078 . ?item rdfs:label ?itemLabel FILTER(LANG(?itemLabel) = 'en') } LIMIT 10000

List all sovereign states and their subtypes, such as former states or indigenous nations recognized as sovereign.

Show me the names of all entities classified as countries or any of their subclasses in English.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/prop/direct/P17> . } LIMIT 10000


Question: Places in northern France and western Belgium with coordinates between 2°E–3°E and 50°N–51°N, along with their images and Wikimedia Commons categories.

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 WHERE {
  ?item wdt:P625 ?coord .
  BIND(STR(?coord) AS ?coordStr)
  BIND(SUBSTR(?coordStr , 7 , STRLEN(?coordStr) - 8) AS ?coordValues)
  BIND(STRBEFORE(?coordValues , " ") AS ?longStr)
  BIND(STRAFTER(?coordValues , " ") AS ?latStr)
  BIND(xsd:double(?longStr) AS ?long)
  BIND(xsd:double(?latStr) AS ?lat)
  FILTER(?lat >= 50 && ?lat <= 51 && ?long >= 2 && ?long <= 3)
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

What towns and landmarks in the region bounded by longitude 2–3 and latitude 50–51 have images and Commons categories on Wikimedia Commons?

List all places in the area around 50–51°N and 2–3°E, including their names, coordinates, images, and associated Wikimedia 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(2 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(3 51)"^^<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 is the image of England?

SELECT ?image WHERE { wd:Q21 wdt:P18 ?image .}

What image is associated with England on Wikidata?

Can you show me the main image (logo, flag, or photo) of England from Wikimedia Commons?

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


Question: Entities associated with the United States and their labels

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P17 wd:Q30 .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) != "")
}
LIMIT 100

What are the entities linked to the United States, and what are their labels?

List up to 100 entities that have the United States as their country, along with their labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var5 ?var5Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var5 <http://www.wikidata.org/entity/Q21503252> <http://www.wikidata.org/prop/direct/P17> . } LIMIT 100


Question: Countries with official languages and English labels

SELECT DISTINCT ?country ?countryLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P37 ?officialLanguage . ?country rdfs:label ?countryLabel . FILTER (LANG(?countryLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries have an official language and an English Wikipedia label?

List all countries that have an official language, showing their names in English.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P37> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . ?var3 <http://schema.org/isPartOf> <https://en.wikipedia.org/> ; <http://schema.org/about> ?var1 . } ORDER BY ASC( ?var1Label )


Question: What is the type of the public entity "Communauté intercommunale des Villes solidaires" and when was it established?

SELECT DISTINCT ?type ?typeLabel ?inceptionDate WHERE { wd:Q1120209 wdt:P31 ?type ; wdt:P571 ?inceptionDate . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "fr") }

What does "Communauté intercommunale des Villes solidaires" classify as in French administrative terms, and what is its founding date?

When was the intercommunal public institution in Réunion created, and what is its official French designation?

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


Question: Countries where Portuguese is the official language.

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 ?country ?countryLabel WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country wdt:P37 wd:Q5146 .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}
LIMIT 100

Which countries have Portuguese as their official language?

List the English names of all countries that officially use Portuguese as their national language.

SELECT ?var1 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2533461> . } ?var1 <http://www.wikidata.org/prop/direct/P37> <http://www.wikidata.org/entity/Q5146> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Items with coordinates between 22°E and 23°E longitude and 46°N latitude, including their images, Commons categories, and addresses.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?location .
  BIND(STRBEFORE(STRAFTER(STR(?location) , "(") , " ") AS ?lonStr)
  BIND(STRBEFORE(STRAFTER(STRAFTER(STR(?location) , "(") , " ") , ")") AS ?latStr)
  BIND(xsd:double(?lonStr) AS ?lon)
  BIND(xsd:double(?latStr) AS ?lat)
  FILTER(?lon >= 22 && ?lon < 23 && ?lat >= 46 && ?lat < 47)
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P969 ?address .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

What places are located along the 46th parallel between 22 and 23 degrees east longitude, and what images, Wikimedia Commons categories, or street addresses are associated with them?

Show me all items located in the region bounded by 22°E to 23°E and 46°N, along with their English 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(22 46)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(23 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 . } 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 and their countries in Wikidata

SELECT DISTINCT ?country ?countryLabel ?city ?cityLabel WHERE { ?country (wdt:P31/wdt:P279*) wd:Q3624078 . ?city wdt:P131 ?country . ?city (wdt:P31/wdt:P279*) wd:Q515 . ?country rdfs:label ?countryLabel . ?city rdfs:label ?cityLabel . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?cityLabel) = "en")}

Which cities are located in which sovereign states?

List all cities along with the sovereign states they belong to, using English labels.

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


Question: Countries with English, Portuguese, and Brazilian Portuguese names, plus Wikipedia links and whether the two Portuguese versions match.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?label_en ?label_pt ?label_pt_br(IF((STR(?label_pt) = STR(?label_pt_br)) , "=" , "≠") AS ?match)(CONCAT("[[:" , ?lang , ":" , ?wikipedia_title , "|wp]]") AS ?wikipedia_link) WHERE {
  ?country wdt:P31 wd:Q6256 .
  OPTIONAL {
    ?country rdfs:label ?label_pt .
    FILTER(LANG(?label_pt) = "pt")
  }
  OPTIONAL {
    ?country rdfs:label ?label_pt_br .
    FILTER(LANG(?label_pt_br) = "pt-br")
  }
  ?country rdfs:label ?label_en .
  FILTER(LANG(?label_en) = "en")
  OPTIONAL {
    ?wikipedia_page schema:about ?country ; schema:inLanguage ?lang ; schema:name ?wikipedia_title ; schema:isPartOf <https://pt.wikipedia.org/> .
  }
}
ORDER BY ASC(?label_pt)

Which countries have different spellings in Brazilian Portuguese compared to European Portuguese, and what are their English names and Portuguese Wikipedia links?

Please list all countries with their English labels, Portuguese labels, Brazilian Portuguese labels, indicate if the Portuguese variants are identical, and provide links to their Portuguese Wikipedia pages.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ( IF ( ( STR ( ?var4 ) = STR ( ?var5 ) ), "=", "≠" ) AS ?var6 )( CONCAT ( "[[:", ?var7 , ":", ?var8 , "|", "wp]]" ) AS ?var9 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "pt" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "pt-br" ) ) ) . } OPTIONAL { ?var10 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> ?var7 ; <http://schema.org/name> ?var8 ; <http://schema.org/isPartOf> <https://pt.wikipedia.org/> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P1813> [ <http://www.wikidata.org/prop/qualifier/P31> <http://www.wikidata.org/entity/Q28840786> ; <http://www.wikidata.org/prop/statement/P1813> ?var3 ] . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } ORDER BY ASC( ?var4 )


Question: What are the most common religions or worldviews in Wikidata, ranked by how many people or entities are associated with them?

SELECT ?religion ?label ?count WHERE { { SELECT ?religion (COUNT(*) AS ?count) WHERE { ?person wdt:P140 ?religion . } GROUP BY ?religion } OPTIONAL { ?religion rdfs:label ?label . FILTER(LANG(?label) = "en") } } ORDER BY DESC(?count) ASC(?label) LIMIT 1000

List the top 1000 religions and belief systems based on the number of followers or associated entities in Wikidata, along with their English labels and counts.

Which religions have the highest number of adherents according to Wikidata data, and how many entities are linked to each?

SELECT ?var1 ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P140> ?var1 . } GROUP BY ?var1 } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } ORDER BY DESC( ?var3 )ASC( ?var2 ) LIMIT 1000


Question: List of religions in Wikidata

SELECT ?religion ?religionLabel WHERE { ?religion wdt:P31 wd:Q9174 . ?religion rdfs:label ?religionLabel . FILTER(LANG(?religionLabel) = "en") } LIMIT 5000

What are some examples of religions according to Wikidata?

Can you show me the names of all known religions listed in Wikidata, in English?

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


Question: German-named settlements in Austria ending in "itz" and their 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 ?settlement ?settlementLabel ?coordinates WHERE {
  ?settlement ( wdt:P31 / wdt:P279 * ) wd:Q486972 .
  ?settlement wdt:P17 wd:Q40 .
  ?settlement rdfs:label ?settlementLabel .
  ?settlement wdt:P625 ?coordinates .
  FILTER ( LANG( ?settlementLabel ) = "de" ) FILTER ( REGEX( ?settlementLabel , "itz$" ) )
}

What are the German-language settlements in Austria whose names end in "itz", and where are they located?

List all human settlements in Austria with German labels ending in "itz", including their geographic coordinates.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q40> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "(itz)$" ) ) ) . }


Question: French communes with German names ending in "al" and their coordinates

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 ?commune ?label ?coordinates WHERE {
  ?commune wdt:P31 wd:Q484170 ; rdfs:label ?label ; wdt:P625 ?coordinates .
  FILTER ( LANG( ?label ) = "de" ) FILTER ( REGEX( ?label , "al$" ) )
}

Which French communes have German-language names ending in "al", and what are their geographic coordinates?

List all French communes whose German labels end with "al", along with their latitude and longitude.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label ; <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "al$" ) ) ) . }


Question: What properties are used to link entities to the Scottish Government?

SELECT DISTINCT ?property WHERE { ?item ?property wd:Q32521 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) }

Which direct relationships connect other items to the Scottish Government in Wikidata?

List all the direct properties that have the Scottish Government as their object.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/entity/Q6422240> ? <http://www.wikidata.org/entity/Q32521> . ?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: How many federal states are there in Germany?

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 ( SAMPLE( ?state ) AS ?sampledState ) ( COUNT( ?state ) AS ?count ) ( SAMPLE( ?stateLabel ) AS ?sampledStateLabel ) WHERE {
  ?state wdt:P31 wd:Q1221156 .
  ?state rdfs:label ?stateLabel .
  FILTER ( LANG( ?stateLabel ) = "en" )
}

List one example of a federal state in Germany along with the total number of such states.

What are the federal states of Germany, and how many are there?

SELECT( SAMPLE ( ?var1 ) AS ?var1 )( COUNT ( ?var2 ) AS ?var3 )( SAMPLE ( ?var2Label ) AS ?var2Label ) WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1198> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } }


Question: Cities in Upper Bavaria with their images, official websites, and English Wikipedia pages.

SELECT DISTINCT ?city ?cityLabel ?admin2Label ?admin1Label ?image ?website ?wikipedia WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 ; wdt:P131 wd:Q10562 . OPTIONAL { ?city wdt:P18 ?image . } OPTIONAL { ?city wdt:P131 ?admin1 . } OPTIONAL { ?admin1 wdt:P131 ?admin2 . } OPTIONAL { ?city wdt:P856 ?website . } OPTIONAL { ?wikipedia schema:about ?city ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } OPTIONAL { ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") } OPTIONAL { ?admin1 rdfs:label ?admin1Label . FILTER(LANG(?admin1Label) = "en") } OPTIONAL { ?admin2 rdfs:label ?admin2Label . FILTER(LANG(?admin2Label) = "en") } } ORDER BY ASC(?city) LIMIT 5

What are the cities in Upper Bavaria, Germany, along with their administrative divisions, images, official websites, and English Wikipedia links?

Please list up to five cities in Upper Bavaria, including their labels, higher administrative regions, images, official websites, and English Wikipedia pages.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(10 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "100". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var8 . } FILTER ( ( ( ?var8 > "2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } { ?var3 <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". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var7 . } OPTIONAL { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var1 ) LIMIT 5


Question: German towns ending in "by" with coordinates

SELECT ?settlement ?label ?coordinates WHERE { ?settlement (wdt:P31/wdt:P279*) wd:Q486972 ; wdt:P17 wd:Q183 ; rdfs:label ?label ; wdt:P625 ?coordinates . FILTER (LANG(?label) = "de") FILTER (REGEX(?label, "by$")) }

Which settlements in Germany have names ending in "-by" and are labeled in German?

Show me the German-language names and geographic coordinates of all human settlements in Germany whose names end with "by".

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label ; <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "(by)$" ) ) ) . }


Question: German settlements ending in "weiler" with their coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?settlement ?label ?coordinates WHERE {
  ?settlement(wdt:P31 / wdt:P279 *) wd:Q486972 ; wdt:P17 wd:Q183 ; rdfs:label ?label ; wdt:P625 ?coordinates .
  FILTER(LANG(?label) = "de")
  FILTER(REGEX(?label , "weiler$"))
}

What are the German villages and hamlets whose names end in "weiler", and where are they located?

List all human settlements in Germany with German labels ending in "weiler", along with their geographic coordinates.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label ; <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "(weiler)$" ) ) ) . }


Question: Countries with compulsory education age, their English names, and URLs for age and country.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?countryLabel ?age ?ageUrl ?countryUrl WHERE {
  ?country wdt:P3271 ?age .
  FILTER ( xsd:decimal ( ?age ) ) ?country wdt:P31 wd:Q3624078 .
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" ) BIND( IRI( CONCAT ( "https://example.org/age/" , STR( ?age ) ) ) AS ?ageUrl ) BIND( IRI( CONCAT ( "https://example.org/country/" , STR( ?country ) ) ) AS ?countryUrl )
}
ORDER BY ?age

Which countries have a defined maximum age for compulsory education, and what are the corresponding URLs for the age and country entity?

List all sovereign states with a numeric maximum age for compulsory education, along with their English labels and generated URLs for the age value and country identifier.

SELECT ?var1 ?var1Label ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var4 )( SAMPLE ( ?var5 ) AS ?var5 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3271> ?var6 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var4 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P906> ?var5 . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2539> ?var7 . } BIND ( IRI ( CONCAT ( "string1", ?var6 ) ) AS ?var3 ). BIND ( IRI ( CONCAT ( "string2", ?var8 ) ) AS ?var2 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv", "en", "no", "da", "de", "pl". } } GROUP BY ?var1 ?var1Label ?var9 ?var3 ?var2 ORDER BY ASC( ?var8 )


Question: Coordinates of cities in Germany with population over 100,000

SELECT ?coordinates WHERE { ?place wdt:P17 wd:Q183 ; wdt:P1082 ?population ; wdt:P625 ?coordinates . FILTER ( ?population >= 100000 ) }

What are the geographic coordinates of all populated places in Germany that have at least 100,000 residents?

Show me the latitude and longitude of every German city with a population of 100,000 or more.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> ; <http://www.wikidata.org/prop/direct/P1082> ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var1 . FILTER ( ( ( ?var3 >= "100000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: What is the administrative hierarchy of Ortobene mountain in Italy, including its type, the commune it's in, and the province that commune belongs to?

SELECT DISTINCT ?mountainTypeLabel ?communeTypeLabel ?commune ?communeLabel ?provinceTypeLabel ?province ?provinceLabel WHERE { wd:Q1945886 wdt:P31 ?mountainType . wd:Q1945886 wdt:P131 ?commune . ?commune wdt:P31 ?communeType . ?commune wdt:P131 ?province . ?province wdt:P31 ?provinceType . ?mountainType rdfs:label ?mountainTypeLabel . ?communeType rdfs:label ?communeTypeLabel . ?commune rdfs:label ?communeLabel . ?provinceType rdfs:label ?provinceTypeLabel . ?province rdfs:label ?provinceLabel . FILTER(LANG(?mountainTypeLabel) = "en") FILTER(LANG(?communeTypeLabel) = "en") FILTER(LANG(?communeLabel) = "en") FILTER(LANG(?provinceTypeLabel) = "en") FILTER(LANG(?provinceLabel) = "en")}

What type of entity is Ortobene, which commune contains it, what type is that commune, and which province is that commune part of?

Show me the type of Ortobene, the name and type of the commune it's located in, and the name and type of the province that commune belongs to.

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


Question: Cities in Germany with their population, administrative district, and area.

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 ?population ?district ?districtLabel ?area WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P17 wd:Q183 .
  ?city wdt:P1082 ?population .
  ?city wdt:P131 ?district .
  ?city wdt:P2046 ?area .
  ?district rdfs:label ?districtLabel .
  FILTER(LANG(?districtLabel) = "en")
}
LIMIT 100

What are the population, administrative district, and area of cities in Germany?

List all cities in Germany along with their population, the district they belong to, and their area in square kilometers.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,bg,d". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . { ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var4 . } } LIMIT 100


Question: Dissolved communes of France with English names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commune ?label WHERE {
  ?commune wdt:P31 wd:Q484170 ; wdt:P576 ?dissolvedDate .
  ?commune rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 9999

Which communes in France have been dissolved, and what are their English names?

List the English names of all former communes in France that no longer exist.

SELECT ?var1 ?var1Label ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . FILTER ( ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var3 . } ) ) . } LIMIT 9999


Question: What are the English names of cities in German-speaking countries?

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 ?country(LANG(?cityLabel) AS ?labelLang) ?cityLabel WHERE {
  ?city(wdt:P31 / wdt:P279 *) wd:Q515 .
  ?city wdt:P17 ?country .
  ?country wdt:P31 wd:Q3624078 .
  ?country wdt:P37 wd:Q188 .
  OPTIONAL {
    ?city rdfs:label ?cityLabel .
    FILTER(LANG(?cityLabel) = "en")
  }
}
LIMIT 10000

List cities located in countries where German is an official language, along with their English labels and the country names.

Can you show me cities in Germany, Austria, Switzerland, and other German-speaking nations, including their English names and which country they belong to?

SELECT ?var1 ?var1Label ?var2 ( LANG ( ?var3Label ) AS ?var4 ) ?var3Label 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> ?var2 . ?var5 <http://www.wikidata.org/prop/direct/P37> "de". OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } } LIMIT 10000 OFFSET 100


Question: Cities in Germany with their geographic coordinates

SELECT ?city ?cityLabel ?coord WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 ; wdt:P17 wd:Q183 ; wdt:P625 ?coord . FILTER(LANG(?cityLabel) = "en") . ?city rdfs:label ?cityLabel . } ORDER BY ASC(?cityLabel)

What are the names and coordinates of all cities in Germany?

Show me the English names and WKT coordinates of all cities in Germany, sorted alphabetically by name.

SELECT ?var1 ?var1Label ( SAMPLE ( ?var2 ) AS ?var2 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> ; <http://www.wikidata.org/prop/direct/P625> ?var2 ; ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> / <http://wikiba.se/ontology#geoLatitude> ) ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } GROUP BY ?var1 ?var1Label ORDER BY ASC( ?var1Label )


Question: Is the Catholic Church considered part of Christianity?

SELECT ?denomination WHERE { wd:Q9592 wdt:P361 ?denomination . ?denomination wdt:P31 wd:Q123129246 . }

What Christian denomination does the Catholic Church belong to?

Is Catholicism classified as a branch of Christianity?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1385091> <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q856831> . }


Question: Subclasses of infant

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

What are the subclasses of infant in Wikidata?

List all entities that are direct subclasses of infant.

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


Question: List of sovereign countries in Europe

SELECT ?countryLabel WHERE { ?country wdt:P30 wd:Q46 . ?country wdt:P31 wd:Q3624078 . FILTER NOT EXISTS { ?country wdt:P576 [] } . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }

Which countries in Europe are currently sovereign states?

Please provide the names of all current European sovereign nations in English.

SELECT ?var1Label WHERE { SERVICE <http://dbpedia.org/sparql> { ?var2 <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Countries_in_Europe> ; <http://www.w3.org/2002/07/owl#sameAs> ?var1 . FILTER ( ( STRSTARTS ( STR ( ?var1 ) , "string1" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Cities in Germany

SELECT ?cityLabel WHERE { ?city wdt:P31 wd:Q515 . ?city wdt:P17 wd:Q183 . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") }

What are the names of cities in Germany?

List the English labels of all cities located in Germany.

SELECT ?var1 ?var2 ?var3 ?var3Label WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . <http://www.wikidata.org/entity/Q515> <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . }


Question: What department contains the communes in Hérault, France?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?department WHERE {
  ?commune wdt:P31 wd:Q484170 .
  ?commune wdt:P17 wd:Q142 .
  ?commune wdt:P131 wd:Q12545 .
  ?commune wdt:P131 ?department .
  ?department wdt:P31 wd:Q6465 .
}

What is the administrative department for communes located in Hérault?

SELECT( isIRI ( ?var1 ) AS ?var2 ) WHERE { { SELECT * WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q12545> . ?var3 <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . } ORDER BY DESC( ?var3 ) LIMIT 10000 } }


Question: What are the capitals of Germany's federal states and their coordinates?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?state ?capital ?coordinates WHERE {
  ?state wdt:P31 wd:Q1221156 ; wdt:P17 wd:Q183 ; wdt:P36 ?capital .
  ?capital wdt:P625 ?coordinates .
}
ORDER BY ASC(?capital)

List the capital cities of each German state along with their geographic coordinates.

Which cities serve as the capitals of Germany's states, and where are they located geographically?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P150> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P36> ?var3 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY ASC( ?var3Label )


Question: What are the entities associated with Nazi plunder?

SELECT ?item ?itemLabel WHERE { ?item ?p wd:Q328376 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') } LIMIT 100

Show me the names of people, artworks, or documents linked to Nazi plunder.

Which items are connected to the historical event of Nazi art theft?

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/Q328376> ; <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#maxIterations> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P2868> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2868> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: German-language administrative divisions in Germany

SELECT ?division ?divisionLabel WHERE { ?division (wdt:P31/wdt:P279*) wd:Q387917 . ?division rdfs:label ?divisionLabel . ?division wdt:P17 wd:Q183 . FILTER (LANG(?divisionLabel) = "de") }

What are the administrative divisions in Germany called in German?

List all German names of administrative divisions in Germany.

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


Question: What properties in Wikidata are used to represent language codes like 'en' or 'de', and what are their labels and images?

SELECT ?property ?propertyLabel ?image ?exampleCode WHERE { VALUES ?propertyUri { wdt:P220 wdt:P219 wdt:P305 wdt:P424 } ?item ?propertyUri ?code . FILTER (isLiteral(?code)) FILTER (REGEX(STR(?code), "^[a-z]{2,3}$")) BIND(IRI(REPLACE(STR(?propertyUri), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?property) ?property rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "en") OPTIONAL { ?property wdt:P18 ?image } BIND(?code AS ?exampleCode) } LIMIT 10

Which properties store ISO or IETF language codes in Wikidata, and what are their English labels and associated images?

List the properties used to assign language codes (e.g., ISO 639-1/2, IETF) in Wikidata, along with their English labels and any available images.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { { BIND ( <http://www.wikidata.org/entity/Q2092812> AS ?var1 ). ?var1 ?var6 ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 ?var8 ?var6 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var7 ) , "string1" ) ) ) . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string2" ) ) ) . } UNION { BIND ( "EFFBD8" AS ?var5 ). <http://www.wikidata.org/entity/Q2092812> ?var6 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 ?var8 ?var6 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What properties in German describe entities linked to Erfurt District?

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

Which German-labeled properties are used to associate other entities with the Erfurt District?

Show me the German labels and descriptions of properties that connect any item to Erfurt District.

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


Question: Italian labels and descriptions of properties related to "applies to jurisdiction" (P1001).

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?related ?label ?desc WHERE {
  wd:P1001 wdt:P1659 ?related .
  ?related rdfs:label ?label .
  ?related schema:description ?desc .
  FILTER ( LANG( ?label ) = "it" ) FILTER ( LANG( ?desc ) = "it" )
}

What are the Italian-language labels and descriptions of properties that are related to the property "applies to jurisdiction"?

Show me the Italian labels and descriptions of properties that are considered related to the jurisdiction property in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/statement/P1001> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "it" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "it" ) ) ) . }


Question: What properties are associated with France in Wikidata?

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

Show all the properties that describe France in the Wikidata knowledge base.

Which types of information are linked to the country France in Wikidata?

SELECT DISTINCT ?var1 WHERE { "Q22" ?var1 ?var2 . } LIMIT 100


Question: Properties in France with images

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?property ?image WHERE {
  ?property wdt:P17 wd:Q142 .
  OPTIONAL {
    ?property wdt:P18 ?image .
  }
}
LIMIT 100

Which properties are incorrectly associated with France?

List properties that have France as their country, along with any associated images.

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


Question: Italian labels and descriptions of properties linking to the family name Gozzadini

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  ?item ?directProperty wd:Q15140935 .
  BIND(REPLACE(STR(?directProperty) , "http://www.wikidata.org/prop/direct/" , "") AS ?propId)
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/" , ?propId)) AS ?property)
  ?property a wikibase:Property .
  ?property rdfs:label ?propertyLabel .
  ?property schema:description ?propertyDescription .
  FILTER(LANG(?propertyLabel) = "it")
  FILTER(LANG(?propertyDescription) = "it")
}
LIMIT 100

What are the Italian labels and descriptions of properties that are used to associate people or things with the surname Gozzadini?

Show me the Italian names and descriptions of all properties that have Gozzadini as their value in Wikidata.

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


Question: Are countries of office buildings stored as Wikidata entities?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( isIRI( ?country ) AS ?isCountryIRI ) WHERE {
  ?building wdt:P31 wd:Q1021645 .
  ?building wdt:P17 ?country .
}
LIMIT 1000

Do office buildings in Wikidata have their countries linked as entities rather than text values?

Show whether the country property for office buildings points to Wikidata items.

SELECT( isIRI ( ?var1 ) AS ?var2 )( isIRI ( ?var3 ) AS ?var4 ) WHERE { { SELECT ?var5 ?var3 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1021645> . ?var5 <http://www.wikidata.org/prop/direct/P17> ?var3 . } LIMIT 1000 } }


Question: What are the districts of Sendenhorst with their GND IDs?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P131* wd:Q2740 . ?var1 wdt:P31 wd:Q253019 . ?var1 wdt:P227 ?var2 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "de") }

Can you list the German names and GND identifiers of all districts in Sendenhorst?

Which parts of Sendenhorst are officially recognized as Ortsteile, and what are their German National Library IDs?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q2740> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q253019> . ?var1 <http://www.wikidata.org/prop/direct/P227> * ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: List countries with their short names.

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

What are the short names of all countries in Wikidata?

Show me the English names of countries along with their abbreviated forms or short designations.

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


Question: German municipalities with their official municipality key and OpenStreetMap relation ID.

SELECT ?municipality ?municipalityLabel ?germanKey ?osmRelationId WHERE { ?municipality wdt:P439 ?germanKey . OPTIONAL { ?municipality wdt:P402 ?osmRelationId . } ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") } LIMIT 100

What are the English names, German municipality keys, and OpenStreetMap IDs of 100 German municipalities?

List up to 100 German municipalities along with their official German municipality key and their corresponding OpenStreetMap relation ID, using English names.

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


Question: List all communes in the Moselle department of France.

SELECT ?commune ?department WHERE { ?commune wdt:P31 wd:Q484170 . ?commune wdt:P17 wd:Q142 . ?commune wdt:P131 ?department . ?department wdt:P31 wd:Q6465 . FILTER(?department = wd:Q12652) MINUS { ?department wdt:P576 [] . } } LIMIT 20000

Which communes in France are located in the Moselle department?

Show me the names of all communes in France that belong to the Moselle department, excluding any that have been dissolved.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var1 <http://www.wikidata.org/prop/direct/P131> [ <http://www.wikidata.org/prop/direct/p131> <http://www.wikidata.org/entity/Q12652> ] . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6465> . MINUS { ?var2 <http://www.wikidata.org/prop/direct/P576> [] . } } LIMIT 20000


Question: List unincorporated areas in Germany with their German municipality keys, OpenStreetMap IDs, Wikipedia pages, administrative districts, postal codes, area codes, and official websites.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?municipalityKey ?osmRelationId ?wikipediaPage ?area ?areaLabel ?administrativeEntity ?administrativeEntityLabel ?postalCode ?areaCode ?officialWebsite WHERE {
  ?area wdt:P31 wd:Q15974311 .
  OPTIONAL {
    ?area wdt:P439 ?municipalityKey .
  }
  OPTIONAL {
    ?area wdt:P402 ?osmRelationId .
  }
  OPTIONAL {
    ?wikipediaPage schema:isPartOf <https://de.wikipedia.org/> ; schema:about ?area .
  }
  OPTIONAL {
    ?area wdt:P131 ?administrativeEntity .
  }
  OPTIONAL {
    ?area wdt:P281 ?postalCode .
  }
  OPTIONAL {
    ?area wdt:P473 ?areaCode .
  }
  OPTIONAL {
    ?area wdt:P856 ?officialWebsite .
  }
  OPTIONAL {
    ?area rdfs:label ?areaLabel .
    FILTER(LANG(?areaLabel) = "de")
  }
  OPTIONAL {
    ?administrativeEntity rdfs:label ?administrativeEntityLabel .
    FILTER(LANG(?administrativeEntityLabel) = "de")
  }
}

What are the unincorporated areas in Germany, and what are their associated German municipality keys, OpenStreetMap relation IDs, Wikipedia links, administrative districts, postal codes, dialing codes, and official websites?

Please provide a list of all unincorporated areas in Germany, including their labels in German, the administrative districts they belong to (also in German), and any available identifiers such as postal codes, area codes, OpenStreetMap IDs, municipality keys, and official websites, along with links to their German Wikipedia pages.

SELECT ?var1 ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var7 ?var8 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15974311> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P439> ?var1 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P402> ?var2 . } OPTIONAL { ?var3 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . ?var3 <http://schema.org/about> ?var4 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P131> ?var5 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P281> ?var6 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P473> ?var7 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P856> ?var8 . } }


Question: What is the English label of the Wikidata property for temperature?

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

What is the English name of the Wikidata property that indicates temperature?

Please provide the English label of the Wikidata property used to specify temperature.

SELECT * WHERE { <http://www.wikidata.org/entity/P2076> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: What are the reasons given for deprecating statements in Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT DISTINCT ?reason ?reasonLabel WHERE {
  ?statement pq:P2241 ?reason .
  ?reason rdfs:label ?reasonLabel .
  FILTER(LANG(?reasonLabel) = 'en')
}

List all the English labels for reasons used to deprecate Wikidata statements.

Which values are used as qualifiers for "reason for deprecated rank" (P2241) in Wikidata, and what do they mean in English?

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


Question: List all Wikidata properties that represent quantitative values.

SELECT DISTINCT ?property WHERE { ?property rdf:type wikibase:Property ; wikibase:propertyType wikibase:Quantity . } ORDER BY ?property

Which Wikidata properties are used to store numerical data such as height, weight, or population?

Show me all the properties in Wikidata that have a property type of Quantity.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> ; <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#Quantity> . } ORDER BY ASC( ?var1 )


Question: List 10 countries in the world.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country WHERE {
  ?country wdt:P31 wd:Q6256 .
}
LIMIT 10

What are ten examples of sovereign nations?

Show me ten countries, each classified as a sovereign state.

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


Question: List 15 countries in English.

SELECT DISTINCT ?countryLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country rdfs:label ?countryLabel . FILTER(LANGMATCHES(LANG(?countryLabel), "en")) } LIMIT 15

What are the names of 15 countries according to Wikidata?

Show me up to 15 country names in English from Wikidata.

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


Question: Wikidata properties with exactly one subject-type constraint (human, organization, etc.) that are not marked as normally applicable to that type.

SELECT ?constraintType ?property WHERE { { SELECT ?property (COUNT(?constraintType) AS ?constraintCount) WHERE { ?property (wdt:P31/wdt:P279*) wd:Q18616576 . ?property p:P2302 ?constraintStatement . ?constraintStatement ps:P2302 wd:Q21503250 . ?constraintStatement pq:P2308 ?constraintType . } GROUP BY ?property HAVING (?constraintCount = 1) } ?property p:P2302 ?constraintStatement . ?constraintStatement ps:P2302 wd:Q21503250 . ?constraintStatement pq:P2308 ?constraintType . FILTER NOT EXISTS { ?normalApplicableProperty wdt:P1963 ?property . } } ORDER BY ASC(?property)

Which Wikidata properties are constrained to be used only with one specific entity type (like human or museum), but are not listed as normally applicable properties for that type?

List all Wikidata properties that have a single subject-class constraint and are not recommended for that class via P1963.

SELECT ?var1 ?var2 WHERE { { SELECT ?var2 ( COUNT ( ?var1 ) AS ?var3 ) WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18616576> . ?var2 <http://www.wikidata.org/prop/P2302> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P2302> <http://www.wikidata.org/entity/Q21503250> . ?var4 <http://www.wikidata.org/prop/qualifier/P2308> ?var1 . } GROUP BY ?var2 } FILTER ( ( ( ?var3 = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var2 <http://www.wikidata.org/prop/P2302> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P2302> <http://www.wikidata.org/entity/Q21503250> . ?var4 <http://www.wikidata.org/prop/qualifier/P2308> ?var1 . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/direct/P1963> ?var2 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )


Question: All properties and values for the Wikidata value-type constraint.

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

What are all the properties and their values associated with the value-type constraint on Wikidata?

Show me all the metadata about the value-type constraint item in Wikidata.

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


Question: What types of entities are the United States, Russia, Mexico, and other countries classified as in Wikidata?

SELECT ?item ?instanceType ?instanceTypeLabel WHERE {  VALUES ?item {    wd:Q30 wd:Q159 wd:Q10777774 wd:Q51 wd:Q811 wd:Q813 wd:Q794 wd:Q34 wd:Q43 wd:Q265 wd:Q33 wd:Q796 wd:Q96 wd:Q2365041  }  ?item wdt:P31 ?instanceType .  ?instanceType rdfs:label ?instanceTypeLabel .  FILTER(LANG(?instanceTypeLabel) = "en")}

Can you list the categories (instance of) for countries like Iran, Sweden, and Kyrgyzstan, as well as the insect species Kasachstania fasciata and the population of Argentines?

What are the different kinds of things that countries such as Turkey, Uzbekistan, and Finland are instances of?

SELECT ?var1 ?var2 ?var2Label WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q30> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q10777774> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q51> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q811> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q813> ) ( <http://www.wikidata.org/entity/Q794> ) ( <http://www.wikidata.org/entity/Q34> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q43> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q265> ) ( <http://www.wikidata.org/entity/Q10777774> ) ( <http://www.wikidata.org/entity/Q30> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q34> ) ( <http://www.wikidata.org/entity/Q30> ) ( <http://www.wikidata.org/entity/Q10777774> ) ( <http://www.wikidata.org/entity/Q33> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q30> ) ( <http://www.wikidata.org/entity/Q43> ) ( <http://www.wikidata.org/entity/Q10777774> ) ( <http://www.wikidata.org/entity/Q2365041> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q796> ) ( <http://www.wikidata.org/entity/Q34> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q33> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q96> ) ( <http://www.wikidata.org/entity/Q159> ) ( <http://www.wikidata.org/entity/Q33> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q10777774> ) ( <http://www.wikidata.org/entity/Q811> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) ( <http://www.wikidata.org/entity/Q528178> ) } ?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> "en". } }


Question: List of countries with their English names.

SELECT ?country ?countryLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = 'en') }

What are the English names of all countries in Wikidata?

Show me all countries and their official English names from Wikidata.

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/P31> <http://www.wikidata.org/entity/Q6256> . }


Question: What property is most frequently used to reference the Papiamento Wikipedia in Wikidata?

SELECT ?property (COUNT(?property) AS ?count) WHERE { ?statement ?property wd:Q3568056 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/reference/")) } GROUP BY ?property ORDER BY DESC(?count) LIMIT 1

Which reference property links the most items to the Papiamento Wikipedia edition?

How is the Papiamento Wikipedia most commonly cited as a source in Wikidata statements?

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


Question: What are the alternative labels for items that have Spanish labels and Spanish descriptions on Wikidata?

SELECT ?altLabel ?spanishLabel ?spanishDescription WHERE { ?entity rdfs:label ?spanishLabel . ?entity schema:description ?spanishDescription . ?entity skos:altLabel ?altLabel . FILTER (LANG(?spanishLabel) = "es") FILTER (LANG(?spanishDescription) = "es") } LIMIT 100

Alternative labels in any language for Spanish-labeled items with Spanish descriptions

Show me the alternative labels, along with their Spanish labels and descriptions, for items that have Spanish-language labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.w3.org/2004/02/skos/core#altLabel> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } LIMIT 100


Question: What are the most common relationships associated with chambered cairns in Wikidata, and how many times do they occur?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?propertyLabel ( COUNT( ?entity ) AS ?count ) WHERE {
  ?entity ?property wd:Q585490 .
  VALUES ( ?property ?propertyLabel ) {
    ( wdt:P31 "instance of" ) ( ps:P31 "instance of" ) ( wdt:P279 "subclass of" ) ( ps:P279 "subclass of" ) ( wdt:P921 "main subject" ) ( ps:P921 "main subject" ) ( schema:about "about" )
  }
}
GROUP BY ?property ?propertyLabel
HAVING ( ?count > 1 )
ORDER BY DESC ( ?count )

How many entities are linked to the chambered cairn concept via properties like 'instance of', 'subclass of', and 'main subject'?

Show me the properties that connect other items to the chambered cairn, ordered by how often they’re used, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q585490> . 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: What properties are used in Wikidata references?

SELECT ?prop WHERE { VALUES ?prop { <http://www.wikidata.org/prop/reference/P854> <http://www.wikidata.org/prop/reference/P1476> <http://www.wikidata.org/prop/reference/P813> <http://www.wikidata.org/prop/reference/P248> <http://www.wikidata.org/prop/reference/P1953> <http://www.wikidata.org/prop/reference/P304> <http://www.wikidata.org/prop/reference/P478> <http://www.wikidata.org/prop/reference/P958> } } ORDER BY ?prop

Can you list the standard properties used to cite sources in Wikidata, such as URLs, titles, and retrieval dates?

How does Wikidata record the sources of its claims? Show the properties used in references.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/reference/598a8ac346179e42525b40321209f66c0bb9a005> ?var1 ?var2 . }


Question: How many items in Wikidata have a description in Dutch?

PREFIX schema: <http://schema.org/>
SELECT ( COUNT( * ) AS ?count ) WHERE {
  ?item schema:description ?desc .
  FILTER ( LANG( ?desc ) = 'nl' )
}

Count the number of entities with a Dutch-language description.

What is the total number of Dutch descriptions in Wikidata?

SELECT( COUNT (* ) AS ?var1 ) WHERE { [] <http://schema.org/description> "string1"@nl . }


Question: German-labeled and described sources cited in Wikidata references

SELECT ?source ?sourceLabel ?sourceDescription WHERE { { SELECT DISTINCT ?source WHERE { ?statement pq:P248 ?source . } LIMIT 100 } ?source rdfs:label ?sourceLabel . ?source schema:description ?sourceDescription . FILTER(LANG(?sourceLabel) = "de") FILTER(LANG(?sourceDescription) = "de") } LIMIT 100

Which sources cited in Wikidata references have both a German label and a German description?

Show me the German labels and descriptions of all sources used in Wikidata references.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/qualifier/P248> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . } LIMIT 100


Question: Subclasses of oversize load with images

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

What are the subclasses of oversize load, and what images are associated with them?

Show me the names and images of vehicles or equipment used to transport oversize loads.

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


Question: What Spanish-labeled entities are connected to the given name "Íñigo" and via which Spanish-labeled properties?

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?givenName ?givenNameLabel ?property ?propertyLabel ?subject ?subjectLabel ?image WHERE {
  BIND( wd:Q19273889 AS ?givenName ) .
  ?subject ?property ?givenName .
  BIND( IRI( REPLACE( STR( ?property ) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/" ) ) AS ?propertyItem ) .
  ?propertyItem rdf:type wikibase:Property ; rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "es" ) .
  ?subject rdfs:label ?subjectLabel .
  FILTER ( LANG( ?subjectLabel ) = "es" ) .
  ?givenName rdfs:label ?givenNameLabel .
  FILTER ( LANG( ?givenNameLabel ) = "es" ) .
  OPTIONAL {
    ?givenName wdt:P18 ?image .
  }
}
LIMIT 100

Which Spanish-language names are linked to "Íñigo" as their child, different name, or given name, and what are the Spanish labels of those relationships?

Show me all entities in Spanish that have a relationship with the name "Íñigo", including the Spanish labels of those relationships and optionally an image of "Íñigo".

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label ?var6 WHERE { BIND ( <http://www.wikidata.org/entity/Q19273889> AS ?var1 ). ?var4 ?var2 ?var1 . ?var7 ?var8 ?var2 . ?var7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var5Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } } LIMIT 100


Question: What is the French and English title of the Wikipedia page "Wikipedia:Requests for adminship"?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ( xsd:string ( ?frLabel ) AS ?frLabelStr ) ( xsd:string ( ?enLabel ) AS ?enLabelStr ) WHERE {
  wd:Q4048254 rdfs:label ?frLabel .
  wd:Q4048254 rdfs:label ?enLabel .
  FILTER ( LANGMATCHES( LANG( ?frLabel ) , "fr" ) ) FILTER ( LANGMATCHES( LANG( ?enLabel ) , "en" ) )
}
LIMIT 10

Show the French and English labels for the Wikidata item Q4048254.

What does "Wikipedia:Requests for adminship" say in French and English?

SELECT DISTINCT( <http://www.w3.org/2001/XMLSchema#string> ( ?var1 ) AS ?var2 )( <http://www.w3.org/2001/XMLSchema#string> ( ?var3 ) AS ?var4 ) WHERE { <http://www.wikidata.org/entity/Q4048254> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q4048254> <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "FR" ) ) ) . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . } LIMIT 10


Question: What are the English-labeled subclasses of Wikimedia internal items?

SELECT ?subclass ?label WHERE { ?subclass (wdt:P279/wdt:P279*) wd:Q17442446 . OPTIONAL { ?subclass rdfs:label ?label . FILTER(LANG(?label) = "en") } } LIMIT 10000

Which Wikimedia-specific page categories have English labels and are subclasses of the internal item class?

List all English-labeled Wikimedia internal page types, including their subcategories.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P279> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q17442446> . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } LIMIT 10000


Question: List Wikimedia project pages and their project names (e.g., Wikipedia, Wiktionary) from the English labels.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ( STRBEFORE( ?label , ":" ) AS ?project ) WHERE {
  ?item wdt:P31 wd:Q14204246 .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 50

What are the English-labeled Wikimedia project pages, and which Wikimedia project (like Wikipedia or Wikibooks) do they belong to?

Please show me up to 50 Wikimedia project pages with their English labels and extract the project name (e.g., "Wikipedia") from the label before the colon.

SELECT ?var1 ?var1Label ( STRBEFORE ( ?var1Label , ":" ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q14204246> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 50