Question: Who are the family members and relatives of Wilhelm von Pufendorf?

SELECT DISTINCT ?relative ?relativeLabel WHERE { VALUES ?property { wdt:P22 wdt:P25 wdt:P26 wdt:P3373 wdt:P3448 wdt:P40 wdt:P451 wdt:P1038 } { wd:Q2576006 ?property ?relative } UNION { ?relative ?property wd:Q2576006 } ?relative rdfs:label ?relativeLabel FILTER(LANG(?relativeLabel) = 'en') }

Who are Wilhelm von Pufendorf’s father and other relatives according to Wikidata?

List all known direct family relationships of Wilhelm von Pufendorf, including parents, siblings, spouses, and other relatives.

SELECT DISTINCT ?var1 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/prop/direct/P22> ) ( <http://www.wikidata.org/prop/direct/P25> ) ( <http://www.wikidata.org/prop/direct/P3448> ) ( <http://www.wikidata.org/prop/direct/P26> ) ( <http://www.wikidata.org/prop/direct/P3373> ) ( <http://www.wikidata.org/prop/direct/P1038> ) ( <http://www.wikidata.org/prop/direct/P451> ) ( <http://www.wikidata.org/prop/direct/P40> ) } VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q2576006> ) } { ?var3 ?var2 ?var1 . } UNION { ?var1 ?var2 ?var3 . } UNION { ?var3 ?var2 ?var4 . ?var4 ?var2 ?var1 . } UNION { ?var3 ?var2 ?var4 . ?var1 ?var2 ?var4 . } }


Question: List of cities in Wikidata

SELECT ?city WHERE { ?city wdt:P31 wd:Q515 . } LIMIT 100

What are some examples of cities according to Wikidata?

Show me 100 entities classified as cities in Wikidata.

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


Question: Cities with male heads of government and highest populations

SELECT DISTINCT ?city ?cityLabel ?population ?headOfGovernment ?headOfGovernmentLabel WHERE { ?city wdt:P31/wdt:P279* wd:Q515 . ?city wdt:P1082 ?population . ?city p:P6 ?headStatement . ?headStatement ps:P6 ?headOfGovernment . ?headOfGovernment wdt:P21 wd:Q6581097 . FILTER NOT EXISTS { ?headStatement pq:P582 ?end . } } ORDER BY DESC(?population) LIMIT 20

Which cities have the largest populations and currently have a male head of government?

List the top 20 most populous cities with a current male head of government, along with their population and head of government names.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { BIND ( <http://www.wikidata.org/entity/Q6581097> AS ?var4 ). BIND ( <http://www.wikidata.org/entity/Q515> AS ?var5 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var5 . ?var1 <http://www.wikidata.org/prop/P6> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P6> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P21> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( NOT EXISTS { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } ) ) . } ORDER BY DESC( ?var2 ) LIMIT 20


Question: Football stadiums in the United Kingdom with their locations, coordinates, and capacities.

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 ?stadium ?stadiumLabel ?location ?locationLabel ?capacity WHERE {
  ?stadium wdt:P31 wd:Q483110 .
  ?stadium wdt:P17 wd:Q145 .
  ?stadium wdt:P641 wd:Q2736 .
  ?stadium wdt:P625 ?coordinates .
  BIND(STR(?coordinates) AS ?location)
  .
  ?stadium wdt:P131 ?locationEntity .
  OPTIONAL {
    ?stadium wdt:P1083 ?capacity .
  }
  ?stadium rdfs:label ?stadiumLabel .
  FILTER(LANG(?stadiumLabel) = "en")
  .
  ?locationEntity rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
}
LIMIT 10

What are the names, administrative locations, coordinates, and capacities of football stadiums in the United Kingdom?

List English-language names of UK football stadiums, along with the towns or counties they are in, their geographic coordinates, and seating capacities.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q483110> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q2736> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1083> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P137> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P466> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 50


Question: Who is Edmond Mégy, the French activist?

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 ?person WHERE {
  ?person rdfs:label "Edmond Mégy" @fr .
  ?person wdt:P31 wd:Q5 .
}

What is the Wikidata item for the French person named Edmond Mégy?

Find the human entity in Wikidata with the French label "Edmond Mégy".

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


Question: Humans with names starting with "Mac" in English

SELECT DISTINCT ?human ?label WHERE { ?human wdt:P31 wd:Q5 . ?human rdfs:label ?label . FILTER(LANG(?label) = "en") FILTER(STRSTARTS(LCASE(?label), "mac")) }

Who are the people whose English names start with "Mac"?

List all humans whose English labels begin with "Mac".

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


Question: What are all the taxonomic ancestors of Trichomanes extravagans?

SELECT DISTINCT ?ancestor WHERE { wd:Q17262026 wdt:P171+ ?ancestor .}

Show me the full taxonomic hierarchy above Trichomanes extravagans, from its immediate parent up to the highest clade.

What higher-level biological groups does Trichomanes extravagans belong to?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q17262026> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P171> | <http://www.wikidata.org/prop/direct/P273> | <http://www.wikidata.org/prop/direct/P75> | <http://www.wikidata.org/prop/direct/P76> | <http://www.wikidata.org/prop/direct/P77> | <http://www.wikidata.org/prop/direct/P70> | <http://www.wikidata.org/prop/direct/P71> | <http://www.wikidata.org/prop/direct/P74> | <http://www.wikidata.org/prop/direct/P89> )* ?var1 . }


Question: Categories with main topic pink

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 ps: <http://www.wikidata.org/prop/statement/>
SELECT ?category ?categoryLabel ?statement WHERE {
  ?statement ps:P301 wd:Q429220 .
  ?category p:P301 ?statement .
  ?category rdfs:label ?categoryLabel .
  FILTER(LANG(?categoryLabel) = "en" || LANG(?categoryLabel) = "")
}

What categories have pink as their main topic?

List the categories whose main topic is the color pink.

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


Question: Wikipedia and Wikiquote pages in English, German, and Finnish about the movie with IMDb ID tt0087020.

SELECT ?item ?page WHERE { VALUES ?imdbId { "tt0087020" } ?item wdt:P345 ?imdbId . ?page schema:about ?item . ?page schema:inLanguage ?lang . VALUES ?lang { "en" "de" "fi" } }

What Wikipedia and Wikiquote pages in English, German, and Finnish are about the movie "Calamari Union" (IMDb ID tt0087020)?

Show me the language-specific Wikipedia and Wikiquote links for the movie with IMDb ID tt0087020, limited to English, German, and Finnish.

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


Question: What are the English, German, and Finnish Wikipedia pages for the movie with IMDb ID tt0349691?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipediaPage WHERE {
  ?movie wdt:P345 "tt0349691" .
  ?wikipediaPage schema:about ?movie ; schema:inLanguage ?lang .
  FILTER(?lang IN("en" , "de" , "fi"))
}

Show me the Wikipedia articles in English, German, or Finnish about the film identified by tt0349691 on IMDb.

Which language versions of Wikipedia have articles about the movie "Dog Nail Clipper" (IMDb: tt0349691)?

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


Question: Descendants of Bertie Ahern and their birth dates

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 ?var3 WHERE {
  wd:Q154550 ( wdt:P40 / wdt:P40 * ) ?var1 .
  OPTIONAL {
    ?var1 wdt:P569 ?var2 .
  }
  OPTIONAL {
    ?var1 wdt:P570 ?var3 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}
ORDER BY DESC ( ?var2 )

Who are the children and grandchildren of Bertie Ahern, and when were they born?

List the English names and birth dates of all descendants of Bertie Ahern, sorted from youngest to oldest.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { <http://www.wikidata.org/entity/Q154550> ( <http://www.wikidata.org/prop/direct/P40> / <http://www.wikidata.org/prop/direct/P40> *) ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( FLOOR ( ( ( ?var3 - ?var2 ) /"365"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } } ORDER BY DESC( ?var2 )


Question: Wikipedia articles in English, German, and Finnish about the film with IMDb ID tt0328432.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?wikipediaPage WHERE {
  ?film wdt:P345 "tt0328432" .
  ?wikipediaPage schema:about ?film .
  VALUES ?lang {
    "en" "de" "fi"
  }
  ?wikipediaPage schema:inLanguage ?lang .
}

What are the English, German, and Finnish Wikipedia pages for the movie with IMDb ID tt0328432?

Show me the Wikipedia links in English, German, and Finnish for the film identified by tt0328432 on IMDb.

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


Question: Properties used to describe necklaces with English labels and descriptions

SELECT ?property ?propertyLabel ?propertyDescription WHERE { wd:Q189299 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyEntity) . ?propertyEntity rdfs:label ?propertyLabel . ?propertyEntity schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

What properties are associated with the item "necklace" in Wikidata, and what are their English labels and descriptions?

List the English labels and descriptions of all Wikidata properties that have necklace as their object.

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


Question: Wikipedia articles in English, German, or French about the movie with IMDb ID tt0080489.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipediaPage WHERE {
  ?movie wdt:P345 "tt0080489" .
  ?wikipediaPage schema:about ?movie ; schema:inLanguage ?lang .
  VALUES ?lang {
    "en" "de" "fr"
  }
}

What are the English, German, and French Wikipedia pages for the movie La Cage aux Folles II?

Show me the Wikipedia links in English, German, and French for the film identified by IMDb ID tt0080489.

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


Question: Schools in Berlin with their coordinates

PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?school ?location WHERE {
  ?school(wdt:P31 / wdt:P279 *) wd:Q3914 .
  ?school wdt:P625 ?location .
  BIND(geof:latitude(?location) AS ?lat)
  BIND(geof:longitude(?location) AS ?lon)
  FILTER(?lon >= 13.085 && ?lon <= 13.765 && ?lat >= 52.338 && ?lat <= 52.675)
}

Which schools are located within the geographic boundaries of Berlin?

Show me all schools in Berlin along with their geographic locations.

SELECT * 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> "string1"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "string2"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3914> . }


Question: Image of William Morton Fullerton with SNAC ARK ID w65h81tr

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

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

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

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


Question: Librarians born in Germany with birthplace coordinates and birth year

SELECT ?person ?personLabel ?birthPlace ?birthPlaceLabel ?coordinates ?birthYear WHERE { ?person wdt:P106 wd:Q36180 . ?person wdt:P19 ?birthPlace . ?birthPlace wdt:P17 wd:Q183 . ?birthPlace wdt:P625 ?coordinates . ?person rdfs:label ?personLabel . ?birthPlace rdfs:label ?birthPlaceLabel . OPTIONAL { ?person wdt:P569 ?birthDate . } BIND(YEAR(?birthDate) AS ?birthYear) FILTER(LANG(?personLabel) = "en") FILTER(LANG(?birthPlaceLabel) = "en") }

Who are the librarians born in Germany, and where and when were they born?

List librarians from Germany, including their birthplace, geographic coordinates, and year of birth.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q7075> . ?var2 <http://www.wikidata.org/prop/direct/P19> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P569> ?var6 . } BIND ( YEAR ( ?var6 ) AS ?var5 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: List of fictional magician characters in fantasy fiction.

SELECT ?magician WHERE { ?magician wdt:P31 wd:Q148401 .}

Who are the fictional magicians in fantasy stories?

Show me all fictional magician characters from books, games, or movies.

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


Question: Is there a person in Wikidata with the VIAF ID 247629269?

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

Does the Virtual International Authority File identifier 247629269 correspond to any entity in Wikidata?

Can you find any Wikidata item linked to the VIAF ID 247629269?

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


Question: Countries with articles on the Arabic Wikipedia.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?country ?arabicWikipediaPage WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?arabicWikipediaPage schema:about ?country .
  ?arabicWikipediaPage schema:isPartOf <https://ar.wikipedia.org/> .
}

Which countries have corresponding Wikipedia pages in Arabic, and what are the URLs of those pages?

List all countries and their Arabic Wikipedia article links.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/isPartOf> <https://ar.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar". } }


Question: Superclasses of conclusion up to three levels in Wikidata, with labels and direct superclasses.

SELECT ?subclass ?label ?directSuperclass WHERE { { wd:Q20665666 wdt:P279 ?subclass . } UNION { wd:Q20665666 wdt:P279 ?level1 . ?level1 wdt:P279 ?subclass . } UNION { wd:Q20665666 wdt:P279 ?level1 . ?level1 wdt:P279 ?level2 . ?level2 wdt:P279 ?subclass . } OPTIONAL { ?subclass rdfs:label ?label . FILTER(LANG(?label) = "en") } OPTIONAL { ?subclass wdt:P279 ?directSuperclass . } }

What are the immediate and higher-level categories above "conclusion" in the Wikidata ontology, up to three levels deep, and what are their English labels and direct parents?

Show me all the classes that "conclusion" belongs to, going up three levels in the subclass hierarchy, along with their English names and the class each one is directly a subclass of.

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


Question: What property is used in the statement about frataxin with ID s:Q409999-7CCF5B7B-4F99-4597-8509-487C19BF3555?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?property WHERE {
  wd:Q409999 ?property s:Q409999-7CCF5B7B-4F99-4597-8509-487C19BF3555 .
}

Which property links frataxin to the statement s:Q409999-7CCF5B7B-4F99-4597-8509-487C19BF3555?

Show me the property used in the statement about the protein frataxin identified by s:Q409999-7CCF5B7B-4F99-4597-8509-487C19BF3555.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q409999-7CCF5B7B-4F99-4597-8509-487C19BF3555> . }


Question: What properties and values are associated with the statement about Albert Einstein’s place of birth?

PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?property ?value WHERE {
  s:q937-B3E7F30F-C43D-435D-9EA3-266983130FB1 ?property ?value .
}

Show all the details of the claim that Albert Einstein was born in Ulm, including qualifiers and sources.

Retrieve all triples linked to the statement node for Albert Einstein’s birthplace.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q409999-B42C7868-47E0-4644-A369-96E59DA222F6> ?var1 ?var2 . }


Question: Which properties in Dutch describe relationships involving carrots?

SELECT ?propertyItem ?propertyLabel ?propertyDescription WHERE { ?item ?prop wd:Q81 . FILTER(STRSTARTS(STR(?prop), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?prop), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . ?propertyItem schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "nl") FILTER(LANG(?propertyDescription) = "nl") } LIMIT 100

What are the Dutch labels and descriptions of properties that are used with carrots in Wikidata?

Show me the Dutch names and descriptions of all properties that connect items to carrots.

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


Question: What are all the details (including rank, source, and type) of the Reactome ID statement for Influenza Infection?

SELECT ?property ?value WHERE { wd:Q45316642 p:P3937 ?statement . ?statement ?property ?value . }

Show me the metadata for the claim that Influenza Infection has Reactome ID R-HSA-168255.

How is the Reactome ID for Influenza Infection recorded in Wikidata, including its source and rank?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q45316642-A6125559-FA6B-43F2-9514-56D8CB335682> ?var1 ?var2 . }


Question: What biological processes include the trimerization of HA as a component?

SELECT ?process ?property WHERE { ?process ?property wd:Q50289507 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) }

Which molecular entities are part of the trimerization of HA?

How is the trimerization of HA related to other biological processes and components?

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


Question: What is the English label, description, instance of, part of, MeSH ID, MeSH tree code, and Gene Ontology ID for viral genome packaging?

SELECT ?itemLabel ?itemDescription ?instanceOf ?partOf ?meshId ?meshTreeCode ?goId WHERE { wd:Q22279853 schema:name ?itemLabel . FILTER(LANG(?itemLabel) = "en") wd:Q22279853 schema:description ?itemDescription . FILTER(LANG(?itemDescription) = "en") wd:Q22279853 wdt:P31 ?instanceOf . wd:Q22279853 wdt:P361 ?partOf . wd:Q22279853 wdt:P486 ?meshId . wd:Q22279853 wdt:P672 ?meshTreeCode . wd:Q22279853 wdt:P686 ?goId .}

What are the key biological classifications and identifiers for the process of viral genome packaging?

Please provide the English name, definition, and associated identifiers (MeSH, GO, etc.) for viral genome packaging.

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


Question: What biological components are associated with the RNP complex involved in influenza genome packaging?

SELECT ?component ?relationship WHERE { ?component ?relationship wd:Q50289520 .}

Which properties link the RNP association (Reactome R-HSA-168895) to other entities in Wikidata?

Show all entities that have a relationship with the RNP association, including both direct connections and statement-level assertions.

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


Question: Which Wikidata entities have the Twitter handles @atreloar, @freya_eu, @MokraneMA, or @theAGU?

SELECT ?entity ?twitterHandle WHERE { ?entity wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "atreloar" "freya_eu" "MokraneMA" "theAGU" } }

Who are the people or organizations on Wikidata that use the Twitter usernames atreloar, freya_eu, MokraneMA, or theAGU?

List the Wikidata items corresponding to the Twitter accounts atreloar, freya_eu, MokraneMA, and theAGU.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "chutneyboy" ) ( "resdatall" ) ( "string2" ) ( "string3" ) ( "freya_eu" ) ( "string4" ) ( "CODATANews" ) ( "ICSU_WDS" ) ( "sjDCC" ) ( "string5" ) ( "bradosav1" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "RDA_Europe" ) ( "string9" ) ( "string10" ) ( "MokraneMA" ) ( "string11" ) ( "atreloar" ) ( "string12" ) ( "jrwyngaard" ) ( "theAGU" ) ( "string13" ) ( "DANSKNAW" ) ( "string14" ) } }


Question: Platform of New Super Mario Bros. Wii

SELECT ?platform ?platformLabel WHERE { wd:Q170410 wdt:P400 ?platform . ?platform rdfs:label ?platformLabel . FILTER (LANG(?platformLabel) = "en") }

On which platform was New Super Mario Bros. Wii released?

What is the English name of the gaming console that New Super Mario Bros. Wii was released on?

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


Question: What is the publication date of the academic article titled "Views"?

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 ?item ?itemLabel ?pubDate WHERE {
  VALUES ?item {
    wd:Q29397724
  }
  OPTIONAL {
    ?item wdt:P577 ?pubDate .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
}

Show me the English label and publication date of the Wikidata item Q29397724.

Can you tell me when the article "Views" was published?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var4Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q29397724> ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P175> ?var4 . } } LIMIT 1


Question: Who is the person with IMDb ID nm0592834?

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

What is the name of the actor identified by the IMDb ID nm0592834?

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


Question: Is there a Wikidata item with VIAF ID 3250756?

Does the Virtual International Authority File identifier 3250756 exist in Wikidata?

Check if the VIAF ID 3250756 is assigned to any entity in Wikidata.

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


Question: Is Alfred Henry Vickers a type of volcanic landform?

Does the person Alfred Henry Vickers belong to any class that is a subclass of volcanic landform?

Is Alfred Henry Vickers classified as a volcanic landform or any of its subclasses?

ASK WHERE { <http://www.wikidata.org/entity/Q21543087> ( <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". }


Question: Companies that produce fashion

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 ps: <http://www.wikidata.org/prop/statement/>
SELECT ?company ?companyLabel WHERE {
  ?company p:P1056 ?statement .
  ?statement ps:P1056 wd:Q12684 .
  ?company rdfs:label ?companyLabel .
  FILTER(LANG(?companyLabel) = "en")
}

Which companies produce fashion as a product?

List the companies whose products include fashion, based on Wikidata.

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


Question: Rivers that are instances of the river class in Wikidata.

SELECT ?river ?riverLabel WHERE { ?river wdt:P31 wd:Q4022 . ?river rdfs:label ?riverLabel . FILTER(LANG(?riverLabel) = "en") } LIMIT 10

What are some examples of rivers in Wikidata?

List the names of 10 rivers in English from Wikidata.

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


Question: Music singles titled "Joanne" by Lady Gaga, their genre, and release date.

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 ?single ?singleLabel ?performerLabel ?genre ?genreLabel ?publicationDate WHERE {
  ?single wdt:P31 wd:Q134556 .
  ?single rdfs:label ?singleLabel .
  FILTER ( REGEX( ?singleLabel , "Joanne" , "i" ) ) FILTER ( LANG( ?singleLabel ) = "en" ) ?single wdt:P175 wd:Q19848 .
  wd:Q19848 rdfs:label ?performerLabel .
  FILTER ( LANG( ?performerLabel ) = "en" ) OPTIONAL {
    ?single wdt:P136 ?genre .
    ?genre rdfs:label ?genreLabel .
    FILTER ( LANG( ?genreLabel ) = "en" )
  }
  OPTIONAL {
    ?single wdt:P577 ?publicationDate .
  }
}

What are the music singles named "Joanne" released by Lady Gaga, and what are their genres and release dates?

Show me the English-titled music singles called "Joanne" performed by Lady Gaga, including their genre and when they were released.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . } FILTER ( ( REGEX ( ?var1Label , "Joanne", "i" ) ) ) . FILTER ( ( REGEX ( ?var2Label , "Lady Gaga", "i" ) ) ) . } LIMIT 10


Question: Subclasses of sport that have child subclasses

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

Which sports categories have further subcategories?

List all types of sport that are divided into more specific types.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q349> . [] <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?var1 . }


Question: What are the video games and their theme music songs?

SELECT ?game ?gameLabel ?themeMusic ?themeMusicLabel WHERE { ?game wdt:P31 wd:Q7889 . ?game wdt:P942 ?themeMusic . ?game rdfs:label ?gameLabel . ?themeMusic rdfs:label ?themeMusicLabel . }

List video games along with their theme songs.

Show me the names of video games and the titles of their theme music.

SELECT ?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/P31> <http://www.wikidata.org/entity/Q7889> . ?var1 <http://www.wikidata.org/prop/direct/P942> ?var2 . }


Question: What class does the equestrian statue of Joan of Arc belong to?

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

What is the superclass of the equestrian statue of Joan of Arc?

Show me the category that the equestrian statue of Joan of Arc is an instance of.

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


Question: What are all the Wikimedia language codes used by Wikipedia editions?

SELECT DISTINCT ?languageCode WHERE { ?wikipediaEdition wdt:P31 wd:Q10876391 ; wdt:P407/wdt:P424 ?languageCode . } ORDER BY ASC(?languageCode)

Can you list the ISO 639 language codes assigned to each Wikipedia language version, sorted alphabetically?

Show me the codes that identify the languages of Wikipedia projects, like 'en' for English or 'de' for German.

SELECT DISTINCT ?var1 WHERE { [] <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q10876391> ; <http://www.wikidata.org/prop/direct/P407> [ <http://www.wikidata.org/prop/direct/P424> ?var1 ] . MINUS { BIND ( LANG ( ?var2 ) AS ?var1 ). <http://www.wikidata.org/entity/P668> <http://schema.org/description> ?var2 . } } ORDER BY ASC( ?var1 )


Question: Chemical compounds with PubChem CID and their English names

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 ?compound ?compoundLabel WHERE {
  ?compound wdt:P31 wd:Q11173 ; wdt:P662 ?cid .
  ?compound rdfs:label ?compoundLabel .
  FILTER(LANG(?compoundLabel) = "en")
}
LIMIT 10

What are some chemical compounds that have a PubChem CID, and what are their English labels?

List English names of chemical compounds that are assigned a PubChem CID.

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


Question: What is the English or German Wikipedia page for the movie with IMDb ID tt1996200?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipedia_page ?imdb_id WHERE {
  ?movie wdt:P345 ?imdb_id .
  ?wikipedia_page schema:about ?movie .
  {
    ?wikipedia_page schema:inLanguage "en" .
  } UNION {
    ?wikipedia_page schema:inLanguage "de" .
  }
  FILTER(?imdb_id = "tt1996200")
}

Show me the Wikipedia articles in English or German about the film identified by IMDb ID tt1996200.

Which Wikipedia pages in English or German are about the movie with the IMDb identifier tt1996200?

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


Question: What are the Wikipedia pages in English, German, or Danish about the movie with IMDb ID tt0013059?

SELECT ?movie ?wiki_page WHERE { VALUES ?imdb_id { "tt0013059" } ?movie wdt:P345 ?imdb_id . ?wiki_page schema:about ?movie . VALUES ?lang { "en" "de" "da" } ?wiki_page schema:inLanguage ?lang . }

Is there a Wikipedia article in Danish, German, or English for the film "Der var engang" (1922)?

Which language versions of Wikipedia have an article about the 1922 film identified by IMDb ID tt0013059?

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


Question: What is the English or German Wikipedia page for the movie with IMDb ID tt0139024?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?wikipediaPage ?imdbId WHERE {
  ?movie wdt:P345 ?imdbId .
  ?wikipediaPage schema:about ?movie .
  {
    ?wikipediaPage schema:inLanguage "en" .
  } UNION {
    ?wikipediaPage schema:inLanguage "de" .
  }
  FILTER(?imdbId = "tt0139024")
}

Which Wikipedia pages in English or German are about the film identified by IMDb ID tt0139024?

Show me the Wikipedia page (in English or German) and the IMDb ID for the movie tt0139024.

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


Question: Which Wikidata items have the Twitter usernames 'CityOfBoston', 'melroserugby', or 'deventergem'?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "CityOfBoston" "melroserugby" "deventergem" } }

What entities on Wikidata are associated with the Twitter accounts CityOfBoston, melroserugby, and deventergem?

Show me the Wikidata items linked to the Twitter handles CityOfBoston, melroserugby, and deventergem.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "ChriBecker" ) ( "string1" ) ( "iphonexusa" ) ( "UNICEFData" ) ( "string2" ) ( "t4gBristol" ) ( "string3" ) ( "MCCgov" ) ( "_datatree" ) ( "string4" ) ( "ONSdigital" ) ( "string5" ) ( "spruefer" ) ( "string6" ) } }


Question: What are the English-named organizations in Wikidata, along with their country, administrative location, founding date, legal form, headquarters, and official website?

SELECT ?organization ?organizationLabel ?countryLabel ?adminTerritoryLabel ?inception ?legalFormLabel ?headquartersLabel ?website WHERE {
  ?organization (wdt:P31/wdt:P279*) wd:Q43229 .
  ?organization rdfs:label ?organizationLabel .
  OPTIONAL { ?organization wdt:P17 ?country . }
  OPTIONAL { ?organization wdt:P131 ?adminTerritory . }
  OPTIONAL { ?organization wdt:P571 ?inception . }
  OPTIONAL { ?organization wdt:P1454 ?legalForm . }
  OPTIONAL { ?organization wdt:P159 ?headquarters . }
  OPTIONAL { ?organization wdt:P856 ?website . }
  FILTER(LANG(?organizationLabel) = "en")
}
ORDER BY DESC(?organization)
LIMIT 100000

List organizations (including schools and journals) with their English labels and optional details like where they’re located, when they were founded, and their official websites.

Show me up to 100,000 organizations from Wikidata that have English labels, and include any available information about their country, administrative region, inception date, legal structure, headquarters, and website.

SELECT ?var1 ?var2Label ?var3Label ?var4Label ?var5Label ?var6 ?var7Label ?var8Label ?var9 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q45103187> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1454> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P159> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY DESC( ?var1 ) LIMIT 100000


Question: List English-named businesses in Austria with their founding dates and official websites.

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 ?business ?businessLabel ?inception ?website WHERE {
  ?business ( wdt:P31 / wdt:P279 * ) wd:Q4830453 .
  ?business wdt:P17 wd:Q40 .
  ?business rdfs:label ?businessLabel .
  FILTER ( LANG( ?businessLabel ) = "en" ) OPTIONAL {
    ?business wdt:P571 ?inception .
  }
  OPTIONAL {
    ?business wdt:P856 ?website .
  }
}
LIMIT 100000

Which businesses in Austria have official websites and when were they founded?

Show me the names, founding years, and websites of businesses located in Austria, using English labels.

SELECT ?var1 ?var2Label ?var3Label ?var4Label ?var5Label ?var6 ?var7Label ?var8Label ?var9 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q40> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1454> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P159> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } LIMIT 100000


Question: Who are the French mathematicians from history, and what are their names in French?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?nativeName WHERE {
  ?person wdt:P106 wd:Q170790 .
  ?person wdt:P27 wd:Q70972 .
  OPTIONAL {
    ?person wdt:P1559 ?nativeName .
  }
}
LIMIT 100

List French mathematicians with their native French names.

Show me the names of mathematicians who were citizens of the Kingdom of France, including their names in French if available.

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


Question: Music releases by Dum Dum Girls with "Dum Dum" in the title, including genre and release date.

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 ?release ?releaseLabel ?performer ?performerLabel ?genre ?genreLabel ?publicationDate WHERE {
  VALUES ?releaseType {
    wd:Q134556 wd:Q482994 wd:Q169930
  }
  ?release wdt:P31 ?releaseType .
  ?release rdfs:label ?releaseLabel .
  ?release wdt:P175 wd:Q2982240 .
  OPTIONAL {
    ?release wdt:P136 ?genre .
    ?genre rdfs:label ?genreLabel .
  }
  OPTIONAL {
    ?release wdt:P577 ?publicationDate .
  }
  FILTER ( REGEX( ?releaseLabel , "Dum Dum" , "i" ) )
}
LIMIT 10

What are the music singles, albums, or EPs by Dum Dum Girls that have "Dum Dum" in their title, and what are their genres and release dates?

Show me all music releases by Dum Dum Girls that include "Dum Dum" in the name, along with their genres and when they were released.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . } FILTER ( ( REGEX ( ?var1Label , "Dum Dum", "i" ) ) ) . FILTER ( ( REGEX ( ?var2Label , "string1", "i" ) ) ) . } LIMIT 10


Question: Films and TV shows in English with specified language

SELECT DISTINCT ?work (SAMPLE(?workLabel) AS ?label) WHERE { { ?work wdt:P31 wd:Q11424 . } UNION { ?work wdt:P31 wd:Q5398426 . } . ?work wdt:P407 ?language . ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en") } GROUP BY ?work ORDER BY ?label LIMIT 5000

What are some English-language films and TV shows listed in Wikidata?

List up to 5000 English-language films and TV shows that have their language specified in Wikidata.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P364> [] ; <http://www.wikidata.org/prop/direct/P407> [] . } ORDER BY ASC( ?var1 ) LIMIT 5000


Question: Does Wikidata contain an entry for the GND ID 1063073634?

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

Check if the GND ID 1063073634 is registered in Wikidata.

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


Question: What are the genres, release date, and performer of Michael Jackson's album "Dangerous"?

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 ?album ?albumLabel ?genre ?genreLabel ?releaseDate ?performer ?performerLabel WHERE {
  VALUES(?album) {(wd:Q44104)
  }
  OPTIONAL {
    ?album wdt:P136 ?genre .
  }
  OPTIONAL {
    ?album wdt:P577 ?releaseDate .
  }
  OPTIONAL {
    ?album wdt:P175 ?performer .
  }
  OPTIONAL {
    ?album rdfs:label ?albumLabel .
    FILTER(LANG(?albumLabel) = "en")
  }
  OPTIONAL {
    ?genre rdfs:label ?genreLabel .
    FILTER(LANG(?genreLabel) = "en")
  }
  OPTIONAL {
    ?performer rdfs:label ?performerLabel .
    FILTER(LANG(?performerLabel) = "en")
  }
}

When was Michael Jackson's album "Dangerous" released, and what music genres and artist are associated with it?

Can you tell me the release date, performer, and all genres of the album "Dangerous"?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var4Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q44104> ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P175> ?var4 . } } LIMIT 1


Question: What is the name of the cat owned by George and Martha Washington?

SELECT ?cat ?catLabel WHERE { BIND( wd:Q48895080 AS ?cat ) . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") }

Show the English label for the Wikidata item Hamilton (Q48895080).

What is the official name of the domestic cat that lived with the first U.S. president?

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


Question: Administrative divisions in Israel

SELECT ?entity ?entityLabel WHERE { ?entity (wdt:P31*/wdt:P279*) wd:Q56061 . ?entity wdt:P131* wd:Q801 . ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") }

What cities, districts, and other administrative areas are located in Israel?

List all administrative territorial entities in Israel, including their names.

SELECT ?var1 ?var1Label 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/P131> * <http://www.wikidata.org/entity/Q801> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What property is used to assign the given name "Padmashree" in Wikidata?

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

Which property in Wikidata is used to state that someone has the given name "Padmashree"?

Show me the property that links individuals to the given name "Padmashree", along with how many times it's used.

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


Question: Who is the person with IMDb ID nm4238309?

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

What is the name of the actor with IMDb identifier nm4238309?

Tell me the English name of the human associated with the IMDb ID nm4238309.

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


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

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

Is there a person or entity in Wikidata identified by the VIAF number 69517156?

Please confirm if the Virtual International Authority File identifier 69517156 is registered in Wikidata.

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


Question: Who is the person with the VIAF ID 10486078?

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

What is the English label of the Wikidata item that has the VIAF identifier 10486078?

Is there a person in Wikidata associated with the VIAF ID 10486078, and what is their name?

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


Question: Image of Anthony Hecht with SNAC ARK ID w6gm8nc6

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

What is the image associated with Anthony Hecht in Wikidata, given his SNAC ARK ID is w6gm8nc6?

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

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


Question: What property is used to link recipients to the League Championship Series MVP Award, and how many recipients are there?

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

How many players have received the League Championship Series MVP Award, and which Wikidata property connects them to the award?

Which award assignment property is most common for the League Championship Series Most Valuable Player Award, and how many times is it used?

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


Question: What is the English description of the Open Library author with ID OL5704202A?

SELECT ?author ?authorLabel ?description WHERE { ?author wdt:P648 "OL5704202A" . OPTIONAL { ?author schema:description ?description . FILTER (LANG(?description) = "en") } ?author rdfs:label ?authorLabel . FILTER (LANG(?authorLabel) = "en") }

Can you find the name and English description of the author in Wikidata who has the Open Library ID OL5704202A?

Show me the English label and description of the person in Wikidata linked to the Open Library ID OL5704202A.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL5704203A". 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: Dutch labels for the types of the Eighty Years' War

SELECT ?type ?label WHERE { wd:Q164432 wdt:P31 ?type . ?type rdfs:label ?label . FILTER (LANG(?label) = "nl") } LIMIT 50

What are the Dutch terms for the categories that the Eighty Years' War belongs to?

Show me the Dutch-language names of the classes that the Eighty Years' War is an instance of.

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


Question: Philologists who are human

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

Who are the people whose occupation is philologist?

List the names of all human philologists.

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


Question: Is there a Wikidata item with VIAF ID 17703190?

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

Does the Virtual International Authority File identifier 17703190 exist in Wikidata?

Check if the VIAF ID 17703190 is assigned to any entity in Wikidata.

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


Question: Works with main subject computer

SELECT ?work WHERE { ?work p:P921 ?statement . ?statement ps:P921 wd:Q68 . } LIMIT 100

What works have 'computer' as their main subject?

Show me a list of all works that are about computers.

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


Question: Humans with the surname Vigoureux

SELECT DISTINCT ?person WHERE { ?person wdt:P734 wd:Q30439038 . ?person wdt:P31 wd:Q5 . }

Who are the people with the last name Vigoureux?

List all humans whose family name is Vigoureux.

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


Question: Find English-language scholarly articles with "zikv" in the title that are not primarily about the Zika virus.

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

Show me academic papers mentioning ZIKV in their title but not focused on the Zika virus itself.

What scholarly articles have "ZIKV" in their English title but do not have Zika virus as their main subject?

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


Question: Who are the people with "Smet" in their French birth name?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P1477 ?birthName .
  FILTER(LANG(?birthName) = "fr")
  .
  FILTER(contains(LCASE(?birthName) , "smet"))
  .
}

List all humans whose birth name in French includes the substring "Smet".

Find individuals of French origin whose given name contains "Smet".

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


Question: What is the English label and description of the Open Library author with ID OL1858663A?

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

Who is the person identified by the Open Library ID OL1858663A, and what is their English description?

Show me the name and professional description in English of the author with Open Library ID OL1858663A.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL1858663A". 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 description of the Open Library author with ID OL122693A?

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

Who is the person in Wikidata with Open Library ID OL122693A, and what is their English description?

Can you find the English name and description of the author identified by OL122693A in Open Library?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL1226930A". 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: Is the Raspberry Pi 1 Model B+ a human?

Does the Raspberry Pi 1 Model B+ belong to the category of humans through its type or subclass relationships?

Confirm whether the Raspberry Pi 1 Model B+ is considered a human in Wikidata’s classification system.

ASK WHERE { <http://www.wikidata.org/entity/Q48920099> ( <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 English label and description of the author with Open Library ID OL118077A?

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

Who is the person identified by the Open Library ID OL118077A, and what is their English description?

Show the name and brief bio in English of the author whose Open Library ID is OL118077A.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL4272533A". 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: Is there a Wikidata item with VIAF ID 20280896?

Does the Virtual International Authority File identifier 20280896 exist in Wikidata?

Check if the VIAF ID 20280896 is assigned to any entity in Wikidata.

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


Question: Airports in the United States with elevation and official website

SELECT ?airport ?airportLabel ?elevation ?website WHERE { ?airport (wdt:P31/wdt:P279*) wd:Q1248784 . ?airport wdt:P17 wd:Q30 . OPTIONAL { ?airport wdt:P2044 ?elevation . } OPTIONAL { ?airport wdt:P856 ?website . } ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") } ORDER BY ?airportLabel LIMIT 10

What are the names, elevations, and official websites of airports in the United States?

List English-named airports in the United States along with their elevation above sea level and official website, if available.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5 ?var6 ?var7Label ?var8Label ?var9 ?var10 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q1248784> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q30> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1619> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P84> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P149> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2044> ?var9 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var11Label . FILTER ( ( ( LANG ( ?var11Label ) = "en" ) ) ) . } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( STR ( ?var12 ) , ( STRLEN ( "string1" ) +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) ) LIMIT 100000


Question: What are the types of Wikimedia lists?

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

What are the subclasses of "Wikimedia list" on Wikidata?

List all the specific kinds of lists used on Wikimedia projects, such as lists of elections or aviation accidents.

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


Question: What are the English, German, and Polish Wikipedia and Wikiquote pages about the movie with IMDb ID tt0088009?

SELECT ?movie ?page WHERE { ?movie wdt:P345 "tt0088009" . ?page schema:about ?movie . ?page schema:inLanguage ?lang . FILTER(?lang IN ("en", "de", "pl")) FILTER(REGEX(STR(?page), "https://[a-z]{2}\\.wikipedia\\.org/|https://[a-z]{2}\\.wikiquote\\.org/"))}

Show me the language-specific Wikipedia and Wikiquote articles for the film "A Year of the Quiet Sun" in English, German, and Polish.

Which language versions of Wikipedia and Wikiquote have articles about the movie identified by IMDb ID tt0088009?

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


Question: Is Bernhard I, Prince of Anhalt-Bernburg a descendant of Albert the Bear?

SELECT ?var1 WHERE { wd:Q156041 wdt:P40+ ?var1 . FILTER (?var1 = wd:Q76096) }

Descendants of Albert the Bear: is Bernhard I one of them?

Show me if Bernhard I, Prince of Anhalt-Bernburg is a descendant of Albert the Bear.

SELECT * WHERE { <http://www.wikidata.org/entity/Q156041> ( <http://www.wikidata.org/prop/direct/P40> / <http://www.wikidata.org/prop/direct/P40> *) ?var1 . FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q76096> ) ) ) . }


Question: What properties describe Julia Margaret Cameron in Wikidata?

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

Which properties are used to describe the British photographer Julia Margaret Cameron, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties used in statements about Julia Margaret Cameron.

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


Question: Wikimedia categories without Hebrew labels but with Hebrew-labeled main topics

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 ?category ?topicLabel WHERE {
  ?category wdt:P31 wd:Q4167836 ; wdt:P301 ?topic .
  FILTER NOT EXISTS {
    ?category rdfs:label ?categoryLabel .
    FILTER(LANG(?categoryLabel) = "he")
  }
  ?topic rdfs:label ?topicLabel .
  FILTER(LANG(?topicLabel) = "he")
}
LIMIT 1000

Which Wikimedia categories are not labeled in Hebrew, even though their main topic has a Hebrew label?

Show me categories on Wikipedia that are missing Hebrew labels, but whose main article is labeled in Hebrew.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> ; <http://www.wikidata.org/prop/direct/P301> ?var3 . FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "he" ) ) ) . } ) ) . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "he" ) ) ) . } LIMIT 1000


Question: Songkick venues that are not the number 3, with their types and English labels.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?venue ?venueLabel ?type ?typeLabel WHERE {
  ?venue wdt:P3977 [] . MINUS {
    ?venue wdt:P31 wd:Q201 .
  }
  ?venue wdt:P31 ?type .
  ?venue rdfs:label ?venueLabel .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?venueLabel) = 'en')
  .
  FILTER(LANG(?typeLabel) = 'en')
  .
}

What are the venues on Songkick that are not the number 3, and what types of places are they?

List all Songkick venues (excluding the number 3) along with their English names and classifications.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3977> [] . MINUS { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q201> ) ( <http://www.wikidata.org/entity/Q3624078> ) ( <http://www.wikidata.org/entity/Q811430> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . } ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What is the English description of the Open Library author with ID OL1113861A?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P648 "OL1113861A" . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Who is the person in Wikidata associated with the Open Library ID OL1113861A, and what is their English description?

Find the Wikidata item for the author with Open Library ID OL1113861A and show its English description if available.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL1113866A". 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: Open Library ID OL76120A, English label and description

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

Who is the author with Open Library ID OL76120A, and what is their English description?

Show me the name and English description of the author identified by the Open Library ID OL76120A.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL4283806A". 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: Is Victor de Laveleye a type of software?

Does Victor de Laveleye belong to the category of software through any instance-of or subclass-of relationship?

Confirm whether Victor de Laveleye is classified as software or any of its superclasses.

ASK WHERE { <http://www.wikidata.org/entity/Q2353930> ( <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 is the English label and description of the Open Library author with ID OL76120A?

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

Can you find the English description and name of the author in Wikidata who has the Open Library ID OL76120A?

Show me the English-language details for the book author identified by OL76120A in Open Library.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P648> "OL208047A". 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 film has the IMDb ID tt0803883?

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

Which Wikidata item corresponds to the IMDb identifier tt0803883?

Find the movie in Wikidata that is identified by the IMDb ID tt0803883.

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


Question: Wikipedia pages and other items about yaws

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?property WHERE {
  ?item ?property wd:Q76973 .
}

Which Wikipedia articles and media items discuss yaws?

List all resources that have yaws as their main topic or subject.

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


Question: Medical condition with ICD-10 code M19

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

What diseases are associated with the ICD-10 code M19?

List the medical conditions that use the ICD-10 code M19.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/q62736-78094A88-72FB-405E-8C3B-7B5227D3B3E7> ?var1 ?var2 . }


Question: Which news organizations have the Twitter handles '8NEWS', 'dallasnews', and 'PewStates'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?organization ?twitterHandle WHERE {
  ?organization wdt:P2002 ?twitterHandle .
  VALUES ?twitterHandle {
    "8NEWS" "dallasnews" "PewStates"
  }
}

What are the organizations on Wikidata that use '8NEWS', 'dallasnews', or 'PewStates' as their X (Twitter) username?

Show me the media outlets associated with the X (Twitter) usernames '8NEWS', 'dallasnews', and 'PewStates'.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "VWEthan" ) ( "string2" ) ( "dallasnews" ) ( "string3" ) ( "PewStates" ) ( "8NEWS" ) ( "string4" ) ( "cheapicks" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "MaryDofVA" ) ( "string8" ) ( "Thalhimer" ) ( "string9" ) ( "DDVA13" ) ( "string10" ) ( "facebook" ) } }


Question: What sport does Ousmane Dembélé play and what awards has he received, including the date of the award?

SELECT ?personLabel ?sportLabel ?awardLabel ?date WHERE { wd:Q20851003 wdt:P641 ?sport . wd:Q20851003 p:P166 ?awardStmt . ?awardStmt ps:P166 ?award . OPTIONAL { ?awardStmt pq:P585 ?date . } wd:Q20851003 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") ?sport rdfs:label ?sportLabel . FILTER(LANG(?sportLabel) = "en") ?award rdfs:label ?awardLabel . FILTER(LANG(?awardLabel) = "en") }

When did Ousmane Dembélé receive the Knight of the Legion of Honour, and what sport does he play?

Show me Ousmane Dembélé’s sport, the award he received, and the date he received it.

SELECT DISTINCT ?var1Label ?var2 ?var3Label ?var4Label ?var5 ?var5Label ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P641> ?var12 . <https://fr.wikipedia.org/wiki/Ousmane%20Demb%C3%A9l%C3%A9> <http://schema.org/about> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/P166> ?var13 . ?var13 <http://www.wikidata.org/prop/statement/P166> ?var3 . OPTIONAL { ?var13 <http://www.wikidata.org/prop/qualifier/P585> ?var2 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Show the name of Pascal Dias in English, German, French, and Italian, along with his English description, image, coordinates, and English Wikipedia link.

PREFIX schema: <http://schema.org/>
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 ?label ?description ?image ?coordinates ?wikipediaArticle WHERE {
  OPTIONAL {
    wd:Q3896918 rdfs:label ?label .
    FILTER ( LANG( ?label ) = ?lang ) VALUES ( ?lang ?order ) {
      ( "en" 1 ) ( "de" 2 ) ( "fr" 3 ) ( "it" 4 )
    }
  }
  OPTIONAL {
    wd:Q3896918 schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
  OPTIONAL {
    wd:Q3896918 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q3896918 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?wikipediaArticle schema:about wd:Q3896918 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?order

What are the labels of Pascal Dias in different languages, his English description, image, location coordinates, and English Wikipedia page?

Please retrieve Pascal Dias’s multilingual labels (EN, DE, FR, IT), his English Wikipedia description, any associated image, geographic coordinates, and the link to his English Wikipedia article.

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


Question: What is the English label and description of the Happy Tree Friends episode with IMDb ID tt3459712?

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 ?label ?description WHERE {
  ?item wdt:P345 "tt3459712" .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Can you tell me the title and English description of the TV episode on IMDb with ID tt3459712?

Show me the English title and description of the episode from Happy Tree Friends that has the IMDb identifier tt3459712.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt3459712". 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 and labels of organizations where Sydney Brenner worked, with start/end dates and academic degrees.

SELECT ?image ?organization ?organizationLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q234463 p:P108 ?statement . ?statement 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") } }

What are the universities Sydney Brenner was employed by, and what images, start dates, end dates, or academic degrees are associated with those employments?

Show me the images and English labels of the institutions Sydney Brenner worked for, along with any available employment start and end dates, and academic degrees earned during those affiliations.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q234463> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q234463> <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: Geological formations in Moldova

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 ?geologicalFeature ?geologicalFeatureLabel WHERE {
  ?geologicalFeature wdt:P17 wd:Q217 .
  ?geologicalFeature wdt:P31 wd:Q736917 .
  ?geologicalFeature rdfs:label ?geologicalFeatureLabel .
  FILTER ( LANG( ?geologicalFeatureLabel ) = "en" )
}

What are the geological formations located in Moldova?

List the English-labeled geological formations in Moldova, such as ravines, cliffs, and outcrops.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q217> . VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q736917> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ro,en". } }


Question: What are all the subclasses of "human" up to four levels deep in the taxonomy?

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 ?subclass ?subclassLabel WHERE {
  {
    wd:Q5 wdt:P279 ?subclass .
  } UNION {
    wd:Q5 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?subclass .
  } UNION {
    wd:Q5 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?subclass .
  } UNION {
    wd:Q5 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?level3 .
    ?level3 wdt:P279 ?subclass .
  }
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = 'en' )
}

List all English-labeled subclasses of humans, including indirect ones up to four generations of classification.

Show me the hierarchy of categories that humans belong to, going up to four levels of subclass relationships, with their English names.

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


Question: Works created or designed by Leonardo da Vinci with their images and creation locations.

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 ?work ?workLabel ?image ?locationLabel WHERE {
  ?work(wdt:P84 | wdt:P170) wd:Q762 .
  ?work wdt:P18 ?image .
  OPTIONAL {
    ?work wdt:P1071 ?location .
    ?location rdfs:label ?locationLabel .
    FILTER(LANG(?locationLabel) = "en")
  }
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
ORDER BY ASC(?work)

What are the artworks created by Leonardo da Vinci, and what are their images and where were they created?

Show me a list of all creative works by Leonardo da Vinci, including their images and, if available, the places where they were created.

SELECT DISTINCT ?var1 ?var1Label ( ?var2 AS ?var3 ) ?var4Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P84> | <http://www.wikidata.org/prop/direct/P170> ) <http://www.wikidata.org/entity/Q762> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var6Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1071> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,it,fr,de,es". } } ORDER BY ASC( ?var1 )


Question: Stars without German labels and their alternative names

SELECT DISTINCT ?star ?label WHERE { ?star wdt:P31 wd:Q523 . ?star rdfs:label ?label . FILTER ( NOT EXISTS { ?star rdfs:label ?deLabel . FILTER ( LANG(?deLabel) = "de" ) } ) }

Which stars do not have a label in German, and what are their labels in other languages?

List all stars that are not labeled in German, along with their labels in other languages.

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


Question: What currencies were used by historical countries?

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 wdt:P31 wd:Q3024240 ; wdt:P38 ?var2 . ?var1 rdfs:label ?var1Label . ?var2 rdfs:label ?var2Label . FILTER(LANG(?var1Label) = "en") FILTER(LANG(?var2Label) = "en") }

List the names of defunct states and the currencies they used, in English.

Which former countries had official currencies, and what were those currencies called?

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


Question: Films without release dates that have "film" in their Wikipedia title

SELECT ?film ?filmLabel ?lang ?pageTitle WHERE { ?film wdt:P31 wd:Q11424 . FILTER NOT EXISTS { ?film wdt:P577 [] } . ?wikipediaPage schema:about ?film ; schema:inLanguage ?lang ; schema:name ?pageTitle . ?film rdfs:label ?filmLabel . FILTER (LANG(?filmLabel) = "en") . FILTER (REGEX(?pageTitle, "film", "i")) } ORDER BY ?lang

What are films that don't have a publication date and are mentioned in Wikipedia articles with the word "film" in the title?

List films without a release date along with their Wikipedia page titles containing "film" and the language of those pages.

SELECT ?var1 ?var1Label ?var2 ?var3 ( REPLACE ( REPLACE ( REPLACE ( STRAFTER ( STR ( ?var4 ) , "/wiki/" ) , "%20", " " ) , "%28", "(" ) , "%29", ")" ) AS ?var5 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var6 . } FILTER ( ( !( BOUND ( ?var6 ) ) ) ) . ?var4 <http://schema.org/about> ?var1 . FILTER ( ( REGEX ( STR ( ?var4 ) , "string1" ) ) ) . ?var4 <http://schema.org/inLanguage> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var3 )


Question: What are some types of political parties?

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

Can you list 11 subclasses of political parties along with their names?

What are examples of political parties categorized by their type, such as social democratic or fascist parties?

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


Question: Birth and death dates of Richard Williams (Q11801889)

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

When was Richard Williams born and when did he die?

Can you tell me the birth and death dates of Richard Williams, the Welsh soldier and courtier?

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


Question: John Bowes-Lyon birth and death dates

SELECT ?label ?birthDate ?deathDate WHERE { wd:Q75411 rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { wd:Q75411 wdt:P569 ?birthDate . } OPTIONAL { wd:Q75411 wdt:P570 ?deathDate . } }

When were John Bowes-Lyon born and when did he die?

Can you tell me the full name, date of birth, and date of death of John Bowes-Lyon?

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


Question: What are the birth and death dates of William T. Orr?

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

Can you tell me the birth and death dates of the American television producer William T. Orr?

Show me the English label, birth date, and death date for William T. Orr, who is a human.

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


Question: What are the birth and death dates of George F. Elliott?

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

Can you tell me when George F. Elliott was born and when he died?

Provide the life span (birth and death dates) of George F. Elliott, the U.S. Marine Corps Commandant.

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


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

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

Which movie on Wikidata has the IMDb identifier tt2226333?

Find the Wikidata entity for the film with IMDb ID tt2226333.

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


Question: Who were born in 1982, and do they have images on Wikimedia Commons?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?image WHERE {
  ?person wdt:P569 ?birthDate .
  FILTER(YEAR(?birthDate) = 1982)
  OPTIONAL {
    ?person wdt:P18 ?image
  }
  .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 100

Can you list people born in 1982 along with their English names and photos if available?

Show me the names and images of individuals born in the year 1982.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> "+1982-11-14T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sq". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: Statements and values for population data in Wikidata

SELECT ?statement ?value WHERE { ?statement ps:P1082 ?value . } LIMIT 1000

What are the statement identifiers and their corresponding population values in Wikidata?

Show me all population statements and their numeric values from Wikidata.

SELECT ?var1 ?var2 WHERE { ?var3 <http://wikiba.se/ontology#statementValue> ?var4 . ?var1 ?var4 ?var2 . } LIMIT 1000