Question: Who is Tony Gomes in French on 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 ?person WHERE {
  ?person rdfs:label "Tony Gomes" @fr .
  ?person wdt:P31 wd:Q5 .
}

What is the Wikidata identifier for the person named Tony Gomes with a French label?

Show me the Wikidata entity for Tony Gomes that is labeled in French and is a human.

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


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

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?propItem ?propLabel ?propDescription WHERE {
  ?item ?prop wd:Q959968 .
  ?propItem wikibase:directClaim ?prop .
  ?propItem a wikibase:Property .
  ?propItem rdfs:label ?propLabel .
  ?propItem schema:description ?propDescription .
  FILTER ( LANG( ?propLabel ) = "en" ) FILTER ( LANG( ?propDescription ) = "en" )
}
LIMIT 100

Can you list the English labels and descriptions of all properties that link entities to the concept of a control system?

Which properties connect items to "control system" (Q959968), and what do they mean in English?

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/Q959968> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: What buildings were designed by female architects and are located in a country?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?building WHERE {
  ?building(wdt:P31 / wdt:P279 *) wd:Q41176 .
  ?building wdt:P84 ?architect .
  ?building wdt:P17 ?country .
  ?architect wdt:P21 wd:Q6581072 .
}

Can you list buildings that have a female architect as their designer?

Which architectural structures were designed by women, and in which countries are they located?

SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q41176> . ?var1 <http://www.wikidata.org/prop/direct/P84> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q467> . }


Question: World Heritage Sites in Europe with Italian administrative region names, coordinates, and images.

SELECT DISTINCT
  ?heritageSite
  ?heritageSiteLabel
  ?administrativeEntity
  ?administrativeEntityLabel
  ?coordinates
  ?image
WHERE {
  ?heritageSite wdt:P17 ?country .
  ?country wdt:P30 wd:Q46 .
  ?heritageSite wdt:P131 ?administrativeEntity .
  ?heritageSite wdt:P625 ?coordinates .
  ?heritageSite wdt:P1435 wd:Q9259 .

  ?heritageSite rdfs:label ?heritageSiteLabel . FILTER (LANG(?heritageSiteLabel) = "en")

  OPTIONAL { ?heritageSite wdt:P18 ?image . }
  OPTIONAL { ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER (LANG(?administrativeEntityLabel) = "it") }
}
GROUP BY
  ?heritageSite
  ?heritageSiteLabel
  ?administrativeEntity
  ?administrativeEntityLabel
  ?coordinates
  ?image
ORDER BY ASC(?heritageSiteLabel)
LIMIT 20

What are the World Heritage Sites located in Europe, and what are their Italian-named administrative regions, coordinates, and images?

List all World Heritage Sites in Europe, showing their English names, the Italian names of the regions they’re in, their geographic coordinates, and any available images.

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 { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P30> <http://www.wikidata.org/entity/Q46> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q9259> . 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 ( "it" ) ) ) . } 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> "it,en". } } GROUP BY ?var1 ?var1Label ?var5 ?var5Label ?var6 ?var6Label ?var7 ?var7Label ORDER BY ASC( ?var1Label )


Question: What are the biological and chemical databases and ontologies that have identifiers.org codes, and what are their codes?

SELECT ?databaseOrProperty ?identifiersCode ?label WHERE { ?databaseOrProperty wdt:P4793 ?identifiersCode . ?databaseOrProperty rdfs:label ?label . FILTER(LANG(?label) = "en") }

Which databases and ontologies are registered with identifiers.org, and what are their short codes?

Can you list the names and identifiers.org codes for systems like UniProt, ChEBI, and UBERON?

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


Question: What is the type of the Wikipedia list "List of tallest buildings in Detroit", and what is its English label?

SELECT ?typeLabel ?itemLabel WHERE { wd:Q4816899 wdt:P31 ?type ; rdfs:label ?itemLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

Type and label of "List of tallest buildings in Detroit" on Wikidata

Can you tell me the English label of the item "List of tallest buildings in Detroit" and the English label of the class it belongs to (its instance-of type)?

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


Question: List of places with their geographic coordinates in Wikidata.

SELECT ?item ?coordinates WHERE { ?item wdt:P625 ?coordinates . } LIMIT 100

What are some locations and their corresponding latitude and longitude coordinates in Wikidata?

Show me 100 examples of items in Wikidata that have defined geographic coordinates.

SELECT * 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/P625> ?var2 . } LIMIT 100


Question: What are the identifier properties in Wikidata and their corresponding URI templates?

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 ?issuer ?issuerLabel ?issuerTypeLabel ?associatedItem ?associatedItemLabel ?property ?propertyLabel ?formatterUri WHERE {
  ?property ( wdt:P31 / wdt:P279 * ) wd:Q18614948 ; wdt:P1921 ?formatterUri .
  OPTIONAL {
    ?property wdt:P2378 ?issuer .
    ?issuer wdt:P31 ?issuerType .
    OPTIONAL {
      ?issuer rdfs:label ?issuerLabel .
      FILTER ( LANG( ?issuerLabel ) = "en" )
    }
    OPTIONAL {
      ?issuerType rdfs:label ?issuerTypeLabel .
      FILTER ( LANG( ?issuerTypeLabel ) = "en" )
    }
  }
  OPTIONAL {
    ?property wdt:P1629 ?associatedItem .
    OPTIONAL {
      ?associatedItem rdfs:label ?associatedItemLabel .
      FILTER ( LANG( ?associatedItemLabel ) = "en" )
    }
  }
  OPTIONAL {
    ?property rdfs:label ?propertyLabel .
    FILTER ( LANG( ?propertyLabel ) = "en" )
  }
}
ORDER BY ASC ( ?formatterUri )

Which Wikidata properties are used as identifiers (like ISBN or ISSN), what are their formatter URIs, and what entities or organizations are associated with them?

List all identifier properties in Wikidata along with their URI patterns, the types of things they identify (like books or journals), and the organizations that issue them, sorted by URI template.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var3Label ?var4 ?var4Label ?var5 WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18614948> ; <http://www.wikidata.org/prop/direct/P1921> ?var5 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P2378> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P1629> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,de,es,fr,da". } } ORDER BY ASC( ?var5 )


Question: What are the most common starting letters of Spanish municipality names in Spanish?

SELECT ?firstLetter (COUNT(?firstLetter) AS ?count) WHERE { ?municipality wdt:P31 wd:Q2074737 . ?municipality rdfs:label ?label . FILTER(LANG(?label) = "es") BIND(SUBSTR(?label, 1, 1) AS ?firstLetter) } GROUP BY ?firstLetter ORDER BY DESC(?count)

Which letters do Spanish municipality names most frequently begin with, and how many start with each?

Show me a list of the first letters of Spanish names of Spanish municipalities, ordered by how many municipalities start with each letter, from most to least common.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { BIND ( SUBSTR ( ?var3Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2074737> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "es" ) && ( LANG ( ?var4Label ) = "es" ) ) ) . } GROUP BY ?var1 ORDER BY DESC( ?var2 )


Question: UNESCO World Heritage Sites with their country, coordinates, and images in English.

SELECT DISTINCT ?unescoId ?site ?siteLabel ?country ?countryLabel ?coordinates ?image WHERE { ?site wdt:P757 ?unescoId . ?site wdt:P17 ?country . ?site wdt:P625 ?coordinates . ?site wdt:P18 ?image . ?site rdfs:label ?siteLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?siteLabel) = "en") FILTER(LANG(?countryLabel) = "en") }

What are the UNESCO World Heritage Sites, their locations, countries, geographic coordinates, and associated images, all labeled in English?

List all UNESCO World Heritage Sites along with their English names, the countries they are in (with English names), their coordinates, and images from Wikimedia Commons.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var5 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P757> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } OPTIONAL { ?var6 <http://schema.org/about> ?var7 . ?var6 <http://schema.org/inLanguage> "fr". ?var6 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } }


Question: Geolocated places with names starting with "a" and their coordinates.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?coordinates WHERE {
  ?item wdt:P625 ?coordinates .
  ?item rdfs:label ?label .
  FILTER ( REGEX( ?label , "^a" , "i" ) )
}
LIMIT 3000

What are the names and geographic coordinates of all places in Wikidata whose names start with the letter "a"?

Show me the labels and coordinates of all geolocated entities whose labels begin with the letter "a", regardless of language.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( REGEX ( ?var1Label , "^a", "i" ) ) ) . } LIMIT 3000


Question: Geographic locations with English labels and coordinates in WKT format

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?location ?label ?wkt WHERE {
  ?location ( wdt:P31 / wdt:P279 * ) wd:Q2221906 .
  ?location rdfs:label ?label .
  ?location wdt:P625 ?wkt .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 100

What are some geographic locations (like mountains, islands, or cities) with their English names and coordinate points?

List 100 geographic features with their English labels and WKT coordinate representations.

SELECT ?var1 ?var2 WHERE { BIND ( STRDT ( CONCAT ( "Point(", IF ( ( ?var3 < "0"^^<http://www.w3.org/2001/XMLSchema#integer> ), STR ( ( ?var3 +"360"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) , STR ( ?var3 ) ) , " ", STR ( ?var4 ) , ")" ) , <http://www.opengis.net/ont/geosparql#wktLiteral> ) AS ?var2 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2221906> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var6 . ?var6 <http://wikiba.se/ontology#geoLatitude> ?var4 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . }


Question: What are the Spanish names of places of worship that start with the letter "E"?

SELECT ?place ?label WHERE { ?place (wdt:P31/wdt:P279*) wd:Q1370598 ; rdfs:label ?label . FILTER (LANG(?label) = "es") FILTER (REGEX(?label, "^E")) }

List all places of worship in Spanish that have names beginning with "E".

Show me the Spanish labels for religious structures starting with "E".

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/Q1370598> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . FILTER ( ( REGEX ( ?var1Label , "^E" ) ) ) . }


Question: List all heritage sites in Wales with Cadw Building or Monument IDs.

SELECT ?heritageSite WHERE { { ?heritageSite wdt:P1459 ?id1 . } UNION { ?heritageSite wdt:P3007 ?id2 . } }

What are the heritage sites in Wales that have a Cadw Building ID or a Cadw Monument ID?

Please provide a list of all listed buildings and scheduled monuments in Wales, identified by their Cadw identifiers.

SELECT ?var1 WHERE { { { ?var1 <http://www.wikidata.org/prop/direct/P1459> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P3007> ?var3 . } } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . } SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(0 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "10". } }


Question: What are the listed buildings in the UK with their locations, images, and Wikimedia Commons categories?

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

Can you show me UK listed buildings along with their coordinates, any associated images, and their Commons categories?

Which heritage-designated buildings in the UK have images and Commons categories linked to them?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(-5 52)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-2 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P1435> [] . 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: Grade I listed church buildings in Wales with their Cadw IDs and coordinates

SELECT ?church ?churchLabel ?cadwId ?cadwUrl ?location WHERE { ?church wdt:P1459 ?cadwId . ?church (wdt:P31/wdt:P279*) wd:Q16970 . ?church wdt:P625 ?location . ?church wdt:P1435 wd:Q15700818 . ?church rdfs:label ?churchLabel . FILTER(LANG(?churchLabel) = "en") BIND(CONCAT("https://cadwpublic-api.azurewebsites.net/reports/listedbuilding/FullReport?id=", ?cadwId) AS ?cadwUrl) }

What are the Grade I listed church buildings in Wales, their Cadw identification numbers, geographic coordinates, and how can I access their official Cadw records?

Please list all Grade I listed church buildings in Wales, including their English labels, Cadw IDs, coordinates, and direct links to their Cadw heritage records.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( IRI ( REPLACE ( ?var2 , "^(.+)$", ?var5 ) ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P1459> ?var2 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q16970> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q15700818> . <http://www.wikidata.org/entity/P1459> <http://www.wikidata.org/prop/direct/P1630> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var6 . } FILTER ( ( !( BOUND ( ?var6 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the people or institutions related to Georg Balthasar Metzger, and what are the nature of those relationships?

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

Which individuals or organizations had a direct relationship with Georg Balthasar Metzger (e.g., as his student or founder), and what are the English labels for those relationships?

Can you list the entities that are connected to Georg Balthasar Metzger through properties like 'student of' or 'founded by', along with their names and the relationship labels?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label ?var6 WHERE { BIND ( <http://www.wikidata.org/entity/Q104854> 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 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } } LIMIT 100


Question: List of listed buildings in Wales with Cadw Building IDs and their English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?building ?buildingLabel WHERE {
  ?building wdt:P1459 [] .
  ?building rdfs:label ?buildingLabel .
  FILTER(LANG(?buildingLabel) = "en")
}

What are the English names of buildings in Wales that have a Cadw Building ID?

Show me the English labels of all Welsh listed buildings that are assigned a Cadw Building ID.

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


Question: Religions associated with a country

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

What are the names of religions that are linked to a specific country?

List the English labels of all religious traditions that are located in at least one country.

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


Question: List all Wikidata properties that are used as unique identifiers for external sources.

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

What are the different types of identifier properties in Wikidata, such as those for playlists, diseases, or video games?

Show me all Wikidata properties that are subclasses of the "Wikidata property for an identifier" type.

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


Question: Australian heritage sites in New South Wales with AHD IDs and their listing types

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?ahd_id ?designationLabel WHERE {
  ?item wdt:P3008 ?ahd_id .
  ?item wdt:P1435 ?heritage .
  ?item wdt:P131 * wd:Q3224 .
  BIND( IF( ?heritage = wd:Q20747146 , "Australian National Heritage List" , IF( ?heritage = wd:Q30108476 , "Commonwealth Heritage List" , "Other" ) ) AS ?designationLabel ) .
  FILTER ( ?designationLabel != "Other" ) .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 10

Which heritage-listed sites in New South Wales have an Australian Heritage Database ID, and are they on the National or Commonwealth Heritage List?

List the names, AHD IDs, and heritage designation types (National or Commonwealth) of heritage sites located in New South Wales.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( IF ( ( ?var4 = <http://www.wikidata.org/entity/Q20747146> ), "string1", IF ( ( ?var4 = <http://www.wikidata.org/entity/Q30108476> ), "string2", "drop" ) ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P3008> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var4 . FILTER ( ( ( ?var3 != "drop" ) ) ) . FILTER ( ( ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) < "105000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q3224> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the geographic locations (city, country, and continent) of the Column of Marcus Aurelius?

SELECT DISTINCT ?location ?locationLabel WHERE { { wd:Q265384 wdt:P131 ?location . } UNION { wd:Q265384 wdt:P17 ?location . } UNION { wd:Q265384 wdt:P17 ?country . ?country wdt:P30 ?location . } ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") }

Where is the Column of Marcus Aurelius located? Include its city, country, and continent.

Can you tell me the administrative division, country, and continent where the Column of Marcus Aurelius is situated?

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


Question: What architectural styles are used for cemeteries, monuments, and memorials in France?

SELECT DISTINCT ?style ?styleLabel WHERE { VALUES ?deathType { wd:Q39614 wd:Q4989906 wd:Q13406463 } ?item wdt:P31/wdt:P279* ?deathType . ?item wdt:P17 wd:Q142 . ?item wdt:P149 ?style . ?style rdfs:label ?styleLabel . FILTER(LANG(?styleLabel) = "en") }

Can you list the architectural styles of death-related structures like cemeteries and memorials located in France?

Which styles of architecture are associated with French cemeteries, monuments, and memorials?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4> . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . ?var3 <http://www.wikidata.org/prop/direct/P149> ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What is the English description and image of the statue in Plogastel-Saint-Germain, France?

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

Can you show me the label, description, and image of the historical statue in Plogastel-Saint-Germain?

Provide the English name, description, and photo of the wooden religious statue listed as a historical monument in Plogastel-Saint-Germain, France.

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


Question: Which Wikimedia portal has Marseille as its main topic?

SELECT ?portal ?statement ?qualifierProperty WHERE { ?statement ps:P1204 wd:Q23482 . ?portal p:P1204 ?statement . OPTIONAL { ?statement ?qualifierProperty ?qualifierValue . ?qualifierProperty wikibase:qualifier true . } }

What Wikimedia portal is primarily about the city of Marseille?

Show me the Wikimedia portal that takes Marseille as its main topic, along with any qualifiers attached to that association.

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


Question: List towns with their countries, GeoNames IDs, populations, and English alternative names, sorted by country name and population.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?town ?townLabel ?country ?countryLabel ?geonamesId ?population ?altLabel WHERE {
  ?town(wdt:P31 / wdt:P279 *) wd:Q3957 .
  ?town wdt:P17 ?country .
  OPTIONAL {
    ?town wdt:P1566 ?geonamesId .
  }
  OPTIONAL {
    ?town wdt:P1082 ?population .
  }
  OPTIONAL {
    ?town skos:altLabel ?altLabel .
    FILTER(LANG(?altLabel) = "en")
  }
  ?town rdfs:label ?townLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?townLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}
ORDER BY ASC(?countryLabel) DESC(?population)

What are the towns in the world, along with their countries, populations, GeoNames IDs, and English alternative names, ordered alphabetically by country and by population in descending order?

Please provide a list of all towns, including their English labels, the countries they are in, their populations, GeoNames IDs, and any English alternative names, sorted by country name and then by population from highest to lowest.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3957> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . } ORDER BY ASC( ?var2Label ) DESC( ?var4 )


Question: What are the names of Lutheran church congregations in Russia, Ukraine, and nearby regions?

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 ?church ?churchLabel WHERE {
  ?church wdt:P31 wd:Q1989839 .
  ?church rdfs:label ?churchLabel .
}
LIMIT 100

List the labels of all entities that are instances of a Lutheran church organization.

Can you show me the names of church congregations classified as 'kirch'?

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


Question: What are the names and coordinates of places located in Paris, France?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?coordinates ?label WHERE {
  ?item wdt:P131 wd:Q90 .
  ?item wdt:P625 ?coordinates .
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 10

Show me the English-labeled locations in Paris along with their geographic coordinates.

List streets and landmarks in Paris with their latitude and longitude.

SELECT DISTINCT ?var1 ( "12188" AS ?var2 ) ?var3 ( STR ( ?var4Label ) AS ?var5 ) WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( STR ( ?var4Label ) = "string3" ) ) ) . }


Question: List buildings in the United Kingdom with their National Heritage List for England numbers and coordinates.

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 ?building ?buildingLabel ?heritageNumber ?coordinates WHERE {
  ?building wdt:P31 wd:Q41176 .
  ?building wdt:P17 wd:Q145 .
  OPTIONAL {
    ?building wdt:P1216 ?heritageNumber .
  }
  OPTIONAL {
    ?building wdt:P625 ?coordinates .
  }
  ?building rdfs:label ?buildingLabel .
  FILTER(LANG(?buildingLabel) = "en")
}

What are the names, heritage numbers, and geographic locations of buildings in the United Kingdom that are listed on the National Heritage List for England?

Please provide the English names, heritage list numbers, and coordinates of all listed buildings in the United Kingdom.

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


Question: What are the coordinates and physical features of structures built in ancient Roman architectural style?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?structureLabel ?physicalFeatureLabel ?coordinates WHERE {
  ?structure wdt:P149 wd:Q223750 .
  ?structure wdt:P625 ?coordinates .
  ?structure wdt:P706 ?physicalFeature .
  OPTIONAL {
    ?structure rdfs:label ?structureLabel .
    FILTER ( LANG( ?structureLabel ) = "en" )
  }
  OPTIONAL {
    ?physicalFeature rdfs:label ?physicalFeatureLabel .
    FILTER ( LANG( ?physicalFeatureLabel ) = "en" )
  }
}

Which Roman-era buildings are located on the Oppian Hill, and what are their geographic coordinates?

List the English names of ancient Roman architectural structures, the landforms they are located on, and their GPS coordinates.

SELECT DISTINCT ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P149> <http://www.wikidata.org/entity/Q223750> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P706> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the historical monuments located in Toulouse?

SELECT DISTINCT ?monument ?monumentLabel WHERE { ?monument wdt:P131 wd:Q7880 . ?monument wdt:P1435 wd:Q10387684 . ?monument rdfs:label ?monumentLabel . FILTER(LANG(?monumentLabel) = "en") }

List all classified historical monuments in Toulouse, France.

Can you show me the names of buildings in Toulouse that are protected as historical monuments by the French government?

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q916475> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q7880> . }


Question: What is the label and description of the property used to specify the type of mapping for external identifiers in Wikidata?

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

What does the property P4390 mean in Wikidata?

Can you show me the English label and description of the SKOS mapping relation type property?

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/Q39893449> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Which of these six heritage-related items have official identifiers in UK heritage databases?

SELECT ?heritage_item WHERE { { ?heritage_item wdt:P709 ?id } UNION { ?heritage_item wdt:P718 ?id } UNION { ?heritage_item wdt:P1216 ?id } UNION { ?heritage_item wdt:P1459 ?id } UNION { ?heritage_item wdt:P1460 ?id } UNION { ?heritage_item wdt:P3007 ?id } . FILTER ( ?heritage_item IN ( wd:Q16265590, wd:Q639208, wd:Q15866711, wd:Q19070244, wd:Q17647222, wd:Q5342522 ) ) MINUS { ?heritage_item wdt:P31 wd:Q13406463 . } }

Among Bodiam Castle, the medieval pleasaunce near Court Lodge, and four other entities, which ones are listed in Historic Environment Scotland, Canmore, Cadw, or other UK heritage registers?

Can you tell me which of these six entities — including Bodiam Castle and the archaeological site southeast of Court Lodge — are officially recorded in UK heritage systems like the National Heritage List for England or Canmore?

SELECT ?var1 WHERE { { { ?var1 <http://www.wikidata.org/prop/direct/P709> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P718> ?var3 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P1216> ?var4 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P1459> ?var5 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P1460> ?var6 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P3007> ?var7 . } } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . } FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q16265590> , <http://www.wikidata.org/entity/Q639208> , <http://www.wikidata.org/entity/Q15866711> , <http://www.wikidata.org/entity/Q19070244> , <http://www.wikidata.org/entity/Q17647222> , <http://www.wikidata.org/entity/Q5342522> ) ) ) . }


Question: What type of building is Saint Nicholas Church, and what types of administrative entities are Bucharest and Romania?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?churchTypeLabel ?cityTypeLabel ?city ?cityLabel ?countryTypeLabel ?country ?countryLabel WHERE {
  wd:Q2502307 wdt:P31 ?churchType .
  wd:Q2502307 wdt:P131 ?city .
  ?city wdt:P31 ?cityType .
  ?city wdt:P131 ?country .
  ?country wdt:P31 ?countryType .
  ?churchType rdfs:label ?churchTypeLabel .
  ?cityType rdfs:label ?cityTypeLabel .
  ?countryType rdfs:label ?countryTypeLabel .
  ?city rdfs:label ?cityLabel .
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?churchTypeLabel ) = "en" ) FILTER ( LANG( ?cityTypeLabel ) = "en" ) FILTER ( LANG( ?countryTypeLabel ) = "en" ) FILTER ( LANG( ?cityLabel ) = "en" ) FILTER ( LANG( ?countryLabel ) = "en" )
}

Show me the classification of Saint Nicholas Church, along with the types of the city (Bucharest) and country (Romania) it is located in.

Types of Saint Nicholas Church in Bucharest, Romania, and the administrative types of Bucharest and Romania.

SELECT DISTINCT ?var1Label ?var2Label ?var3 ?var3Label ?var4Label ?var5 ?var5Label WHERE { BIND ( <http://www.wikidata.org/entity/Q2502307> 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: Who are the people with the surname Inglebert?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?label WHERE {
  ?person rdfs:label ?label .
  FILTER(LANG(?label) IN("en" , "fr"))
  FILTER(CONTAINS(LCASE(?label) , "inglebert"))
  ?person wdt:P31 wd:Q5 .
}
ORDER BY ?label

Can you list all humans whose name includes 'Inglebert' in English or French?

Show me the English and French labels of all individuals in Wikidata with the surname Inglebert.

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


Question: List buildings and structures in England with National Heritage List numbers starting with 136249.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?listNumber WHERE {
  ?item wdt:P1216 ?listNumber .
  ?item rdfs:label ?itemLabel .
  FILTER(REGEX(?listNumber , "^136249"))
  FILTER(LANG(?itemLabel) = "en")
}
ORDER BY ?listNumber

What are the English heritage items numbered between 1362490 and 1362499 on the National Heritage List?

Show me the names and Heritage List numbers of all listed buildings in England with numbers beginning with 136249.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1216> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( REGEX ( ?var2 , "^(136249)" ) ) ) . }


Question: What type is Kaunas Cathedral Basilica and what is its name?

SELECT ?typeLabel ?itemLabel WHERE { wd:Q1686988 wdt:P31 ?type ; rdfs:label ?itemLabel . ?type rdfs:label ?typeLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?typeLabel) = "en") }

What is the English label of Kaunas Cathedral Basilica, and what class does it belong to?

Show me the English name of Kaunas Cathedral Basilica and its type in English.

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


Question: What locations are associated with Christ Church, Hampstead, and what are their images?

SELECT ?property ?value ?valueLabel ?valueImage WHERE { wd:Q5108689 ?property ?value . OPTIONAL { ?value rdfs:label ?valueLabel . FILTER ( LANG(?valueLabel) = "en" ) } OPTIONAL { ?value wdt:P18 ?valueImage . } FILTER ( STRSTARTS( LCASE( STR(?valueLabel) ), "hampstead" ) || STRSTARTS( LCASE( STR(?valueLabel) ), "london" ) ) }

Show me the properties linking Christ Church, Hampstead to places like Hampstead or London, along with the labels and images of those places.

Which places are connected to Christ Church in Hampstead, and can you show me their names and pictures?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { { BIND ( <http://www.wikidata.org/entity/Q5108689> 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/Q5108689> ?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 cultural heritage sites in southern France (between 1.5°E and 3.5°E, 42.5°N and 43.5°N) have a heritage designation or Wiki Loves Monuments ID, along with their images and administrative locations?

SELECT ?item ?itemLabel ?administrativeEntity ?administrativeEntityLabel ?image ?coordinates WHERE {
  ?item wdt:P625 ?coordinates .
  FILTER(geof:longitude(?coordinates) >= 1.5 && geof:longitude(?coordinates) <= 3.5 && geof:latitude(?coordinates) >= 42.5 && geof:latitude(?coordinates) <= 43.5)
  OPTIONAL { ?item wdt:P131 ?administrativeEntity . }
  OPTIONAL { ?item wdt:P18 ?image . }
  {
    ?item p:P1435 ?heritage .
  } UNION {
    ?item p:P2186 ?wlm .
  }
  OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') }
  OPTIONAL { ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = 'en') }
}

List monuments in the Aude region of France that are part of Wiki Loves Monuments or have a heritage status, showing their coordinates, images, and the towns they’re in.

Find churches, castles, and other protected sites in the Pyrenees-Orientales and Aude areas with available photos and location data, filtered by geographic bounds.

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


Question: What properties are used to describe St. Bernard de Clairvaux Church?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel WHERE {
  wd:Q1775885 ?property ?value .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
  .
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyEntity)
  .
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
ORDER BY ?property

List the English labels of all direct properties associated with the St. Bernard de Clairvaux Church.

Which attributes (like location, country, etc.) are defined for the St. Bernard de Clairvaux Church in Wikidata?

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


Question: What are the coordinates of Paris, France, and what is the fixed value 16633 associated with it?

SELECT ?item ?constant ?coordinate ?label WHERE { ?item wdt:P625 ?coordinate . ?item rdfs:label ?label . FILTER (?item = wd:Q90) FILTER (LANG(?label) = "en") BIND("16633" AS ?constant) }

Can you tell me the geographic coordinates of Paris and the constant value 16633 linked to it in Wikidata?

Please return the English label, coordinates, and the constant '16633' for the entity representing Paris, France.

SELECT DISTINCT ?var1 ( "16633" AS ?var2 ) ?var3 ( STR ( ?var4Label ) AS ?var5 ) WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( STR ( ?var4Label ) = "string3" ) ) ) . }


Question: What financial categories does high-yield debt belong to?

SELECT DISTINCT ?subclass ?label WHERE { wd:Q1050279 wdt:P279* ?subclass . ?subclass rdfs:label ?label . FILTER(LANG(?label) = 'en') . FILTER(CONTAINS(LCASE(?label), 'financial') || CONTAINS(LCASE(?label), 'economic') || CONTAINS(LCASE(?label), 'bond') || CONTAINS(LCASE(?label), 'debt') || CONTAINS(LCASE(?label), 'instrument')) } ORDER BY ?subclass

Can you list all the classes that high-yield debt is a subclass of, specifically within finance and economics?

Show me the hierarchy of financial terms that include high-yield debt, such as bonds and financial instruments.

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


Question: Church buildings in the United Kingdom with their administrative areas, coordinates, and heritage designations.

SELECT ?church ?churchLabel ?administrativeArea ?coordinates ?heritageDesignation WHERE { ?church wdt:P31 wd:Q16970 . ?church wdt:P17 wd:Q145 . ?church wdt:P131 ?administrativeArea . ?church wdt:P625 ?coordinates . ?church wdt:P1435 ?heritageDesignation . ?church rdfs:label ?churchLabel . FILTER(LANG(?churchLabel) = "en") }

What are the church buildings in the United Kingdom, their locations, coordinates, and heritage statuses?

List all church buildings in the UK, including their English names, the administrative areas they are located in, their geographic coordinates, and their official heritage designations (e.g., Grade II listed).

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16970> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: French-labeled person named Jean Haas who is human

SELECT DISTINCT ?person WHERE { ?person rdfs:label "Jean Haas" @fr . ?person wdt:P31 wd:Q5 . }

Who is the French-labeled person named Jean Haas that is a human?

Find the human individual named Jean Haas in French.

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


Question: What is the Italian name, image, coordinates, and Wikipedia page for the Church of the Visitation of the Virgin Mary and Saint Barnabas in Turin?

SELECT ?label ?abstract ?image ?coordinates ?wikipediaPage WHERE { wd:Q3669248 rdfs:label ?label . FILTER(LANG(?label) IN ("it", "en", "de", "fr")) VALUES (?lang ?priority) { ("it" 1) ("en" 2) ("de" 3) ("fr" 4) } FILTER(LANG(?label) = ?lang) OPTIONAL { wd:Q3669248 wdt:P1813 ?abstract . FILTER(LANG(?abstract) = "it") } OPTIONAL { wd:Q3669248 wdt:P18 ?image . } OPTIONAL { wd:Q3669248 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaPage schema:about wd:Q3669248 ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> . } } ORDER BY ASC(?priority) LIMIT 1

Can you show me the preferred language label, location, and Italian Wikipedia link for the church Q3669248, along with its image?

Tell me about the Church of the Visitation of the Virgin Mary and Saint Barnabas in Turin: what does it look like, where is it located, and where can I read about it in Italian?

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


Question: In which country is the Dominican Church of the Holy Spirit located?

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

Country of Dominican Church of the Holy Spirit

Tell me the sovereign state where the Dominican Church of the Holy Spirit is situated.

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


Question: What property is most commonly used to link items to Douglas Adams as their object?

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

Which property has the highest number of statements where Douglas Adams is the object, and how many such statements are there?

Find the property that connects Douglas Adams to the most works, along with the count of those connections.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q42> . ?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: Churches in Europe with more than one image and a known architectural style.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?church ( COUNT( ?image ) AS ?imageCount ) WHERE {
  ?church ( wdt:P31 / wdt:P279 * ) wd:Q16970 .
  ?church wdt:P17 ?country .
  ?country wdt:P30 wd:Q46 .
  ?church wdt:P625 ?location .
  ?church wdt:P18 ?image .
  ?church wdt:P149 ?architecturalStyle .
}
GROUP BY ?church
HAVING ( ?imageCount > 1 )

Which churches in Europe have more than one image and are associated with a specific architectural style?

List all churches in Europe that have multiple images on Wikimedia Commons and are classified with an architectural style.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q16970> AS ?var4 ). BIND ( <http://www.wikidata.org/entity/Q46> AS ?var5 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P30> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P149> ?var8 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: French diocesan architects with identifiers in Wikidata

SELECT ?architect WHERE { ?architect wdt:P2385 ?id . ?architect wdt:P31 wd:Q5 . } LIMIT 100

Who are the French diocesan architects listed in Wikidata?

List all French diocesan architects who have a French diocesan architects ID.

SELECT ?var1 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/P360> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P2385> <http://www.wikidata.org/entity/Q18616576> . } LIMIT 100


Question: Things that are part of Europe

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

What are all the places and entities that are part of Europe, directly or indirectly?

List all items located in Europe, including nested regions, cities, and landmarks, with their names.

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


Question: What countries border the Mediterranean Sea, and on which continents are they located?

SELECT DISTINCT ?var1 WHERE { { wd:Q4918 wdt:P17 ?var1 . } UNION { wd:Q4918 wdt:P17 ?country . ?country wdt:P30 ?var1 . } }

List all countries and continents associated with the Mediterranean Sea.

Which nations and continents are connected to the Mediterranean Sea?

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


Question: French descriptions of places of worship containing "église"

SELECT ?placeOfWorshipType ?description WHERE { ?placeOfWorshipType (wdt:P31/wdt:P279*) wd:Q1370598 ; schema:description ?description . FILTER (LANG(?description) = "fr") FILTER (REGEX(?description, "église", "i")) }

What are the French-language descriptions of churches or religious buildings in Wikidata?

Show me all French descriptions of entities that are types of places of worship, where the description includes the word "église".

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1370598> ; <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "fr" ) ) ) . FILTER ( ( REGEX ( ?var2 , "string1" ) ) ) . }


Question: Administrative divisions and continent of Stadil Church.

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

What countries, municipalities, and continent is Stadil Church located in?

Show me the full geographical hierarchy of Stadil Church, including its country and continent.

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


Question: Properties and values describing Philadelphia Holy Redeemer Chinese Catholic Church and School, along with their Wikidata property items.

SELECT ?propertyItem ?propertyItemLabel ?value ?valueLabel WHERE { wd:Q3361744 ?property ?value . ?propertyItem wikibase:directClaim ?property . OPTIONAL { ?propertyItem rdfs:label ?propertyItemLabel . FILTER(LANG(?propertyItemLabel) = "en") } OPTIONAL { ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") } } LIMIT 100

What properties are used to describe the Philadelphia Holy Redeemer Chinese Catholic Church and School, and what are the corresponding Wikidata property entities and their values?

List the statements made about the Philadelphia Holy Redeemer Chinese Catholic Church and School, including the property names, property items, and their values in English.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q3361744> . ?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: Countries and the treaties that define their borders

SELECT DISTINCT ?country ?countryLabel ?sourceLabel WHERE { ?country wdt:P31 wd:Q6256 ; p:P47 ?stmt . ?stmt ps:P47 ?neighbor ; pq:P805 ?source . ?country rdfs:label ?countryLabel . ?source rdfs:label ?sourceLabel . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?sourceLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries have internationally recognized border agreements, and what are those agreements called?

List all countries along with the names of the treaties or agreements that define their international borders.

SELECT DISTINCT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> ; <http://www.wikidata.org/prop/direct/P2046> ?var3 ; <http://www.wikidata.org/prop/P47> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P47> ?var5 ; <http://www.wikidata.org/prop/qualifier/P805> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Properties associated with entities that have Edinburgh as their capital city.

SELECT DISTINCT ?property WHERE { ?entity wdt:P36 wd:Q23436 . ?entity ?property ?value . }

What properties are used on entities for which Edinburgh is the capital city?

List all properties that connect entities to Edinburgh as their capital city.

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


Question: What is the official language of Russia?

SELECT ?language WHERE { wd:Q159 wdt:P37 ?language .}

Which language is officially recognized in Russia?

Show the official language of the Russian Federation.

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


Question: French cultural heritage monuments with images and Wikimedia Commons categories

SELECT ?monument ?monumentLabel ?image ?commonsCategory WHERE { ?monument wdt:P380 [] . OPTIONAL { ?monument wdt:P18 ?image . } OPTIONAL { ?monument wdt:P373 ?commonsCategory . } ?monument rdfs:label ?monumentLabel . } LIMIT 3000

What are French monuments listed in the Mérimée database, and what images and Commons categories are associated with them?

List all French cultural heritage monuments that have images and Commons categories on Wikimedia Commons.

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 47)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-1 48)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P380> [] . 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 are some examples of places of worship?

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

Can you list the different kinds of religious structures, such as temples, mosques, and shrines?

What are the various terms used across languages to describe structures used for worship?

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


Question: Church buildings with coordinates, construction dates, and countries

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 ?churchLabel ?coordinates ?inception ?country WHERE {
  ?church ( wdt:P31 / wdt:P279 * ) wd:Q16970 .
  ?church wdt:P625 ?coordinates .
  OPTIONAL {
    ?church wdt:P571 ?inception .
  }
  OPTIONAL {
    ?church wdt:P17 ?country .
  }
  ?church rdfs:label ?churchLabel .
  FILTER ( LANG( ?churchLabel ) = "en" )
}
LIMIT 100

What are the locations, construction dates, and countries of all church buildings and their subclasses?

List all church buildings (including cathedrals and chapels) with their geographic coordinates, when they were built, and which country they are in.

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


Question: Museums in Scotland

SELECT ?museum ?museumLabel WHERE { ?museum wdt:P31 wd:Q33506 . ?museum wdt:P131/wdt:P131* wd:Q22 . ?museum rdfs:label ?museumLabel . FILTER(LANG(?museumLabel) = "en")}

What are the museums located in Scotland?

List the English names of all museums in Scotland, including those in cities like Edinburgh or Glasgow.

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


Question: Cathedrals in France with architectural style and image, excluding demolished ones

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?cathedral ?cathedralLabel ?archStyleLabel ?image ?coord WHERE {
  ?cathedral ( wdt:P31 / wdt:P279 * ) wd:Q2977 .
  ?cathedral wdt:P17 wd:Q142 .
  ?cathedral wdt:P625 ?coord . MINUS {
    ?cathedral wdt:P576 [] .
  }
  OPTIONAL {
    ?cathedral wdt:P149 ?archStyle .
    ?archStyle rdfs:label ?archStyleLabel .
    FILTER ( LANG( ?archStyleLabel ) = "en" )
  }
  OPTIONAL {
    ?cathedral wdt:P18 ?image .
  }
  ?cathedral rdfs:label ?cathedralLabel .
  FILTER ( LANG( ?cathedralLabel ) = "en" )
}

What are the cathedrals in France that are not demolished, and what are their architectural styles and images?

List the English-named cathedrals in France along with their architectural styles and images, but exclude any that have been demolished. (Note: Proximity to Saint-Palais cannot be filtered due to system limitations.)

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2977> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . <http://www.wikidata.org/entity/Q940798> <http://www.wikidata.org/prop/direct/P625> ?var5 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var5 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "1000". } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P576> [] . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P149> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What is the Wikidata item for the person named "Loïc Finaz" in French?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Loïc Finaz"@fr . }

Find the entity in Wikidata whose French label is "Loïc Finaz".

Who is Loïc Finaz? (Return the Wikidata ID for the person with the French name "Loïc Finaz")

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


Question: Subclasses of mosque in English

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

What are the different types of mosques, including their subtypes, in English?

List all known types and variants of mosques, including indirect subclasses, with their English labels.

CONSTRUCT { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label } WHERE { ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q32815> . ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q32815> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . }


Question: What is the image and Wikimedia Commons category for the city of Cairo?

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory WHERE { VALUES ?item { wd:Q85 }  ?item wdt:P625 ?coord . OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you show me the location, image, and Commons category of Cairo?

Tell me about Cairo: where is it located, what image represents it, and what is its Wikimedia Commons category?

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


Question: List all continents in Wikidata with their English labels.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?continentLabel WHERE {
  ?item wdt:P30 ?continent .
  OPTIONAL {
    ?continent rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  BIND( COALESCE ( ?label , SUBSTR( STR( ?continent ) , 32 ) ) AS ?continentLabel )
}

What are the continents mentioned in Wikidata, and what are their English names?

Show me the names of all continents used in Wikidata, using English labels where available; if no English label exists, show the entity ID.

SELECT ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { [] <http://www.wikidata.org/prop/direct/P30> ?var1 . } } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var2 , STRAFTER ( STR ( ?var1 ) , "string1" ) ) AS ?var1Label ). }


Question: List historical monuments in France with heritage designation "classified historical monument" or "monument historique inscrit", including their images, start years, Mérimée IDs, and coordinates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?monument ?image ?startYear ?merimeeId ?heritageDesignation ?coordinates WHERE {
  {
    ?monument wdt:P31 wd:Q916475 .
  } UNION {
    ?monument wdt:P31 ?type .
    ?type wdt:P279 * wd:Q916475 .
  }
  ?monument wdt:P1435 ?heritageDesignation .
  FILTER(?heritageDesignation IN(wd:Q10387684 , wd:Q10387575))
  OPTIONAL {
    ?monument wdt:P580 ?startTime .
    BIND(YEAR(?startTime) AS ?startYear)
  }
  OPTIONAL {
    ?monument wdt:P380 ?merimeeId
  }
  OPTIONAL {
    ?monument wdt:P18 ?image
  }
  OPTIONAL {
    ?monument wdt:P625 ?coordinates
  }
}
LIMIT 10

What are the French historical monuments designated as "classified historical monument" or "monument historique inscrit", and what are their images, start dates, Mérimée IDs, and geographic coordinates?

Please provide a list of up to 10 French historical monuments that are either classified as "classified historical monument" or "monument historique inscrit", along with any available image, start year, Mérimée identifier, and coordinates.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q916475> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var9 . ?var9 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q916475> . } } BIND ( YEAR ( ?var10 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P580> ?var10 . ?var1 <http://www.wikidata.org/prop/direct/P380> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var5 . ?var1 <http://www.wikidata.org/entity/Q10387684> ?var7 . ?var1 <http://www.wikidata.org/entity/Q10387575> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var8 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } LIMIT 10


Question: What are the top 10 cities in the United States with the most people born there?

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 ?cityLabel ( COUNT( ?city ) AS ?birthCount ) WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city wdt:P17 wd:Q30 .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P19 ?city .
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG( ?cityLabel ) = "en" )
}
GROUP BY ?cityLabel
ORDER BY DESC ( ?birthCount )
LIMIT 10

Which U.S. cities have the highest number of native-born residents, and how many people were born in each?

Can you list the 10 American cities where the most humans were born, ordered by birth count?

SELECT ?var1Label ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?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/Q30> . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P19> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1Label ORDER BY DESC( ?var2 ) LIMIT 10


Question: French label "Joël Matip" and is a human

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Joël Matip" @fr . ?item wdt:P31 wd:Q5 . }

Who is the person named "Joël Matip" in French and is classified as a human?

Find the Wikidata item for the person whose French label is "Joël Matip" and who is a human.

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


Question: What information is associated with the gender of Douglas Adams?

SELECT ?gender ?property ?value WHERE { wd:Q42 wdt:P21 ?gender . ?gender ?property ?value . }

Can you show me all the properties and values linked to the fact that Douglas Adams is male?

What external identifiers or descriptions are attached to the concept of "male" as the gender of Douglas Adams?

SELECT * WHERE { <http://www.wikidata.org/entity/Q42> <http://www.wikidata.org/prop/direct/P21> ?var1 . ?var1 ?var2 ?var3 . } LIMIT 10000


Question: What are the U.S. states that are considered exclaves of the United States, and what are their capitals?

SELECT DISTINCT ?stateLabel ?capital ?capitalLabel ?state WHERE { ?state wdt:P31 wd:Q35657 . OPTIONAL { ?state wdt:P36 ?capital . } FILTER (NOT EXISTS { ?state wdt:P31 wd:Q3024240 }) ?state wdt:P500 wd:Q30 . ?state rdfs:label ?stateLabel . FILTER(LANG(?stateLabel) = "en") OPTIONAL { ?capital rdfs:label ?capitalLabel . FILTER(LANG(?capitalLabel) = "en") } } ORDER BY ASC(?stateLabel)

Which non-contiguous U.S. states are listed as exclaves of the United States, and what are their capital cities?

List the capitals of U.S. states that are geographically separated from the contiguous U.S. and classified as exclaves of the United States.

SELECT DISTINCT ?var1 ?var2Label ?var3 ?var3Label ?var4 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q35657> . OPTIONAL { ?var4 <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> "en". } FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . ?var4 <http://www.wikidata.org/prop/direct/P500> <http://www.wikidata.org/entity/Q30> . } ORDER BY ASC( ?var4Label )


Question: List church buildings in France with their INSEE codes and generate URLs for clochers.org, excluding those already in the Clochers de France database.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?church ?insee ( CONCAT ( "https://www.clochers.org/" , SUBSTR( ?insee , 1 , 3 ) , "/accueil_" , ?insee , ".htm Lien]" ) AS ?url ) WHERE {
  ?church wdt:P131 + wd:Q142 .
  ?church ( wdt:P31 / wdt:P279 * ) wd:Q16970 .
  ?church wdt:P131 ?admin .
  ?admin wdt:P374 ?insee . MINUS {
    ?church wdt:P3963 [] .
  }
}

What are the church buildings in France that are not listed on clochers.org, and what are the corresponding INSEE codes used to construct their website URLs?

Can you provide a list of church buildings located in France, along with the first three digits of their municipality’s INSEE code, and a constructed URL in the format https://www.clochers.org/{first3digits}/accueil_{insee}.htm Lien], but only for those not assigned a Clochers de France ID?

SELECT DISTINCT ?var1 ?var2 ( CONCAT ( "string1", SUBSTR ( ?var2 ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ,"3"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "/accueil_", ?var2 , ".htm Lien]" ) AS ?var3 ) 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/Q142> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q16970> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P374> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P3963> [] . } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/prop/novalue/P3963> . } ) ) . }


Question: Capital cities of Europe with their coordinates and multilingual names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?capital ?label ?coordinates WHERE {
  ?capital wdt:P31 wd:Q5119 .
  ?capital wdt:P30 wd:Q46 .
  ?capital wdt:P625 ?coordinates .
  ?capital rdfs:label ?label .
}

What are the capital cities in Europe, their geographic coordinates, and how are they named in different languages?

List all capital cities in Europe along with their coordinates and labels in various languages.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5119> . ?var1 ?var2 <http://www.wikidata.org/entity/Q46> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: What has been the population of Bern in each recorded year?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?city ?population ?year WHERE {
  BIND(wd:Q70 AS ?city)
  ?city p:P1082 ?statement .
  ?statement ps:P1082 ?population .
  ?statement pq:P585 ?date .
  BIND(YEAR(?date) AS ?year)
}
ORDER BY ASC(?year)

Can you show me the historical population of Bern, ordered by year?

For which years do we have population data for Bern, and what were the numbers?

SELECT ?var1 ?var2 ( MAX ( ?var3 ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q70> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/P1082> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P1082> ?var3 . OPTIONAL { BIND ( YEAR ( ?var5 ) AS ?var2 ). ?var4 <http://www.wikidata.org/prop/qualifier/P585> ?var5 . } } GROUP BY ?var2 ?var1 ORDER BY ASC( ?var2 )


Question: What are the capital cities of existing countries in Central European Time, ranked by population?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?capitalLabel ?population WHERE {
  ?country wdt:P31 wd:Q3624078 .
  FILTER NOT EXISTS {
    ?country wdt:P576 ?dissolutionDate
  }
  .
  ?country wdt:P36 ?capital .
  ?capital rdfs:label ?capitalLabel .
  FILTER ( LANG( ?capitalLabel ) = "en" ) .
  ?capital wdt:P1082 ?population .
  ?capital wdt:P421 wd:Q6655 .
}
ORDER BY DESC ( ?population )

Can you list the English names and populations of capitals in UTC+1 that belong to currently existing countries, sorted from most to least populous?

Show me the most populous capitals of sovereign nations that are in the UTC+1 time zone, with their English labels.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Country> . FILTER ( ( NOT EXISTS { ?var3 <http://dbpedia.org/ontology/dissolutionDate> ?var4 . } ) ) . ?var3 <http://dbpedia.org/ontology/capital> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . { ?var5 <http://dbpedia.org/ontology/timeZone> <http://dbpedia.org/resource/Central_European_Time> . } UNION { ?var5 <http://dbpedia.org/property/timezone> ?var6 . FILTER ( ( ( STR ( ?var6 ) = "CET" ) ) ) . } ?var5 <http://dbpedia.org/ontology/populationTotal> ?var2 . } ORDER BY DESC( ?var2 )


Question: What are the types of circuit breakers?

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

Can you list the subclasses of circuit breaker in English?

Show me the different kinds of circuit breakers with their names.

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


Question: What is the source and retrieval date for Berlin's population data in Wikidata?

SELECT ?source ?retrieved WHERE { wd:Q64 wdt:P1082 ?pop . ?statement ps:P1082 ?pop . ?statement prov:wasDerivedFrom ?ref . ?ref pr:P248 ?source . ?ref pr:P813 ?retrieved . }

Which official source and when was the population figure for Berlin last retrieved?

Show me the reference source and date for the population count of Berlin.

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


Question: What has been France’s population each year from 1901 to 2025?

SELECT (YEAR(?date) AS ?year) ?population WHERE { VALUES ?country { wd:Q142 } ?country p:P1082 ?statement . ?statement ps:P1082 ?population ; pq:P585 ?date . } ORDER BY ASC(?year)

Show me the historical and projected population of France over time, including the year and number of inhabitants.

How has the population of France changed from 1901 to 2025?

SELECT( YEAR ( ?var1 ) AS ?var2 ) ?var3 WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q142> ) } ?var4 <http://www.wikidata.org/prop/P1082> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P1082> ?var3 ; <http://www.wikidata.org/prop/qualifier/P585> ?var1 . } ORDER BY ASC( ?var2 )


Question: What are the broader categories that a gas stove belongs to?

SELECT DISTINCT ?superclass ?superclassLabel WHERE { wd:Q1667685 wdt:P279+ ?superclass . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?superclassLabel) = "en") }

Can you list all the superclass types of a gas stove in the Wikidata ontology?

Show me all the higher-level categories above gas stove in the subclass hierarchy, such as appliance or equipment.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { SELECT ?var1 ?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.BFS"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1667685> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#out2> ?var2 ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,sv,jp,zh,ru,fr,de". } }


Question: What are some examples of electrical appliances?

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

Show me some items that are electrical appliances.

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


Question: What are the main topics of lists that have Asturian labels and descriptions?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?label ?description WHERE {
  ?item rdfs:label ?label .
  ?item schema:description ?description .
  FILTER ( LANG( ?label ) = "ast" ) .
  FILTER ( LANG( ?description ) = "ast" ) .
  ?list wdt:P360 ?item .
}
LIMIT 100

Which items, serving as the main topic of a list, have both an Asturian label and an Asturian description?

Show me the Asturian-labeled and described items that are the main topics of lists on Wikidata.

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/P360> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "ast" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ast" ) ) ) . } LIMIT 100


Question: List countries with their population and official languages.

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 ?countryLabel ?population(GROUP_CONCAT(DISTINCT ?languageLabel ; SEPARATOR = ", ") AS ?officialLanguages) WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country wdt:P37 ?language .
  ?country wdt:P1082 ?population .
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER(LANG(?countryLabel) = "en")
  }
  OPTIONAL {
    ?language rdfs:label ?languageLabel .
    FILTER(LANG(?languageLabel) = "en")
  }
}
GROUP BY ?country ?countryLabel ?population
ORDER BY ASC(?countryLabel)

What are the population and official languages of each country?

Can you show me a list of all countries, their current population, and all their official languages, with languages concatenated into a single comma-separated string?

SELECT DISTINCT ?var1Label ?var2 ( GROUP_CONCAT ( DISTINCT ?var3Label ; SEPARATOR = ", " ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var3 ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P37> * ?var3 . } ORDER BY ASC( ?var3 ) } ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } GROUP BY ?var1 ?var1Label ?var3Label ?var2 ORDER BY ASC( ?var1Label )


Question: What are the names of the list of cities in Gabon in English, German, French, and Italian, and what is its English Wikipedia page?

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { OPTIONAL { wd:Q498604 rdfs:label ?label . FILTER (LANG(?label) = ?lang) VALUES (?lang ?order) { ("en" 1) ("de" 2) ("fr" 3) ("it" 4) } } OPTIONAL { wd:Q498604 wdt:P18 ?image . } OPTIONAL { wd:Q498604 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q498604 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ASC(?order)

Can you show me how "List of cities in Gabon" is titled in different languages, and link to its English Wikipedia article?

For the Wikipedia list about cities in Gabon, what are its labels in English, German, French, and Italian, and which English Wikipedia page describes it?

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


Question: Who is the French missionary with the French label "Évariste Huc"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Évariste Huc" @fr .
  ?item wdt:P31 wd:Q5
}

What human entity is labeled "Évariste Huc" in French?

Find the French-labeled person named Évariste Huc.

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


Question: Products that are instances of the concept "product"

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?product WHERE {
  ?product wdt:P31 wd:Q2424752 .
  FILTER ( STRSTARTS( STR( ?product ) , "http://www.wikidata.org/entity/Q" ) )
}

What are some real-world products according to Wikidata?

List all real-world items classified as products in Wikidata.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2424752> . } LIMIT 10000


Question: Capitals of sovereign states 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 ?country ?capital ?capitalLabel ?coordinates WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?country wdt:P36 ?capital .
  ?capital wdt:P625 ?coordinates .
  OPTIONAL {
    ?capital rdfs:label ?capitalLabel .
    FILTER ( LANG( ?capitalLabel ) = "en" )
  }
}
LIMIT 100

What are the current capitals of all sovereign countries, and where are they located geographically?

List the English names and geographic coordinates of the capitals of all sovereign nations.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 ?var5Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . ?var1 <http://www.wikidata.org/prop/direct/P36> ?var2 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P582> ?var3 . } ?var2 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1366> ?var5 . } } LIMIT 100


Question: Is there a property in Wikidata labeled "identity" that has Douglas Adams as its value?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK {
  ?property rdf:type wikibase:Property ; rdfs:label "identity" @en ; ?someValue wd:Q42 .
}

Does any English-labeled property in Wikidata point to Douglas Adams with the label "identity"?

Are there any reverse relationships from other entities to Douglas Adams using a property called "identity"?

ASK WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q42> AS ?var1 ). BIND ( "N/A" AS ?var2 ). BIND ( "identity"@en AS ?var3Label ). } UNION { <http://www.wikidata.org/entity/Q42> ?var2 ?var1 . ?var4 ?var5 ?var2 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var7 . } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }