Question: Is the animated short film "Symphony Hour" a television series or a subclass of one?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?isInstanceOfTelevisionSeries WHERE {
  BIND( EXISTS {
    wd:Q25525 wdt:P31 ?type .
    ?type wdt:P279 * wd:Q5398426 .
  }
  AS ?isInstanceOfTelevisionSeries )
}

Does "Symphony Hour" belong to any class that is a subclass of television series?

Check whether Symphony Hour is categorized under television series or any of its subcategories.

SELECT ?var1 WHERE { BIND ( EXISTS { <http://www.wikidata.org/entity/Q25525> <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> ?var3 . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q5398426> ) || ( ?var3 = <http://www.wikidata.org/entity/Q5398426> ) ) ) . } AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the specific stages or areas of human development, such as child development or puberty?

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q2347178 . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = 'en') }

Can you list the academic subfields that fall under the development of the human body?

What are some examples of biological or psychological processes involved in human development, like language development or moral development?

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


Question: Multilingual labels for Extraterrestrial liquid water in English, German, French, and Italian, with its Wikipedia link.

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

What are the labels for "Extraterrestrial liquid water" in English, German, French, and Italian, and which Wikipedia article describes it?

Show me the names of "Extraterrestrial liquid water" in English, German, French, and Italian, ordered by that sequence, along with its English Wikipedia page.

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


Question: Paintings in the Bavarian State Painting Collections with no known artist and English descriptions

SELECT ?painting ?description WHERE { ?painting wdt:P195 wd:Q812285 . ?painting wdt:P31 wd:Q3305213 . MINUS { ?painting wdt:P170 [] . } ?painting schema:description ?description . FILTER (LANG(?description) = "en") }

Which paintings in the Bavarian State Painting Collections are not attributed to any known artist in Wikidata, and what are their English descriptions?

Show me the English descriptions of all paintings in the Bavarian State Painting Collections that don’t have a creator linked in Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q812285> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P170> ?var3 . } ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) && REGEX ( ?var2 , "string1" ) ) ) . }


Question: What are David Cameron’s properties in Chinese, how many values each has, and what are the Chinese labels of those values?

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

For each property of David Cameron, what is its Chinese label, how many values does it have, and what are the Chinese labels of those values?

Show me a summary of David Cameron’s properties in Chinese, including the number of values per property and the Chinese labels of those values.

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


Question: Most frequently used property for entities that have parts

SELECT ?claimProperty (COUNT(?claimProperty) AS ?count) WHERE { { SELECT ?claimProperty WHERE { ?entity wdt:P1237 ?something . ?subject ?property ?entity . ?claimProperty wikibase:directClaim ?property . ?claimProperty rdf:type wikibase:Property . } LIMIT 10000 } } GROUP BY ?claimProperty ORDER BY DESC(?count) LIMIT 1

What property is most commonly used to link to entities that have parts?

Show the property most often used as a predicate when the object is an entity that has a part.

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


Question: What Wikidata item corresponds to the IMDb ID tt2022441?

SELECT ?item WHERE { ?item wdt:P345 "tt2022441" . }

Which movie on Wikidata has the IMDb identifier tt2022441?

Find the Wikidata entity for the movie with IMDb ID tt2022441.

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


Question: What are the gender identities that are considered subclasses of female?

SELECT DISTINCT ?gender ?genderLabel WHERE { [] wdt:P21 ?gender . ?gender wdt:P279+ wd:Q6581072 . ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") }

List all gender values used for humans that are types of female, along with their English names.

Which gender identities are narrower than "female" in Wikidata’s classification?

SELECT DISTINCT ?var1 ?var1Label WHERE { [] <http://www.wikidata.org/prop/direct/P21> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P279> + <http://www.wikidata.org/entity/Q6581072> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the English name and description of the V&A item with ID O125770?

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

Can you tell me the title and a brief description of the painting in the Victoria and Albert Museum with ID O125770?

Find the English label and description for the V&A object identified by O125770.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3929> "O1257039". 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 the notable places in Carcassonne, France?

Which entities related to Carcassonne are located in France?

Can you list the administrative divisions, landmarks, and institutions in Carcassonne that are part of France?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P131> * ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . } FILTER ( ( ?var3 IN ( <http://www.wikidata.org/entity/Q16> , <http://www.wikidata.org/entity/Q20> , <http://www.wikidata.org/entity/Q29> , <http://www.wikidata.org/entity/Q30> , <http://www.wikidata.org/entity/Q31> , <http://www.wikidata.org/entity/Q34> , <http://www.wikidata.org/entity/Q35> , <http://www.wikidata.org/entity/Q36> , <http://www.wikidata.org/entity/Q37> , <http://www.wikidata.org/entity/Q38> , <http://www.wikidata.org/entity/Q39> , <http://www.wikidata.org/entity/Q40> , <http://www.wikidata.org/entity/Q45> , <http://www.wikidata.org/entity/Q55> , <http://www.wikidata.org/entity/Q142> , <http://www.wikidata.org/entity/Q145> , <http://www.wikidata.org/entity/Q159> , <http://www.wikidata.org/entity/Q183> , <http://www.wikidata.org/entity/Q184> , <http://www.wikidata.org/entity/Q191> , <http://www.wikidata.org/entity/Q211> , <http://www.wikidata.org/entity/Q213> , <http://www.wikidata.org/entity/Q215> , <http://www.wikidata.org/entity/Q218> , <http://www.wikidata.org/entity/Q233> , <http://www.wikidata.org/entity/Q258> , <http://www.wikidata.org/entity/Q399> , <http://www.wikidata.org/entity/Q408> , <http://www.wikidata.org/entity/Q664> , <http://www.wikidata.org/entity/Q668> , <http://www.wikidata.org/entity/Q794> , <http://www.wikidata.org/entity/Q869> , <http://www.wikidata.org/entity/Q1246> , <http://www.wikidata.org/entity/Q179876> ) ) ) . FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q6582> , <http://www.wikidata.org/entity/Q700826> , <http://www.wikidata.org/entity/Q17262> , <http://www.wikidata.org/entity/Q116081> , <http://www.wikidata.org/entity/Q1736175> , <http://www.wikidata.org/entity/Q1724741> , <http://www.wikidata.org/entity/Q2868054> , <http://www.wikidata.org/entity/Q451730> , <http://www.wikidata.org/entity/Q3379502> , <http://www.wikidata.org/entity/Q1724742> , <http://www.wikidata.org/entity/Q3121623> , <http://www.wikidata.org/entity/Q1313356> , <http://www.wikidata.org/entity/Q653945> , <http://www.wikidata.org/entity/Q3550526> , <http://www.wikidata.org/entity/Q1724750> , <http://www.wikidata.org/entity/Q28912766> , <http://www.wikidata.org/entity/Q27579823> , <http://www.wikidata.org/entity/Q3438785> , <http://www.wikidata.org/entity/Q3286770> , <http://www.wikidata.org/entity/Q3813452> , <http://www.wikidata.org/entity/Q712719> , <http://www.wikidata.org/entity/Q2130184> , <http://www.wikidata.org/entity/Q3330195> , <http://www.wikidata.org/entity/Q667181> , <http://www.wikidata.org/entity/Q1724747> , <http://www.wikidata.org/entity/Q1693672> , <http://www.wikidata.org/entity/Q32268> , <http://www.wikidata.org/entity/Q117846> , <http://www.wikidata.org/entity/Q3239438> , <http://www.wikidata.org/entity/Q5038134> , <http://www.wikidata.org/entity/Q2161741> , <http://www.wikidata.org/entity/Q18213978> , <http://www.wikidata.org/entity/Q816018> , <http://www.wikidata.org/entity/Q3076475> , <http://www.wikidata.org/entity/Q5038135> , <http://www.wikidata.org/entity/Q7744293> , <http://www.wikidata.org/entity/Q22953398> , <http://www.wikidata.org/entity/Q7012477> , <http://www.wikidata.org/entity/Q17175615> , <http://www.wikidata.org/entity/Q5232151> , <http://www.wikidata.org/entity/Q3495597> , <http://www.wikidata.org/entity/Q18385076> , <http://www.wikidata.org/entity/Q23502993> , <http://www.wikidata.org/entity/Q5038136> , <http://www.wikidata.org/entity/Q2604034> , <http://www.wikidata.org/entity/Q2824848> , <http://www.wikidata.org/entity/Q33141267> , <http://www.wikidata.org/entity/Q2604056> , <http://www.wikidata.org/entity/Q18385074> , <http://www.wikidata.org/entity/Q4358432> ) ) ) . }


Question: Who are the presidents of the United States according to Wikidata?

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

Can you list the names of people who have held the office of President of the United States?

Which individuals have served as the head of state and government of the United States?

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


Question: Most frequently used property to classify entities as positions in Wikidata

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

Which property is used most often to state that an entity is an instance of "position"?

Show me the property that is used the most to assign the class "position" to entities in Wikidata.

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


Question: What is the population of India?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?population WHERE {
  wd:Q668 wdt:P1082 ?population .
}

What is the number of inhabitants in India?

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


Question: MPs who resigned or died during the 56th UK Parliament

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT DISTINCT ?person ?personLabel WHERE {
  ?person p:P39 ?stmt .
  ?stmt ps:P39 wd:Q30524718 .
  ?stmt pq:P1534 ?endCause .
  FILTER ( ?endCause IN ( wd:Q796919 , wd:Q5247364 ) ) .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Which members of the 56th UK Parliament left their seat due to resignation or death in office?

List the names of UK MPs from the 56th Parliament whose terms ended because they resigned or died.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q30524718> . ?var2 <http://www.wikidata.org/prop/qualifier/P1534> <http://www.wikidata.org/entity/Q7864918> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Members of the 56th UK Parliament and their constituencies

SELECT ?member ?memberLabel ?constituency ?constituencyLabel WHERE { ?member p:P39 ?statement . ?statement ps:P39 wd:Q30524718 . ?statement pq:P768 ?constituency . ?member rdfs:label ?memberLabel . ?constituency rdfs:label ?constituencyLabel . FILTER(LANG(?memberLabel) = "en") FILTER(LANG(?constituencyLabel) = "en")}

Who were the members of the 56th Parliament of the United Kingdom, and which constituencies did they represent?

List all MPs from the 56th UK Parliament along with the electoral districts they won.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q30524718> . ?var3 <http://www.wikidata.org/prop/qualifier/P768> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List concerts with their English labels.

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

What are some concerts and their names in English?

Show me all concerts that have English-language labels.

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


Question: What are some satirical or joke political parties around the world?

SELECT ?party ?partyLabel WHERE { ?party (wdt:P31/wdt:P279*) wd:Q938993 . ?party rdfs:label ?partyLabel . FILTER(LANG(?partyLabel) = "en") }

List all political parties that are classified as frivolous or satirical parties, including their subclasses.

Can you show me examples of humorous political parties that exist as instances or subtypes of the category "frivolous political party"?

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


Question: What reference works describe military equipment?

SELECT ?source ?sourceLabel WHERE { wd:Q18643213 wdt:P1343 ?source . ?source rdfs:label ?sourceLabel . FILTER(LANG(?sourceLabel) = "en") }

Which books or encyclopedias include information about military equipment?

Can you list the sources that define or describe military equipment in Wikidata?

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


Question: List all sports seasons that are not part of a larger league or competition and have English labels.

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

Which sports seasons are standalone events (not linked to a parent competition) and are labeled in English?

Show me the English-named editions of sports tournaments that are not explicitly categorized as belonging to a league or competition.

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


Question: Film with Swedish Film Database ID 37692

SELECT ?film WHERE { ?film wdt:P2334 "37692" . }

Which film has the Swedish Film Database ID 37692?

Tell me the film identified by the Swedish Film Database ID 37692.

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


Question: Who are the people associated with Zurich?

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

Can you list the names of people who were born in or connected to Zurich?

Show me the English labels of all humans linked to the city of Zurich.

SELECT DISTINCT ?var1 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/Q72> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . FILTER ( ( REGEX ( STR ( ?var1 ) , "string1" ) && !( REGEX ( STR ( ?var1 ) , "string2" ) ) ) ) . }


Question: What are the native names, dates of birth and death, manners of death, and religions of politicians, along with their English names?

SELECT ?politicianLabel ?nativeName ?dateOfDeath ?dateOfBirth ?mannerOfDeathLabel ?religionLabel WHERE { ?politician wdt:P1559 ?nativeName . ?politician wdt:P570 ?dateOfDeath . ?politician wdt:P569 ?dateOfBirth . ?politician wdt:P1196 ?mannerOfDeath . ?politician wdt:P140 ?religion . ?politician wdt:P106 wd:Q82955 . ?politician rdfs:label ?politicianLabel . ?mannerOfDeath rdfs:label ?mannerOfDeathLabel . ?religion rdfs:label ?religionLabel . FILTER(LANG(?politicianLabel) = "en") FILTER(LANG(?mannerOfDeathLabel) = "en") FILTER(LANG(?religionLabel) = "en") }

List politicians with their native names, birth/death dates, how they died, and their religion.

Show me information about politicians including their native names, when they were born and died, how they died, and their religion, all in English.

SELECT ?var1 ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label ?var8Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1196> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var1 <http://www.wikidata.org/prop/direct/P140> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var8 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: How many ResearcherID statements are there in Wikidata?

PREFIX p: <http://www.wikidata.org/prop/>
SELECT ( COUNT( * ) AS ?statementCount ) WHERE {
  [] p:P1053 [] .
}

What is the total number of times researchers in Wikidata have been assigned a Web of Science Researcher ID?

Can you tell me how many statement nodes in Wikidata link to a Researcher ID?

SELECT( COUNT (* ) AS ?var1 ) WHERE { [] <http://www.wikidata.org/prop/P1053> [] . }


Question: Deprecated official names of Swedish localities from Statistics Sweden's land area and population database (Q27579148).

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?locality ?officialName ?rank WHERE {
  ?locality p:P1448 [ ps:P1448 ?officialName ; wikibase:rank ?rank ;(prov:wasDerivedFrom / pr:P248) wd:Q27579148 ] .
  FILTER(?rank = wikibase:DeprecatedRank)
}
ORDER BY ASC(?officialName)

What are the deprecated official names of Swedish localities as recorded in Statistics Sweden's statistical database from 1960–2015?

List all deprecated official names of Swedish localities sourced from the Statistics Sweden database on land area, population, and population density (Q27579148).

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P1448> [ <http://www.wikidata.org/prop/statement/P1448> ?var2 ; <http://wikiba.se/ontology#rank> ?var3 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) <http://www.wikidata.org/entity/Q27579148> ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )


Question: What movie has the IMDb ID tt0110167?

SELECT ?item ?title WHERE { ?item wdt:P345 "tt0110167" . ?item wdt:P1476 ?title .}

What is the title of the movie with IMDb identifier tt0110167?

Find the official title of the film identified by the IMDb ID tt0110167.

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


Question: Airports with their ICAO codes, official names, and alternative names.

SELECT DISTINCT ?airport ?icaoCode ?officialName ?knownAs WHERE { ?airport wdt:P31 wd:Q1248784 . OPTIONAL { ?airport wdt:P239 ?icaoCode . } OPTIONAL { ?airport wdt:P1448 ?officialName . } OPTIONAL { ?airport wdt:P2561 ?knownAs . } }

What are the ICAO codes for all airports, along with their official and alternative names?

List all airports with their ICAO codes, and include their official names and other names if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P239> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2561> ?var4 . } }


Question: Movie theaters in Barcelona

SELECT DISTINCT ?theater ?theaterLabel WHERE { ?theater wdt:P31 wd:Q41253 . ?theater wdt:P131 wd:Q1492 . ?theater rdfs:label ?theaterLabel . FILTER(LANG(?theaterLabel) = "en") } LIMIT 200

What are the names of movie theaters located in Barcelona?

List the English-labeled movie theaters in Barcelona, Spain.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1492> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,cy,fr,de,es,nl,hy,ja,ru,ca". } } LIMIT 200


Question: Which film has the AllMovie ID v596539?

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

What is the Wikidata item for the film with AllMovie title ID v596539?

Find the movie in Wikidata that corresponds to the AllMovie ID v596539.

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


Question: Which movie has the Swedish Film Database ID 56861?

SELECT ?movie WHERE { ?movie wdt:P2334 "56861" . }

What is the Wikidata item for the film identified as 56861 in the Swedish Film Database?

Find the movie entity in Wikidata that is linked to the Swedish Film Database ID "56861".

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


Question: What movie has the IMDb ID tt0148710?

SELECT ?movie WHERE { ?movie wdt:P345 "tt0148710" . }

Which film on Wikidata is identified by the IMDb identifier tt0148710?

Find the Wikidata entity for the movie with IMDb ID tt0148710.

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


Question: Stars in German-named constellations without German descriptions.

SELECT ?star ?constellation ?constellationLabel WHERE { ?star wdt:P31 wd:Q523 . ?star wdt:P59 ?constellation . ?constellation rdfs:label ?constellationLabel . FILTER (LANG(?constellationLabel) = "de") . FILTER (NOT EXISTS { ?star schema:description ?desc . FILTER (LANG(?desc) = "de") . }) }

Which stars are part of constellations with German names but have no German description in Wikidata?

List all stars that belong to constellations labeled in German, excluding those that have a German description.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q523> . ?var1 <http://www.wikidata.org/prop/P59> [] . ?var1 <http://www.wikidata.org/prop/direct/P59> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . } ) ) . }


Question: Which film has the Swedish Film Database ID 37693?

SELECT ?film WHERE { ?film wdt:P2334 "37693" . }

What is the title of the Swedish newsreel film identified by the ID 37693 in the Swedish Film Database?

Find the Wikidata item for the film with Swedish Film Database ID 37693.

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


Question: Films with "Rambo" in the title released after 1980, in English.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?film ?label ?year WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P577 ?date .
  ?film rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  FILTER ( ?date >= "1980-01-01T00:00:00Z" ^^ xsd:dateTime ) .
  FILTER ( CONTAINS( ?label , "Rambo" ) ) .
  BIND( SUBSTR( STR( ?date ) , 1 , 4 ) AS ?year )
}

What are the English-language films released since 1980 that have "Rambo" in their title, and what year were they released?

List all English films from 1980 onwards with "Rambo" in the title, along with their release years.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { BIND ( STR ( YEAR ( ?var5 ) ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( ?var5 >= "1980-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( CONTAINS ( ?var2 , "Rambo" ) ) ) . }


Question: Creative works and their genres

SELECT ?work ?genre ?genreLabel WHERE { ?work wdt:P136 ?genre . ?genre rdfs:label ?genreLabel . FILTER(LANG(?genreLabel) = "en") } LIMIT 100

What are the genres of creative works on Wikidata?

List creative works along with their English genre labels, such as "Buddhist art" or "Christian fiction".

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


Question: Who is the head of government of Zurich?

SELECT ?headLabel WHERE { wd:Q72 wdt:P6 ?head . ?head rdfs:label ?headLabel . FILTER(LANG(?headLabel) = "en")}

What is the name of the person who leads the government of Zurich?

Which individual holds the position of head of government in the city of Zurich?

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


Question: What are the birth and death dates of Shirley Scott?

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

Can you tell me when Shirley Scott was born and when she died?

Who is Shirley Scott, and what are her dates of birth and death?

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


Question: What are the birth and death dates of Richard Bingham, 2nd Earl of Lucan?

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

When was Richard Bingham, 2nd Earl of Lucan born and when did he die?

Can you tell me the lifespan of Richard Bingham, 2nd Earl of Lucan?

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


Question: What are the birth and death dates of William J. Whaling?

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

Can you tell me when William J. Whaling was born and when he died?

Provide the life span (birth and death dates) of William J. Whaling, the United States Marine Corps Major General.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q8020245> 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 were the birth and death dates of Bennelong, a Cadigal man?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?birthDate ?deathDate WHERE {
  wd:Q817828 wdt:P569 ?birthDate .
  wd:Q817828 wdt:P570 ?deathDate .
}

When was Bennelong born and when did he die?

Can you tell me the lifespan of Bennelong, a prominent Indigenous Australian from the Cadigal group?

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


Question: What are the types of sports that have Russian-language labels?

SELECT ?sport ?label WHERE { ?sport wdt:P31 wd:Q31629 . ?sport rdfs:label ?label . FILTER (LANG(?label) = "ru") } ORDER BY ?sport

List sports (types of sport) along with their names in Russian.

Which sports are classified under "type of sport" and have a Russian label?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q31629> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ru" ) ) ) . } }


Question: Which Wikimedia category has Walt Disney World Resort as its main topic?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?category ?categoryLabel WHERE {
  ?category p:P301 ?statement .
  ?statement ps:P301 wd:Q206859 .
  ?category rdfs:label ?categoryLabel .
  FILTER ( LANG( ?categoryLabel ) = "en" )
}

What is the name of the Wikipedia category that lists Walt Disney World Resort as its primary subject?

Show me the English label of the Wikimedia category that is linked to Walt Disney World Resort via the main topic property.

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


Question: What are the sports seasons that belong to a league or competition?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?season WHERE {
  ?season wdt:P3450 [] ; wdt:P31 wd:Q1539532 .
}

Which sports club seasons are editions of a league or competition?

Can you list the sports seasons associated with a league, such as Elitserien?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3450> [] ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1539532> . }


Question: What is the Spanish label and description of the property used to represent date of birth in Wikidata?

SELECT ?prop ?propLabel ?propDescription WHERE { wd:Q2389905 wdt:P1687 ?prop . ?prop rdfs:label ?propLabel . ?prop schema:description ?propDescription . FILTER(LANG(?propLabel) = "es") FILTER(LANG(?propDescription) = "es") }

In Spanish, how is the property for recording someone’s birth date labeled and described in Wikidata?

Show me the Spanish name and definition of the Wikidata property that stores birth dates.

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/Q2389905> . ?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 ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } LIMIT 100


Question: Lakes in Bhutan with their coordinates and physical properties like area, length, width, volume, watershed area, and perimeter.

SELECT DISTINCT
  ?lake ?lakeLabel
  ?latitude ?longitude
  ?area ?areaUnit ?areaUnitLabel
  ?length ?lengthUnit ?lengthUnitLabel
  ?width ?widthUnit ?widthUnitLabel
  ?volume ?volumeUnit ?volumeUnitLabel
  ?watershedArea ?watershedUnit ?watershedUnitLabel
  ?perimeter ?perimeterUnit ?perimeterUnitLabel
WHERE {
  ?lake (wdt:P31/wdt:P279*) wd:Q23397 .  # instance of or subclass of lake
  ?lake wdt:P17 wd:Q917 .                # located in Bhutan

  OPTIONAL {
    ?lake wdt:P625 ?coord .
    BIND(geof:latitude(?coord) AS ?latitude)
    BIND(geof:longitude(?coord) AS ?longitude)
  }

  OPTIONAL {
    ?lake p:P2046/psv:P2046 ?areaNode .
    ?areaNode wikibase:quantityAmount ?area ;
              wikibase:quantityUnit ?areaUnit .
    ?areaUnit rdfs:label ?areaUnitLabel .
    FILTER(LANG(?areaUnitLabel) = "en")
  }

  OPTIONAL {
    ?lake p:P2043/psv:P2043 ?lengthNode .
    ?lengthNode wikibase:quantityAmount ?length ;
                wikibase:quantityUnit ?lengthUnit .
    ?lengthUnit rdfs:label ?lengthUnitLabel .
    FILTER(LANG(?lengthUnitLabel) = "en")
  }

  OPTIONAL {
    ?lake p:P2049/psv:P2049 ?widthNode .
    ?widthNode wikibase:quantityAmount ?width ;
               wikibase:quantityUnit ?widthUnit .
    ?widthUnit rdfs:label ?widthUnitLabel .
    FILTER(LANG(?widthUnitLabel) = "en")
  }

  OPTIONAL {
    ?lake p:P2234/psv:P2234 ?volumeNode .
    ?volumeNode wikibase:quantityAmount ?volume ;
                wikibase:quantityUnit ?volumeUnit .
    ?volumeUnit rdfs:label ?volumeUnitLabel .
    FILTER(LANG(?volumeUnitLabel) = "en")
  }

  OPTIONAL {
    ?lake p:P2053/psv:P2053 ?watershedNode .
    ?watershedNode wikibase:quantityAmount ?watershedArea ;
                   wikibase:quantityUnit ?watershedUnit .
    ?watershedUnit rdfs:label ?watershedUnitLabel .
    FILTER(LANG(?watershedUnitLabel) = "en")
  }

  OPTIONAL {
    ?lake p:P2547/psv:P2547 ?perimeterNode .
    ?perimeterNode wikibase:quantityAmount ?perimeter ;
                   wikibase:quantityUnit ?perimeterUnit .
    ?perimeterUnit rdfs:label ?perimeterUnitLabel .
    FILTER(LANG(?perimeterUnitLabel) = "en")
  }

  ?lake rdfs:label ?lakeLabel .
  FILTER(LANG(?lakeLabel) = "en")
}
ORDER BY ?lakeLabel

What are the lakes in Bhutan, and what are their geographic coordinates and measurable characteristics such as area, length, width, volume, watershed size, and perimeter?

Please list all lakes in Bhutan along with their latitude, longitude, and any available data on their area, length, width, volume, watershed area, and perimeter.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5Label ?var6 ?var7Label ?var8 ?var9Label ?var10 ?var11Label ?var12 ?var13Label ?var14 ?var15Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q917> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var10 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: Items near latitude 39 and longitude -77 with images and Wikimedia Commons categories.

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory WHERE { ?item wdt:P625 ?coord . FILTER(CONTAINS(STR(?coord), "-77")) FILTER(CONTAINS(STR(?coord), "39")) OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 3000

What are the places located around Washington, D.C. (coordinates -77, 39) that have photos on Wikimedia Commons and associated Commons categories?

List up to 3000 entities near the coordinates -77, 39, including their English labels, geographic coordinates, images, and 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(-77 39)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-77 39)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: What is the average duration and count of films directed by women from 2010 onwards, grouped by country and genre?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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(AVG(xsd:float(?duration)) AS ?avgDuration)(COUNT(?film) AS ?filmCount) ?countryLabel ?genreLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P57 ?director .
  ?film wdt:P577 ?releaseDate .
  ?film wdt:P136 ?genre .
  ?film wdt:P495 ?country .
  ?director wdt:P21 wd:Q6581072 .
  ?film wdt:P2047 ?duration .
  ?country rdfs:label ?countryLabel .
  ?genre rdfs:label ?genreLabel .
  FILTER(?releaseDate >= "2010-01-01T00:00:00Z" ^^ xsd:dateTime)
  FILTER(isNumeric(xsd:float(?duration)))
  FILTER(LANG(?countryLabel) = "en")
  FILTER(LANG(?genreLabel) = "en")
}
GROUP BY ?countryLabel ?genreLabel

For each country and genre, how many films directed by women were released since 2010, and what’s their average length?

Show me the average runtime and number of female-directed films from 2010 onward, broken down by country and genre.

SELECT( AVG ( ?var1 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 ) ?var5Label ?var6Label WHERE { BIND ( STR ( YEAR ( ?var7 ) ) AS ?var8 ). ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var3 <http://www.wikidata.org/prop/direct/P57> ?var9 . ?var3 <http://www.wikidata.org/prop/direct/P577> ?var7 . ?var3 <http://www.wikidata.org/prop/direct/P136> ?var6 . ?var3 <http://www.wikidata.org/prop/direct/P495> ?var5 . ?var9 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var3 <http://www.wikidata.org/prop/direct/P2047> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( ( ?var7 >= "2010-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } GROUP BY ?var6Label ?var5Label


Question: What are the superclasses of mountain deity in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?superclass WHERE {
  {
    wd:Q819684 wdt:P279 ?superclass .
  } UNION {
    wd:Q819684 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?superclass .
  } UNION {
    wd:Q819684 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?superclass .
  }
}

What are the immediate and higher-level categories that mountain deity belongs to, up to three levels up in the subclass hierarchy?

Show me the full classification hierarchy of mountain deity, listing all its superclass categories up to three levels above.

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


Question: Mountains in Bahrain with coordinates, area, elevation, isolation, prominence, parent peak, material, part-of, and administrative division.

SELECT ?mountain ?mountainLabel ?latitude ?longitude ?area ?areaUnit ?elevation ?elevationUnit ?isolation ?isolationUnit ?prominence ?prominenceUnit ?parentPeak ?material ?partOf ?administrativeEntity ?administrativeEntityLabel WHERE { ?mountain (wdt:P31/wdt:P279*) wd:Q8502 . ?mountain wdt:P17 wd:Q398 . OPTIONAL { ?mountain p:P625/psv:P625 ?coord . ?coord wikibase:geoLatitude ?latitude ; wikibase:geoLongitude ?longitude . } OPTIONAL { ?mountain p:P2046/psv:P2046 ?areaStmt . ?areaStmt wikibase:quantityAmount ?area ; wikibase:quantityUnit ?areaUnit . } OPTIONAL { ?mountain p:P2044/psv:P2044 ?elevationStmt . ?elevationStmt wikibase:quantityAmount ?elevation ; wikibase:quantityUnit ?elevationUnit . } OPTIONAL { ?mountain p:P2659/psv:P2659 ?isolationStmt . ?isolationStmt wikibase:quantityAmount ?isolation ; wikibase:quantityUnit ?isolationUnit . } OPTIONAL { ?mountain p:P2660/psv:P2660 ?prominenceStmt . ?prominenceStmt wikibase:quantityAmount ?prominence ; wikibase:quantityUnit ?prominenceUnit . } OPTIONAL { ?mountain wdt:P3137 ?parentPeak . } OPTIONAL { ?mountain wdt:P186 ?material . } OPTIONAL { ?mountain wdt:P361 ?partOf . } OPTIONAL { ?mountain wdt:P131 ?administrativeEntity . } OPTIONAL { ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = "en") } OPTIONAL { ?mountain rdfs:label ?mountainLabel . FILTER(LANG(?mountainLabel) = "en") } } ORDER BY DESC(?elevation)

What are the mountains in Bahrain, and what are their geographic and topographic properties such as elevation, area, coordinates, and administrative location?

List all mountains located in Bahrain, including their latitude and longitude, area, elevation above sea level, topographic isolation and prominence, parent peak, material, part-of relationships, and the administrative region they belong to.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var9 ?var10Label ?var11 ?var11Label ?var12Label ?var13 ?var13Label ?var14 ?var14Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q398> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var15 . ?var15 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var16 . ?var16 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var16 <http://wikiba.se/ontology#quantityUnit> ?var17 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var5 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var7 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var8 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2660> / <http://www.wikidata.org/prop/statement/value/P2660> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var9 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3137> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var14 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,it,es,ru". } } ORDER BY DESC( ?var5 )


Question: Who is a human with the Freebase ID /m/0jcx?

SELECT ?item WHERE { ?item wdt:P31 wd:Q5 . ?item wdt:P646 "/m/0jcx" . } LIMIT 100

Find the person associated with the Freebase identifier /m/0jcx.

Which human entity has the Freebase ID /m/0jcx?

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


Question: DOI of a scholarly article

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?doi WHERE {
  ?article wdt:P356 ?doi .
  ?article wdt:P31 wd:Q13442814 .
}
LIMIT 1

What is the DOI of a scholarly article on Wikidata?

Please provide a DOI for a scholarly article from Wikidata.

SELECT( CONCAT ( ?var1 , STR ( NOW ( ) ) ) AS ?var2 ) WHERE { { SELECT DISTINCT ?var1 ?var3 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P356> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . } LIMIT 1 } }


Question: Who is the human with the Freebase ID /m/02mjmr?

SELECT ?human WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P646 "/m/02mjmr" . } LIMIT 100

Find the person identified by the Freebase identifier /m/02mjmr.

Which human entity is linked to the Freebase ID /m/02mjmr in Wikidata?

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


Question: What sports categories does paracanoe belong to?

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

What are the direct parent classes of paracanoe in the Wikidata taxonomy?

Is paracanoe a type of parasport or canoeing and kayaking?

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


Question: Airport with IATA code AGP, its location, and served cities

SELECT ?airport ?iataCode ?location ?locationLabel ?servedPlace ?servedPlaceLabel WHERE { ?airport wdt:P31/wdt:P279* wd:Q1248784 . OPTIONAL { ?airport wdt:P238 ?iataCode . } OPTIONAL { ?airport wdt:P131 ?location . } OPTIONAL { ?location rdfs:label ?locationLabel . } OPTIONAL { ?airport wdt:P931 ?servedPlace . } OPTIONAL { ?servedPlace rdfs:label ?servedPlaceLabel . } FILTER (?iataCode = "AGP") } LIMIT 100

What airport has the IATA code AGP, and where is it located and which cities does it serve?

Show me the airport with IATA code AGP, including its administrative location and the places it serves.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 ?var4Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,uk". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } FILTER ( ( ( ?var2 = "AGP" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P931> ?var4 . } } LIMIT 100


Question: Substances that are thickeners

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

List the known substances used as thickeners.

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


Question: Variant spellings of surnames that are considered equivalent in Wikidata.

SELECT ?surnameVariant1 ?surnameVariant2 WHERE { ?surnameClass wdt:P279* wd:Q101352 . ?surnameVariant1 wdt:P31 ?surnameClass . ?surnameVariant1 wdt:P460 ?surnameVariant2 . }

What are the different spellings of surnames that are considered the same as each other?

Show me pairs of surname variants that are marked as equivalent in Wikidata, including cross-language or orthographic variants.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q101352> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P460> ?var2 . }


Question: List the top 21 named relationships in Wikidata.

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 ?relationship ?label WHERE {
  ?relationship wdt:P31 wd:Q930933 .
  ?relationship rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 21

What are some examples of relationships (like cultural or social connections) defined in Wikidata?

Can you show me 21 named relationships (such as 'alcohol and health' or 'Homosexuality and Taoism') along with their English labels?

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


Question: Which countries have the most monuments listed in Wiki Loves Monuments, and how many are there?

SELECT ?country ?countryLabel (SAMPLE(?monument) AS ?exampleMonument) (COUNT(DISTINCT ?wlmId) AS ?monumentCount) (SAMPLE(?wlmId) AS ?exampleWlmId) WHERE { ?monument wdt:P2186 ?wlmId . OPTIONAL { ?monument wdt:P17 ?country . } FILTER EXISTS { ?monument wdt:P17 ?country } . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } GROUP BY ?country ?countryLabel ORDER BY DESC(?monumentCount)

For each country, how many unique Wiki Loves Monuments IDs are recorded, and can you show an example monument and ID per country?

Show me a list of countries with their total number of monuments in the Wiki Loves Monuments project, sorted from highest to lowest, along with one example monument and its ID per country.

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var3 )( COUNT ( DISTINCT ?var4 ) AS ?var5 )( SAMPLE ( ?var4 ) AS ?var6 )( SAMPLE ( ?var1Label ) AS ?var1Label ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P2186> ?var4 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P17> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } GROUP BY ?var1


Question: What is the native label of the male given name "Beat"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?nativeLabel WHERE {
  wd:Q336958 wdt:P1705 ?nativeLabel .
}

Show the official or original language name for the given name "Beat".

SELECT * WHERE { <http://www.wikidata.org/entity/Q336958> <http://www.wikidata.org/prop/direct/P1705> ?var1Label . }


Question: People with German as native language and their gender.

SELECT ?person ?personLabel ?genderLabel WHERE { ?person wdt:P103 wd:Q188 . ?person wdt:P21 ?gender . ?person rdfs:label ?personLabel . ?gender rdfs:label ?genderLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?genderLabel) = "en") }

Who are the people whose native language is German, and what is their gender?

List the names and genders of all people who speak German as their first language.

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


Question: Find all Swedish National Biography ID (SBL ID) duplicates in Wikidata and the people/families associated with them.

SELECT ?sblId ?item ?itemLabel WHERE { ?item wdt:P3217 ?sblId . { SELECT ?sblId WHERE { ?item2 wdt:P3217 ?sblId . } GROUP BY ?sblId HAVING (COUNT(*) > 1) } OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } } ORDER BY ASC(xsd:integer(?sblId))

Which Swedish National Biography IDs are assigned to more than one person or family in Wikidata, and who are they?

List all Wikidata items that share a Swedish National Biography ID (SBL ID) with another item, including the ID and their English labels, sorted by the ID number.

SELECT ?var1 ?var2 ?var3 ?var3Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P3217> ?var1 . { SELECT( COUNT (* ) AS ?var2 ) ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P3217> ?var1 . } GROUP BY ?var1 HAVING ( ( COUNT (* ) > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) )


Question: English name of D. B. Cooper

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

What is the English label for the entity D. B. Cooper?

Show me the English name of D. B. Cooper.

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


Question: What are the books written by George Orwell, and in which locations are their stories set?

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 ?workLabel ?narrativeLocationLabel WHERE {
  ?work wdt:P50 wd:Q3335 .
  OPTIONAL {
    ?work wdt:P840 ?narrativeLocation .
    ?narrativeLocation rdfs:label ?narrativeLocationLabel .
    FILTER(LANG(?narrativeLocationLabel) = "en")
  }
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
ORDER BY ?workLabel

Show me all works by George Orwell along with the places where they are set, if known.

Which locations are the settings of George Orwell’s literary works?

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


Question: Most used property linking to Blade Runner

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prop ( COUNT( ?prop ) AS ?count ) WHERE {
  ?item ?prop wd:Q184843 .
  FILTER ( STRSTARTS( STR( ?prop ) , "http://www.wikidata.org/prop/direct/" ) )
}
GROUP BY ?prop
ORDER BY DESC ( ?count )
LIMIT 1

Which property is most frequently used to connect other items to the film Blade Runner?

Show me the property that links the most number of items to Blade Runner, along with how many times it’s used.

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


Question: Who is the Artnet artist with ID "chen-yixi", and what is their English 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 ?artist ?artistLabel ?description WHERE {
  ?artist wdt:P3782 "chen-yixi" .
  OPTIONAL {
    ?artist rdfs:label ?artistLabel .
    FILTER(LANG(?artistLabel) = "en")
  }
  OPTIONAL {
    ?artist schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

What is the name and English description of the artist identified by the Artnet ID "chen-yixi"?

Please provide the English label and description of the person in Wikidata who has the Artnet artist ID "chen-yixi".

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3782> "chen-yixi". 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: Most frequently used property for Shanghai Tower

SELECT ?property (COUNT(?property) AS ?count) WHERE { wd:Q18547 ?directClaim ?value . ?property wikibase:directClaim ?directClaim . ?property rdf:type wikibase:Property . } GROUP BY ?property ORDER BY DESC(?count) LIMIT 1

Which property is used most often to describe the Shanghai Tower?

Show me the property that appears most frequently in statements about the Shanghai Tower.

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


Question: What places or landmarks are located in Hohenau, Germany?

SELECT ?item WHERE { ?item wdt:P131 wd:Q505915 . }

List all administrative subdivisions or features within the municipality of Hohenau.

Which entities are situated within the boundaries of Hohenau?

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


Question: What properties are most frequently used to link people or entities to Hampstead, excluding those used only once?

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

Which properties connect the most entities to Hampstead, and how many times are they used?

Show me the properties that link entities to Hampstead, sorted by how often they appear, but only include properties used more than once.

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


Question: What is the name of the museum with Museofile ID M0373?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?museumLabel ?museofileId ?museum WHERE {
  ?museum wdt:P539 ?museofileId .
  FILTER(?museofileId = "M0373")
  .
  ?museum rdfs:label ?museumLabel .
}

Which museum is identified by the Museofile ID M0373?

Show me the label and Museofile ID for the museum with ID M0373.

SELECT ?var1Label ?var2 ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P539> ?var2 . FILTER ( ( ?var2 IN ( "M0373" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Works depicting topics related to the themes in "Promenading on the Ramparts of Copenhagen" and their paired subjects.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE {
  wd:Q20429098 wdt:P180 ?topic .
  {
    ?var3 wdt:P180 ?var1 .
    ?var1 wdt:P1269 ?topic .
  } UNION {
    ?var3 wdt:P180 ?var1 .
    ?var1 wdt:P361 ?topic .
  } UNION {
    ?var3 wdt:P180 ?var1 .
    ?var1 wdt:P279 ?topic .
  }
  ?var3 wdt:P180 ?var1 , ?var2 .
  FILTER(?var1 != ?var2 && ?var1 != ?topic && ?var2 != ?topic)
}

Which artworks depict two distinct themes that are facets, parts, or subclasses of the themes shown in the painting "Promenading on the Ramparts of Copenhagen on the Evening of a Public Holiday in Spring"?

Show me pairs of depicted topics from other artworks that are thematically related (as facets, parts, or subclasses) to the subjects depicted in the painting "Promenading on the Ramparts of Copenhagen on the Evening of a Public Holiday in Spring".

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q20429098> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q20429098> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q20429098> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q20429098> != ?var1 ) && ( <http://www.wikidata.org/entity/Q20429098> != ?var2 ) && ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What is the English label and description of the board game with BoardGameGeek ID 153318?

SELECT ?game ?gameLabel ?description WHERE { ?game wdt:P2339 "153318" . ?game rdfs:label ?gameLabel . FILTER(LANG(?gameLabel) = "en") . OPTIONAL { ?game schema:description ?description . FILTER(LANG(?description) = "en") } }

Can you tell me about the game Dimension, including its English description?

Show me the English name and description of the board game identified by the BGG ID 153318.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2339> "153305". 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: Named house cats and their additional classifications (e.g., mascot, pet).

SELECT ?cat ?catLabel ?type WHERE { ?cat wdt:P31 wd:Q146 . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") . ?cat wdt:P31 ?type . }

What are the named cats that are house cats, and what other categories do they belong to?

List all named domestic cats along with the types they are classified as, using English names.

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


Question: Institutions in Nauru with duplicate GeoNames IDs.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?institution1 ?geonamesId ?institution2 WHERE {
  ?institution1 wdt:P17 wd:Q697 ; wdt:P1566 ?geonamesId .
  ?institution2 wdt:P1566 ?geonamesId .
  FILTER ( ?institution1 != ?institution2 )
}

Which two different institutions in Nauru share the same GeoNames ID?

Show me two distinct educational institutions located in Nauru that are assigned the same identifier in the GeoNames database.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q697> ; <http://www.wikidata.org/prop/direct/P1566> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P1566> ?var2 . FILTER ( ( ( ?var1 != ?var3 ) ) ) . }


Question: What properties (excluding "instance of") are used to link entities to the bathroom entity in Wikidata?

SELECT DISTINCT ?property WHERE { ?item ?statementProperty wd:Q190771 . ?property wikibase:statementProperty ?statementProperty . FILTER (?property != wd:P31) }

Which properties, other than "instance of", have been used to connect other items to the bathroom in Wikidata?

Show me all the properties (except P31) that have been used in statements where the object is a bathroom, such as in depictions, main subjects, or parts of a building.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3 <http://www.wikidata.org/entity/Q190771> . ?var1 <http://wikiba.se/ontology#statementProperty> ?var3 . FILTER ( ( ( ?var1 != <http://www.wikidata.org/entity/P31> ) ) ) . }


Question: What movie has the elFilm ID 1581657?

SELECT ?movie WHERE { ?movie wdt:P3143 "1581657" . }

Which film on Wikidata is identified by the elFilm ID 1581657?

I’m looking for the Wikidata item of the movie with elFilm ID 1581657 — can you tell me what it is?

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


Question: What are all the types of desserts listed in Wikidata?

SELECT ?dessertType ?dessertTypeLabel WHERE { ?dessertType (wdt:P279*) wd:Q182940 . ?dessertType rdfs:label ?dessertTypeLabel . FILTER (LANG(?dessertTypeLabel) = "en") }

Can you list all subclasses of dessert in English, including indirect ones like mochi ice cream and bread pudding?

Show me the English names of all food items that are considered types of dessert.

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


Question: What are the title, duration, MPAA rating, Rotten Tomatoes ID, Box Office Mojo ID, release date, and language of the film with IMDb ID tt3874544?

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 ?film ?title ?duration ?mpaa_rating ?rotten_tomatoes_id ?metacritic_id ?moviemeter_id ?website ?allmovie_id ?box_office_mojo_id ?publication_date ?the_numbers_id ?google_kg_id ?languageLabel WHERE {
  ?film ( wdt:P31 / wdt:P279 * ) wd:Q11424 .
  ?film wdt:P345 "tt3874544" .
  OPTIONAL {
    ?film wdt:P1476 ?title .
  }
  OPTIONAL {
    ?film wdt:P2047 ?duration .
  }
  OPTIONAL {
    ?film wdt:P1657 ?mpaa_rating .
  }
  OPTIONAL {
    ?film wdt:P1258 ?rotten_tomatoes_id .
  }
  OPTIONAL {
    ?film wdt:P1712 ?metacritic_id .
  }
  OPTIONAL {
    ?film wdt:P1970 ?moviemeter_id .
  }
  OPTIONAL {
    ?film wdt:P856 ?website .
  }
  OPTIONAL {
    ?film wdt:P1562 ?allmovie_id .
  }
  OPTIONAL {
    ?film wdt:P1237 ?box_office_mojo_id .
  }
  OPTIONAL {
    ?film wdt:P577 ?publication_date .
  }
  OPTIONAL {
    ?film wdt:P3808 ?the_numbers_id .
  }
  OPTIONAL {
    ?film wdt:P2671 ?google_kg_id .
  }
  OPTIONAL {
    ?film wdt:P364 ?language .
  }
  OPTIONAL {
    ?language rdfs:label ?languageLabel .
    FILTER ( LANG( ?languageLabel ) = "en" )
  }
}
LIMIT 1

Can you tell me the title, runtime, rating, and where to find reviews for the movie "The Boss Baby" on IMDb?

Please provide detailed metadata for the film identified by IMDb ID tt3874544, including its title, duration, rating, online identifiers (like Rotten Tomatoes and Box Office Mojo), release date, and original language.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5Label ?var6 ?var7Label ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 ?var16 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P345> "tt3874544". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P364> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2047> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1657> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1562> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1712> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1970> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1258> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1237> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2671> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1687> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var15 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3808> ?var16 . } } LIMIT 1


Question: What are some examples of breakfast foods?

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

Which items are classified as instances of breakfast?

List the English names of all known breakfast dishes according to Wikidata.

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


Question: People named George who are human, with English labels.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( REGEX( ?personLabel , "^George( |$)" , "i" ) )
}
LIMIT 4

Who are some humans with the name George in English?

List up to four English-named humans whose names start with "George".

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( REGEX ( ?var1Label , "George." ) ) ) . } LIMIT 4


Question: What teams and events have played at Children's Mercy Park, and what type of association do they have (e.g., home venue or location)?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?item ?statement ?propertyLabel(SAMPLE(?qualifier_label) AS ?qualifier) WHERE {
  ?statement ?psProperty wd:Q1787141 .
  ?property wikibase:statementProperty ?psProperty .
  ?item ?pProperty ?statement .
  ?property wikibase:claim ?pProperty .
  FILTER(?property != wd:P31)
  ?property rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    ?qualifierProperty wikibase:qualifier ?qualifierProperty .
    ?qualifierProperty rdfs:label ?qualifier_label .
    FILTER(LANG(?qualifier_label) = "en")
  }
}
GROUP BY ?item ?statement ?propertyLabel

Which sports teams and tournaments are associated with Children's Mercy Park, and do any of those associations include a start time or other qualifiers?

List all entities linked to Children's Mercy Park via Wikidata statements, showing whether they are connected as home venues or by location, along with any qualifier information like start dates.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q1787141> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: Works authored by Jasper Fforde

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 ?work ?workLabel WHERE {
  ?work wdt:P50 wd:Q713778 .
  ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" )
}

List the English titles of all books where Jasper Fforde is the author.

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


Question: Mountains in El Salvador with coordinates and elevation

SELECT ?mountain ?mountainLabel ?latitude ?longitude ?elevation ?adminLabel WHERE { ?mountain (wdt:P31/wdt:P279*) wd:Q8502 . ?mountain wdt:P17 wd:Q792 . OPTIONAL { ?mountain wdt:P625 ?coord . BIND(geof:latitude(?coord) AS ?latitude) BIND(geof:longitude(?coord) AS ?longitude) } OPTIONAL { ?mountain wdt:P2044 ?elevation . } OPTIONAL { ?mountain wdt:P131 ?admin . ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) = "en") } ?mountain rdfs:label ?mountainLabel . FILTER(LANG(?mountainLabel) = "en") } ORDER BY ?mountainLabel

What are the mountains in El Salvador, and what are their elevations and administrative regions?

List all mountains in El Salvador along with their latitude, longitude, elevation above sea level, and the department they are located in.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var9 ?var10Label ?var11 ?var11Label ?var12Label ?var13 ?var13Label ?var14 ?var14Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q792> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var15 . ?var15 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var16 . ?var16 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var16 <http://wikiba.se/ontology#quantityUnit> ?var17 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var5 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var7 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var8 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2660> / <http://www.wikidata.org/prop/statement/value/P2660> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var9 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3137> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var14 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,it,es,ru". } } ORDER BY DESC( ?var5 )


Question: Lakes in Algeria with area, coordinates, length, width, watershed area, perimeter, and volume.

SELECT DISTINCT ?lake ?lakeLabel ?latitude ?longitude ?area ?areaUnit ?length ?lengthUnit ?width ?widthUnit ?volumeAmount ?volumeUnit ?watershedArea ?watershedAreaUnit ?perimeter ?perimeterUnit WHERE {  ?lake (wdt:P31/wdt:P279*) wd:Q23397 .  ?lake wdt:P17 wd:Q262 .  OPTIONAL {    ?lake wdt:P625 ?coord .    BIND(geof:latitude(?coord) AS ?latitude)    BIND(geof:longitude(?coord) AS ?longitude)  }  OPTIONAL {    ?lake p:P2046 ?areaStmt .    ?areaStmt psv:P2046 ?areaNode .    ?areaNode wikibase:quantityAmount ?area ;              wikibase:quantityUnit ?areaUnit .  }  OPTIONAL {    ?lake p:P2043 ?lengthStmt .    ?lengthStmt psv:P2043 ?lengthNode .    ?lengthNode wikibase:quantityAmount ?length ;                wikibase:quantityUnit ?lengthUnit .  }  OPTIONAL {    ?lake p:P2049 ?widthStmt .    ?widthStmt psv:P2049 ?widthNode .    ?widthNode wikibase:quantityAmount ?width ;               wikibase:quantityUnit ?widthUnit .  }  OPTIONAL {    ?lake p:P2234 ?volumeStmt .    ?volumeStmt psv:P2234 ?volumeNode .    ?volumeNode wikibase:quantityAmount ?volumeAmount ;                wikibase:quantityUnit ?volumeUnit .  }  OPTIONAL {    ?lake p:P2053 ?watershedStmt .    ?watershedStmt psv:P2053 ?watershedNode .    ?watershedNode wikibase:quantityAmount ?watershedArea ;                   wikibase:quantityUnit ?watershedAreaUnit .  }  OPTIONAL {    ?lake p:P2547 ?perimeterStmt .    ?perimeterStmt psv:P2547 ?perimeterNode .    ?perimeterNode wikibase:quantityAmount ?perimeter ;                   wikibase:quantityUnit ?perimeterUnit .  }  ?lake rdfs:label ?lakeLabel .  FILTER(LANG(?lakeLabel) = "en")} ORDER BY DESC(?area)

What are the lakes in Algeria, and what are their geographic coordinates, surface area, length, width, watershed size, perimeter, and volume?

Please list all lakes in Algeria along with their area (in descending order), coordinates, and other physical dimensions like length, width, watershed area, perimeter, and volume where available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 ?var12 ?var13 ?var14 ?var15 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23397> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q262> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var16 . ?var16 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var17 . ?var17 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var17 <http://wikiba.se/ontology#quantityUnit> ?var5 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2043> / <http://www.wikidata.org/prop/statement/value/P2043> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var6 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var7 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2049> / <http://www.wikidata.org/prop/statement/value/P2049> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var8 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var9 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2234> / <http://www.wikidata.org/prop/statement/value/P2234> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var11 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2053> / <http://www.wikidata.org/prop/statement/value/P2053> ) ?var21 . ?var21 <http://wikiba.se/ontology#quantityAmount> ?var12 . ?var21 <http://wikiba.se/ontology#quantityUnit> ?var13 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2547> / <http://www.wikidata.org/prop/statement/value/P2547> ) ?var22 . ?var22 <http://wikiba.se/ontology#quantityAmount> ?var14 . ?var22 <http://wikiba.se/ontology#quantityUnit> ?var15 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } } ORDER BY DESC( ?var4 )


Question: Mountains in Somalia with elevation and coordinates, sorted by height.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT ?mountain ?mountainLabel ?latitude ?longitude ?elevation ?elevationUnit WHERE {
  ?mountain wdt:P31 / wdt:P279 * wd:Q8502 ; wdt:P17 wd:Q1045 .
  ?mountain p:P625 / psv:P625 ?coord .
  ?coord wikibase:geoLatitude ?latitude ; wikibase:geoLongitude ?longitude .
  OPTIONAL {
    ?mountain p:P2044 / psv:P2044 ?elev .
    ?elev wikibase:quantityAmount ?elevation ; wikibase:quantityUnit ?elevationUnit .
  }
  OPTIONAL {
    ?mountain rdfs:label ?mountainLabel .
    FILTER(LANG(?mountainLabel) = "en")
  }
}
ORDER BY DESC(?elevation)

What are the highest mountains in Somalia, and what are their elevations and geographic coordinates?

Please list all mountains in Somalia, including their latitude, longitude, and elevation (if available), ordered from highest to lowest.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var9 ?var10Label ?var11 ?var11Label ?var12Label ?var13 ?var13Label ?var14 ?var14Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q1045> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var15 . ?var15 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var16 . ?var16 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var16 <http://wikiba.se/ontology#quantityUnit> ?var17 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var5 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var7 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var8 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2660> / <http://www.wikidata.org/prop/statement/value/P2660> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var9 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3137> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var14 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,it,es,ru". } } ORDER BY DESC( ?var5 )


Question: Mountains in the Northern Mariana Islands ranked by elevation, including coordinates and elevation values.

PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?mountain ?mountainLabel ?elevation ?elevationUnit ?lat ?lon WHERE {
  ?mountain wdt:P31 / wdt:P279 * wd:Q8502 .
  ?mountain wdt:P131 wd:Q16644 .
  OPTIONAL {
    ?mountain p:P2044 / psv:P2044 ?elevationNode .
    ?elevationNode wikibase:quantityAmount ?elevation .
    ?elevationNode wikibase:quantityUnit ?elevationUnit .
  }
  OPTIONAL {
    ?mountain wdt:P625 ?coord .
    BIND( geof:latitude ( ?coord ) AS ?lat ) .
    BIND( geof:longitude ( ?coord ) AS ?lon ) .
  }
  OPTIONAL {
    ?mountain rdfs:label ?mountainLabel .
    FILTER ( LANG( ?mountainLabel ) = "en" ) .
  }
}
ORDER BY DESC ( ?elevation )

What are the mountains in the Northern Mariana Islands, and how high are they above sea level?

List all mountains in the Northern Mariana Islands, sorted from highest to lowest elevation, along with their latitude and longitude.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var9 ?var10Label ?var11 ?var11Label ?var12Label ?var13 ?var13Label ?var14 ?var14Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q8502> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q16644> . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var15 . ?var15 <http://wikiba.se/ontology#geoLatitude> ?var2 ; <http://wikiba.se/ontology#geoLongitude> ?var3 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2046> / <http://www.wikidata.org/prop/statement/value/P2046> ) ?var16 . ?var16 <http://wikiba.se/ontology#quantityAmount> ?var4 . ?var16 <http://wikiba.se/ontology#quantityUnit> ?var17 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var18 . ?var18 <http://wikiba.se/ontology#quantityAmount> ?var5 . ?var18 <http://wikiba.se/ontology#quantityUnit> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2659> / <http://www.wikidata.org/prop/statement/value/P2659> ) ?var19 . ?var19 <http://wikiba.se/ontology#quantityAmount> ?var7 . ?var19 <http://wikiba.se/ontology#quantityUnit> ?var8 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P2660> / <http://www.wikidata.org/prop/statement/value/P2660> ) ?var20 . ?var20 <http://wikiba.se/ontology#quantityAmount> ?var9 . ?var20 <http://wikiba.se/ontology#quantityUnit> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3137> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var12 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var14 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr,it,es,ru". } } ORDER BY DESC( ?var5 )


Question: World Heritage Sites in the Netherlands with images and English labels

SELECT DISTINCT ?site ?label ?image ?wikipedia WHERE { ?site wdt:P31 wd:Q9259 . ?site wdt:P17 wd:Q55 . OPTIONAL { ?site wdt:P18 ?image . } OPTIONAL { ?wikipedia schema:about ?site ; schema:isPartOf <https://en.wikipedia.org/> . } ?site rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 50

What are the World Heritage Sites in the Netherlands, and what are their English names, images, and Wikipedia pages?

Show me the English names, images, and Wikipedia links for all World Heritage Sites located in the Netherlands.

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