Question: What is the most common occupation among people with Russian Wikipedia pages who are scientists or related fields?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?occupation ?occupationLabel(COUNT(?person) AS ?count) WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P106 ?occupation .
  ?occupation wdt:P279 * wd:Q901 .
  ?article schema:about ?person ; schema:isPartOf <https://ru.wikipedia.org/> .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}
GROUP BY ?occupation ?occupationLabel
ORDER BY DESC(?count)
LIMIT 1

Which occupation subclass of scientist appears most frequently on Russian Wikipedia?

How many people with Russian Wikipedia pages are listed as scientists, and is it the most common scientific occupation?

SELECT DISTINCT ?var1 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ( COUNT ( ?var5 ) AS ?var6 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ( COUNT ( ?var7 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q19887878> . ?var1 <http://www.wikidata.org/prop/direct/P1423> ?var2 . <http://www.wikidata.org/entity/Q4195198> ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P106> ) ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P279> * ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P279> * ?var2 . } GROUP BY ?var1 ?var2 } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> * ?var3 . } } GROUP BY ?var1 ?var2 ?var3 ?var4 } FILTER ( ( EXISTS { ?var9 <http://schema.org/about> ?var1 . ?var9 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> . } ) ) . } ORDER BY ASC( ?var4 ) DESC( ?var6 ) LIMIT 1


Question: Who is the person with Australian Women's Register ID AWE5225b, and what is their English label and description?

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

What is the name and description in English of the person identified by AWE5225b in the Australian Women's Register?

Please provide the English name and bio of the individual registered in the Australian Women's Register under ID AWE5225b.

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


Question: What are all the parent categories (superclasses) of opioid drugs in the Wikidata ontology?

SELECT DISTINCT ?superclass WHERE { wd:Q427523 wdt:P279* ?superclass . } LIMIT 100

What classes does opioid belong to, including indirect parent classes?

List all the broader categories that include opioid as a subclass.

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


Question: What are the human settlements named Buxton in the United Kingdom, and what are their descriptions and geographic coordinates?

SELECT DISTINCT ?item ?itemLabel ?desc ?coord WHERE { VALUES ?item { wd:Q971223 wd:Q5003259 wd:Q5003287 } . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') . ?item wdt:P31/wdt:P279* wd:Q486972 . ?item wdt:P625 ?coord . OPTIONAL { ?item schema:description ?desc . FILTER(LANG(?desc) = 'en') } }

Show me the English descriptions and locations of Buxton towns in the UK.

Which places called Buxton in the UK are inhabited places, and where are they located?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q971223> ) ( <http://www.wikidata.org/entity/Q2379488> ) ( <http://www.wikidata.org/entity/Q403187> ) ( <http://www.wikidata.org/entity/Q745614> ) ( <http://www.wikidata.org/entity/Q7324509> ) ( <http://www.wikidata.org/entity/Q1072836> ) ( <http://www.wikidata.org/entity/Q3273904> ) ( <http://www.wikidata.org/entity/Q5003253> ) ( <http://www.wikidata.org/entity/Q13552129> ) ( <http://www.wikidata.org/entity/Q2582964> ) ( <http://www.wikidata.org/entity/Q33427365> ) ( <http://www.wikidata.org/entity/Q34788093> ) ( <http://www.wikidata.org/entity/Q28931291> ) ( <http://www.wikidata.org/entity/Q5003254> ) ( <http://www.wikidata.org/entity/Q18286> ) ( <http://www.wikidata.org/entity/Q1763489> ) ( <http://www.wikidata.org/entity/Q5003276> ) ( <http://www.wikidata.org/entity/Q94021> ) ( <http://www.wikidata.org/entity/Q5003287> ) ( <http://www.wikidata.org/entity/Q2920532> ) ( <http://www.wikidata.org/entity/Q22364324> ) ( <http://www.wikidata.org/entity/Q5003259> ) ( <http://www.wikidata.org/entity/Q22364364> ) ( <http://www.wikidata.org/entity/Q21915247> ) ( <http://www.wikidata.org/entity/Q21915248> ) ( <http://www.wikidata.org/entity/Q10741813> ) ( <http://www.wikidata.org/entity/Q10438101> ) ( <http://www.wikidata.org/entity/Q10438100> ) ( <http://www.wikidata.org/entity/Q10438099> ) ( <http://www.wikidata.org/entity/Q21966944> ) ( <http://www.wikidata.org/entity/Q32849933> ) ( <http://www.wikidata.org/entity/Q34690861> ) ( <http://www.wikidata.org/entity/Q32147245> ) ( <http://www.wikidata.org/entity/Q32849934> ) ( <http://www.wikidata.org/entity/Q34647614> ) ( <http://www.wikidata.org/entity/Q32849935> ) ( <http://www.wikidata.org/entity/Q32849936> ) ( <http://www.wikidata.org/entity/Q5003273> ) ( <http://www.wikidata.org/entity/Q2929020> ) ( <http://www.wikidata.org/entity/Q31815087> ) ( <http://www.wikidata.org/entity/Q31815088> ) ( <http://www.wikidata.org/entity/Q2932479> ) ( <http://www.wikidata.org/entity/Q11327584> ) ( <http://www.wikidata.org/entity/Q33137814> ) ( <http://www.wikidata.org/entity/Q33138854> ) ( <http://www.wikidata.org/entity/Q33176245> ) ( <http://www.wikidata.org/entity/Q5003255> ) ( <http://www.wikidata.org/entity/Q26581484> ) ( <http://www.wikidata.org/entity/Q23214181> ) ( <http://www.wikidata.org/entity/Q5003267> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var4 . } FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q145> ) ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . }


Question: What are the German districts in Lower Saxony, and what are their population, area, district key, OpenStreetMap ID, and coordinates?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?district ?population ?area ?districtKey ?osmRelationId ?coordinates WHERE {
  ?district wdt:P31 wd:Q106658 .
  ?district wdt:P131 wd:Q1197 .
  OPTIONAL {
    ?district wdt:P1082 ?population .
  }
  OPTIONAL {
    ?district wdt:P2046 ?area .
  }
  OPTIONAL {
    ?district wdt:P440 ?districtKey .
  }
  OPTIONAL {
    ?district wdt:P402 ?osmRelationId .
  }
  OPTIONAL {
    ?district wdt:P625 ?coordinates .
  }
}

List the districts in Lower Saxony, Germany, along with their population, size in square kilometers, official district code, OpenStreetMap relation ID, and geographic coordinates.

Can you provide the geographic and administrative data (population, area, district key, OSM ID, coordinates) for all districts in Lower Saxony?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q106658> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1197> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P440> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P402> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . } }


Question: What is the official website of Flixbus, and what are its English and German labels and descriptions?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?entity ?entityLabel ?description WHERE {
  ?entity wdt:P856 <https://www.flixbus.com/> .
  ?entity rdfs:label ?entityLabel .
  FILTER(LANG(?entityLabel) IN("en" , "de"))
  .
  ?entity schema:description ?description .
  FILTER(LANG(?description) IN("en" , "de"))
}

Can you find the entity with the official website https://www.flixbus.com/ and show its name and description in English or German?

Show me the name and description of the company that uses https://www.flixbus.com/ as its official website, in either English or German.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.flixbus.de/unternehmen/partner/affiliate-partner> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.flixbus.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.flixbus.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.flixbus.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.flixbus.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.flixbus.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.flixbus.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://flixbus.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://flixbus.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://flixbus.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://flixbus.de/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Poets born in Mangaluru

SELECT ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P106 wd:Q49757 . ?person wdt:P19 wd:Q127041 . }

Who are the poets that were born in Mangaluru?

List humans who are poets and were born in Mangaluru.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q668> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q49757> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q127041> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ur". } }


Question: Painters whose fathers are also painters

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 ?painter ?painterLabel ?father ?fatherLabel WHERE {
  ?painter wdt:P31 wd:Q5 .
  ?painter wdt:P106 wd:Q1028181 .
  ?painter wdt:P22 ?father .
  ?father wdt:P106 wd:Q1028181 .
  ?painter rdfs:label ?painterLabel .
  ?father rdfs:label ?fatherLabel .
  FILTER(LANG(?painterLabel) = "en")
  FILTER(LANG(?fatherLabel) = "en")
}

Which painters have fathers who are also painters?

Show me the names of painters and their fathers, where both are painters, in English.

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


Question: Twin cities near Berlin within 30 km

SELECT DISTINCT ?city ?cityLabel ?distance WHERE { ?city wdt:P190 ?twin . ?city wdt:P625 ?coord . BIND(geof:distance(?coord, "Point(13.405 52.52)"^^geo:wktLiteral) AS ?distance) FILTER(?distance <= 30) . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") } ORDER BY ?distance

Which cities or districts twinned with other cities are located within 30 kilometers of Berlin?

List all twin cities and districts near Berlin, showing their distance from the city center.

SELECT ?var1 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P190> ?var2 . } SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "30". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People who died on September 12 and have an Odia Wikipedia page

SELECT ?person ?personLabel ?deathDate ?wikiPage WHERE { ?person ^ schema:about ?wikiPage . ?wikiPage schema:isPartOf <https://or.wikipedia.org/> . ?person p:P570 ?statement . ?statement ps:P570 ?deathDate . FILTER (MONTH(?deathDate) = 9 && DAY(?deathDate) = 12) OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } }

Who are the people that died on September 12 and have a page on the Odia Wikipedia?

List the names of individuals who passed away on September 12 and are documented on the Odia Wikipedia, along with their death dates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ^ <http://schema.org/about> ?var3 . ?var3 <http://schema.org/isPartOf> <https://or.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "or,en". } ?var4 <http://wikiba.se/ontology#timePrecision> "11"^^<http://www.w3.org/2001/XMLSchema#integer> . ?var4 <http://wikiba.se/ontology#timeValue> ?var2 . FILTER ( ( ( MONTH ( ?var2 ) = "9"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( DAY ( ?var2 ) = "12"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 ( <http://www.wikidata.org/prop/P570> / <http://www.wikidata.org/prop/statement/value/P570> ) ?var4 . }


Question: Subclasses of learning or memory with their images

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 ?subclass ?label ?image WHERE {
  ?subclass wdt:P279 wd:Q14819853 .
  OPTIONAL {
    ?subclass wdt:P18 ?image .
  }
  ?subclass rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 100

What are the subclasses of learning or memory in Wikidata, and what are their English labels and associated images?

Show me the English names of all subclasses of learning or memory, along with any available images from Wikimedia Commons.

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


Question: What country and municipality is the Ancien presbytère de Sainte-Flavie located in?

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

Locations of Ancien presbytère de Sainte-Flavie including country and administrative division.

Show me the administrative and national context of the Ancien presbytère de Sainte-Flavie.

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


Question: What are all the superclass categories of looted art in Wikidata?

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

What broader categories does looted art belong to through the subclass hierarchy?

Show me the complete taxonomy tree above looted art, listing all its parent classes.

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


Question: Most common Arabic descriptions of mammalian species, grouped by taxon rank

PREFIX schema: <http://schema.org/>
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 ?taxonRankLabel ?description ?descriptionLang ( COUNT( ?description ) AS ?count ) WHERE {
  ?taxon wdt:P31 wd:Q16521 ; wdt:P171 + wd:Q7377 ; wdt:P105 ?taxonRank ; schema:description ?description .
  ?taxonRank rdfs:label ?taxonRankLabel .
  FILTER ( LANG( ?taxonRankLabel ) = "ar" ) FILTER ( LANG( ?description ) = "ar" )
}
GROUP BY ?taxonRankLabel ?description ?descriptionLang
ORDER BY DESC ( ?count )
LIMIT 100

What are the most frequently used Arabic descriptions for mammals and their taxonomic ranks?

Show me the top 100 Arabic descriptions of mammals, along with their taxon ranks in Arabic, ordered by how often they appear.

SELECT ?var1 ?var2 ?var3 ( COUNT ( ?var2 ) AS ?var4 ) WHERE { BIND ( <http://www.wikidata.org/entity/mammals> AS ?var5 ). BIND ( LANG ( ?var2 ) AS ?var3 ). ?var6 <http://schema.org/description> ?var2 . ?var6 <http://www.wikidata.org/prop/direct/P105> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "ar" ) ) ) . ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . ?var6 <http://www.wikidata.org/prop/direct/P171> * ?var5 . } GROUP BY ?var2 ?var3 ?var1 ORDER BY DESC( ?var4 ) LIMIT 100


Question: Heritage sites in Portugal and Spain with images and Wiki Loves Monuments IDs.

SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?heritageOrWLM WHERE {
  {
    ?item wdt:P1435 ?heritageOrWLM .
  } UNION {
    ?item wdt:P2186 ?heritageOrWLM .
  }
  {
    ?item wdt:P131 wd:Q45 .  # Portugal
  } UNION {
    ?item wdt:P131 wd:Q29 .  # Spain
  }
  OPTIONAL { ?item wdt:P18 ?image . }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
  OPTIONAL { ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) = "en") }
} LIMIT 20

What are the cultural heritage sites in Portugal and Spain that have photos and are listed in Wiki Loves Monuments or have a heritage designation?

List cultural heritage sites in Portugal and Spain, including their administrative regions, images, and heritage status or Wiki Loves Monuments IDs, with English labels.

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


Question: What is the English label and description of the film with LdiF ID 539580?

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

Can you tell me the English title and description of the TV movie identified by the LdiF ID 539580?

Show me the English name and a brief description of the film that has the LdiF ID 539580.

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


Question: Taxonomic ranks of order level and their descriptions in different languages.

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?taxonRank ?description ?language WHERE {
  ?taxonRank wdt:P105 wd:Q36602 .
  ?taxonRank schema:description ?description .
  BIND( LANG( ?description ) AS ?language )
}
LIMIT 50

What are the taxonomic ranks classified as "order" and what are their descriptions in various languages?

Show me the order-level taxonomic ranks along with their descriptions and the languages those descriptions are in.

SELECT ?var1 ?var2 ?var3 WHERE { { SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q10861678> . } LIMIT 1 } BIND ( LANG ( ?var2 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q36602> . ?var1 <http://schema.org/description> ?var2 . } LIMIT 50


Question: Swedish National Biography ID 8633: who is it and what is their description?

SELECT ?person ?personLabel ?description WHERE { ?person wdt:P3217 "8633" . OPTIONAL { ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") } OPTIONAL { ?person schema:description ?description . FILTER (LANG(?description) = "en") } }

Who is the Swedish politician with the SBL ID 8633, and what is their English label and description?

Please find the person with Swedish National Biography ID 8633 and provide their name in English and their English description.

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


Question: Scholarly articles authored by Thomas Shafee, including co-authors, publication venues, and publication dates, ordered from newest to oldest.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ( MIN( ?pubDate ) AS ?earliestDate ) ?work ?workLabel ( GROUP_CONCAT( DISTINCT ?instanceLabel ; SEPARATOR = ", " ) AS ?instanceTypes ) ( SAMPLE( ?pages ) AS ?numberOfPages ) ?publication ?publicationLabel ( GROUP_CONCAT( DISTINCT ?authorLabel ; SEPARATOR = ", " ) AS ?authors ) WHERE {
  ?work wdt:P50 wd:Q38382414 .
  ?work wdt:P50 ?author .
  OPTIONAL {
    ?author rdfs:label ?authorLabelRaw .
    FILTER ( LANG( ?authorLabelRaw ) = "en" )
  }
  BIND( COALESCE ( ?authorLabelRaw , SUBSTR( STR( ?author ) , 32 ) ) AS ?authorLabel ) OPTIONAL {
    ?work wdt:P31 ?instance .
    ?instance rdfs:label ?instanceLabelRaw .
    FILTER ( LANG( ?instanceLabelRaw ) = "en" )
  }
  BIND( COALESCE ( ?instanceLabelRaw , SUBSTR( STR( ?instance ) , 32 ) ) AS ?instanceLabel ) OPTIONAL {
    ?work wdt:P577 ?rawPubDate .
    BIND( xsd:date ( ?rawPubDate ) AS ?pubDate )
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages .
  }
  OPTIONAL {
    ?work wdt:P1433 ?publication .
    ?publication rdfs:label ?publicationLabelRaw .
    FILTER ( LANG( ?publicationLabelRaw ) = "en" )
  }
  BIND( COALESCE ( ?publicationLabelRaw , SUBSTR( STR( ?publication ) , 32 ) ) AS ?publicationLabel ) OPTIONAL {
    ?work rdfs:label ?workLabelRaw .
    FILTER ( LANG( ?workLabelRaw ) = "en" )
  }
  BIND( COALESCE ( ?workLabelRaw , SUBSTR( STR( ?work ) , 32 ) ) AS ?workLabel )
}
GROUP BY ?work ?workLabel ?publication ?publicationLabel
ORDER BY DESC ( ?earliestDate )

What are all the works written by Thomas Shafee, who are their co-authors, where were they published, and when were they released, sorted by the most recent first?

List all publications by Thomas Shafee with their publication dates, number of pages, journals, and full author lists, sorted by date in descending order.

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( DISTINCT ?var4Label ; SEPARATOR = ", " ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) ?var8 ?var8Label ( GROUP_CONCAT ( DISTINCT ?var9Label ; SEPARATOR = ", " ) AS ?var10 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q38382414> . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var11 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12 . FILTER ( ( ( LANG ( ?var12 ) = "en" ) ) ) . } BIND ( COALESCE ( ?var12 , SUBSTR ( STR ( ?var11 ) ,"32"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9Label ). OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var13 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var13 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1104> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var8 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var8 ?var8Label ORDER BY DESC( ?var2 )


Question: Cultural heritage sites in Finland with national or UNESCO status, their locations, images, and Commons categories.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?heritageSite ?heritageSiteLabel ?location ?image ?commonsCategory WHERE {
  VALUES ?heritageDesignation {
    wd:Q29966257 wd:Q9259
  }
  ?heritageSite wdt:P1435 ?heritageDesignation .
  ?heritageSite wdt:P17 wd:Q33 .
  ?heritageSite ( wdt:P131 | wdt:P276 ) ?locationEntity .
  ?locationEntity wdt:P625 ?coord .
  BIND( geof:latitude ( ?coord ) AS ?lat ) BIND( geof:longitude ( ?coord ) AS ?lon ) FILTER ( ?lon >= 19 && ?lon <= 31 ) FILTER ( ?lat >= 60 && ?lat <= 70 ) ?heritageSite rdfs:label ?heritageSiteLabel .
  FILTER ( LANG( ?heritageSiteLabel ) = "en" ) OPTIONAL {
    ?heritageSite wdt:P18 ?image .
  }
  OPTIONAL {
    ?heritageSite wdt:P373 ?commonsCategory .
  }
}
LIMIT 100

What are the cultural heritage sites in Finland that are either nationally recognized or UNESCO World Heritage Sites, and what are their coordinates, images, and Wikimedia Commons categories?

List all heritage sites in Finland designated as either a Cultural Heritage Site of National Significance or a UNESCO World Heritage Site, along with their geographic coordinates, associated images, and Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(16 39)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(27 44)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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: Finnish cultural heritage sites with national significance or UNESCO status within southern Finland, including images and Commons categories.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?site ?siteLabel ?location ?image ?commonsCategory ?heritageDesignation ?heritageDesignationLabel WHERE {
  ?site wdt:P1435 ?heritageDesignation ; wdt:P17 wd:Q33 ; wdt:P625 ?location .
  VALUES ?heritageDesignation {
    wd:Q29966257 wd:Q9259
  }
  BIND(REPLACE(STR(?location) , "POINT\\((.*)\\)" , "$1") AS ?coords)
  BIND(STRBEFORE(?coords , " ") AS ?lonStr)
  BIND(STRAFTER(?coords , " ") AS ?latStr)
  BIND(xsd:double(?lonStr) AS ?lon)
  BIND(xsd:double(?latStr) AS ?lat)
  FILTER(?lon >= 19 && ?lon <= 32)
  FILTER(?lat >= 59 && ?lat <= 70)
  OPTIONAL {
    ?site wdt:P18 ?image .
  }
  OPTIONAL {
    ?site wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?site rdfs:label ?siteLabel .
    FILTER(LANG(?siteLabel) = "en")
  }
  OPTIONAL {
    ?heritageDesignation rdfs:label ?heritageDesignationLabel .
    FILTER(LANG(?heritageDesignationLabel) = "en")
  }
}
LIMIT 3000

What are the World Heritage Sites and nationally designated cultural heritage sites in Finland located between 59°N and 70°N latitude, and what images and Wikimedia Commons categories are associated with them?

List all heritage sites in Finland that are either UNESCO World Heritage Sites or Cultural Heritage Sites of National Significance, located in the southern part of the country, along with their images and associated Wikimedia Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(12 47)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(13 48)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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 the English and German Wikipedia pages for Berlin S-Bahn and S-Bahn Berlin GmbH, and what are their official websites?

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 wdt:P856 <https://www.s-bahn-berlin.de/> . } UNION { ?var1 wdt:P856 <http://www.s-bahn-berlin.de/> . } ?var2 schema:about ?var1 . ?var2 schema:inLanguage ?lang . FILTER(?lang IN ("en", "de")) . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) IN ("en", "de")) }

Which Wikipedia articles in English or German are about the entities with official websites for s-bahn-berlin.de?

Show me the labels and corresponding Wikipedia pages in English and German for the official S-Bahn Berlin websites.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.s-bahn-berlin.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.s-bahn-berlin.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://s-bahn-berlin.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://s-bahn-berlin.de> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://s-bahn-berlin.de/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://s-bahn-berlin.de/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label and English Wikipedia page for the company with official website http://www.firstgroup.com?

SELECT ?item ?itemLabel ?wikipediaPage WHERE { ?item wdt:P856 <http://www.firstgroup.com> . ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which company has its official website at http://www.firstgroup.com, and what is its English label and corresponding English or German Wikipedia page?

Show me the English name and the English or German Wikipedia article for the organization whose official website is http://www.firstgroup.com.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.www.firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.www.firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://www.firstgroup.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://www.firstgroup.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://firstgroup.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://firstgroup.com> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <https://firstgroup.com/> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P856> <http://firstgroup.com/> . } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the earliest IMDb movie IDs starting with "tt"?

SELECT ?imdbId WHERE { ?item wdt:P345 ?imdbId . FILTER ( STRSTARTS( ?imdbId , "tt" ) ) . } ORDER BY ASC(?imdbId) LIMIT 10

Which are the first 10 IMDb titles registered in the database, identified by IDs starting with "tt"?

List the 10 smallest IMDb identifiers for movies (those beginning with "tt").

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P345> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } FILTER ( ( STRSTARTS ( ?var1 , "tt" ) ) ) . } ORDER BY ASC( ?var1 ) LIMIT 10


Question: Organizations and their number of employees

SELECT ?organization ?organizationLabel ?employeeCount WHERE { ?organization wdt:P1128 ?employeeCount . ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") }

Which organizations have a recorded number of employees, and what are those numbers?

List all schools and companies along with their employee counts in English.

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


Question: Organizations in Spanish with descriptions that employ people

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?employer ?employerLabel ?employerDescription WHERE {
  ?employee wdt:P108 ?employer .
  ?employer rdfs:label ?employerLabel .
  ?employer schema:description ?employerDescription .
  FILTER(LANG(?employerLabel) = "es")
  FILTER(LANG(?employerDescription) = "es")
}
LIMIT 100

What organizations have Spanish labels and descriptions, and are listed as employers of someone in Wikidata?

Show me the Spanish names and descriptions of organizations that employ people, up to 100 results.

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


Question: Items duplicated from Amsterdam and their qualifier properties.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?statement ( SAMPLE( ?qualifier ) AS ?qualifierProperty ) WHERE {
  ?item p:P2959 ?statement .
  ?statement ps:P2959 wd:Q727 .
  OPTIONAL {
    ?statement ?qualifier ?value .
    ?qualifier wikibase:qualifier p:P2959 .
  }
}
GROUP BY ?item ?statement
LIMIT 101

Which items are marked as duplicates of Amsterdam, and what qualifiers are associated with those duplicate statements?

Show me all items that are duplicates of Amsterdam, along with any qualifier properties used on their duplicate statements.

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


Question: Albums by Marilyn Manson with English titles and images

SELECT ?item ?itemLabel ?image WHERE { ?item wdt:P2093 "Marilyn Manson" . OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } } LIMIT 100

What are the English titles of works authored by Marilyn Manson, and do they have images on Wikimedia Commons?

Show me the English titles of works where Marilyn Manson is listed as the author, along with any associated images.

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


Question: What are the English names and identifiers of entities in Wikidata that have an identifier assigned?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?itemLabel ?identifier WHERE {
  ?item wdt:P1707 ?identifier .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

List people and other entities with their identifiers from external databases, along with their English labels.

Show me the names and IDs of items in Wikidata that are linked to external identifiers.

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


Question: Image of Revilo P. Oliver with SNAC ARK ID w66t2cxc

SELECT ?image WHERE { ?item wdt:P3430 "w66t2cxc" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the Wikimedia Commons image associated with the SNAC ARK ID w66t2cxc?

Show me the picture of the person whose SNAC ARK ID is w66t2cxc.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w66t2cxc". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Heritage sites in India with Wiki Loves Monuments ID or heritage designation, including their location and image.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?coord WHERE {
  ?item wdt:P131 * wd:Q668 .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item wdt:P131 ?admin .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  {
    ?item p:P1435 ?heritage .
  } UNION {
    ?item p:P2186 ?wlm .
  }
  OPTIONAL {
    ?item wdt:P31 ?type .
  }
  OPTIONAL {
    ?item wdt:P1476 ?itemLabel .
  }
  OPTIONAL {
    ?admin wdt:P1476 ?adminLabel .
  }
  FILTER(BOUND(?heritage) || BOUND(?wlm))
}

What are the monuments in India that are listed in Wiki Loves Monuments or have a heritage designation, and what are their administrative regions and images?

List all cultural heritage sites in India that have either a heritage status or a Wiki Loves Monuments ID, along with their coordinates, nearby administrative regions, and associated images.

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


Question: What are the 12 months of the Gregorian calendar and their corresponding numbers (1–12)?

SELECT ?month ?monthLabel ?monthNumber WHERE { VALUES (?month ?monthNumber) { (wd:Q108 1) (wd:Q109 2) (wd:Q110 3) (wd:Q118 4) (wd:Q119 5) (wd:Q113 6) (wd:Q114 7) (wd:Q122 8) (wd:Q123 9) (wd:Q124 10) (wd:Q125 11) (wd:Q126 12) } ?month rdfs:label ?monthLabel . FILTER (LANG(?monthLabel) = "en") } ORDER BY ?monthNumber

List the English names of the months in order along with their numeric position in the year.

Can you show me the names of January through December with their month numbers?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ( STR ( ?var4 ) AS ?var5 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5151> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q18602249> ; <http://www.wikidata.org/prop/direct/P2837> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var4 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P585> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the cultural heritage sites in Finland that are either nationally significant or UNESCO World Heritage Sites, along with their locations, images, and Wikimedia Commons categories?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?heritageSite ?heritageSiteLabel ?location ?image ?commonsCategory WHERE {
  VALUES ?heritageDesignation {
    wd:Q29966257 wd:Q9259
  }
  ?heritageSite wdt:P1435 ?heritageDesignation .
  ?heritageSite wdt:P17 wd:Q33 .
  ?heritageSite wdt:P625 ?location .
  OPTIONAL {
    ?heritageSite wdt:P18 ?image .
  }
  OPTIONAL {
    ?heritageSite wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?heritageSite rdfs:label ?heritageSiteLabel .
    FILTER ( LANG( ?heritageSiteLabel ) = "en" )
  }
}
LIMIT 3000

Show me the Finnish heritage sites designated as World Heritage Sites or Cultural Heritage Sites of National Significance, including their English names, coordinates, and associated images or Commons categories.

List all heritage sites in Finland with official national or UNESCO heritage status, and provide their geographic coordinates, images from Wikimedia Commons, and related Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(23 66)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(33 68)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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: Who is the person in the Australian Women's Register with ID AWE2070b, and what is their description?

SELECT ?item ?label ?description WHERE { ?item wdt:P4186 "AWE2070b" . ?item rdfs:label ?label . FILTER (LANG(?label) = "en") OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the name and English description of the individual identified by AWE2070b in the Australian Women's Register?

Please provide the English name and description of the person listed in the Australian Women's Register with the ID AWE2070b.

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


Question: What country and administrative region is Collingwood, Ontario part of, and on which continent is it located?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?country ?admin ?continent WHERE {
  wd:Q3501912 wdt:P17 ?country .
  wd:Q3501912 wdt:P131 ?admin .
  ?country wdt:P30 ?continent .
}

Find the country, county, and continent associated with Collingwood, ON.

Tell me the geographic hierarchy of Collingwood — its country, administrative division, and continent.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q3501912> 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: Labels of Giorgio Cavallo in Italian, English, German, and French, along with his Wikipedia link.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE {
  wd:Q3765355 rdfs:label ?label .
  FILTER ( LANG( ?label ) IN ( "it" , "en" , "de" , "fr" ) ) OPTIONAL {
    wd:Q3765355 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q3765355 wdt:P625 ?coordinates .
  }
  ?wikipediaArticle schema:about wd:Q3765355 ; schema:inLanguage "it" ; schema:isPartOf <https://it.wikipedia.org/> .
  VALUES ( ?lang ?order ) {
    ( "it" 1 ) ( "en" 2 ) ( "de" 3 ) ( "fr" 4 )
  }
  FILTER ( ?lang = LANG( ?label ) )
}
ORDER BY ?order

What are the labels of Giorgio Cavallo in Italian, English, German, and French, and what is his Italian Wikipedia page?

Show me Giorgio Cavallo’s labels in Italian, English, German, and French, ordered by that sequence, along with his Italian Wikipedia article link.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q3765355> <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/Q3765355> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q3765355> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "it" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q3765355> <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/Q3765355> ; <http://schema.org/inLanguage> "it"; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: Cultural heritage sites in southern Finland between longitudes 22 and 25 and latitudes 60 and 61, with images and Commons categories.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?heritageSite ?heritageSiteLabel ?coord ?image ?commonsCat WHERE {
  VALUES ?heritageDesignation {
    wd:Q29966257 wd:Q9259
  }
  ?heritageSite wdt:P1435 ?heritageDesignation .
  ?heritageSite wdt:P17 wd:Q33 .
  ?heritageSite wdt:P625 ?coord .
  BIND( geof:longitude ( ?coord ) AS ?lon ) BIND( geof:latitude ( ?coord ) AS ?lat ) FILTER ( ?lon >= 22 && ?lon <= 25 && ?lat >= 60 && ?lat <= 61 ) OPTIONAL {
    ?heritageSite wdt:P18 ?image .
  }
  OPTIONAL {
    ?heritageSite wdt:P373 ?commonsCat .
  }
  ?heritageSite rdfs:label ?heritageSiteLabel .
  FILTER ( LANG( ?heritageSiteLabel ) = "en" )
}
LIMIT 3000

What are the cultural heritage sites in Finland designated as nationally significant or UNESCO World Heritage Sites, located between 22° and 25° east longitude and 60° and 61° north latitude, and what are their images and Wikimedia Commons categories?

List all heritage sites in Finland that are either nationally significant or UNESCO World Heritage Sites within the geographic area from 22°E to 25°E and 60°N to 61°N, including their names, coordinates, images, and Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(22 60)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(25 60)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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 the English names, descriptions, and coordinates of human settlements in the United Kingdom among Cromhall and Cromhall War Memorial?

SELECT DISTINCT ?settlement ?label ?description ?coordinates WHERE {  VALUES ?settlement { wd:Q5187620 wd:Q26677136 }  ?settlement (wdt:P31/wdt:P279*) wd:Q486972 .  ?settlement wdt:P131* ?admin .  FILTER(?admin = wd:Q145)  ?settlement rdfs:label ?label .  FILTER(LANG(?label) = "en")  OPTIONAL {    ?settlement schema:description ?description .    FILTER(LANG(?description) = "en")  }  ?settlement wdt:P625 ?coordinates .}

Show me the English label, description, and geographic coordinates of Cromhall, if it is a human settlement located in the UK.

Which of these two places — Cromhall or Cromhall War Memorial — is a human settlement in the UK, and what are its details in English?

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


Question: Cultural heritage sites in Finland with national or UNESCO status within latitude 62–64 and longitude 19–35, including their images and Commons categories.

SELECT ?heritageSite ?heritageSiteLabel ?location ?image ?commonsCategory WHERE { VALUES ?heritageDesignation { wd:Q29966257 wd:Q9259 } ?heritageDesignationItem wdt:P1435 ?heritageDesignation . ?heritageDesignationItem wdt:P17 wd:Q33 . ?heritageSite ( (wdt:P131/wdt:P279*) | (wdt:P276/wdt:P279*) | (wdt:P361/wdt:P279*) ) ?heritageDesignationItem . ?heritageSite wdt:P625 ?location . FILTER(geof:longitude(?location) >= 19 && geof:longitude(?location) <= 35) FILTER(geof:latitude(?location) >= 62 && geof:latitude(?location) <= 64) OPTIONAL { ?heritageSite wdt:P18 ?image . } OPTIONAL { ?heritageSite wdt:P373 ?commonsCategory . } ?heritageSite rdfs:label ?heritageSiteLabel . FILTER(LANG(?heritageSiteLabel) = "en") } LIMIT 3000

What are the cultural heritage sites in Finland that are either nationally recognized or UNESCO World Heritage Sites, located between longitudes 19° and 35° and latitudes 62° and 64°, and do they have images or Wikimedia Commons categories?

List all cultural heritage sites in Finland designated as nationally significant or UNESCO World Heritage Sites within the geographic area of 19–35°E and 62–64°N, along with their English names, images, and associated Wikimedia Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(19 62)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(35 64)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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: Painters born in Loire-Atlantique with a French Wikipedia page, ranked by number of language versions.

SELECT DISTINCT ?painter ?painterLabel ?birthplaceLabel (COUNT(?lang) AS ?count)
WHERE {
  ?painter wdt:P31 wd:Q5 ;
           wdt:P19 ?birthplace ;
           wdt:P106 wd:Q1028181 .

  ?birthplace wdt:P131* wd:Q3068 .

  ?wikipedia schema:about ?painter ;
             schema:inLanguage ?lang .

  FILTER EXISTS {
    ?wikipedia2 schema:about ?painter ;
                schema:inLanguage "fr" .
  }

  ?painter rdfs:label ?painterLabel .
  ?birthplace rdfs:label ?birthplaceLabel .

  FILTER (LANG(?painterLabel) = "en")
  FILTER (LANG(?birthplaceLabel) = "en")
}
GROUP BY ?painter ?painterLabel ?birthplaceLabel
ORDER BY DESC(?count) ASC(?painter)

Which painters born in Loire-Atlantique have the most Wikipedia articles in different languages, and how many languages are there for each?

List painters from Loire-Atlantique who have a French Wikipedia article, along with the total number of language editions of their Wikipedia pages, sorted by popularity.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P19> ?var2 ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q1028181> . ?var2 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q3068> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var5 <http://schema.org/about> ?var1 . FILTER ( ( ( SUBSTR ( STR ( ?var5 ) ,"11"^^<http://www.w3.org/2001/XMLSchema#integer> ,"15"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . ?var5 <http://schema.org/inLanguage> ?var3 . } GROUP BY ?var1 ?var1Label ?var2Label ORDER BY DESC( ?var4 )ASC( ?var1 )


Question: Biological entities found in a taxon that are not directly classified as proteins or cell lines.

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 ?taxonLabel ?typeLabel WHERE {
  ?item wdt:P703 ?taxon .
  ?item wdt:P31 ?type .
  FILTER ( ?type != wd:Q8054 ) .
  FILTER ( ?type != wd:Q21014462 ) .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    ?taxon rdfs:label ?taxonLabel .
    FILTER ( LANG( ?taxonLabel ) = "en" )
  }
  OPTIONAL {
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = "en" )
  }
}
LIMIT 1000

What biological items are associated with specific species but are not directly categorized as proteins or cell lines?

List biological entities with their associated taxon and type, excluding any that are directly labeled as protein or cell line.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P703> ?var2 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P271> *) ?var3 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/Q8054> ) ) ) . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/Q21014462> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: What Wikidata item corresponds to the human pathway with WikiPathways ID WP3844?

SELECT ?pathway WHERE { ?pathway wdt:P2410 "WP3844" ; wdt:P703 wd:Q15978631 . }

Which biological pathway in humans has the WikiPathways identifier WP3844?

Find the Wikidata entry for the human PI3K-AKT-mTOR signaling pathway identified by WP3844 in WikiPathways.

SELECT ?var1 WHERE { <http://identifiers.org/wikipathways/WP3844_r89952> <http://www.wikidata.org/prop/direct/P2410> ?var1 ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> . }


Question: What are the cultural heritage sites in Finland that are designated as either World Heritage Sites or Cultural Heritage Sites of National Significance?

SELECT ?heritageSite ?heritageSiteLabel ?image ?commonsCategory WHERE { VALUES ?heritageDesignation { wd:Q29966257 wd:Q9259 } ?heritageSite wdt:P1435 ?heritageDesignation . ?heritageSite wdt:P17 wd:Q33 . OPTIONAL { ?heritageSite wdt:P18 ?image . } OPTIONAL { ?heritageSite wdt:P373 ?commonsCategory . } ?heritageSite rdfs:label ?heritageSiteLabel . FILTER(LANG(?heritageSiteLabel) = "en") } LIMIT 3000

List Finnish heritage sites with their images and Wikimedia Commons categories, specifically those recognized as World Heritage Sites or nationally significant cultural sites.

Show me the names, images, and Commons categories of heritage sites in Finland that have official national or UNESCO heritage status.

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(9 -12)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(20 -7)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q29966257> ) ( <http://www.wikidata.org/entity/Q9259> ) } ?var8 <http://www.wikidata.org/prop/direct/P1435> ?var7 . ?var8 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . ?var1 (( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P276> / <http://www.wikidata.org/prop/direct/P279> *)|( <http://www.wikidata.org/prop/direct/P361> / <http://www.wikidata.org/prop/direct/P279> *)) ?var8 . 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: Image of Thomas Wentworth Higginson (SNAC ARK ID w66q1zq9)

SELECT ?image WHERE { ?item wdt:P3430 "w66q1zq9" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with the SNAC ARK ID w66q1zq9?

Show me the Wikimedia Commons image for the person identified by SNAC ARK ID w66q1zq9.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w66q1zq9". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Parts of the University of Mannheim in English

SELECT ?part ?label WHERE { wd:Q317070 wdt:P527 ?part . ?part rdfs:label ?label . FILTER (LANG(?label) = "en") } LIMIT 50

What are the English-language names of the schools and departments that make up the University of Mannheim?

List the English labels of all constituent parts of the University of Mannheim.

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


Question: Labels for Klaus Höhne in English, German, French, and Italian, sorted by language order, with English Wikipedia link.

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#>
PREFIX schema: <http://schema.org/>
SELECT ?label ?sortOrder ?wikipediaArticle WHERE {
  VALUES(?langCode ?sortOrder) {("en" 1)("de" 3)("fr" 4)("it" 5)
  }
  wd:Q103362 rdfs:label ?label .
  FILTER(LANG(?label) = ?langCode)
  ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q103362 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
}
ORDER BY ASC(?sortOrder)

What are the names of Klaus Höhne in English, German, French, and Italian, and what is his English Wikipedia page?

Show me Klaus Höhne’s names in English, German, French, and Italian, ordered by language, and include the link to his English Wikipedia article.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q103362> <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/Q103362> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q103362> <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/Q103362> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What are the birth and death dates of Richard St George?

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

Can you tell me the full name, birth date, and death date of Richard St George?

Who is Richard St George, and when was he born and died?

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


Question: Birth and death dates of Jan van Gool

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

When was Jan van Gool born and when did he die?

Can you tell me the birth and death dates of the Dutch painter Jan van Gool?

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


Question: What is the English name of the person with SBL ID 15389 in the Dictionary of Swedish National Biography?

SELECT ?entity ?label ?description WHERE { ?entity wdt:P3217 "15389" . OPTIONAL { ?entity rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?entity schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you find the English description of Erik (SBL ID: 15389) from the Dictionary of Swedish National Biography?

Who is the individual identified by SBL ID 15389, and what is their English Wikipedia description?

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


Question: Authors of "Attention Is All You Need" paper with their ORCID IDs and Wikidata links.

SELECT ?author ?authorLabel ( COALESCE ( ?orcid , CONCAT ( "https://www.wikidata.org/wiki/" , ENCODE_FOR_URI( SUBSTR( STR(?author), 32 ) ) ) ) AS ?fallback ) WHERE { wd:Q30249683 wdt:P50 ?author . OPTIONAL { ?author wdt:P496 ?orcid . } ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") }

Who are the authors of the paper "Attention Is All You Need", and what are their ORCID identifiers? If they don’t have one, what is their Wikidata URL?

List the authors of the "Attention Is All You Need" paper along with their ORCID numbers; if an ORCID is not available, provide a link to their Wikidata page.

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q30249683> <http://www.wikidata.org/prop/direct/P50> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,da,de,es,fr,nl,no,ru,sv,zh". } }


Question: What type of entity is Monty Don, and what is its English label?

SELECT ?instanceType ?label WHERE { wd:Q422686 wdt:P31 ?instanceType . ?instanceType rdfs:label ?label . FILTER (LANG(?label) = "en") } LIMIT 50

What is the class that Monty Don belongs to, and how is it labeled in English?

Show me the English label of the type that Monty Don is an instance of.

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


Question: What are the English names of Unicode characters and their corresponding HTML entity codes?

SELECT ?character ?characterLabel ?htmlEntity WHERE { ?character wdt:P4575 ?htmlEntity . ?character rdfs:label ?characterLabel . FILTER(LANG(?characterLabel) = 'en') } LIMIT 1000

Can you list characters and their HTML entity representations in English?

Show me the mapping between Unicode symbols and their HTML codes, with English labels for the symbols.

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


Question: What properties are commonly used to describe bars on Wikidata, along with their English labels and descriptions?

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

Which properties describe bars (establishments serving alcohol), and what are their English names and definitions?

Show me the English labels and descriptions of all properties used on items classified as bars.

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/Q187456> . ?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 are the 50 most recently aired episodes of The Simpsons, ordered by their air date?

SELECT DISTINCT ?episode WHERE { ?episode wdt:P31 wd:Q21191270 . ?episode wdt:P577 ?date . } ORDER BY DESC(?date) LIMIT 50

List the latest 50 television series episodes, sorted by their publication date in descending order.

Show me the top 50 episodes of animated TV series, ordered from the most recent to the oldest release date.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q945427> . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 ) LIMIT 50


Question: Image of Vincent van Gogh from SNAC ARK ID w60g3k35

SELECT ?image WHERE { ?item wdt:P3430 "w60g3k35" . OPTIONAL { ?item wdt:P18 ?image . } }

What is the image associated with Vincent van Gogh’s SNAC ARK ID w60g3k35?

Show me the Wikimedia Commons image of Vincent van Gogh, identified by the SNAC ARK ID w60g3k35.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w60g3k35". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: What are the most commonly used properties on items located in Morocco, and how many items use each?

SELECT ?property ?propertyLabel (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item wdt:P17 wd:Q1028 . ?item ?p ?o . FILTER(STRSTARTS(STR(?p), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?p), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?property) . ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } GROUP BY ?property ?propertyLabel ORDER BY DESC(?count) LIMIT 1000

Which properties are most frequently attached to Moroccan entities, and what are their English labels and usage counts?

Show me the top 1000 properties used on items in Morocco, ordered by how many items have them, along with their labels.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var3 ) AS ?var2 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1028> . ?var3 ?var4 ?var5 . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar". } } ORDER BY DESC( ?var2 ) LIMIT 1000


Question: What film has the AFI Catalog ID 22051?

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

Which movie is identified by the AFI Catalog number 22051?

Can you tell me the title of the film listed as 22051 in the American Film Institute Catalog?

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


Question: What are the works from China and who are their authors?

SELECT ?work ?workLabel ?author ?authorLabel WHERE { ?work wdt:P495 wd:Q148 . ?work wdt:P50 ?author . ?work rdfs:label ?workLabel . ?author rdfs:label ?authorLabel . FILTER(LANG(?workLabel) = "en") FILTER(LANG(?authorLabel) = "en") }

List books, films, or other creative works originating from China along with their authors.

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


Question: Labels for the Michael Jackson song "They Don't Care About Us" in German, English, French, and Italian, ordered by language preference.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?label ?wikipediaArticle WHERE {
  VALUES(?lang ?order) {("de" 1)("en" 2)("fr" 3)("it" 4)
  }
  wd:Q159348 rdfs:label ?label .
  FILTER(LANG(?label) = ?lang)
  ?wikipediaArticle schema:about wd:Q159348 ; schema:inLanguage "de" ; schema:isPartOf <https://de.wikipedia.org/> .
}
ORDER BY ASC(?order)

What are the labels of the song "They Don't Care About Us" in German, English, French, and Italian, and which German Wikipedia article is associated with it?

Show me the official titles of Michael Jackson’s song "They Don't Care About Us" in German, English, French, and Italian, sorted in that order, along with the link to its German Wikipedia page.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q159348> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var7 ) ) ) . VALUES ( ?var7 ?var8 ) { ( "de""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/Q159348> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q159348> <urn:dboabstract> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q159348> <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/Q159348> ; <http://schema.org/inLanguage> "de"; <http://schema.org/isPartOf> <https://de.wikipedia.org/> . } } ORDER BY ASC( ?var8 )


Question: Entities that dispute statements and have Russian labels and descriptions.

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

Which entities that dispute statements in Wikidata have both a Russian label and a Russian description?

Show me the Russian names and descriptions of entities that have disputed any statement 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/P1310> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "ru" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ru" ) ) ) . } LIMIT 100


Question: How many items in the Nationalmuseum Sweden collection are associated with each gender, based on English labels?

SELECT ?genderLabel (COUNT(?item) AS ?count) WHERE { ?item wdt:P2538 ?nsId . ?item wdt:P21 ?gender . ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") } GROUP BY ?genderLabel

What is the distribution of gender identities among artists in the Nationalmuseum Sweden collection?

Can you show the count of artworks or artists in Nationalmuseum Sweden grouped by gender, in English?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P2538> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P21> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1


Question: What are all the categories and their superclasses that Armenia belongs to, and which of them have English Wikipedia articles?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?class ?classLabel ?wikipediaPage WHERE {
  wd:Q399 wdt:P31 ?directClass .
  ?directClass wdt:P279 * ?class .
  OPTIONAL {
    ?wikipediaPage schema:about ?class ; schema:isPartOf <https://en.wikipedia.org/> .
  }
  ?class rdfs:label ?classLabel .
  FILTER ( LANG( ?classLabel ) = "en" )
}

List the types of entities Armenia is classified as in Wikidata, including broader categories, and show their Wikipedia pages.

Which Wikipedia pages describe the conceptual categories that Armenia is an instance of or a subclass of?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q399> ( <http://www.wikidata.org/prop/direct/P31> ?/ <http://www.wikidata.org/prop/direct/P279> *) ?var1 . OPTIONAL { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are some treatments used for cancer?

SELECT ?treatment ?treatmentLabel WHERE { ?treatment wdt:P2175 wd:Q12078 . ?treatment rdfs:label ?treatmentLabel . FILTER(LANG(?treatmentLabel) = "en") } ORDER BY ASC(?treatmentLabel)

List the drugs and therapies that are used to treat cancer.

Which medical treatments target malignant neoplasms?

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


Question: What are the Wikipedia pages, IMDb ID, Rotten Tomatoes ID, and release year for the film with IMDb ID tt2402091?

SELECT DISTINCT ?wikipediaPage ?film ?imdbId ?metacriticId ?rottenTomatoesId (YEAR(?publicationDate) AS ?year) WHERE { ?film wdt:P31 wd:Q11424 . OPTIONAL { ?film wdt:P345 ?imdbId . } OPTIONAL { ?film wdt:P1712 ?metacriticId . } OPTIONAL { ?film wdt:P1258 ?rottenTomatoesId . } OPTIONAL { ?wikipediaPage schema:about ?film . } OPTIONAL { ?film wdt:P577 ?publicationDate . } FILTER(?imdbId = "tt2402091") } LIMIT 10

Show me details about the movie "The Reunion" (2013), including its Wikipedia links and identifiers on Metacritic and Rotten Tomatoes.

Find all Wikipedia articles about the film identified by IMDb ID tt2402091, along with its release year and other online identifiers.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 ( YEAR ( ?var6 ) AS ?var7 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P345> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1712> ?var4 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1258> ?var5 . } OPTIONAL { ?var1 <http://schema.org/about> ?var2 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P577> ?var6 . } FILTER ( ( ( ?var3 = "tt2402091" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,fr". } } LIMIT 10


Question: How many items in Wikidata are marked as duplicates of Alzheimer's disease?

SELECT (COUNT(?duplicateItem) AS ?count) WHERE { ?duplicateItem wdt:P2959 wd:Q11081 .}

Are there any duplicate entries in Wikidata for Alzheimer's disease, using the "permanent duplicated item" property?

Show me the count of items that have been flagged as duplicates of Alzheimer's disease in Wikidata.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2959> <http://www.wikidata.org/entity/Q11081> . }


Question: What are the labels, image, coordinates, Twitter username, Facebook username, and official website for Rome in English, German, French, and Italian?

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 ?label ?image ?coordinates ?twitter ?facebook ?website WHERE {
  wd:Q220 rdfs:label ?label .
  FILTER(LANG(?label) IN("en" , "de" , "fr" , "it"))
  OPTIONAL {
    wd:Q220 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q220 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    wd:Q220 wdt:P2002 ?twitter .
  }
  OPTIONAL {
    wd:Q220 wdt:P2013 ?facebook .
  }
  OPTIONAL {
    wd:Q220 wdt:P856 ?website .
  }
}
ORDER BY(LANG(?label))

Show me Rome's information including its name in different languages, image, coordinates, social media handles, and official website.

Retrieve the multilingual labels, image, geographic coordinates, Twitter and Facebook usernames, and official website for the city of Rome.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var12 ) ) ) . VALUES ( ?var12 ?var13 ) { ( "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/Q220> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P1651> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P2037> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P2002> ?var7 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P2013> ?var8 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P2003> ?var9 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q220> <http://www.wikidata.org/prop/direct/P496> ?var11 . } 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/Q220> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var13 )


Question: What are the multilingual labels and available online identifiers for the Italian chemist Francesco Selmi?

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?image ?coordinates ?wikipediaArticle ?youtubeId ?githubUsername ?twitterUsername ?facebookUsername ?instagramUsername ?website ?orcid WHERE {
  wd:Q1065181 rdfs:label ?label .
  VALUES(?lang) {("en")("de")("fr")("it")
  }
  FILTER(LANG(?label) = ?lang)
  OPTIONAL {
    wd:Q1065181 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P1651 ?youtubeId .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P2037 ?githubUsername .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P2002 ?twitterUsername .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P2013 ?facebookUsername .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P2003 ?instagramUsername .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P856 ?website .
  }
  OPTIONAL {
    wd:Q1065181 wdt:P496 ?orcid .
  }
  OPTIONAL {
    ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q1065181 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?lang

Can you show me Francesco Selmi’s name in English, German, French, and Italian, along with his image, Wikipedia page, and any social media or ORCID links?

Show me the basic structured data about Francesco Selmi, including his name in different languages and links to his Wikipedia page and image, ordered by language.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var12 ) ) ) . VALUES ( ?var12 ?var13 ) { ( "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/Q1065181> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P1651> ?var5 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P2037> ?var6 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P2002> ?var7 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P2013> ?var8 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P2003> ?var9 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { <http://www.wikidata.org/entity/Q1065181> <http://www.wikidata.org/prop/direct/P496> ?var11 . } 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/Q1065181> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var13 )


Question: What are the taxonomic ancestors of the giant squid (Architeuthis)?

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 ?ancestor ?ancestorLabel WHERE {
  wd:Q204646 wdt:P171 * ?ancestor .
  ?ancestor rdfs:label ?ancestorLabel
  FILTER(LANG(?ancestorLabel) = 'en')
}
ORDER BY ASC(STRLEN(STR(?ancestor)))

Show the lineage of parent taxa from Architeuthis up to the animal kingdom.

List all higher taxonomic groups that the giant squid belongs to, in order from closest to most general.

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


Question: What are the descendants of Teodoro Obiang Nguema Mbasogo, up to four generations, and do they have any children or images?

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 ?descendant ?descendantLabel ?image ?child WHERE {
  {
    wd:Q57385 wdt:P40 ?descendant .
  } UNION {
    wd:Q57385 wdt:P40 ?gen1 .
    ?gen1 wdt:P40 ?descendant .
  } UNION {
    wd:Q57385 wdt:P40 ?gen1 .
    ?gen1 wdt:P40 ?gen2 .
    ?gen2 wdt:P40 ?descendant .
  } UNION {
    wd:Q57385 wdt:P40 ?gen1 .
    ?gen1 wdt:P40 ?gen2 .
    ?gen2 wdt:P40 ?gen3 .
    ?gen3 wdt:P40 ?descendant .
  }
  ?descendant rdfs:label ?descendantLabel .
  FILTER ( LANG( ?descendantLabel ) = "en" ) OPTIONAL {
    ?descendant wdt:P18 ?image .
  }
  OPTIONAL {
    ?descendant wdt:P40 ?child .
  }
}

Can you show me the children, grandchildren, great-grandchildren, and great-great-grandchildren of the president of Equatorial Guinea, along with their photos and whether they have kids?

List the known descendants of Teodoro Obiang Nguema Mbasogo and include their images and their own children if any.

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