Question: Does Wikidata contain an entity with VIAF ID 287017892?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "287017892" .
}

Is there a person in Wikidata identified by the VIAF number 287017892?

Check if the Virtual International Authority File ID 287017892 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "287017892". }


Question: What is the English label and description of the entry in the Great Russian Encyclopedia (old version) with ID 3144620?

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:P2924 "3144620" .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER(LANG(?itemLabel) = "en")
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

Can you tell me the name and a brief description in English of the plant class listed as 3144620 in the Great Russian Encyclopedia?

Find the English name and description of the Great Russian Encyclopedia entry with ID 3144620.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "3144620". 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 English name and description of the person listed in the Great Russian Encyclopedia with ID 4723114?

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

Who is Frederick III of Denmark according to the Great Russian Encyclopedia, and what is his English description?

Find the English label and description of the individual identified by the old Great Russian Encyclopedia Online ID 4723114.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2924> "4723114". 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: Biological structures found in animals

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?itemLabel ?statement WHERE {
  ?item p:P703 ?statement .
  ?statement ps:P703 wd:Q729 .
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
}
ORDER BY ?itemLabel
LIMIT 15

What biological entities are known to be found in the animal kingdom?

List the names of biological items (like organs or systems) that occur in animals, along with their Wikidata statement identifiers.

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


Question: Is Weerderhuys a building or a type of building?

Does the church building Weerderhuys belong to the category of buildings?

Confirm whether Weerderhuys is classified as a building through its type or subclass hierarchy.

ASK WHERE { <http://www.wikidata.org/entity/Q22572504> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What are the Polish second-level administrative divisions with GeoNames IDs and Polish labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?class ?country ?label WHERE {
  ?item ( wdt:P31 / wdt:P279 * ) wd:Q56061 .
  ?item wdt:P31 / wdt:P279 * ?class .
  ?class wdt:P2452 "A.ADM2" .
  ?item wdt:P17 ?country .
  ?country wdt:P297 "PL" .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "pl" ) .
  FILTER ( EXISTS {
    ?item wdt:P1566 []
  }
  )
}

Can you list all second-level administrative divisions in Poland that have a GeoNames ID and are labeled in Polish?

Show me the Polish names of all counties and equivalent administrative units in Poland that are documented in GeoNames.

SELECT DISTINCT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q56061> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P2452> "A.ADM2". ?var2 <http://www.wikidata.org/prop/direct/P2452> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P297> "PL". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "pl" ) ) ) . FILTER ( ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var6 . } ) ) . }


Question: What is the original folk song that Mozart's Twelve Variations on "Ah vous dirai-je, Maman" is based on, and what is the relationship in Spanish?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5Label WHERE { BIND( wd:Q2603975 AS ?var1 ) . ?var4 ?var2 ?var1 . ?var7 ?var8 ?var2 . ?var7 rdf:type wikibase:Property . ?var7 rdfs:label ?var3Label . ?var4 rdfs:label ?var5Label . ?var1 rdfs:label ?var1Label . FILTER ( LANG( ?var5Label ) = "es" ) . FILTER ( LANG( ?var3Label ) = "es" ) . FILTER ( LANG( ?var1Label ) = "es" ) . } LIMIT 100

In Spanish, what is the label of the work that is linked as a derivative work to Mozart's Twelve Variations on "Ah vous dirai-je, Maman"?

Show the Spanish labels for Mozart's Twelve Variations, the relationship type, and the original work it is derived from.

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


Question: Spanish labels of properties and values for Mozart's Adagio and Allegro in F minor, K. 594

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?work ?workLabel ?property ?propertyLabel ?value ?valueLabel WHERE {
  BIND(wd:Q4678377 AS ?work)
  ?work ?property ?value .
  ?work rdfs:label ?workLabel .
  ?value rdfs:label ?valueLabel .
  ?prop wikibase:directClaim ?property .
  ?prop rdfs:label ?propertyLabel .
  FILTER(LANG(?workLabel) = "es")
  FILTER(LANG(?propertyLabel) = "es")
  FILTER(LANG(?valueLabel) = "es")
}

What are the Spanish labels for the properties and their values associated with the musical composition Adagio and Allegro in F minor, K. 594?

Show me the Spanish-language descriptions of all properties and their values for Mozart’s Adagio and Allegro in F minor, K. 594.

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


Question: What is the image of Prague?

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

Can you show me the Wikimedia Commons image associated with the capital city of the Czech Republic?

What image is linked to Prague on Wikidata?

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


Question: What are the Spanish-language descriptions of all facts about Johann Jakob Stehlin?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 DISTINCT ?person ?personLabel ?property ?propertyLabel ?value ?valueLabel WHERE {
  BIND(wd:Q116830 AS ?person)
  ?person ?property ?value .
  ?person rdfs:label ?personLabel .
  ?propertyEntity rdf:type wikibase:Property ; rdfs:label ?propertyLabel .
  ?propertyEntity wikibase:directClaim ?property .
  ?value rdfs:label ?valueLabel .
  FILTER(LANG(?personLabel) = "es")
  FILTER(LANG(?propertyLabel) = "es")
  FILTER(LANG(?valueLabel) = "es")
}

Can you list Johann Jakob Stehlin’s attributes and their values in Spanish, including the names of the properties?

Show me all the information about the Swiss politician Johann Jakob Stehlin, with all labels translated into Spanish.

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


Question: What museums hold artworks by the painter Antonis Mor?

SELECT DISTINCT ?collection ?collectionLabel WHERE { ?artwork wdt:P170 wd:Q176694 ; wdt:P195 ?collection . ?collection rdfs:label ?collectionLabel . FILTER(LANG(?collectionLabel) = "en") } ORDER BY ?collectionLabel

Which collections, besides Museum Boijmans Van Beuningen, contain paintings by Antonis Mor?

Can you list the English names of all museums and collections that own artworks created by Antonis Mor?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q679527> . ?var3 <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q176694> . ?var3 <http://www.wikidata.org/prop/direct/P170> ?var1 . ?var4 <http://www.wikidata.org/prop/direct/P170> ?var1 . MINUS { ?var4 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q679527> . } ?var4 <http://www.wikidata.org/prop/direct/P195> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } } LIMIT 500


Question: What entities are associated with Douglas Adams, and what are they?

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 ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE {
  {
    ?var3 ?var4 wd:Q42 .
    ?var3 wdt:P31 ?var1 .
  } UNION {
    wd:Q42 ?var4 ?var3 .
    ?var3 wdt:P31 ?var2 .
  }
  ?var3 rdfs:label ?var3Label .
  FILTER(LANG(?var3Label) = "en")
}
ORDER BY ASC(?var3Label)

List all things connected to Douglas Adams, including their names and categories, sorted alphabetically.

Which people, places, or things are linked to Douglas Adams, and what kind of things are they?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { { ?var3 ?var4 <http://www.wikidata.org/entity/Q42> . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var1 . } UNION { <http://www.wikidata.org/entity/Q42> ?var4 ?var3 . ?var3 <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> "sv,en". } } ORDER BY ASC( ?var3Label )


Question: Buildings in Cologne with images, Commons categories, and street addresses

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?image ?commonsCategory ?address WHERE {
  ?item wdt:P131 wd:Q365 .
  ?item wdt:P31 [] . MINUS {
    ?item wdt:P31 wd:Q79007 .
  }
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  OPTIONAL {
    ?item wdt:P6375 ?address .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What notable places in Cologne (excluding streets) have images, Wikimedia Commons categories, and street addresses?

List notable non-street locations in Cologne along with their images, Commons categories, and street addresses.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(15 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(15 50)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 <http://www.wikidata.org/prop/direct/P31> [] . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q79007> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: Humans with "Rocky" in their name

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 ?human ?label WHERE {
  VALUES ?human {
    wd:Q188362 wd:Q129910
  }
  .
  ?human rdfs:label ?label .
  ?human wdt:P31 wd:Q5 .
}

Who are some famous people known by the name "Rocky"?

List the notable humans whose names include "Rocky", such as Rocky Marciano and A$AP Rocky.

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


Question: Who is Jean Macé in French-speaking contexts?

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

What humans have the French label "Jean Macé"?

Can you find the French-labeled person named Jean Macé who is a human?

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


Question: What properties are used to link entities to North Macedonia, with English labels and descriptions?

SELECT ?prop ?propLabel ?propDescription WHERE { ?item ?propwdt wd:Q221 . BIND(IRI(REPLACE(STR(?propwdt), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?prop) . ?prop rdfs:label ?propLabel . ?prop schema:description ?propDescription . FILTER (LANG(?propLabel) = "en") FILTER (LANG(?propDescription) = "en") } LIMIT 20

Which properties in Wikidata have North Macedonia as their object, and what are their English labels and descriptions?

Show me the English labels and descriptions of properties that are used to associate items with North Macedonia.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q221> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 20 } ?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 20


Question: Who is the actor in the Adult Film Database with ID 67486, and what is their English description?

SELECT ?actor ?actorLabel ?description WHERE { ?actor wdt:P3351 "67486" . OPTIONAL { ?actor schema:description ?description . FILTER (LANG(?description) = "en") } }

Find the Wikidata entity for AFDB actor ID 67486 and its English description.

Show me the person associated with Adult Film Database ID 67486, including their English Wikipedia-style description if available.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3351> "56022". 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: Paintings by Claude Monet with their images and current museum locations.

SELECT ?painting ?image ?location ?paintingLabel ?locationLabel WHERE { ?painting wdt:P170 wd:Q296 . ?painting wdt:P18 ?image . ?painting wdt:P276 ?location . ?painting rdfs:label ?paintingLabel . ?location rdfs:label ?locationLabel . FILTER(LANG(?paintingLabel) = "en") FILTER(LANG(?locationLabel) = "en") } ORDER BY ?paintingLabel

What are Claude Monet’s paintings, where are they located, and what do they look like?

Show me a list of Claude Monet’s artworks, including their images and the museums that house them.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P170> <http://www.wikidata.org/entity/Q296> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P276> ?var3 . }


Question: English label, image, and Wikipedia page language for Earth

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1Label ?var2 ?var3 ?var4 WHERE {
  BIND( wd:Q2 AS ?var1 ) .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" ) .
  ?var2 schema:about ?var1 ; schema:isPartOf ?wikiSite ; schema:inLanguage ?var4 .
  OPTIONAL {
    ?var1 wdt:P18 ?var3 .
  }
}
LIMIT 1

What is the English name of Earth, its image on Commons, and a Wikipedia page about it in any language?

Show me the English name of Earth, its image, and one Wikipedia article about it, along with the article’s language.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2> AS ?var1 ). { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . ?var2 <http://schema.org/inLanguage> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } UNION { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://fr.wikipedia.org/> . ?var2 <http://schema.org/inLanguage> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "?lang, fr". } } UNION { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://nl.wikipedia.org/> . ?var2 <http://schema.org/inLanguage> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "?lang, nl". } } UNION { { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> ?var4 . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 1


Question: What are the names of all ant species and genera in the family Formicidae?

SELECT ?antTaxon ?label WHERE { ?antTaxon wdt:P171* wd:Q7386 . ?antTaxon rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

Can you list all the taxonomic groups that are part of the ant family (Formicidae)?

Show me the English labels of all organisms classified under the ant family.

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


Question: All ant species and subspecies in the taxonomic family Formicidae.

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 ?antSpecies ?antSpeciesLabel WHERE {
  ?antSpecies wdt:P171 * wd:Q7386 .
  ?antSpecies rdfs:label ?antSpeciesLabel .
  FILTER(LANG(?antSpeciesLabel) = "en")
}

What are all the known species and subspecies of ants?

List all taxa that are descendants of the ant family (Formicidae), including genera and subfamilies, with their English names.

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


Question: List cities and their countries with labels in all available languages.

SELECT ?city ?country (LANG(?cityLabel) AS ?cityLabelLang) ?cityLabel ?countryLabel WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 . ?city wdt:P17 ?country . OPTIONAL { ?city rdfs:label ?cityLabel . } OPTIONAL { ?country rdfs:label ?countryLabel . } } LIMIT 100

What are the cities of the world and their corresponding countries, along with their names in different languages?

Show me a list of cities (including their country) with all language versions of their names and the country names in various languages.

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


Question: Image of the person with SNAC ARK ID w6bv7ftb

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

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

Show me the Wikimedia Commons image for the entity identified by SNAC ARK ID w6bv7ftb.

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


Question: Image of Olivier Messiaen with SNAC ARK ID w6hm5btg

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

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

Show me the Wikimedia Commons image for the person whose SNAC ARK ID is w6hm5btg.

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


Question: Which Wikidata properties have both a minimum and maximum value constraint?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?property WHERE {
  ?property p:P2302 ?constraint .
  ?constraint pq:P2313 ?minValue ; pq:P2312 ?maxValue .
}

What properties in Wikidata are constrained to have values within a specific range (both minimum and maximum defined)?

List all Wikidata properties that specify both a lower and upper bound for their allowed values.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/P2302> [ ( <http://www.wikidata.org/prop/P2313> | <http://www.wikidata.org/prop/P2310> ) ?var2 ; ( <http://www.wikidata.org/prop/P2312> | <http://www.wikidata.org/prop/P2311> ) ?var3 ] . }


Question: Most used property to classify Collaborative Research Centres in Wikidata.

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 ?property ( COUNT( ?property ) AS ?count ) WHERE {
  ?item ?propertyUsed wd:Q2300983 .
  ?property wikibase:directClaim ?propertyUsed .
  ?property rdf:type wikibase:Property .
}
GROUP BY ?property
ORDER BY DESC ( ?count )
LIMIT 1

Which property is most commonly used to state that an item is an instance of a Collaborative Research Centre?

Show the property that links the most items to the Collaborative Research Centre (Q2300983).

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q2300983> . ?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: Italian labels and descriptions of properties related to chief executive officer via seeAlso relations.

SELECT ?targetProperty ?label ?description WHERE { ?relatedProperty a wikibase:Property ; ?rel wd:P169 ; wdt:P1659 ?targetProperty . ?targetProperty rdfs:label ?label . ?targetProperty schema:description ?description . FILTER (LANG(?label) = "it") FILTER (LANG(?description) = "it") }

What are the Italian labels and descriptions of properties that are related to the chief executive officer through the 'see also' relationship?

Show me the Italian labels and descriptions of all properties that are connected to the chief executive officer property via other related properties using the 'see also' link.

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


Question: Paintings without images on Wikimedia Commons

SELECT ?painting ?paintingLabel WHERE { ?painting wdt:P31 wd:Q3305213 . FILTER (NOT EXISTS { ?painting wdt:P18 ?image . }) ?painting rdfs:label ?paintingLabel . FILTER (LANG(?paintingLabel) = "en") } LIMIT 10

Which paintings are missing an image on Wikimedia Commons?

Can you list up to 10 paintings that don’t have an associated image on Wikimedia Commons, along with their English titles?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10


Question: Towns named Bexhill or containing Bexhill in their name.

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

What towns in the world have "Bexhill" in their name?

List all towns whose English label contains the word "Bexhill".

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } OPTIONAL { } BIND ( CONTAINS ( ?var2Label , "bexhill" ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3957> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } LIMIT 100


Question: Places associated with Henrik, Prince Consort of Denmark, including their locations, images, and types of association (e.g., residence, education, death).

SELECT DISTINCT ?image ?place ?placeLabel ?coordinates ?propertyLabel WHERE { wd:Q1389258 ?statement ?place . ?property wikibase:directClaim ?statement . ?place wdt:P625 ?coordinates . OPTIONAL { ?place wdt:P18 ?image . } ?property rdfs:label ?propertyLabel . ?place rdfs:label ?placeLabel . FILTER (LANG(?propertyLabel) = "en" && LANG(?placeLabel) = "en") }

Where did Henrik, Prince Consort of Denmark, live, study, or die, and what are the coordinates and images of those places?

Show me all locations linked to Henrik, Prince Consort of Denmark, along with their coordinates, images, and the nature of the connection (like where he was born, educated, or died).

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q1389258> ?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: How many works have Henrik, Prince Consort of Denmark as their main subject, and what is the title of one such work?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?count ?mainSubjectLabel ?workLabelTruncated WHERE {
  {
    SELECT ( COUNT( ?work ) AS ?count ) WHERE {
      ?work wdt:P921 wd:Q1389258 .
    }
  }
  ?work wdt:P921 wd:Q1389258 .
  wd:Q1389258 rdfs:label ?mainSubjectLabel .
  FILTER ( LANG( ?mainSubjectLabel ) = "en" ) ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" ) BIND( SUBSTR( ?workLabel , 1 , 60 ) AS ?workLabelTruncated )
}

What is the title of the work about Henrik, Prince Consort of Denmark, and how many such works exist?

List the works whose main subject is Henrik, Prince Consort of Denmark, including the count and truncated title.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1389258> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1389258> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: List the top 100 authors and their works in English.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?author ?authorLabel ?work ?workLabel WHERE {
  ?work wdt:P50 ?author .
  ?author rdfs:label ?authorLabel .
  ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?authorLabel ) = "en" ) FILTER ( LANG( ?workLabel ) = "en" )
}
LIMIT 100

Which authors have written works, and what are the titles of those works in English?

Show me a list of up to 100 author-work pairs with their English labels, where the author is linked to the work via the 'author' property.

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


Question: Items created in Asia and their creation qualifiers.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?statement(SAMPLE(?qualifierValue) AS ?sampledQualifierValue) WHERE {
  ?item p:P1071 ?statement .
  ?statement ps:P1071 wd:Q48 .
  OPTIONAL {
    wd:P1071 wdt:P1687 ?qualifier .
    ?statement ?qualifier ?qualifierValue .
  }
}
GROUP BY ?item ?statement
LIMIT 101

What items were created in Asia, and what additional details (qualifiers) are associated with their creation?

List all items that were made in Asia, along with any extra information (like date or method) about their creation.

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


Question: Which items are marked as duplicates of Insular Oceania on Wikidata?

SELECT ?item ?statement ?qualifierProperty ?qualifierValue WHERE { ?item p:P2959 ?statement . ?statement ps:P2959 wd:Q538 . OPTIONAL { ?statement ?qualifierProperty ?qualifierValue . ?qualifierProperty wikibase:qualifier true . } }

What items have been identified as permanent duplicates of Insular Oceania, and are there any additional details (qualifiers) on those duplicate statements?

List all items that are duplicates of Insular Oceania, along with any qualifiers attached to their duplicate statements.

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


Question: Russia in Great Russian Encyclopedia Online (old version) with ID 3515565 — what is its English label and description?

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

What is the English name and description of the country identified as 3515565 in the Great Russian Encyclopedia Online (old version)?

Show me the English label and description of the Wikidata item linked to the Great Russian Encyclopedia Online ID 3515565.

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


Question: What are the subclasses of head in Wikidata?

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

What types of heads are classified as subclasses of 'head' in Wikidata?

List all the specific kinds of heads, like bird's head or human head, that are subclasses of the general term 'head'.

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


Question: What bodies of water have Bahrain as a basin country, and what qualifiers are associated with this relationship?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?waterBody ?statement ( SAMPLE( ?qualifier ) AS ?qualifierProperty ) WHERE {
  ?statement ps:P205 wd:Q398 .
  ?waterBody p:P205 ?statement .
  OPTIONAL {
    ?statement ?qualifier ?value .
    ?qualifier wikibase:qualifier wdt:P205 .
  }
}
GROUP BY ?waterBody ?statement

Which bodies of water drain into or border Bahrain, and are there any additional details (qualifiers) recorded for these relationships in Wikidata?

List the bodies of water connected to Bahrain via the basin country relationship, including any qualifiers used on those connections.

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


Question: U.S. presidents since 1970 with at least one daughter, their spouses, number of children, and images.

SELECT DISTINCT ?president ?presidentLabel ?spouseLabel ?presidentImage ?spouseImage ?childrenCount ?seriesOrdinal WHERE { ?president wdt:P39 wd:Q11696 ; wdt:P26 ?spouse ; wdt:P18 ?presidentImage ; wdt:P1971 ?childrenCount ; wdt:P40 ?child . ?child wdt:P21 wd:Q6581072 . ?spouse wdt:P18 ?spouseImage . ?president p:P39 ?statement . ?statement ps:P39 wd:Q11696 ; pq:P1545 ?seriesOrdinal ; pq:P580 ?start . FILTER ( YEAR(?start) > 1970 ) ?president rdfs:label ?presidentLabel . ?spouse rdfs:label ?spouseLabel . FILTER (LANG(?presidentLabel) = "en") FILTER (LANG(?spouseLabel) = "en") } ORDER BY ASC(?start)

Which U.S. presidents since 1970 have had at least one female child, and who are their spouses, how many children do they have, and what are their official portraits?

List all U.S. presidents who took office after 1970, have at least one daughter, and provide their spouse’s name, number of children, and images of both the president and spouse.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> ; <http://www.wikidata.org/prop/direct/P26> ?var2 ; <http://www.wikidata.org/prop/direct/P18> ?var3 ; <http://www.wikidata.org/prop/direct/P1971> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . ?var1 <http://www.wikidata.org/prop/P39> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var7 <http://www.wikidata.org/prop/qualifier/P1545> ?var6 . ?var1 <http://www.wikidata.org/prop/P39> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var8 . FILTER ( ( ( YEAR ( ?var8 ) > "1970"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var9 . ?var9 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var8 )


Question: List of people who are citizens of Cyprus

SELECT ?person ?statement (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { ?person p:P27 ?statement . ?statement ps:P27 wd:Q229 . OPTIONAL { ?statement ?qualifierProperty ?qualifierValue . ?qualifierProperty wikibase:qualifier true . } } GROUP BY ?person ?statement LIMIT 101

Who are the citizens of Cyprus, and do their citizenship records have any additional details (qualifiers)?

Show me up to 101 people with Cypriot citizenship and any associated qualifiers on their citizenship statements.

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


Question: Organizations headquartered in Cyprus and their specific building locations

SELECT ?organization ?statement (SAMPLE(?specificLocation) AS ?location) WHERE { { SELECT DISTINCT ?organization ?statement WHERE { ?statement ps:P159 ?hq . ?hq wdt:P17 wd:Q229 . ?organization p:P159 ?statement . } LIMIT 101 } OPTIONAL { ?statement pq:P276 ?specificLocation . } } GROUP BY ?organization ?statement

Which organizations have their headquarters in Cyprus, and what are the specific addresses or buildings of those headquarters?

List all organizations based in Cyprus along with any available details about the exact location of their headquarters.

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


Question: What are the laws passed by the Grand National Assembly of Turkey?

SELECT ?lawItem ?lawLabel WHERE { ?lawItem p:P467 ?statement . ?statement ps:P467 wd:Q274918 . ?lawItem rdfs:label ?lawLabel . FILTER(LANG(?lawLabel) = "en") } GROUP BY ?lawItem ?lawLabel LIMIT 10

Can you list the English-named laws enacted by Turkey’s parliament?

Show me the titles of laws in English that were legislated by Turkey’s national assembly.

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


Question: Films shot in Egypt

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?film WHERE {
  ?film p:P915 ?statement .
  ?statement ps:P915 wd:Q79 .
}
LIMIT 101

List up to 101 films that were shot in Egypt.

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


Question: List all continents sorted by their Wikidata ID.

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31 wd:Q5107 . OPTIONAL { ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } } ORDER BY ASC ( xsd:integer( REPLACE( STR(?var1), "http://www.wikidata.org/entity/Q", "" ) ) )

What are the continents, ordered by their Wikidata Q-number in ascending order?

Show me the names of all continents, sorted from the smallest to the largest Wikidata entity ID.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5107> . } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( STR ( ?var1 ) , ( STRLEN ( "string1" ) +"+1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) )


Question: People born in Kuwait and their dates of birth

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?statement ?dateOfBirth WHERE {
  ?statement ps:P19 wd:Q817 .
  ?person p:P19 ?statement .
  OPTIONAL {
    ?person wdt:P569 ?dateOfBirth .
  }
}
LIMIT 101

Who were born in Kuwait, and when were they born?

List individuals born in Kuwait along with their birth dates, if available.

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


Question: Computer scientists who went to Duke University and are still alive, with their Wikipedia pages and images.

PREFIX schema: <http://schema.org/>
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 ?person ?personLabel ?image ?wikipediaPage WHERE {
  ?person wdt:P106 wd:Q82594 .
  ?person wdt:P69 wd:Q168751 .
  ?person wdt:P18 ?image .
  ?wikipediaPage schema:about ?person .
  ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) .
  FILTER ( NOT EXISTS {
    ?person wdt:P570 ?deathDate
  }
  ) .
}

Who are the living computer scientists educated at Duke University, and what are their Wikipedia articles and images?

List the names, Wikipedia links, and images of living computer scientists who attended Duke University.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82594> . ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q168751> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var4 <http://schema.org/about> ?var1 . ?var4 <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". } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } ) ) . } GROUP BY ?var1Label ?var2Label ?var1 ?var3 ?var4


Question: Components of the Kurdish language and their types

SELECT ?component ?componentLabel ?type ?typeLabel WHERE { ?component p:P361 ?statement . ?statement ps:P361 wd:Q36368 . OPTIONAL { ?component rdfs:label ?componentLabel . FILTER(LANG(?componentLabel) = "en") } OPTIONAL { ?component wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") } }

What are the dialects, grammars, or linguistic elements that are part of the Kurdish language, and what kind of entities are they?

List all linguistic components of Kurdish, including their English names and whether they are grammars, terms, concepts, or sounds.

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


Question: What organizations have their headquarters in the United Arab Emirates, and what qualifier properties are used on those headquarters statements?

SELECT ?organization ?statement (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { ?organization p:P159 ?statement . ?statement ps:P159 wd:Q878 . OPTIONAL { ?statement ?qualifierProperty ?value . ?qualifierProperty wikibase:qualifierOf wdt:P159 . } } GROUP BY ?organization ?statement LIMIT 101

List all organizations based in the UAE and indicate if any additional details (like exact location or time period) are specified as qualifiers for their headquarters.

Show me the entities headquartered in the United Arab Emirates and any qualifier properties associated with their headquarters location statements.

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


Question: Main subjects of works by Janna Hastings, ranked by number of works.

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 ?count ?subjectLabel WHERE {
  {
    SELECT ?subject(COUNT(?work) AS ?count) WHERE {
      ?work wdt:P50 wd:Q27902110 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC(?count)
  }
  ?subject rdfs:label ?subjectLabel .
  FILTER(LANG(?subjectLabel) = "en")
}

What are the most common topics in the academic works authored by Janna Hastings, and how many works are there for each topic?

List the English-labeled main subjects of Janna Hastings's publications, sorted by how many publications each subject appears in.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q27902110> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q27902110> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: Does the GND ID 115496181 exist in Wikidata?

Is there a person or entity in Wikidata with the German National Library ID 115496181?

Confirm if the identifier 115496181 from the German National Library is assigned to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "115496181". }


Question: Does the VIAF ID 28483660 exist in Wikidata?

Is there a person in Wikidata with the VIAF identifier 28483660?

Is the Virtual International Authority File ID 28483660 registered in Wikidata?

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "28483660". }


Question: Image of the person with SNAC ARK ID w6572853

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

What is the image of the individual identified by the SNAC ARK ID w6572853?

Please provide the Wikimedia Commons image linked to the SNAC ARK ID w6572853.

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


Question: What is the official image of Star-Lord (Peter Quill) on Wikimedia Commons?

SELECT ?character ?image WHERE { BIND( wd:Q3496918 AS ?character ) . OPTIONAL { ?character wdt:P18 ?image . } }

Show me the picture associated with the Marvel character Star-Lord.

Does Star-Lord have an image in Wikidata, and if so, what is it?

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


Question: What are the Wikidata items associated with the Twitter handles 'Bitkom', 'c_lindner', 'maxschrems', 'NOYBeu', and 'WhatsApp'?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "Bitkom" "BMI_Bund" "c_lindner" "Doener" "DoroBaer" "lfdi_bw" "loadev" "maxschrems" "NOYBeu" "WhatsApp" } }

Show me the entities on Wikidata that have the following Twitter usernames: Bitkom, BMI_Bund, c_lindner, Doener, DoroBaer, lfdi_bw, loadev, maxschrems, NOYBeu, and WhatsApp.

Which organizations or people on Wikidata use these specific X (Twitter) accounts?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "loadev" ) ( "string1" ) ( "j_huettl" ) ( "harrowna" ) ( "string2" ) ( "Doener" ) ( "string3" ) ( "Nico" ) ( "string4" ) ( "Bitkom" ) ( "eco_de" ) ( "walli5" ) ( "string5" ) ( "DoroBaer" ) ( "string6" ) ( "c_lindner" ) ( "string7" ) ( "string8" ) ( "WhatsApp" ) ( "string9" ) ( "maxschrems" ) ( "NOYBeu" ) ( "hwieduwilt" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "savange99" ) ( "string13" ) ( "lfdi_bw" ) ( "flueke" ) ( "BMVI" ) ( "string14" ) ( "snv_berlin" ) ( "z_edian" ) ( "string15" ) ( "BMI_Bund" ) ( "BdP_Berlin" ) ( "jmoenikes" ) } }


Question: What are some organizations that don't have a CEO listed?

SELECT DISTINCT ?organization ?organizationLabel WHERE { ?organization wdt:P31 ?type . FILTER(?type IN (wd:Q4830453, wd:Q43229)) . ?organization rdfs:label ?organizationLabel . FILTER(LANG(?organizationLabel) = "en") . FILTER NOT EXISTS { ?organization wdt:P169 ?ceo . } } LIMIT 10

List businesses and organizations in English that are missing a chief executive officer.

Find organizations of type business or organization that have no assigned chief executive officer.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.wikidata.org/prop/direct/P169> ?var2 . FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . } LIMIT 10


Question: What administrative regions and continents is the village of Awis connected to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?connected WHERE {
  VALUES ?start {
    wd:Q24331160
  }
  {
    ?start ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?connected .
  } UNION {
    ?start ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?mid .
    ?mid ( wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501 ) ?connected .
  }
}

List all countries, continents, and administrative areas related to Awis, including indirect connections.

What larger geographic entities include the village of Awis?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q24331160> 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: SPARQL endpoints with URLs containing "/sparql"

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?url WHERE {
  ?endpoint p:P2699 ?statement .
  ?statement ps:P2699 ?url ; pq:P31 wd:Q26261192 .
  FILTER ( REGEX( STR( ?url ) , "/sparql" ) )
}

What are the web addresses of SPARQL endpoints in Wikidata?

Can you list the URLs of services that implement the SPARQL protocol and have "/sparql" in their address?

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/P2699> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P2699> ?var1 ; <http://www.wikidata.org/prop/qualifier/P31> <http://www.wikidata.org/entity/Q26261192> . FILTER ( ( REGEX ( STR ( ?var1 ) , "string1" ) ) ) . }


Question: Italian Parliament legislative terms with term number, start and end dates

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?legislativeTerm ?legislativeTermLabel ?termNumber ?startDate ?endDate ?countryLabel WHERE {
  ?legislativeTerm p:P31 ?statement .
  ?statement ps:P31 wd:Q15238777 ; pq:P1545 ?termNumber .
  ?legislativeTerm wdt:P1001 wd:Q38 ; wdt:P580 ?startDate ; wdt:P582 ?endDate .
  ?legislativeTerm rdfs:label ?legislativeTermLabel .
  FILTER ( LANG( ?legislativeTermLabel ) = "en" ) .
  wd:Q38 rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" )
}
ORDER BY ASC ( xsd:integer ( ?termNumber ) )

What are the start and end dates of each legislative term of the Italian Parliament, along with their term numbers?

List all the parliamentary terms of Italy in order, showing their term number, start date, end date, and country.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5Label WHERE { { ?var6 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/qualifier/P642> <http://www.wikidata.org/entity/Q1117578> . ?var1 <http://www.wikidata.org/prop/P31> ?var6 . } UNION { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15238777> ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> ; <http://www.wikidata.org/prop/P31> ?var6 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P1545> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var2 ) )


Question: Image of the person with SNAC ARK ID w69601wr

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

What image is linked to the SNAC ARK ID w69601wr?

Can you show me the Wikimedia Commons image for the individual identified by the SNAC ARK ID w69601wr?

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


Question: What properties (other than "instance of") are used to describe the trombone in Wikidata statements?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?propertyItem WHERE {
  ?item ?statementProperty wd:Q8350 .
  ?propertyItem wikibase:statementProperty ?statementProperty .
  FILTER ( ?propertyItem != wd:P31 )
}

Which types of attributes are associated with the trombone through Wikidata statements, excluding the "instance of" relationship?

Can you list the Wikidata property items that link entities to the trombone, excluding the property for "instance of"?

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


Question: What properties are associated with ravioli in German, and what are their object labels and counts?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?object) AS ?count) (GROUP_CONCAT(?objectLabel; SEPARATOR=", ") AS ?objectLabels) WHERE { wd:Q20053 ?property ?object . ?object rdfs:label ?objectLabel . FILTER(LANG(?objectLabel) = "de") . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "de") . } GROUP BY ?property

For ravioli, list each property in German, how many things it connects to, and what those things are called in German.

Show me the German labels of properties linked to ravioli, along with the count of their objects and the German names of those objects.

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


Question: Buildings designed by Emilio Alzugaray Goicoechea in Melilla with coordinates and images.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?building ?buildingLabel ?coordinates ?image WHERE {
  ?building wdt:P84 wd:Q5830980 .
  OPTIONAL {
    ?building wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?building wdt:P18 ?image .
  }
  ?building rdfs:label ?buildingLabel .
  FILTER(LANG(?buildingLabel) = "en" || LANG(?buildingLabel) = "")
}

Which buildings in Melilla were designed by Emilio Alzugaray Goicoechea, and what are their geographic coordinates and images on Wikimedia Commons?

Show me the buildings designed by Emilio Alzugaray Goicoechea, including their locations and associated images.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P84> <http://www.wikidata.org/entity/Q5830980> . 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> "es,en,ca,gl,eu,fr,de,it". } }


Question: What is the image of the person with SNAC ARK ID w6jt73zh?

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

Can you show me the Wikimedia Commons image associated with Paulino Uzcudun?

Retrieve the image file linked to the Social Networks and Archival Context (SNAC) identifier w6jt73zh.

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


Question: Who were the members of the French National Assembly during the 15th legislature (2017–2022), and where were they born?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?human ?humanLabel ?birthplace ?birthplaceLabel ?coordinates WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human p:P39 ?statement .
  ?statement ps:P39 wd:Q3044918 .
  ?statement pq:P2937 wd:Q24939798 .
  ?human wdt:P19 ?birthplace .
  ?birthplace wdt:P625 ?coordinates .
  OPTIONAL {
    ?human rdfs:label ?humanLabel .
    FILTER(LANG(?humanLabel) = "en")
  }
  OPTIONAL {
    ?birthplace rdfs:label ?birthplaceLabel .
    FILTER(LANG(?birthplaceLabel) = "en")
  }
}
ORDER BY ASC(?birthplaceLabel)

What are the birthplaces and geographic coordinates of the people who served as members of the French National Assembly in the 15th legislature?

List the English names of the members of the French National Assembly from the 15th legislature along with the names and coordinates of their birthplaces.

SELECT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q3044918> . ?var4 <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q24939798> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr". } } ORDER BY ASC( ?var2Label )


Question: Institutions linked to Jean Daunizeau, their locations, and whether he was employed by or educated at them, with images and coordinates.

SELECT DISTINCT ?image ?institution ?institutionLabel ?locationCoordinates ?relationship WHERE { wd:Q33277548 ?propertyUsed ?institution . ?property wikibase:directClaim ?propertyUsed . ?institution ( ( p:P159 / pq:P625 ) | ( wdt:P276 * / wdt:P625 ) ) ?locationCoordinates . OPTIONAL { ?institution wdt:P18 ?image . } ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") . ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "en") . BIND(?propertyLabel AS ?relationship) }

Where are the institutions where Jean Daunizeau worked or studied located, what are their coordinates, and what was his relationship to them?

Show me the institutions associated with Jean Daunizeau, including their English names, geographic coordinates, any available images, and whether he was educated at or employed by them.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q33277548> ?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: Images related to researcher Jean Daunizeau, including those of his research topics, co-authors, and entities confused with him.

SELECT DISTINCT ?image WHERE { { wd:Q33277548 wdt:P18 ?image . } UNION { ?entity wdt:P1889 wd:Q33277548 . ?entity wdt:P18 ?image . FILTER (?entity != wd:Q5) } UNION { ?work wdt:P50 wd:Q33277548 . ?work wdt:P921 ?topic . ?topic wdt:P18 ?image . } UNION { ?work wdt:P50 wd:Q33277548 . ?coauthor wdt:P50 ?work . ?coauthor wdt:P18 ?image . } }

What images are associated with Jean Daunizeau, either directly, through the subjects of his works, his co-authors, or entities he is distinguished from?

Show me all images connected to Jean Daunizeau — his own image, images of the topics he wrote about, images of his co-authors, and images of things people might confuse him with.

SELECT DISTINCT ?var1 WHERE { { <http://www.wikidata.org/entity/Q33277548> <http://www.wikidata.org/prop/direct/P18> ?var1 . } UNION { <http://www.wikidata.org/entity/Q33277548> !( <http://www.wikidata.org/prop/direct/P1889> ) ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q5> ) ) ) . } UNION { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q33277548> . { ?var3 <http://www.wikidata.org/prop/direct/P921> [ <http://www.wikidata.org/prop/direct/P18> ?var1 ] . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P18> ?var1 . } } }


Question: What is the image of Lorraine Day, who has the SNAC ARK ID w65g2s2c?

SELECT ?image WHERE { ?person wdt:P3430 "w65g2s2c" . OPTIONAL { ?person wdt:P18 ?image . } }

Does the person with SNAC ARK ID w65g2s2c (Lorraine Day) have an image on Wikimedia Commons?

Show the Commons image for Lorraine Day, identified by SNAC ARK ID w65g2s2c.

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


Question: Airport with IATA code CBF, its country and coordinates

SELECT ?airport ?airportLabel ?country ?coordinates WHERE { ?airport wdt:P238 "CBF" . ?airport wdt:P17 ?country . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

What is the name, country, and coordinates of the airport with IATA code CBF?

Tell me the location and coordinates of the airport that uses the IATA code CBF.

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


Question: Image of Ann Rutledge with SNAC ARK ID w6sx7v99

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

What is the image associated with Ann Rutledge in Wikidata, given her SNAC ARK ID is w6sx7v99?

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

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


Question: What pairs of topics are commonly associated with Flask in Wikidata articles or books?

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 ?var1 ?var1Label ?var2 ?var2Label WHERE {
  ?item wdt:P921 wd:Q289281 .
  ?item wdt:P921 ?var1 .
  ?item wdt:P921 ?var2 .
  FILTER ( ?var1 != wd:Q289281 ) FILTER ( ?var2 != wd:Q289281 ) FILTER ( ?var1 != ?var2 ) OPTIONAL {
    ?var1 rdfs:label ?var1Label .
    FILTER ( LANG( ?var1Label ) = "en" )
  }
  OPTIONAL {
    ?var2 rdfs:label ?var2Label .
    FILTER ( LANG( ?var2Label ) = "en" )
  }
}

Which other subjects appear alongside Flask in the main subject field of items, and how are they paired?

List all combinations of main topics from resources that have Flask as their primary subject, excluding Flask itself.

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


Question: What organizations is Daniel Rösel affiliated with or employed by, and do they have images on Wikimedia Commons?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?image ?organization ?organizationLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q42887807 ( p:P1416 | p:P108 ) ?statement .
  ?statement ps:P1416 | ps:P108 ?organization .
  ?organization rdfs:label ?organizationLabel .
  FILTER ( LANG( ?organizationLabel ) = "en" ) .
  OPTIONAL {
    ?organization wdt:P18 ?image .
  }
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER ( LANG( ?degreeLabel ) = "en" ) .
  }
}

Can you list Daniel Rösel’s institutional associations (like universities or departments), their English names, and any associated start/end dates or academic degrees?

Show me the organizations Daniel Rösel has been associated with, including their labels in English, and any available images, employment periods, or academic degrees linked to those associations.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q42887807> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q42887807> <http://www.wikidata.org/prop/P108> ?var7 . } { ?var7 <http://www.wikidata.org/prop/statement/P1416> ?var2 . } UNION { ?var7 <http://www.wikidata.org/prop/statement/P108> ?var2 . } ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P512> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Books written by Simon Schama, their types, publication dates, and where they were published.

SELECT
  (MIN(?publicationDate) AS ?earliestDate)
  ?work
  ?workLabel
  (GROUP_CONCAT(DISTINCT ?typeLabel; SEPARATOR=", ") AS ?types)
  (SAMPLE(?pages) AS ?pagesCount)
  ?publishedIn
  ?publishedInLabel
  (GROUP_CONCAT(DISTINCT ?authorLabel; SEPARATOR=", ") AS ?authors)
WHERE {
  ?work wdt:P50 wd:Q472272 .  # authored by Simon Schama

  # Get work label
  OPTIONAL { ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") }

  # Get types of work
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }

  # Get publication date
  OPTIONAL {
    ?work wdt:P577 ?publicationDateRaw .
    BIND(xsd:date(?publicationDateRaw) AS ?publicationDate)
  }

  # Get number of pages
  OPTIONAL { ?work wdt:P1104 ?pages }

  # Get where published
  OPTIONAL {
    ?work wdt:P1433 ?publishedIn .
    ?publishedIn rdfs:label ?publishedInLabel .
    FILTER(LANG(?publishedInLabel) = "en")
  }

  # Get author label (Simon Schama)
  wd:Q472272 rdfs:label ?authorLabel .
  FILTER(LANG(?authorLabel) = "en")
}
GROUP BY ?work ?workLabel ?publishedIn ?publishedInLabel
ORDER BY DESC(?earliestDate)

What are the works authored by Simon Schama, including their publication dates, types, and the publications they appeared in?

List all books and written works by Simon Schama, sorted by latest publication date first, along with their types and author name.

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


Question: Is the main subject of the article "La démonstration de force du social-libéral Emmanuel Macron" a human?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q28944758 wdt:P921 ?person .
  ?person wdt:P31 wd:Q5 .
}

Does the article titled "La démonstration de force du social-libéral Emmanuel Macron" discuss a human being?

Confirm whether the person featured in the article "La démonstration de force du social-libéral Emmanuel Macron" is classified as a human in Wikidata.

ASK WHERE { <http://www.wikidata.org/entity/Q28944758> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: What is the Wikidata item for the movie with IMDb ID tt0473797?

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

Which movie on Wikidata has the IMDb identifier tt0473797?

Find the Wikidata entry for the film identified by tt0473797 on IMDb.

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


Question: Lexemes for product types excluding dresses, with English subclass labels

SELECT DISTINCT ?lexeme ?lexemeLabel ?subclass ?subclassLabel WHERE { ?lexeme wdt:P31 ?subclass . ?subclass wdt:P279 wd:Q2424752 . FILTER (?subclass != wd:Q200539) FILTER (STRSTARTS(STR(?lexeme), "http://www.wikidata.org/entity/L")) ?lexeme rdfs:label ?lexemeLabel . ?subclass rdfs:label ?subclassLabel . FILTER (lang(?subclassLabel) = "en") } LIMIT 100

What are the words in different languages that represent types of products (other than dresses), and what are their English class names?

Show me linguistic forms (lexemes) that refer to product categories like textile or clothing, but not dresses, along with their English class labels.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q2424752> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q200539> ) ) ) . ?var2 <http://www.wikidata.org/prop/direct/P279> ?var3 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P195> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P127> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P217> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P276> ?var4 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var4 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P625> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P176> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var5 . ?var5 ( <http://www.wikidata.org/prop/direct/P276> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P625> ) [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Which Wikidata entities have the Twitter usernames "RLeonard2", "GilPress", or "mikelove"?

SELECT ?person ?twitterUsername ?personLabel WHERE { ?person wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "RLeonard2" "GilPress" "mikelove" } . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who on Wikidata uses the Twitter handle "mikelove"?

Find the people on Wikidata associated with the Twitter usernames "RLeonard2", "GilPress", and "mikelove".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "RLeonard2" ) ( "GilPress" ) ( "mikelove" ) } }


Question: What are the Spanish-language Star Wars films, along with their duration and images?

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 ?film ?filmLabel ?duration ?image WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  OPTIONAL {
    ?film wdt:P18 ?image .
  }
  OPTIONAL {
    ?film wdt:P2047 ?duration .
  }
  FILTER(LANGMATCHES(LANG(?filmLabel) , "es"))
  FILTER(REGEX(STR(?filmLabel) , "Star Wars" , "i"))
}

Can you show me Star Wars movies in Spanish that have a known duration and an image on Wikimedia Commons?

List all films in Spanish with "Star Wars" in the title, including how long they are and their official images.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2047> ?var2 . } FILTER ( ( LANGMATCHES ( LANG ( ?var1Label ) , "es" ) ) ) . FILTER ( ( REGEX ( STR ( ?var1Label ) , "star wars" ) ) ) . }


Question: What are all the categories that an Easter egg belongs to, including its parent classes in the hierarchy?

SELECT DISTINCT ?superclass WHERE { wd:Q163886 wdt:P279* ?superclass . } LIMIT 50

List all the classes that are superclasses of Easter egg, from direct to the most general.

What is the complete classification hierarchy of Easter egg in Wikidata?

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


Question: What are all the categories and subcategories that pysanka belongs to as a subclass?

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

List all the broader classes that include pysanka, including itself and its ancestors in the subclass hierarchy.

What are the superclass relationships of pysanka in the Wikidata ontology?

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


Question: Who is the French person named Maeva?

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

What is the Wikidata item for the French actress named Maeva?

Find the human entity in Wikidata whose French label is 'Maeva'.

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


Question: Which philanthropists have the most Wikipedia language editions, and how many are there?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?person(COUNT(?site) AS ?sitelinkCount) WHERE {
  ?person wdt:P106 wd:Q12362622 .
  ?site schema:about ?person ; schema:isPartOf ?wikipedia .
  FILTER(STRSTARTS(STR(?wikipedia) , "https://"))
}
GROUP BY ?person
ORDER BY DESC(?sitelinkCount)
LIMIT 250

List the top 250 philanthropists ranked by the number of Wikipedia pages about them.

Who are the most internationally recognized philanthropists based on Wikipedia coverage?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q12362622> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 250


Question: What are the factories listed in Wikidata with English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?factory ?label WHERE {
  ?factory wdt:P31 wd:Q83405 .
  ?factory rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'en' )
}
ORDER BY ?label
LIMIT 250

List the names of industrial facilities in English.

Can you show me a list of factories and their English names?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q83405> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 250


Question: What are the 250 most-wiki-linked prisons in the world, ranked by how many Wikipedia articles exist about them?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?prison ( COUNT( ?article ) AS ?sitelinks ) WHERE {
  ?prison wdt:P31 / wdt:P279 * wd:Q40357 .
  ?article schema:about ?prison .
  ?article schema:isPartOf ?wikipediaSite .
  FILTER ( STRSTARTS( STR( ?wikipediaSite ) , "https://" ) )
}
GROUP BY ?prison
ORDER BY DESC ( ?sitelinks )
LIMIT 250

Which prisons have the most Wikipedia pages, and how many are there for each?

Show me the top prisons by Wikipedia presence, including the count of language editions covering them.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q40357> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 250


Question: Image of Augustus

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

What is the image of Augustus, the first Roman emperor?

Can you show me the official Wikimedia Commons image of Augustus, the founder of the Roman Empire?

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


Question: Top 250 ski resorts with the most Wikipedia articles

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?skiResort ( COUNT( ?wikipediaPage ) AS ?sitelinkCount ) WHERE {
  ?skiResort wdt:P31 wd:Q130003 .
  ?wikipediaPage schema:about ?skiResort ; schema:isPartOf ?wikipediaSite .
  FILTER ( STRSTARTS( STR( ?wikipediaSite ) , "https://" ) )
}
GROUP BY ?skiResort
ORDER BY DESC ( ?sitelinkCount )
LIMIT 250

Which ski resorts have the highest number of Wikipedia language versions?

List the 250 ski resorts that are linked to the most Wikipedia pages, ordered by the number of links.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q130003> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 250


Question: Is the software library Apel a human?

ASK WHERE { wd:Q4779325 wdt:P31/wdt:P279* wd:Q5 }

Is Apel classified as a human or any subclass of human?

Check whether Apel, the Emacs library, is a human being.

ASK WHERE { <http://www.wikidata.org/entity/Q4779325> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Is Xfburn a human being?

ASK WHERE { wd:Q2598045 wdt:P31/wdt:P279* wd:Q5 }

Does Xfburn belong to any class that is a subclass of human?

Is Xfburn classified as a person or any type of human?

ASK WHERE { <http://www.wikidata.org/entity/Q2598045> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Images of Ann Preston with SNAC ARK ID w642173c

SELECT ?image WHERE { ?person wdt:P3430 "w642173c" . OPTIONAL { ?person wdt:P18 ?image . } }

What images are available for Ann Preston on Wikimedia Commons, identified by her SNAC ARK ID w642173c?

Show me the Wikimedia Commons images associated with Ann Preston, using her SNAC ARK ID w642173c.

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


Question: What are the 50 film genres starting from the 201st in alphabetical order, listed in English?

SELECT ?var1 ?var1Label WHERE { ?var1 wdt:P31 wd:Q201658 . ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "en") } ORDER BY ASC(?var1) LIMIT 50 OFFSET 200

Can you list English-named film genres from position 201 to 250 in the Wikidata database?

Show me film genres classified in Wikidata that have English labels, ordered alphabetically, skipping the first 200 results.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } BIND ( ( "2017-07-08"^^<http://www.w3.org/2001/XMLSchema#dateTime> - ?var2 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q201658> . ?var1 <http://schema.org/dateModified> ?var2 . FILTER ( ( ( ?var3 < "500"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } ) ) . } ORDER BY ASC( ?var1 ) LIMIT 50 OFFSET 200


Question: What is the English description of the entity in the Australian Women's Register with ID AWE1140b?

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

Can you tell me about the National Pioneer Women's Hall of Fame as described in English on Wikidata?

Which English-language description is associated with the Australian Women's Register ID AWE1140b?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4186> "AWE1140b". 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: Images of domestic cats with their names

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

What are the names and images of individual domestic cats listed on Wikidata?

Show me a list of named domestic cats along with their photos from Wikimedia Commons.

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


Question: Image of the person with SNAC ARK ID w6gq8kjn

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

What is the image associated with Revd. William Swan in Wikidata?

Show me the Wikimedia Commons image for the individual identified by SNAC ARK ID w6gq8kjn.

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


Question: Does Wikidata contain an entity with GND ID 124457401?

Is there a person in Wikidata identified by the German National Library ID 124457401?

Confirm if the GND ID 124457401 is assigned to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "124457401". }


Question: Does Constanze Janda have a VIAF ID of 62481901?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "62481901" .
}

Is there a Wikidata item with the VIAF identifier 62481901?

Confirm if the Virtual International Authority File ID 62481901 is assigned to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "62481901". }


Question: Types of entities that influenced J.K. Rowling

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 ?influencedThingLabel WHERE {
  wd:Q34660(wdt:P737 / wdt:P31) ?influencedThing .
  ?influencedThing rdfs:label ?influencedThingLabel .
  FILTER(LANG(?influencedThingLabel) = "en")
}

What classes do the people who influenced J.K. Rowling belong to?

Show me the categories of individuals who inspired J.K. Rowling.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q34660> ( <http://www.wikidata.org/prop/direct/P737> / <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> "fr". } }


Question: What are all the ancestors of Harry Potter?

SELECT DISTINCT ?ancestor ?ancestorLabel WHERE { wd:Q3244512 (wdt:P22|wdt:P25)+ ?ancestor . ?ancestor rdfs:label ?ancestorLabel . FILTER(LANG(?ancestorLabel) = "en") }

Who are Harry Potter’s parents, grandparents, and other direct lineage relatives?

List all direct ancestors of the fictional character Harry Potter.

SELECT DISTINCT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q3244512> (( <http://www.wikidata.org/prop/direct/P22> | <http://www.wikidata.org/prop/direct/P25> )/( <http://www.wikidata.org/prop/direct/P22> | <http://www.wikidata.org/prop/direct/P25> )/( <http://www.wikidata.org/prop/direct/P22> | <http://www.wikidata.org/prop/direct/P25> )+) ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What types of awards has J.K. Rowling won?

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 ?awardType ?awardTypeLabel WHERE {
  wd:Q34660 wdt:P166 ?award .
  ?award wdt:P31 ?awardType .
  ?awardType rdfs:label ?awardTypeLabel .
  FILTER(LANG(?awardTypeLabel) = "en")
}
ORDER BY ASC(?awardType)
LIMIT 5

What categories do the awards received by J.K. Rowling belong to?

Can you list the kinds of awards J.K. Rowling has received?

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q34660> ( <http://www.wikidata.org/prop/direct/P166> / <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> "fr". } } ORDER BY ASC( ?var1 ) LIMIT 5


Question: Chemical elements with their atomic numbers and symbols

SELECT ?element ?atomicNumber ?symbol WHERE { ?element wdt:P31 wd:Q11344 ; wdt:P246 ?symbol ; wdt:P1086 ?atomicNumber . }

What are the atomic numbers and chemical symbols of all known chemical elements?

List all chemical elements along with their atomic number and element symbol as defined in Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11344> ; <http://www.wikidata.org/prop/direct/P246> ?var3 ; <http://www.wikidata.org/prop/direct/P1086> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: People who appear together in the same Wikimedia Commons image.

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 ?person1 ?person1Label ?person2 ?person2Label ?image WHERE {
  ?person1 wdt:P31 wd:Q5 .
  ?person2 wdt:P31 wd:Q5 .
  ?person1 wdt:P18 ?image .
  ?person2 wdt:P18 ?image .
  FILTER(?person1 != ?person2)
  OPTIONAL {
    ?person1 rdfs:label ?person1Label .
    FILTER(LANG(?person1Label) = "en")
  }
  OPTIONAL {
    ?person2 rdfs:label ?person2Label .
    FILTER(LANG(?person2Label) = "en")
  }
}
LIMIT 5

Which pairs of humans are depicted in the same photograph on Wikimedia Commons?

Show me pairs of distinct people who share the same image on Wikimedia Commons, along with their English names and the image URL.

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


Question: Paintings in Museum Rotterdam with hyphenated inventory numbers

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?painting ?inventoryNumber WHERE {
  ?painting wdt:P31 wd:Q3305213 .
  ?painting wdt:P195 wd:Q2130225 .
  ?painting p:P217 ?stmt .
  ?stmt ps:P217 ?inventoryNumber .
  FILTER ( REGEX( ?inventoryNumber , ".*-.*" ) )
}
LIMIT 4000

Which paintings in Museum Rotterdam have inventory numbers that include a hyphen?

List the paintings from Museum Rotterdam that have inventory numbers formatted with hyphens, such as 'SK-A-115' or '11024-A-B'.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q2130225> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/P217> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P217> ?var3 . ?var2 <http://www.wikidata.org/prop/qualifier/P195> <http://www.wikidata.org/entity/Q2130225> . FILTER ( ( REGEX ( ?var3 , "^.+_.+$" ) ) ) . } LIMIT 4000


Question: Is getmail a type of computer program?

ASK WHERE {
  wd:Q309514 (wdt:P31/wdt:P279*) wd:Q40056 .
  hint:Prior hint:gearing "forwards" .
}

Does getmail belong to a class that is a subclass of computer program?

Confirm whether getmail is categorized under computer program through its class hierarchy.

ASK WHERE { <http://www.wikidata.org/entity/Q309514> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Qnull> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }