Question: What is the coordinate location of the Clyde Tunnel in the United Kingdom?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 WHERE {
  ?var1(wdt:P31 / wdt:P279 *) wd:Q44377 .
  ?var1 wdt:P17 wd:Q145 .
  ?var1 wdt:P625 ?var3 .
  ?var1 rdfs:label ?var1Label .
  wd:Q145 rdfs:label ?var2Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var2Label) = "en")
  FILTER(STRSTARTS(?var1Label , "Clyde"))
}

List tunnels in the United Kingdom with names starting with "Clyde" and their coordinates.

Where is the Clyde Tunnel located, and what are its geographic coordinates?

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q44377> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( STRSTARTS ( ?var4 , "Clyde" ) ) ) . }


Question: Lighthouses in Germany with their coordinates and images

SELECT DISTINCT ?lighthouse ?label ?coordinates ?image WHERE { ?lighthouse wdt:P31 wd:Q39715 ; wdt:P17 wd:Q183 . OPTIONAL { ?lighthouse wdt:P625 ?coordinates . } OPTIONAL { ?lighthouse wdt:P18 ?image . } FILTER(LANG(?label) = "en") . ?lighthouse rdfs:label ?label . } ORDER BY ASC(?label)

What are the English-named lighthouses in Germany, and where are they located and what do they look like?

Show me a list of lighthouses in Germany, including their locations, images, and English names, sorted alphabetically.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nb,nn,en,fi,de". } } ORDER BY ASC( ?var1Label )


Question: What countries, regions, and cities is Alter Friedhof located in?

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

Can you list all the administrative divisions and the country that include Alter Friedhof?

Show me the full geographic hierarchy of Alter Friedhof, from its immediate locality up to the country.

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


Question: What is the English label for the Wikidata entity of Sidiki Konaté?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel WHERE {
  BIND( wd:Q3483309 AS ?person ) .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Can you tell me the name of Sidiki Konaté as it appears in Wikidata?

What is the official name of the Ivorian politician Sidiki Konaté in English?

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


Question: What are the names and coordinates of airports in Belgium?

SELECT DISTINCT ?airportLabel ?coordinates WHERE { ?airport wdt:P31 wd:Q1248784 ; wdt:P17 wd:Q31 ; wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

Can you list all airports located in Belgium with their geographic coordinates and English names?

Show me the English labels and locations of all airports in Belgium.

SELECT DISTINCT ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> ; ?var3 <http://www.wikidata.org/entity/Q31> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } }


Question: What types of biological processes are parts of pathways identified in Reactome?

SELECT DISTINCT ?typeLabel WHERE { ?pathway wdt:P3937 ?reactomeId ; wdt:P527 ?part . ?part wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") }

List the instance-of categories for molecular components that make up Reactome pathways.

What are the different kinds of biological processes that constitute parts of biochemical pathways in Reactome?

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


Question: What countries, continents, and administrative regions is Mariataler Allee located in?

SELECT DISTINCT ?location WHERE { wd:Q34358838 (wdt:P30|wdt:P17|wdt:P131)+ ?location . } LIMIT 5

To which larger geographic and administrative areas does Mariataler Allee belong?

Show me the hierarchy of locations that include Mariataler Allee, from district up to continent.

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


Question: What are all the properties and their values for the G8?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?propertyLabel ?value WHERE {
  wd:Q37143 ?propertyUri ?value .
  BIND(REPLACE(STR(?propertyUri) , "^(http://www.wikidata.org/prop/(direct/)?|http://www.wikidata.org/prop/statement/)" , "") AS ?propId)
  BIND(URI(CONCAT("http://www.wikidata.org/entity/" , ?propId)) AS ?propertyEntity)
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}

Can you list all the data associated with the Group of Eight, including property names in English?

What information is available about the G8, and what do the property labels mean in English?

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


Question: Image of Kermit Gordon with SNAC ARK ID w6gf4452

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?item wdt:P3430 "w6gf4452" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

What is the image associated with Kermit Gordon in Wikidata?

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

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


Question: How many living actors who have won awards are from each country, ranked by the highest count?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?countryLabel(COUNT(?actor) AS ?count) WHERE {
  ?actor wdt:P31 wd:Q5 .
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P166 ?award .
  ?actor wdt:P27 ?country .
  OPTIONAL {
    ?actor wdt:P570 ?deathDate .
  }
  FILTER(NOT EXISTS {
    ?actor wdt:P570 ?deathDate
  })
  .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}
GROUP BY ?countryLabel
ORDER BY DESC(?count)

Which countries have the most living actors with awards, and how many are there from each?

Show me the number of living award-winning actors grouped by their country of citizenship, sorted from highest to lowest.

SELECT DISTINCT ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var2 <http://www.wikidata.org/prop/direct/P166> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P27> ?var1 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P570> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . } GROUP BY ?var1Label ORDER BY DESC( ?var3 )


Question: What are the component types of biological pathways identified by Reactome IDs?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?pathway ?component ?componentTypeLabel WHERE {
  ?pathway wdt:P3937 ?reactomeId ; wdt:P527 ?component .
  ?component wdt:P31 ?componentType .
  ?componentType rdfs:label ?componentTypeLabel .
  FILTER ( LANG( ?componentTypeLabel ) = "en" )
}

For each biological pathway in Reactome, what are its parts and what type of biological entity (e.g., protein, protein complex) are they?

Show me the components of Reactome pathways and classify them as proteins or protein complexes.

SELECT DISTINCT ?var1 ?var2 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3937> ?var4 ; <http://www.wikidata.org/prop/direct/P527> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What cities or places have a population within 3,000 of Perm, Russia?

SELECT DISTINCT ?item ?itemLabel ?population ?coordinates WHERE { wd:Q915 wdt:P1082 ?permPopulation . ?item wdt:P1082 ?population . ?item wdt:P625 ?coordinates . FILTER(ABS(?permPopulation - ?population) < 3000) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

List places with a population close to Perm’s (within ±3,000 people), along with their coordinates and names.

Show me locations whose population is nearly the same as Perm’s, and where are they located geographically?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q915> <http://www.wikidata.org/prop/direct/P1082> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . FILTER ( ( ( ABS ( ( ?var4 - ?var2 ) ) < "3000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,en". } }


Question: List the top 21 institutes in English.

SELECT ?institute ?instituteLabel WHERE { ?institute wdt:P31 wd:Q1664720 . ?institute rdfs:label ?instituteLabel . FILTER(LANG(?instituteLabel) = "en") } LIMIT 21

What are the 21 institutes listed in Wikidata with their English labels?

Please provide a list of 21 institutes from Wikidata, showing their names in English.

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


Question: Subclasses of diplomatic mission in English

SELECT ?var1 ?label WHERE { ?var1 wdt:P279 wd:Q213283 . ?var1 rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 11

What are some examples of diplomatic missions that are subclasses of diplomatic mission?

List up to 11 English-labeled types of diplomatic missions, such as embassies or consulates, that are subclasses of diplomatic mission.

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


Question: List of collectives on Wikidata with English labels.

SELECT DISTINCT ?collective ?collectiveLabel WHERE { ?collective wdt:P31 wd:Q13473501 . ?collective rdfs:label ?collectiveLabel . FILTER(LANG(?collectiveLabel) = "en") } LIMIT 21

What are some examples of collectives (as defined on Wikidata) that have English-language names?

Show me up to 21 collectives from Wikidata that have English labels.

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


Question: List all passenger transport executives and their properties in Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?pte ?property ?value WHERE {
  ?pte wdt:P31 wd:Q514989 .
  ?pte ?property ?value .
  FILTER(?property != wdt:P31)
}
ORDER BY ?pte ?property
LIMIT 100

What are the entities that are instances of passenger transport executives, and what information is associated with them?

Show me the names, descriptions, and other details of all public transport authorities in the UK that are classified as passenger transport executives.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q514989> . ?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: What qualifier properties are most commonly used on statements about which religion or group worships a deity, and how often are they used?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?qualifierProp ?qualifierPropLabel(COUNT(DISTINCT ?item) AS ?count) WHERE {
  ?item p:P1049 ?statement .
  ?statement ?qualifierProp ?value .
  OPTIONAL {
    ?qualifierProp rdfs:label ?qualifierPropLabel .
    FILTER(LANG(?qualifierPropLabel) = "ca")
  }
}
GROUP BY ?qualifierProp ?qualifierPropLabel
ORDER BY DESC(?count) ASC(?qualifierPropLabel)

In Catalan, what are the labels of the qualifier properties used on P1049 (worshipped by) statements, ordered by frequency?

Which properties provide additional context to "worshipped by" claims in Wikidata, and how many deities use each?

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var3 ) AS ?var2 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var3 <http://www.wikidata.org/prop/P1049> ?var4 . ?var4 ?var5 ?var6 . ?var1 <http://wikiba.se/ontology#qualifier> ?var5 . } GROUP BY ?var1 } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ca" ) ) ) . } } ORDER BY DESC( ?var2 )ASC( ?var1Label )


Question: What are the subclasses, image, and Unicode character for the entity with Freebase ID /m/05r655?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?subclass ?image ?unicode WHERE {
  ?item wdt:P646 "/m/05r655" .
  OPTIONAL {
    ?item wdt:P279 ?subclass .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P487 ?unicode .
  }
}

What is the image and Unicode symbol for a girl, and what broader categories does it belong to?

Show me all subclasses of the entity identified by Freebase ID /m/05r655, along with its Wikimedia Commons image and Unicode emoji representation.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/05r655". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P487> ?var4 . } }


Question: What is the Turkish Wikipedia article about the one-time pad?

SELECT ?article WHERE { ?article rdf:type schema:Article ; schema:about wd:Q150474 ; schema:inLanguage "tr" ; schema:isPartOf ?wiki . ?wiki wikibase:wikiGroup "wikipedia" . }

Show me the Turkish-language article on Wikipedia that discusses the one-time pad encryption method.

Is there a Turkish Wikipedia page about the one-time pad, and if so, what is its URL?

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q150474> ; <http://schema.org/inLanguage> "tr"; <http://schema.org/isPartOf> ?var2 . ?var2 <http://wikiba.se/ontology#wikiGroup> "string1". } LIMIT 1


Question: Japanese municipalities with their codes, names in different languages, and coordinates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?municipalityCode ?label ?coordinates WHERE {
  ?municipality wdt:P429 ?municipalityCode ; rdfs:label ?label ; wdt:P625 ?coordinates .
}
LIMIT 47

What are the 6-digit administrative codes, multilingual names, and geographic coordinates of Japanese municipalities?

Show me up to 47 Japanese municipalities with their official codes, names in various languages, and GPS coordinates.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P429> ?var1 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var4 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } } ORDER BY DESC( ?var3 ) LIMIT 47


Question: Humans who are archers

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?archer WHERE {
  ?archer wdt:P31 wd:Q5 ; wdt:P106 wd:Q890527 .
}

Who are the people that have archery as their occupation?

List all known human archers in Wikidata.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q890527> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } }


Question: What are the months of the Gregorian calendar in English?

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 ?month ?monthLabel WHERE {
  ?month wdt:P279 wd:Q18602249 .
  ?month rdfs:label ?monthLabel .
  FILTER(LANG(?monthLabel) = "en")
}

Which months are classified as part of the Gregorian calendar, and what are their English names?

List the English names of all months that are subclasses of the Gregorian calendar months.

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


Question: Libraries in the Common Library Network (GBV) with their websites and coordinates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?libraryLabel ?website ?coordinates WHERE {
  ?library(wdt:P31 / wdt:P279 *) wd:Q7075 ; wdt:P463 wd:Q1500919 ; wdt:P625 ?coordinates .
  OPTIONAL {
    ?library wdt:P856 ?website .
  }
  ?library rdfs:label ?libraryLabel .
  FILTER(LANG(?libraryLabel) = "en")
}

What are the English names, official websites, and geographic locations of libraries that belong to the Common Library Network (GBV)?

Please list the English-labeled libraries that are members of the GBV library network, along with their official websites and coordinates.

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


Question: Mines in Belgium and their coordinates

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?mine ?coordinates WHERE {
  ?mine wdt:P31 wd:Q820477 .
  ?mine wdt:P17 wd:Q31 .
  ?mine wdt:P625 ?coordinates .
}

What are the geographic coordinates of mines located in Belgium?

Show me the locations of all mines in Belgium.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q820477> . ?var1 ?var3 <http://www.wikidata.org/entity/Q31> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . }


Question: Banks and their founders' alma maters with geographic coordinates

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?bank ?bankLabel ?person ?personLabel ?school ?schoolLabel ?coordinates WHERE {
  ?bank ( wdt:P31 / wdt:P279 * ) wd:Q22687 .
  ?person wdt:P31 wd:Q5 .
  {
    ?bank wdt:P287 ?person .
  } UNION {
    ?bank wdt:P112 ?person .
  } UNION {
    ?bank wdt:P943 ?person .
  } UNION {
    ?bank wdt:P178 ?person .
  }
  ?person wdt:P69 ?school .
  ?school wdt:P625 ?coordinates .
  OPTIONAL {
    ?bank rdfs:label ?bankLabel .
    FILTER ( LANG( ?bankLabel ) = "en" )
  }
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER ( LANG( ?personLabel ) = "en" )
  }
  OPTIONAL {
    ?school rdfs:label ?schoolLabel .
    FILTER ( LANG( ?schoolLabel ) = "en" )
  }
}
LIMIT 100

Which banks were founded, designed, developed, or programmed by humans, and where did those individuals study? Show the locations of their schools.

Show me a list of financial institutions along with the names of their founders or developers, the educational institutions those people attended, and the geographic coordinates of those schools.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q22687> . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . { ?var1 <http://www.wikidata.org/prop/direct/P287> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P112> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P943> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P178> ?var2 . } ?var2 <http://www.wikidata.org/prop/direct/P69> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr". } } LIMIT 100


Question: Citations of Andreas Kaltenbrunner's works per year, including self-citations.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?year ( COUNT( DISTINCT ?citing_work ) AS ?total_citations ) ( SUM( IF( EXISTS {
  ?citing_work wdt:P50 wd:Q28946758
}
, 1 , 0 ) ) AS ?self_citations ) WHERE {
  ?cited_work wdt:P50 wd:Q28946758 .
  ?citing_work wdt:P2860 ?cited_work .
  ?citing_work wdt:P577 ?pub_date .
  BIND( YEAR( ?pub_date ) AS ?year ) FILTER ( ISNUMERIC( ?year ) )
}
GROUP BY ?year
ORDER BY DESC ( ?year )

How many works cite Andreas Kaltenbrunner’s publications each year, and how many of those are authored by him?

Show me the yearly count of works citing Andreas Kaltenbrunner’s research, broken down by how many of those citing works he also authored.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q28946758> . } , "string1", "string2" ) AS ?var4 ). BIND ( STR ( YEAR ( ?var5 ) ) AS ?var1 ). ?var6 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q28946758> . ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var6 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var5 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: List people with Early Modern Letters Online IDs, including their birth and death years, and places of birth and death.

SELECT DISTINCT
  ?person
  ?personLabel
  (IRI(CONCAT("http://emlo.bodleian.ox.ac.uk/person/", ?emloId)) AS ?emloUrl)
  ?birthYear
  (IF(ISBLANK(?birthPlaceLabel), "unknown", ?birthPlaceLabel) AS ?birthPlaceName)
  ?deathYear
  (IF(ISBLANK(?deathPlaceLabel), "unknown", ?deathPlaceLabel) AS ?deathPlaceName)
WHERE {
  ?person wdt:P1802 ?emloId .

  OPTIONAL { ?person wdt:P569 ?birthDate . BIND(YEAR(?birthDate) AS ?birthYear) }
  OPTIONAL { ?person wdt:P570 ?deathDate . BIND(YEAR(?deathDate) AS ?deathYear) }
  OPTIONAL { ?person wdt:P19 ?birthPlace . ?birthPlace rdfs:label ?birthPlaceLabel . FILTER(LANG(?birthPlaceLabel) = "en") }
  OPTIONAL { ?person wdt:P20 ?deathPlace . ?deathPlace rdfs:label ?deathPlaceLabel . FILTER(LANG(?deathPlaceLabel) = "en") }

  ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en")
}
ORDER BY DESC(?birthYear)

Who are the people associated with Early Modern Letters Online, and when and where were they born and died?

Show me a list of individuals from the Early Modern Letters Online project, sorted by birth year, with their birth and death years and locations.

SELECT DISTINCT ?var1 ?var1Label ( IRI ( CONCAT ( "string1", ?var2 ) ) AS ?var3 ) ?var4 ( IF ( isBLANK ( ?var5 ) , "unknown", ?var5Label ) AS ?var6 ) ?var7 ( IF ( isBLANK ( ?var8 ) , "unknown", ?var8Label ) AS ?var9 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1802> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P20> ?var8 . } BIND ( YEAR ( ?var10 ) AS ?var4 ). BIND ( YEAR ( ?var11 ) AS ?var7 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string2". ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var8Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } ORDER BY DESC( ?var4 )


Question: List the publication years and first 20 characters of English titles of works by Bente Klarlund Pedersen.

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 ?year ?title WHERE {
  ?work wdt:P50 wd:Q12303219 ; wdt:P577 ?date ; rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  BIND(YEAR(?date) AS ?year)
  BIND(SUBSTR(?label , 1 , 20) AS ?title)
}
ORDER BY ?year

What are the years and truncated titles (first 20 characters) of the English-language works authored by Bente Klarlund Pedersen?

Show me the publication years and the beginning of the English titles of all works written by Bente Klarlund Pedersen, limited to the first 20 characters.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q12303219> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q12303219> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: What are the subsidiaries and brands owned by Bayer?

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 ?organization ?organizationLabel WHERE {
  ?organization wdt:P127 wd:Q152051 .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
}

Can you list the organizations that Bayer owns, along with their English labels?

Which companies and products are under Bayer’s ownership, as recorded in Wikidata?

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


Question: List images of landmarks near Kranidi, Greece, that don't have a Commons category.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?item ?itemLabel ( CONCAT ( "File:" , ?image ) AS ?fileUrl ) ?image ?coord WHERE {
  ?item wdt:P18 ?image .
  ?item wdt:P625 ?coord .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  BIND( STRAFTER( STR( ?coord ) , "POINT(" ) AS ?withoutPoint ) .
  BIND( STRBEFORE( ?withoutPoint , ")" ) AS ?coords ) .
  BIND( STRBEFORE( ?coords , " " ) AS ?lon ) .
  BIND( STRAFTER( ?coords , " " ) AS ?lat ) .
  FILTER ( xsd:double ( ?lon ) >= 22.708 ) .
  FILTER ( xsd:double ( ?lon ) <= 23.608 ) .
  FILTER ( xsd:double ( ?lat ) >= 37.015 ) .
  FILTER ( xsd:double ( ?lat ) <= 37.735 ) .
  FILTER ( NOT EXISTS {
    ?item wdt:P373 ?category
  }
  )
}

What are the images of places within 40 km of Kranidi that are not part of a Wikimedia Commons category?

Show me the filenames and locations of images of sites near Kranidi, excluding those with a Commons category.

SELECT ?var1 ?var1Label ( IRI ( REPLACE ( STR ( ?var2 ) , "string1", "File:" ) ) AS ?var3 ) ?var2 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . <http://www.wikidata.org/entity/Q743420> <http://www.wikidata.org/prop/direct/P625> ?var5 . SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> ?var5 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "40". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var6 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var7 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en", "it", "fr", "nl". } }


Question: Top 5 properties most frequently used to link items to Switzerland.

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

Which properties are most commonly used to associate entities with Switzerland, and how many times are they used?

Show me the five properties that connect the most items to Switzerland, ordered by usage count.

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var1 <http://wikiba.se/ontology#directClaim> ?var3 . [] ?var3 <http://www.wikidata.org/entity/Q39> . } LIMIT 250000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 5


Question: Works about science with alternative titles

SELECT ?work ?statement ?objectNamedAs WHERE { ?work p:P921 ?statement . ?statement ps:P921 wd:Q336 . OPTIONAL { ?statement pq:P1932 ?objectNamedAs . } } LIMIT 101

Which works have science as their main subject, and what alternative names are given to them?

Show me works whose main subject is science, along with any alternative titles assigned to them.

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


Question: What are the seven SI base units?

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

Which units are defined as the base units of the International System of Units?

List the English names of all SI base units.

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


Question: List all free software programs and their subtypes.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?software WHERE {
  ?software ( wdt:P31 / wdt:P279 * ) wd:Q341 .
}

What software is classified as free software or a subclass of free software?

Show me all software that falls under the category of free software, including its subcategories and instances.

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


Question: Image of Zinaida Volkonskaya with SNAC ARK ID w6x06m55

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?person wdt:P3430 "w6x06m55" .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
}

What is the image associated with Zinaida Volkonskaya in Wikidata, given her SNAC ARK ID is w6x06m55?

Show me the Wikimedia Commons image of the person identified by the SNAC ARK ID w6x06m55.

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


Question: Mount Everest type and its superclass

SELECT DISTINCT ?item ?itemLabel ?superclass ?superclassLabel WHERE { ?item rdfs:label "Mount Everest"@en . FILTER(?item = wd:Q513) . ?item wdt:P31 ?type . ?type wdt:P279 ?superclass . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?superclassLabel) = "en") }

What is the type of Mount Everest, and what is the superclass of that type?

Show me the direct type of Mount Everest and its immediate superclass in the classification hierarchy.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 ?var4Label "string1"@en . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People who have been listed as head of government in Wikidata qualifiers and their names in different languages

SELECT ?head ?label WHERE { ?statement pq:P6 ?head . ?head rdfs:label ?label . } LIMIT 500

Who are the individuals that have been cited as heads of government in Wikidata statements, and what are their names in various languages?

Show me all the people used as qualifiers for 'head of government' and their labels in all languages.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/qualifier/P6> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } LIMIT 500


Question: Images and artworks depicting the Elbe river

SELECT DISTINCT ?mediaItem ?mediaItemLabel WHERE { ?mediaItem p:P180 ?statement . ?statement ps:P180 wd:Q1644 . ?mediaItem rdfs:label ?mediaItemLabel . FILTER(LANG(?mediaItemLabel) = "en") } LIMIT 101

What are the names of the images and paintings that show the Elbe river?

List the English labels of all media items that depict the Elbe river.

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


Question: People who died in 1999

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P570 ?deathDate .
  FILTER(?deathDate >= "1999-01-01T00:00:00Z" ^^ xsd:dateTime && ?deathDate <= "1999-12-31T23:59:59Z" ^^ xsd:dateTime)
}

List all individuals recorded in Wikidata as having died between January 1 and December 31, 1999.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . FILTER ( ( ( ?var2 >= "1999-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1999-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What are some specific types of occupations?

SELECT DISTINCT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q12737077 . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } LIMIT 11

Can you list 11 subclasses of the concept "occupation" along with their names?

What are some examples of job categories that fall under the broader category of occupation?

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


Question: Image of Napoleon Bonaparte

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?image WHERE {
  wd:Q517 wdt:P18 ?image .
}

What is the image associated with Napoleon Bonaparte on Wikimedia Commons?

Can you show me the official portrait of Napoleon Bonaparte stored on Wikimedia Commons?

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


Question: What properties are linked to the Wikidata item for cancer?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property WHERE {
  wd:Q12078 ?property ?value .
}
LIMIT 100

Which external identifiers and metadata properties are used to describe cancer in Wikidata?

List all the properties that have values for the entity "cancer" in Wikidata.

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q12078> ?var1 ?var2 . } LIMIT 100


Question: Multilingual names of Chubu University

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?label WHERE {
  wd:Q5115295 rdfs:label ?label .
}

What are the names of Chubu University in different languages?

Show me all the language versions of the name of Chubu University.

SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q5115295> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . } LIMIT 100


Question: Administrative regions where Chubu University is located

SELECT ?administrativeEntity ?administrativeEntityLabel WHERE { wd:Q5115295 wdt:P131 ?administrativeEntity . ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = "en") }

In which cities or prefectures is Chubu University located?

List the English names of the administrative territorial entities that contain Chubu University.

SELECT * WHERE { SELECT DISTINCT ?var1 WHERE { <http://www.wikidata.org/entity/Q5115295> <http://www.wikidata.org/prop/direct/P131> ?var1 . } }


Question: What is the Wikidata item with the Japanese label "コレド"?

SELECT ?item WHERE { ?item rdfs:label "コレド" @ja . } LIMIT 100

Can you find the entity in Wikidata that is labeled "コレド" in Japanese?

Which Wikidata entity has the Japanese name "コレド"?

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> " コレド"@ja . } LIMIT 100


Question: What categories is Tsuruoka classified as in Wikidata?

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

Show me the classes that Tsuruoka is an instance of.

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


Question: What are the English titles of George Lucas’s notable works and their cast members?

SELECT DISTINCT ?workLabel ?actorLabel WHERE { wd:Q38222 wdt:P800 ?work . ?work wdt:P161 ?actor . ?work rdfs:label ?workLabel . ?actor rdfs:label ?actorLabel . FILTER(LANG(?workLabel) = "en") FILTER(LANG(?actorLabel) = "en")}

Which actors appeared in George Lucas’s notable films, and what are the English titles of those films?

List the English names of actors in George Lucas’s significant works along with the English titles of those works.

SELECT DISTINCT ?var1Label ?var2Label WHERE { <http://www.wikidata.org/entity/Q38222> <http://www.wikidata.org/prop/direct/P800> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P161> ?var4 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . }


Question: Who are the relatives of Charles de Gaulle and how are they related to him?

SELECT ?relative ?kinshipType WHERE { ?relative p:P1038 ?statement . ?statement ps:P1038 wd:Q2042 . ?statement pq:P1039 ?kinshipType . }

What is the relationship between Charles de Gaulle and each of his relatives?

List all people who are related to Charles de Gaulle and specify the nature of their kinship to him.

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


Question: What are the different types of literary works and how are they called in various languages?

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 ?subclass ?label WHERE {
  ?subclass wdt:P279 wd:Q7725634 ; rdfs:label ?label .
}

List all subclasses of literary work along with their labels in different languages.

Which works are considered types of literary works, and what are their names in other languages?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q7725634> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . }


Question: What are the Korean labels of properties of the Book of Psalms, along with the count and names of their Korean-labeled objects?

SELECT ?property (SAMPLE(?propertyLabel) AS ?propertyLabelKo) (COUNT(?object) AS ?objectCount) (GROUP_CONCAT(?objectLabel; SEPARATOR=", ") AS ?objectLabelsKo) WHERE { wd:Q41064 ?property ?object . ?object rdfs:label ?objectLabel . FILTER(LANG(?objectLabel) = "ko") . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "ko") . } GROUP BY ?property

Show me the Korean descriptions of the Book of Psalms’ properties, how many Korean-labeled items each property has, and what those items are.

In Korean, what are the properties linked to the Book of Psalms, and what are the associated objects and their counts?

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


Question: What categories does the Book of Psalms belong to, and what are their labels?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?class ?label WHERE {
  wd:Q41064 wdt:P31 ?class .
  ?class rdfs:label ?label .
}
LIMIT 50

List the types of the Book of Psalms along with their names in any language.

What are the classes that the Psalms are an instance of, and what are their labels?

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


Question: What properties are used to describe electronic dance music, and what are the associated values and their counts?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel(COUNT(?object) AS ?count)(GROUP_CONCAT(?objectLabel ; SEPARATOR = ", ") AS ?objectLabels) WHERE {
  wd:Q851213 ?property ?object .
  ?object rdfs:label ?objectLabel .
  FILTER(LANG(?objectLabel) = "en")
  .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
  .
}
GROUP BY ?property ?propertyLabel

List all the relationships of electronic dance music with their English labels, how many times each relationship appears, and the linked entities.

For electronic dance music, show each property connecting it to other concepts, the English label of the property, how many objects it links to, and what those objects are.

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


Question: Which countries extend further south than Canada?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?country ?countryLabel ?lat WHERE {
  ?country wdt:P31 wd:Q6256 ; p:P1333 ?stmt .
  ?stmt psv:P1333 ?val .
  ?val wikibase:geoLatitude ?lat .
  wd:Q16 p:P1333 ?canStmt .
  ?canStmt psv:P1333 ?canVal .
  ?canVal wikibase:geoLatitude ?canLat .
  FILTER(?lat < ?canLat)
}
ORDER BY ?lat

List all countries whose southernmost point is located south of Canada’s southernmost point, ordered from south to north.

Show me the countries that reach farther south than Canada, along with how far south they go.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> ; <http://www.wikidata.org/prop/P1333> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/value/P1333> ?var4 . ?var4 <http://wikiba.se/ontology#geoLatitude> ?var2 . <http://www.wikidata.org/entity/Q16> <http://www.wikidata.org/prop/P1333> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/value/P1332> ?var6 . ?var6 <http://wikiba.se/ontology#geoLatitude> ?var7 . FILTER ( ( ( ?var7 <= ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var7 )


Question: What countries, continents, and administrative regions is the Ulugh Beg Observatory located in?

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

List all geographic entities associated with the Ulugh Beg Observatory, including its country, region, and continent.

Where is the Ulugh Beg Observatory situated in terms of administrative divisions and continent?

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


Question: Active national legislatures and their countries

SELECT DISTINCT ?country ?countryLabel ?legislature ?legislatureLabel WHERE { ?legislature (wdt:P31/wdt:P279*) wd:Q11204 ; wdt:P1001 ?country . ?country wdt:P31 wd:Q6256 . FILTER NOT EXISTS { ?legislature wdt:P576 [] } . ?country rdfs:label ?countryLabel . ?legislature rdfs:label ?legislatureLabel . FILTER(LANG(?countryLabel) = "en") . FILTER(LANG(?legislatureLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries have active national legislatures, and what are their names?

List all currently active national parliaments or legislative assemblies along with the countries they belong to, sorted alphabetically by country name.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11204> ; <http://www.wikidata.org/prop/direct/P1001> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P576> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var1Label )


Question: Which countries have active legislative chambers, and what are their Wikidata IDs?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?country ( GROUP_CONCAT( CONCAT ( "{{Q|" , STRAFTER( STR( ?legislative_body ) , "entity/" ) , "}}" ) ; SEPARATOR = ", " ) AS ?legislative_bodies ) WHERE {
  ?country wdt:P31 wd:Q6256 .
  OPTIONAL {
    VALUES ?legislative_type {
      wd:Q10553309 wd:Q140247
    }
    ?legislative_body ( wdt:P31 / wdt:P279 * ) ?legislative_type ; wdt:P1001 ?country .
    FILTER NOT EXISTS {
      ?legislative_body wdt:P576 [] .
    }
  }
}
GROUP BY ?country

Can you show me a list of countries along with their current parliamentary bodies, excluding those that have been dissolved?

What are the legislative bodies of each country that are still in operation?

SELECT DISTINCT ?var1 ( GROUP_CONCAT ( CONCAT ( "{{Q|", STRAFTER ( STR ( ?var2 ) , "y/" ) , "}}" ) ; SEPARATOR = ", " ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . OPTIONAL { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q10553309> ) ( <http://www.wikidata.org/entity/Q140247> ) } ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 ; <http://www.wikidata.org/prop/direct/P1001> ?var1 . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P576> [] . } ) ) . } } GROUP BY ?var1


Question: All plant species and genera in the Plumbaginaceae family

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?taxon WHERE {
  ?taxon wdt:P171 * wd:Q156141 .
}

What are all the taxonomic descendants of the Plumbaginaceae family?

List all taxa that are part of the leadwort family, including its subgroups.

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


Question: What is the English label and description of the YSO concept with ID 129749?

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

Can you find the English name and description for the Finnish ontology concept identified by 129749?

Show me the English label and description for the entity linked to YSO ID 129749.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2347> "129749". 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: Decades from the 1800s to 1990s with their start dates and images on Wikimedia Commons.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?decade ?decadeLabel ?start ?image WHERE {
  ?decade wdt:P31 wd:Q39911 .
  ?decade wdt:P585 ?start .
  ?decade wdt:P18 ?image .
  ?decade rdfs:label ?decadeLabel .
  FILTER(LANG(?decadeLabel) = "en")
}

What are the decades (10-year periods) that have images on Wikimedia Commons, along with their start year and English labels?

Show me a list of decades with their English names, the year they started, and a representative image from Wikimedia Commons.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ( "9"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39911> . ?var1 <http://www.wikidata.org/prop/direct/P585> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } }


Question: English names of cities and their countries

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

What are the English names of cities and the countries they belong to?

List up to 80 cities with their English labels and the English names of the countries they are located in.

SELECT DISTINCT ?var1 ?var2 ( LANG ( ?var3Label ) AS ?var4 ) ?var5 ?var3Label WHERE { ?var6 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var6 <http://www.wikidata.org/prop/direct/P17> ?var7 . OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . } OPTIONAL { ?var7 <http://www.w3.org/2000/01/rdf-schema#country> ?var2 . } } LIMIT 80


Question: Human settlements (excluding villages) in the Kingdom of the Netherlands and their ISO country codes.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?settlement ?settlementLabel ?country ?countryLabel ?countryCode WHERE {
  ?settlement(wdt:P31 / wdt:P279 *) wd:Q486972 .
  ?settlement wdt:P17 ?country .
  wd:Q29999 wdt:P150 ?country .
  ?country wdt:P297 ?countryCode .
  ?settlement rdfs:label ?settlementLabel
  FILTER(LANG(?settlementLabel) = 'en')
  .
  ?country rdfs:label ?countryLabel
  FILTER(LANG(?countryLabel) = 'en')
  . MINUS {
    ?settlement(wdt:P31 / wdt:P279 *) wd:Q532 .
  }
}
ORDER BY ASC(?settlementLabel)

What are the non-village human settlements located in Aruba, Curaçao, Sint Maarten, or the Netherlands, along with their country names and ISO codes?

List all towns and cities (not villages) in the constituent countries of the Kingdom of the Netherlands, including their English names, country names, and ISO 3166-1 codes.

SELECT DISTINCT( ?var1 AS ?var2 ) ?var1Label ( ?var3 AS ?var4 ) ?var3Label ( "6" AS ?var5 )( "nl" AS ?var6 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q29999> . MINUS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q532> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } } ORDER BY ASC( ?var1Label )


Question: Which Wikidata items are associated with the identifier "15647"?

SELECT ?item ?property WHERE { ?item ?property "15647" .}

What entities or reference entries in Wikidata have the external ID "15647" assigned to them?

Show me all the Wikidata items that use "15647" as an identifier in any external database system.


Question: Superclasses of J. J. Abrams

SELECT DISTINCT ?var2Label WHERE { ?person rdfs:label "J. J. Abrams"@en . ?person wdt:P31 ?cls . ?cls wdt:P279 ?var2 . ?var2 rdfs:label ?var2Label . FILTER(LANG(?var2Label) = "en") }

What are the broader categories that J. J. Abrams belongs to according to Wikidata?

List the English labels of the classes that are superclasses of the class J. J. Abrams is an instance of.

SELECT DISTINCT ?var1 ?var2Label WHERE { ?var3 ?var4Label "JJ Abrams"@en . OPTIONAL { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Cities with their population and official name

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?city ?population ?officialName WHERE {
  ?city wdt:P31 wd:Q515 .
  OPTIONAL {
    ?city wdt:P1082 ?population .
  }
  OPTIONAL {
    ?city wdt:P1448 ?officialName .
  }
}
LIMIT 20

What are the population and official names of some cities in Wikidata?

Show me up to 20 cities along with their population and official name, if available.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var3 . } } LIMIT 20


Question: What are the places and organizations associated with Sarah-Jayne Blakemore, and where are they located?

SELECT DISTINCT ?image ?item ?itemLabel ?location ?propertyLabel WHERE { wd:Q15739591 ?property ?item . OPTIONAL { ?item wdt:P276 / wdt:P625 ?location . } OPTIONAL { ?item wdt:P159 / wdt:P625 ?location . } OPTIONAL { ?item wdt:P18 ?image . } ?propItem wikibase:directClaim ?property . ?propItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you list all the entities linked to Sarah-Jayne Blakemore, including their English labels, the nature of the relationship, and their geographic coordinates if available?

Show me the institutions, awards, and locations connected to neuroscientist Sarah-Jayne Blakemore, along with the type of connection and their map coordinates.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q15739591> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: Most frequent recurring event types not tied to a specific country, based on instance-of and subclass-of relationships.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?eventClass ?eventClassLabel ?count WHERE {
  {
    SELECT ?eventClass(COUNT(*) AS ?count) WHERE {
      ?item wdt:P2257 ?interval ; wdt:P31 ?eventClass .
      FILTER NOT EXISTS {
        ?eventClass wdt:P17 []
      }
    }
    GROUP BY ?eventClass
    ORDER BY DESC(?count)
    LIMIT 50
  } UNION {
    SELECT ?eventClass(COUNT(*) AS ?count) WHERE {
      ?item wdt:P2257 ?interval ; wdt:P279 ?eventClass .
      FILTER NOT EXISTS {
        ?eventClass wdt:P17 []
      }
    }
    GROUP BY ?eventClass
    ORDER BY DESC(?count)
    LIMIT 50
  }
  ?eventClass rdfs:label ?eventClassLabel .
  FILTER(LANG(?eventClassLabel) = "en")
}
ORDER BY DESC(?count) ASC(?eventClass)

What are the most common types of recurring events (like tournaments or competitions) that are not associated with any country, and how often do they occur?

Show me the top 50 most frequent event categories (as instances or subclasses) that have a regular time interval and are not tied to a specific country, along with their occurrence counts.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var2 )( <http://www.wikidata.org/entity/P31> AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P2257> ?var5 ; <http://www.wikidata.org/prop/direct/P31> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 50 } UNION { SELECT ?var1 ( COUNT (* ) AS ?var2 )( <http://www.wikidata.org/entity/P279> AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P2257> ?var5 ; <http://www.wikidata.org/prop/direct/P279> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 50 } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P17> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var2 )ASC( ?var1 )


Question: List all manifestos (instances of the literary genre manifesto) with their English labels.

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

What are the English names of all items that are instances of the literary genre "manifesto"?

Show me the titles of all manifestos in English.

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


Question: Chemical elements with their atomic numbers and atomic masses, sorted by atomic number.

SELECT ?element ?elementLabel ?atomicNumber ?mass WHERE { ?element wdt:P31 wd:Q11344 ; wdt:P1086 ?atomicNumber ; p:P2067 ?massStatement . ?massStatement ps:P2067 ?mass . ?element rdfs:label ?elementLabel . FILTER(LANG(?elementLabel) = "en") } ORDER BY ASC(?atomicNumber)

What are the atomic numbers and atomic masses of all chemical elements, listed in order of increasing atomic number?

List all chemical elements along with their atomic numbers and atomic masses, sorted from hydrogen to flerovium.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11344> ; <http://www.wikidata.org/prop/direct/P1086> ?var2 ; <http://www.wikidata.org/prop/P2067> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/value/P2067> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Subclasses of ingestion with their labels and images from Wikimedia Commons.

SELECT ?subclass ?label ?image WHERE { ?subclass wdt:P279 wd:Q1663054 . ?subclass rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { ?subclass wdt:P18 ?image . } } LIMIT 100

What are the subclasses of ingestion, and which ones have associated images on Wikimedia Commons?

List all English-labeled subclasses of ingestion along with their images, if available.

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


Question: Hardcore punk bands with additional music genres and their formation years.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?otherGenreLabel ?inceptionDate WHERE {
  ?item wdt:P136 wd:Q10922 .
  ?item wdt:P136 ?otherGenre .
  ?item wdt:P571 ?inceptionDate .
  FILTER ( ?otherGenre != wd:Q10922 ) OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    ?otherGenre rdfs:label ?otherGenreLabel .
    FILTER ( LANG( ?otherGenreLabel ) = "en" )
  }
}

Which bands classified as hardcore punk also have other music genres, and when were they formed?

List all hardcore punk musical acts that are associated with at least one other genre, along with the year they were founded.

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


Question: What properties and their values are associated with the academic article "Modeling Relational Data with Graph Convolutional Networks", including how many values each has and what they are?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?propertyLabel ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ", " ) AS ?valueLabels ) WHERE {
  wd:Q30005091 ?property ?value .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( LANG( ?valueLabel ) = "en" )
}
GROUP BY ?property ?propertyLabel

For the scholarly article "Modeling Relational Data with Graph Convolutional Networks", which properties are used, how many values does each have, and what are the English labels of those values?

List all properties of the paper "Modeling Relational Data with Graph Convolutional Networks" with their English labels, the number of values each property has, and a comma-separated list of the English 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/Q30005091> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Which property is most often incorrectly used to assign "sex or gender" (P21) as a value instead of a gender entity?

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 ?propertyItem(COUNT(?propertyItem) AS ?count) WHERE {
  ?subject ?dataProperty wd:P21 .
  ?propertyItem wikibase:directClaim ?dataProperty .
  ?propertyItem rdf:type wikibase:Property .
}
GROUP BY ?propertyItem
ORDER BY DESC(?count)
LIMIT 1

What Wikidata property item is linked to the most statements where the value is the property P21 (sex or gender)?

Find the property that is most frequently misused in Wikidata to point to P21 (sex or gender) as its value.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/P21> . ?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: List genes with English labels containing 'BRCA' and no Bengali label.

SELECT ?gene ?geneLabel WHERE { ?gene wdt:P31 wd:Q7187 . ?gene rdfs:label ?geneLabel . FILTER(LANG(?geneLabel) = "en") FILTER(REGEX(STR(?geneLabel), "BRCA", "i")) FILTER(NOT EXISTS { ?gene rdfs:label ?bnLabel . FILTER(LANG(?bnLabel) = "bn") }) }

Which genes have English names that include 'BRCA' but do not have a Bengali label?

Show me the English names of genes related to BRCA that aren't labeled in Bengali.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7187> . FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "bn" ) ) ) . } ) ) . FILTER ( ( EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( REGEX ( STR ( ?var2Label ) , "string1", "i" ) ) ) . } ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: What are the English and French names, coordinates, and Freebase IDs of all provincial and territorial capital cities in Canada?

SELECT DISTINCT ?labelEn ?labelFr ?lat ?lon ?freebaseId WHERE { ?capital (wdt:P31/wdt:P279*) wd:Q21507383 . ?capital wdt:P625 ?coord . ?capital p:P625 ?stmt . ?stmt psv:P625 ?geo . ?geo wikibase:geoLatitude ?lat ; wikibase:geoLongitude ?lon . ?capital wdt:P646 ?freebaseId . OPTIONAL { ?capital rdfs:label ?labelEn . FILTER(LANG(?labelEn) = "en") } OPTIONAL { ?capital rdfs:label ?labelFr . FILTER(LANG(?labelFr) = "fr") } } ORDER BY ASC(?labelEn)

List Canadian provincial capitals with their coordinates in decimal degrees and Freebase identifiers, including their names in English and French.

Can you provide the location (latitude and longitude) and Freebase ID for each capital city of a Canadian province or territory, along with its English and French labels?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 WHERE { ?var6 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q21507383> . ?var6 <http://www.wikidata.org/prop/direct/P625> ?var7 . ?var6 <http://www.wikidata.org/prop/P625> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/value/P625> ?var9 . ?var9 <http://wikiba.se/ontology#geoLatitude> ?var3 . ?var9 <http://wikiba.se/ontology#geoLongitude> ?var4 . ?var6 <http://www.wikidata.org/prop/direct/P646> ?var5 . OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "fr" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 )


Question: What is the English label and description of the YSO ID 188402?

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

What is the name and English description of the place identified by YSO ID 188402?

Show me the English name and description of the Finnish village with YSO ID 188402.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2347> "188402". 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 software is written in the D programming language?

SELECT ?software ?category WHERE { ?software wdt:P277 wd:Q319268 . OPTIONAL { ?software wdt:P910 ?category . } } LIMIT 400

List programs implemented in D and their main Wikimedia categories.

Which applications use the D language, and what are their main Wikipedia categories?

SELECT * WHERE { OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P910> ?var2 . } ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q319268> . } LIMIT 400


Question: Scholarly articles about fipronil in English

SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q13442814 ; wdt:P921 wd:Q415933 ; rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") . FILTER (CONTAINS(LCASE(?itemLabel), "fipronil")) . }

What are the English-language scholarly articles that have fipronil as their main subject?

List the titles of academic papers that focus on the insecticide fipronil, written in English.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P921> <http://www.wikidata.org/entity/Q415933> . } FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "fipronil" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Libraries in France without coordinates

SELECT ?library ?libraryLabel WHERE { ?library (wdt:P31/wdt:P279*) wd:Q7075 ; wdt:P17 wd:Q142 . MINUS { ?library wdt:P625 [] } . ?library rdfs:label ?libraryLabel . FILTER(LANG(?libraryLabel) = 'fr') }

What are the libraries in France that don't have geographic coordinates listed?

List the French names of all library institutions in France that are not geolocated.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7075> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Entities with BnF IDs and their types

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?typeLabel ?bnfId WHERE {
  ?item wdt:P268 ?bnfId .
  ?item wdt:P31 ?type .
  ?item rdfs:label ?itemLabel .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  FILTER ( LANG( ?typeLabel ) = "en" ) .
}
LIMIT 100

What are the items cataloged by the Bibliothèque nationale de France, and what types of things are they?

Show me a list of entities that have a Bibliothèque nationale de France ID along with their English labels and classifications.

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


Question: Austrian writers who died between 600 and 1500 AD

SELECT ?person ?deathDate (SAMPLE(?image) AS ?sampledImage) ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P106 wd:Q36180 . ?person wdt:P570 ?deathDate . ?person wdt:P27 wd:Q40 . OPTIONAL { ?person wdt:P18 ?image . } FILTER ( YEAR(?deathDate) > 600 && YEAR(?deathDate) < 1500 ) . ?person rdfs:label ?personLabel . FILTER ( LANG(?personLabel) = "en" ) } GROUP BY ?person ?deathDate ?personLabel LIMIT 100

Who were some Austrian writers that died between the years 600 and 1500?

List the names of Austrian writers from the medieval period (600–1500 AD) and include any available images of them.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36180> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } FILTER ( ( ( YEAR ( ?var2 ) < "1500"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( YEAR ( ?var2 ) > "600"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q40> . OPTIONAL { } } GROUP BY ?var2 ?var1 ?var1Label LIMIT 100


Question: What are all the superclass categories of the Council of Ministers of the Kingdom of the Netherlands?

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

Superclasses of the Council of Ministers of the Kingdom of the Netherlands.

List all the broader institutional categories that the Council of Ministers of the Kingdom of the Netherlands is a part of, including indirect ones.

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


Question: What is the English label and description of the entity with YSO ID 108298?

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

Can you tell me the name and a brief description in English of the place identified by the YSO ID 108298?

What does the YSO concept 108298 refer to, and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2347> "108298". 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 is the Turkish Wikipedia article about the episode "Pangs" from Buffy the Vampire Slayer?

PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?article WHERE {
  ?article rdf:type schema:Article ; schema:about wd:Q949847 ; schema:inLanguage "tr" ; schema:isPartOf ?wiki .
  ?wiki wikibase:wikiGroup "wikipedia" .
}
LIMIT 1

Is there a Turkish-language Wikipedia page for the Buffy episode "Pangs"?

Can you find the Turkish Wikipedia page that discusses the episode "Pangs"?

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q949847> ; <http://schema.org/inLanguage> "tr"; <http://schema.org/isPartOf> ?var2 . ?var2 <http://wikiba.se/ontology#wikiGroup> "string1". } LIMIT 1


Question: Basque-speaking writers with birth years, VIAF, and ISNI identifiers

SELECT ?writer ?writerLabel ?image ?birthYear ?placeOfBirthLabel ?deathYear ?placeOfDeathLabel ?viafUrl ?isniUrl WHERE { ?writer (wdt:P31/wdt:P279*) wd:Q5 . ?writer (wdt:P106/wdt:P279*) wd:Q36180 . ?writer wdt:P1412 wd:Q8752 . OPTIONAL { ?writer wdt:P18 ?image . } OPTIONAL { ?writer wdt:P19 ?placeOfBirth . ?placeOfBirth rdfs:label ?placeOfBirthLabel . FILTER(LANG(?placeOfBirthLabel) = "en") } OPTIONAL { ?writer wdt:P20 ?placeOfDeath . ?placeOfDeath rdfs:label ?placeOfDeathLabel . FILTER(LANG(?placeOfDeathLabel) = "en") } OPTIONAL { ?writer wdt:P569 ?birthDate . BIND(YEAR(?birthDate) AS ?birthYear) } OPTIONAL { ?writer wdt:P570 ?deathDate . BIND(YEAR(?deathDate) AS ?deathYear) } OPTIONAL { ?writer wdt:P214 ?viafId . BIND(IRI(CONCAT("http://viaf.org/viaf/", ?viafId)) AS ?viafUrl) } OPTIONAL { ?writer wdt:P213 ?isniId . BIND(IRI(CONCAT("http://isni.org/isni/", ?isniId)) AS ?isniUrl) } ?writer rdfs:label ?writerLabel . FILTER(LANG(?writerLabel) = "en") } GROUP BY ?writer ?writerLabel ?image ?birthYear ?placeOfBirthLabel ?deathYear ?placeOfDeathLabel ?viafUrl ?isniUrl

Who are the human writers that write in Basque, and what are their birth years, places of birth, and links to their VIAF and ISNI profiles?

List all Basque-language writers along with their English names, birth years, places of birth and death (if available), images from Wikimedia Commons, and links to their VIAF and ISNI profiles.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6Label ( GROUP_CONCAT ( DISTINCT ?var7Label ; SEPARATOR = ", " ) AS ?var8 )( GROUP_CONCAT ( DISTINCT IRI ( ?var9 ) ; SEPARATOR = ", " ) AS ?var10 )( GROUP_CONCAT ( DISTINCT ?var11 ; SEPARATOR = ", " ) AS ?var12 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/entity/P279> *) <http://www.wikidata.org/entity/Q5> . ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/entity/P279> *) <http://www.wikidata.org/entity/Q36180> . ?var1 <http://www.wikidata.org/prop/direct/P1412> <http://www.wikidata.org/entity/Q8752> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P20> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var14 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P214> ?var15 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P213> ?var16 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var7 . } BIND ( YEAR ( ?var13 ) AS ?var3 ). BIND ( YEAR ( ?var14 ) AS ?var5 ). BIND ( IRI ( CONCAT ( "string1", ?var15 ) ) AS ?var9 ). BIND ( IRI ( CONCAT ( "string2", ?var16 ) ) AS ?var11 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string3". ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var7Label . } } GROUP BY ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6Label


Question: Wikidata properties with alternative labels and English names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?property ?propertyLabel WHERE {
  ?property skos:altLabel ?altLabel .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}
LIMIT 100

Which properties in Wikidata have alternative labels and are labeled in English?

List the English labels of Wikidata properties that have alternative labels.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.w3.org/2004/02/skos/core#altlabel> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,en". } }


Question: English-labeled and described human actors who have been in movies or TV shows.

SELECT ?actor ?actorLabel ?actorDescription WHERE { ?actor wdt:P161 ?production . ?actor wdt:P31 wd:Q5 . ?actor rdfs:label ?actorLabel . ?actor schema:description ?actorDescription . FILTER(LANG(?actorLabel) = "en") . FILTER(LANG(?actorDescription) = "en") } LIMIT 100

Who are some human actors with English labels and descriptions who have appeared in films or television productions?

List up to 100 human actors with English names and descriptions who have been cast in productions.

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


Question: What is the English Wikipedia page, official website, and type of Toyoko Inn?

SELECT DISTINCT ?item ?itemLabel ?wikipediaPage ?website ?instanceType WHERE { BIND(wd:Q1320541 AS ?item) . ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?item wdt:P856 ?website . } OPTIONAL { ?item wdt:P31 ?instanceType . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you show me the details of Toyoko Inn including its Wikipedia link, website, and what kind of business it is?

Find the English Wikipedia article, official URL, and classification (e.g., hotel chain, business) for Toyoko Inn.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q1320541> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Number of members in each term of the Estonian Parliament, ordered by term start date.

SELECT ?term ?termLabel ( COUNT( DISTINCT ?member ) AS ?memberCount ) WHERE { ?member p:P39 [ ps:P39 wd:Q21100241 ; pq:P2937 ?term ] . OPTIONAL { ?term wdt:P571 ?inception . } ?term rdfs:label ?termLabel . FILTER(LANG(?termLabel) = "en") } GROUP BY ?term ?termLabel ?inception ORDER BY ASC(?inception) ASC(?termLabel)

How many people served in each parliamentary term of the Riigikogu, starting from the earliest term?

List the number of members per term in the Estonian Parliament, sorted by when each term began.

SELECT ?var1 ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q21100241> ; <http://www.wikidata.org/prop/qualifier/P2937> ?var1 ] . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ORDER BY ASC( ?var4 )ASC( ?var1Label )


Question: Which film has the Russiancinema.ru ID 10243?

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

What is the film identified by the Russiancinema.ru ID 10243?

Find the Wikidata item for the film with the Russiancinema.ru identifier 10243.

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


Question: Film with Russiancinema.ru ID 9738

SELECT ?film WHERE { ?film wdt:P2678 "9738" . }

What film is identified by the Russiancinema.ru ID 9738?

Can you tell me the name of the Russian film from 2004 that has the ID 9738 on Russiancinema.ru?

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


Question: French cultural heritage monuments with Mérimée ID starting with "IA" that lack direct coordinates but are located within administrative areas that have coordinates.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?monument ?monumentLabel ?merimeeId ?adminCoords WHERE {
  ?monument wdt:P380 ?merimeeId ; ( wdt:P131 / wdt:P625 ) ?adminCoords . MINUS {
    ?monument wdt:P625 ?adminCoords .
  }
  FILTER ( STRSTARTS( ?merimeeId , "IA" ) ) OPTIONAL {
    ?monument rdfs:label ?monumentLabel .
    FILTER ( LANG( ?monumentLabel ) = "en" )
  }
}

Which French monuments identified by Mérimée IDs starting with "IA" do not have their own geographic coordinates but are associated with the coordinates of the administrative regions they are in?

Show me French cultural heritage sites with Mérimée IDs beginning with "IA" that are geolocated indirectly through their administrative location rather than having their own coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P380> ?var2 ; ( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P625> ) ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } FILTER ( ( REGEX ( ?var2 , "^IA" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Monuments in the French Ain department with Mérimée ID starting with "IA" but no exact coordinates, showing coordinates of their administrative location.

SELECT ?monument ?monumentLabel ?merimeeId ?adminCoords WHERE { ?monument wdt:P380 ?merimeeId . FILTER (REGEX(?merimeeId, "^IA")) . MINUS { ?monument wdt:P625 ?directCoord . } ?monument (wdt:P131/wdt:P625) ?adminCoords . }

Which French cultural monuments have a Mérimée ID starting with "IA" but are not individually geolocated, and what are the coordinates of the towns or regions they are located in?

List all French heritage monuments identified by Mérimée IDs starting with "IA" that lack their own GPS coordinates, along with the geographic coordinates of the administrative areas they belong to.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P380> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } ?var1 ( <http://www.wikidata.org/prop/direct/P131> / <http://www.wikidata.org/prop/direct/P625> ) ?var3 . FILTER ( ( REGEX ( ?var2 , "^IA" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: People who died on April 21, 1986

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P570 ?deathDate .
  FILTER(?deathDate >= "1986-04-21T00:00:00Z" ^^ xsd:dateTime && ?deathDate < "1986-04-22T00:00:00Z" ^^ xsd:dateTime)
}

List all individuals whose date of death was exactly April 21, 1986, according to Wikidata.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . FILTER ( ( ( ?var2 >= "1986-04-21T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1986-04-21T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: People born on July 19, 1982

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P569 ?birthDate .
  FILTER ( ?birthDate >= "1982-07-19T00:00:00Z" ^^ xsd:dateTime && ?birthDate <= "1982-07-19T23:59:59Z" ^^ xsd:dateTime )
}

List all individuals whose date of birth is exactly July 19, 1982, including any time during that day.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var2 >= "1982-07-19T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1982-07-19T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: Wikidata item for movie with IMDb ID tt0205979

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P345 "tt0205979" .
}

What is the Wikidata entity for the movie with IMDb ID tt0205979?

Return the Wikidata ID of the movie that has the IMDb identifier tt0205979.

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


Question: What are some examples of desserts listed in Wikidata?

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

List of desserts and their English names from Wikidata

Show me the English names of all desserts in Wikidata

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


Question: What are the superclasses and Commons category of the item labeled "mountain" in English, with an English Wikipedia page?

SELECT DISTINCT ?item ?itemLabel ?superclassLabel ?commonsCategory WHERE { ?item rdfs:label "mountain"@en . ?item wdt:P31 ?type . ?type wdt:P279* ?superclass . ?item wdt:P373 ?commonsCategory . ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . ?item rdfs:label ?itemLabel . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?superclassLabel) = "en") }

What classes does "mountain" belong to, and what is its Wikimedia Commons category, assuming it has an English Wikipedia article?

Show me the English label, hierarchical classes, and Commons category for the entity "mountain" that has an English Wikipedia page.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4Label WHERE { ?var1 ?var5Label "string1"@en . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> ) ?var3 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P373> ) ?var4 . ?var6 <http://schema.org/about> ?var1 . ?var6 <http://schema.org/inLanguage> "en". ?var6 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Scientific experiments and the space missions they were part of.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?experiment ?mission WHERE {
  ?experiment wdt:P361 ?mission .
}
LIMIT 750000

Which scientific experiments were components of which space missions?

List all pairs of scientific payloads and space expeditions where the payload was part of the mission, based on Wikidata.

SELECT * WHERE { OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var2 . } } LIMIT 750000


Question: Swedish street names in Gothenburg starting with A, B, or C

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?street ?label WHERE {
  ?street wdt:P31 / wdt:P279 * wd:Q83620 .
  ?street wdt:P131 wd:Q52502 .
  ?street rdfs:label ?label .
  FILTER(LANG(?label) = "sv")
  FILTER(STRSTARTS(?label , "A") || STRSTARTS(?label , "B") || STRSTARTS(?label , "C"))
}

What are the Swedish-language streets in Gothenburg whose names begin with A, B, or C?

List all thoroughfares in Gothenburg Municipality that have Swedish names starting with A, B, or C.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q83620> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q52502> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P138> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "sv" ) ) ) . FILTER ( ( STRSTARTS ( ?var1Label , "A" ) || STRSTARTS ( ?var1Label , "B" ) || STRSTARTS ( ?var1Label , "C" ) ) ) . }