Question: Who is the person with IMDb ID nm0338169?

SELECT ?person WHERE { ?person wdt:P345 "nm0338169" . }

Which Wikidata entity corresponds to the IMDb identifier nm0338169?

Find the Wikidata item for the IMDb ID nm0338169.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0338169". } ORDER BY ASC( ?var1 )


Question: People who are both actors and writers

SELECT ?person ?personLabel WHERE { ?person wdt:P106 wd:Q36180 , wd:Q33999 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who are the people that work as both actors and writers?

List all individuals whose occupations include both acting and writing.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36180> , <http://www.wikidata.org/entity/Q33999> . }


Question: List the English titles and premiere dates of all episodes of the TV series "Mord mit Aussicht", ordered by air 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 ?episode ?episodeLabel ?premiereDate WHERE {
  ?episode wdt:P179 wd:Q1407012 .
  ?episode wdt:P577 ?premiereDate .
  ?episode rdfs:label ?episodeLabel .
  FILTER ( LANG( ?episodeLabel ) = "en" )
}
ORDER BY ?premiereDate

What are the English titles and premiere dates of the episodes in the German TV series "Mord mit Aussicht", sorted chronologically?

Please provide the English names and broadcast dates of every episode from the "Mord mit Aussicht" series, starting from the earliest.

SELECT ?var1 ?var1Label ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q1407012> AS ?var3 ). ?var4 <http://www.wikidata.org/prop/direct/P361> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1191> ?var2 . ?var4 <http://www.wikidata.org/prop/P179> [ <http://www.wikidata.org/prop/qualifier/P1545> ?var5 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2 )


Question: Which Wikidata items have the Twitter usernames "adzebill", "kenbenoit", or "wikidigi"?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "adzebill" "kenbenoit" "wikidigi" } }

Who are the people or organizations on Wikidata associated with the Twitter handles @adzebill, @kenbenoit, and @wikidigi?

Show me the Wikidata entries for the Twitter accounts adzebill, kenbenoit, and wikidigi.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "euanc" ) ( "wikidigi" ) ( "string2" ) ( "TOS" ) ( "tos" ) ( "index7v" ) ( "tinokirito" ) ( "13528l" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "hudrobson" ) ( "string7" ) ( "string8" ) ( "adzebill" ) ( "string9" ) ( "jwsal" ) ( "string10" ) ( "string11" ) ( "kenbenoit" ) ( "LDN_CDO" ) ( "string12" ) ( "kingsBSD" ) ( "OA_RHUL" ) ( "LDN_data" ) ( "string13" ) ( "string14" ) } }


Question: What is the image of the emu species?

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 ?emu ?emuLabel ?image WHERE {
  wd:Q93208 rdfs:label ?emuLabel .
  FILTER ( LANG( ?emuLabel ) = "en" ) OPTIONAL {
    wd:Q93208 wdt:P18 ?image .
  }
}

Can you show me pictures of emus from Wikimedia Commons?

Show me the official images of the emu (Dromaius novaehollandiae) on Wikidata.

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


Question: Who is the father of Erik Lundegård?

SELECT DISTINCT ?father ?statement WHERE { ?father p:P22 ?statement . ?statement ps:P22 wd:Q5708047 . } LIMIT 1

What is the statement node linking Mats Lundegård as the father of Erik Lundegård?

Can you tell me the father of the Swedish journalist Erik Lundegård?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P22> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P22> <http://www.wikidata.org/entity/Q5708047> . } LIMIT 101


Question: Female Canadian actresses born after 1999

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?actor ?actorLabel WHERE {
  ?actor wdt:P31 wd:Q5 .
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P27 wd:Q16 .
  ?actor wdt:P21 wd:Q6581072 .
  ?actor wdt:P569 ?birthDate .
  FILTER ( ?birthDate > "1999-01-01T00:00:00" ^^ xsd:dateTime ) .
  ?actor rdfs:label ?actorLabel .
  FILTER ( LANG( ?actorLabel ) = "en" )
}

Who are the female Canadian actresses born after January 1, 1999?

List the English names of all female Canadian actors born after 1999.

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/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q16> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var2 > "1999-01-01T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( NOT EXISTS { ?var1 ?var1Label "Abby Zotz"@en . } ) ) . }


Question: Who is the person with IMDb ID nm0637116, and what is their name in English?

SELECT ?person ?personLabel ?nativeName WHERE { ?person wdt:P345 "nm0637116" . ?person rdfs:label ?personLabel . OPTIONAL { ?person wdt:P1559 ?nativeName . } FILTER(LANG(?personLabel) = "en") } LIMIT 100

What is the English name of the person identified by the IMDb ID nm0637116?

Please provide the English name of the person whose IMDb ID is nm0637116, and if available, their native name.

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


Question: What office was contested in the 2017 Austrian legislative election?

SELECT ?office ?officeLabel WHERE { wd:Q19311231 wdt:P541 ?office . ?office rdfs:label ?officeLabel . FILTER(LANG(?officeLabel) = "en") }

Which position was determined by the 2017 Austrian legislative election?

Tell me the title of the office that the 2017 Austrian parliamentary election was held to fill.

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


Question: Is the Celtic deity Mogons classified as a type of artificial physical object?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q321547 ( wdt:P31 / wdt:P279 * ) wd:Q8205328 .
}

Does the Celtic god Mogons belong to a category that is a subclass of artificial physical objects?

Check if Mogons, a Celtic deity, is an instance of something that is ultimately a kind of human-made object.

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


Question: Is Hestia considered a human-made object?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q41419 wdt:P31 / wdt:P279 * wd:Q8205328 .
}

Is Hestia an instance of a subclass of artificial physical objects?

Confirm whether Hestia belongs to any category that is a type of man-made object.

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


Question: Is the Salii (Salian priests) a type of artificial physical object?

Are Salian priests considered artifacts or human-made objects?

Does the religious organization known as the Salii belong to the category of man-made physical objects?

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


Question: Is a religious figure a type of person?

Does the category of religious figure fall under the broader category of person?

Are all religious figures considered persons according to Wikidata’s classification?

ASK WHERE { <http://www.wikidata.org/entity/Q4504549> ( <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: Which characters and concepts from Tolkien’s legendarium have more than 70 properties listed on Wikidata?

SELECT ?itemLabel ?instanceTypeLabel WHERE { ?item wdt:P1080 wd:Q81738 . ?item wdt:P31 ?instanceType . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') } OPTIONAL { ?instanceType rdfs:label ?instanceTypeLabel . FILTER(LANG(?instanceTypeLabel) = 'en') } { SELECT ?item (COUNT(?statement) AS ?count) WHERE { ?item wdt:P1080 wd:Q81738 . ?item ?statement ?value . FILTER(?statement != wdt:P1080) . FILTER(?statement != wdt:P31) . } GROUP BY ?item HAVING (?count > 70) } }

What entities in Tolkien’s legendarium are highly detailed, with over 70 statements, and what types are they classified as?

Show me the names and types of all entities from Tolkien’s legendarium that have more than 70 associated properties, excluding their universe and type links.

SELECT ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1080> <http://www.wikidata.org/entity/Q81738> . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1080> <http://www.wikidata.org/entity/Q81738> . ?var1 ?var3 ?var2 . } GROUP BY ?var1 HAVING ( ( ?var4 > "70"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Is the organization known as a sodality considered a human being?

Does the entity Q47492839 belong to the class of humans or any of its subclasses?

ASK WHERE { <http://www.wikidata.org/entity/Q47492839> ( <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: National parks and protected areas in Norway, Sweden, Denmark, and Finland with English or Norwegian labels and images.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1(0.1 AS ?var2) ?var1Label(CONCAT("[[file:" , SUBSTR(STR(?var5) , 52 , 500) , "]]") AS ?var6) ?var5 WHERE {
  {
    ?var1 wdt:P31 wd:Q46169 .
  } UNION {
    ?var1 wdt:P31 wd:Q473972 .
  }
  {
    ?var1 wdt:P17 wd:Q20 .
  } UNION {
    ?var1 wdt:P17 wd:Q34 .
  } UNION {
    ?var1 wdt:P17 wd:Q33 .
  } UNION {
    ?var1 wdt:P17 wd:Q35 .
  }
  OPTIONAL {
    ?var1 wdt:P18 ?var5 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en" || LANG(?var1Label) = "nb")
}

What are the national parks and protected areas in the Nordic countries (Norway, Sweden, Denmark, Finland) that have labels in English or Norwegian and associated images on Wikimedia Commons?

List all national parks and protected areas located in Norway, Sweden, Denmark, or Finland, showing their English or Norwegian names and the corresponding Wikimedia Commons image filenames.

SELECT DISTINCT ?var1 ( "0.1"^^<http://www.w3.org/2001/XMLSchema#decimal> AS ?var2 )( ?var3Label AS ?var4 )( CONCAT ( "[[file:", SUBSTR ( STR ( ?var5 ) ,"52"^^<http://www.w3.org/2001/XMLSchema#integer> ,"500"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "string1" ) AS ?var6 ) ?var5 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q46169> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q473972> . } { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q20> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q33> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q35> . } OPTIONAL { ?var7 <http://schema.org/about> ?var1 . ?var7 <http://schema.org/inLanguage> "nb". ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nb,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } }


Question: What are all the known facts about the pharmaceutical company Novartis?

SELECT ?property ?value WHERE { wd:Q507154 ?property ?value . }

Show me all the properties and values associated with Novartis on Wikidata.

Can you list everything Wikidata knows about Novartis?

SELECT * WHERE { ?var1 ?var2Label "Novartis"@en . ?var1 ?var3 ?var4 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of Princeton University

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

What image is associated with Princeton University on Wikimedia Commons?

Show me the official photo of Princeton University.

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


Question: Images of ice hockey player, Russia, Penza, male, and Russian language associated with Eduard Gorbachyov.

SELECT DISTINCT ?image WHERE { { wd:Q37808227 wdt:P106 ?occupation . ?occupation wdt:P18 ?image . } UNION { wd:Q37808227 wdt:P27 ?nationality . ?nationality wdt:P18 ?image . } UNION { wd:Q37808227 wdt:P19 ?birthplace . ?birthplace wdt:P18 ?image . } UNION { wd:Q37808227 wdt:P21 ?gender . ?gender wdt:P18 ?image . } UNION { wd:Q37808227 wdt:P1412 ?language . ?language wdt:P18 ?image . } }

What images are linked to Eduard Gorbachyov’s occupation, nationality, birthplace, gender, and language?

Show me all images from Wikimedia Commons that are associated with Eduard Gorbachyov through his occupation, nationality, birthplace, gender, or spoken language.

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


Question: What are the names of pharmaceutical drugs and their ATC classification codes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?atcCode ?drugLabel WHERE {
  ?drug wdt:P267 ?atcCode .
  ?drug rdfs:label ?drugLabel .
}

Which drugs are assigned ATC codes, and what are those codes?

Show me the ATC codes and corresponding drug names from Wikidata.

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


Question: Official websites of research institutes in Germany

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 ?institute ?instituteLabel ?website WHERE {
  ?institute wdt:P31 wd:Q31855 .
  ?institute wdt:P856 ?website .
  ?institute wdt:P17 wd:Q183 .
  ?institute rdfs:label ?instituteLabel .
  FILTER(LANG(?instituteLabel) = "en")
}
LIMIT 1000

What are the official websites of research institutes located in Germany, and what are their names?

List the names and official websites of all research institutes in Germany.

SELECT ?var1 ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q31855> . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . } LIMIT 1000


Question: Years and first 20 characters of English titles of publications by Marja Jäättelä.

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

What are the publication years and shortened English titles of works by Marja Jäättelä?

List the years and the first 20 characters of the English titles of all publications authored by Marja Jäättelä, sorted by year.

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


Question: FIDE ID 1503014, name and English description

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

Who is the chess player with FIDE ID 1503014, and what is their English description?

Please provide the name and English description of the chess player identified by FIDE ID 1503014.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1440> "24210650". 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: Image of Carl Menger with SNAC ARK ID w6r217tc

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

What is the image of the person identified by the SNAC ARK ID w6r217tc?

Show me the Wikimedia Commons image linked to Carl Menger’s SNAC ARK ID.

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


Question: What is the English label for British Commando operations during World War II?

SELECT ?label WHERE { wd:Q16208027 rdfs:label ?label . FILTER (LANG(?label) = "en") }

What is the name of British Commando operations during World War II in English?

How is "British Commando operations during World War II" referred to in English on Wikidata?

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


Question: What are all the broader categories that a mountain belongs to, including itself?

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

What classes is the concept of a mountain a subclass of in Wikidata?

Show the full hierarchy of classes from mountain up to the most general category in Wikidata.

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


Question: English labels of educational institutions and their subclasses

SELECT ?itemLabel WHERE { ?item (wdt:P31 | wdt:P279) wd:Q2385804 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What are the English names of all entities that are either educational institutions or subclasses of educational institutions?

List the English labels of all educational institutions and their subtypes.

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


Question: Educational institutions attended by Georg Friedrich Grotefend

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 ?institutionLabel WHERE {
  wd:Q57855 wdt:P69 ?institution .
  ?institution wdt:P31 / wdt:P279 * wd:Q2385804 .
  ?institution rdfs:label ?institutionLabel .
}

Which educational institutions did Georg Friedrich Grotefend attend?

List the names of the schools and universities where Georg Friedrich Grotefend was educated.

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


Question: Books with both ISBN-13 and ISBN-10 identifiers.

SELECT ?book ?isbn13 ?isbn10 WHERE { ?book wdt:P212 ?isbn13 . ?book wdt:P957 ?isbn10 .}

Which books in Wikidata have both a 13-digit and a 10-digit ISBN?

Show me the book items along with their corresponding ISBN-13 and ISBN-10 numbers.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P212> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P957> ?var3 . }


Question: What image is associated with the entity having the SNAC ARK ID w6z13z3x?

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

Image of the entity with SNAC ARK ID w6z13z3x

Show me the image for the SNAC ARK ID w6z13z3x

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


Question: What are some examples of office supplies?

SELECT DISTINCT ?item ?itemLabel ?categoryLabel WHERE {  VALUES ?category { wd:Q2383811 }  ?item wdt:P279 ?category .  ?item rdfs:label ?itemLabel .  FILTER(LANGMATCHES(LANG(?itemLabel), "en"))  ?category rdfs:label ?categoryLabel .  FILTER(LANGMATCHES(LANG(?categoryLabel), "en"))} LIMIT 50

List the types of items that are classified as office supplies, along with their English names.

Can you show me the categories of products that fall under office supplies?

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q2383811> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . 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,en". } }


Question: What pairs of ecological topics are commonly discussed together in works about biodiversity loss?

SELECT DISTINCT ?topic1 ?topic1Label ?topic2 ?topic2Label WHERE {
  {
    ?work wdt:P921 / wdt:P31* / wdt:P279* wd:Q18466271 .
  } UNION {
    ?work wdt:P921 / wdt:P361+ wd:Q18466271 .
  } UNION {
    ?work wdt:P921 / wdt:P1269+ wd:Q18466271 .
  }

  ?work wdt:P921 ?topic1 , ?topic2 .

  FILTER (?topic1 != wd:Q18466271)
  FILTER (?topic2 != wd:Q18466271)
  FILTER (?topic1 != ?topic2)

  ?topic1 rdfs:label ?topic1Label .
  ?topic2 rdfs:label ?topic2Label .

  FILTER (lang(?topic1Label) = "en")
  FILTER (lang(?topic2Label) = "en")
}

Which topics frequently appear alongside biodiversity loss in academic or media works, and what other topics are they paired with?

Show me combinations of two distinct subjects (other than biodiversity loss itself) that are both main topics of the same works related to biodiversity loss.

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


Question: Living philosophers, their birth dates, countries, languages, and notable works

SELECT DISTINCT
  ?philosopher
  ?dateOfBirth
  (GROUP_CONCAT(DISTINCT ?country; SEPARATOR=", ") AS ?countries)
  (GROUP_CONCAT(DISTINCT ?language; SEPARATOR=", ") AS ?languages)
  (GROUP_CONCAT(DISTINCT ?notableWork; SEPARATOR=", ") AS ?notableWorks)
WHERE {
  ?philosopher wdt:P31 wd:Q5 .
  ?philosopher wdt:P106 wd:Q4964182 .
  ?philosopher wdt:P569 ?dateOfBirth .
  OPTIONAL { ?philosopher wdt:P27 ?country . }
  OPTIONAL { ?philosopher wdt:P1412 ?language . }
  OPTIONAL { ?philosopher wdt:P800 ?notableWork . }
  FILTER(NOT EXISTS { ?philosopher wdt:P570 ?deathDate })
}
GROUP BY ?philosopher ?dateOfBirth
ORDER BY DESC(?dateOfBirth)

Who are the living philosophers, and what are their birth dates, countries of citizenship, languages spoken, and notable works?

List all living philosophers along with their date of birth, country, languages, and notable works, with multiple values separated by commas.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ( GROUP_CONCAT ( DISTINCT ?var6Label ; SEPARATOR = ", " ) AS ?var7 )( GROUP_CONCAT ( DISTINCT ?var8Label ; SEPARATOR = ", " ) AS ?var9 )( GROUP_CONCAT ( DISTINCT ?var10Label ; SEPARATOR = ", " ) AS ?var11 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var12 . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q4964182> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var13 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P800> ?var10 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var8Label . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var10 <http://www.w3.org/2000/01/rdf-schema#label> ?var10Label . ?var12 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var14 . } ) ) . } GROUP BY ?var1 ?var2 ?var3 ?var15 ?var5 ?var4 ORDER BY DESC( ?var3 )


Question: Administrative and country entities related to Palaestina Prima

SELECT DISTINCT ?entity ?entityLabel WHERE { wd:Q3274024 (wdt:P17|wdt:P131) ?entity . ?entity rdfs:label ?entityLabel . FILTER(LANG(?entityLabel) = "en") FILTER(?entity != wd:Q3274024) }

Which countries and administrative regions was Palaestina Prima part of?

List the political and territorial entities that Palaestina Prima belonged to.

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


Question: List all counties in Arkansas.

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

Show me the names of all counties in Arkansas, using their English labels.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11774062> . 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/P882> ?var3 . } }


Question: Universities in Wikidata with German 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 ?university ?label WHERE {
  ?university wdt:P31 wd:Q3918 .
  ?university rdfs:label ?label .
  FILTER(LANGMATCHES(LANG(?label) , "de"))
}

Which universities have labels in German?

Show me the German-language labels for all universities listed in Wikidata.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q3918> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( LANGMATCHES ( LANG ( ?var2Label ) , "DE" ) ) ) . }


Question: Scholarly articles authored by Simon Fisher, including publication dates, venues, co-authors, and instance types.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT(MIN(?publicationDate) AS ?earliestPublicationDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?instanceTypeLabel ; SEPARATOR = ", ") AS ?instanceTypes)(SAMPLE(?numberOfPages) AS ?pages) ?publicationVenue ?publicationVenueLabel(GROUP_CONCAT(DISTINCT ?coAuthorLabel ; SEPARATOR = ", ") AS ?coAuthors) WHERE {
  ?work wdt:P50 wd:Q7518750 .
  OPTIONAL {
    ?work wdt:P577 ?date .
    BIND(xsd:date(?date) AS ?publicationDate)
  }
  OPTIONAL {
    ?work wdt:P31 ?instanceType .
    ?instanceType rdfs:label ?instanceTypeLabel .
    FILTER(LANG(?instanceTypeLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P1104 ?numberOfPages
  }
  OPTIONAL {
    ?work wdt:P1433 ?publicationVenue .
    ?publicationVenue rdfs:label ?publicationVenueLabel .
    FILTER(LANG(?publicationVenueLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P50 ?coAuthor .
    ?coAuthor rdfs:label ?coAuthorLabel .
    FILTER(LANG(?coAuthorLabel) = "en")
    .
    FILTER(?coAuthor != wd:Q7518750)
  }
}
GROUP BY ?work ?workLabel ?publicationVenue ?publicationVenueLabel
ORDER BY DESC(?earliestPublicationDate)

What are the scholarly works written by Simon Fisher, and who are his co-authors, along with the publication venues and dates?

List all works authored by Simon Fisher, showing their publication dates, venues, co-authors (excluding himself), instance types (e.g., scholarly article), and number of pages, sorted from newest to oldest.

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


Question: Are there any human biblical scholars?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?scholar wdt:P106 wd:Q19829990 .
  ?scholar wdt:P31 wd:Q5 .
}

Do people who work as biblical scholars count as humans?

I want to know if biblical scholars are humans — is that true?

ASK WHERE { <http://www.wikidata.org/entity/Q19829990> ( <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 are the ticker symbols for Novartis on the stock exchanges where it is listed?

SELECT ?exchange ?exchangeLabel ?ticker WHERE { wd:Q507154 p:P414 ?statement . ?statement ps:P414 ?exchange ; pq:P249 ?ticker . ?exchange rdfs:label ?exchangeLabel . FILTER(LANG(?exchangeLabel) = "en") }

On which stock exchanges is Novartis traded, and what are its ticker symbols?

Find the stock ticker codes for Novartis International AG on its listed exchanges.

SELECT ?var1 ?var2 ?var3Label WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { ?var4 ?var5Label "Novartis"@en . } UNION { ?var4 ?var5Label "Novartis"@en . ?var4 ?var1 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P249> ?var3 . } FILTER ( ( !( isIRI ( ?var3 ) ) ) ) . } UNION { ?var4 ?var5Label "Novartis"@en . ?var4 ?var1 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P249> ?var3 . } FILTER ( ( isIRI ( ?var3 ) ) ) . } FILTER ( ( REGEX ( STR ( ?var1 ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What properties are used to link the company Novartis to other entities in Wikidata, and what are their labels?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?propertyLabel WHERE {
  ?subject ?property wd:Q507154 .
  FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/" ) ) .
  FILTER ( ! STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/statement/" ) ) .
  FILTER ( ! STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/qualifier/" ) ) .
  BIND( STRAFTER( STR( ?property ) , "http://www.wikidata.org/prop/" ) AS ?propPath ) .
  BIND( STRAFTER( ?propPath , "/" ) AS ?propCode ) .
  BIND( IRI( CONCAT ( "http://www.wikidata.org/entity/" , ?propCode ) ) AS ?propertyEntity ) .
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}
ORDER BY ?propertyLabel

Can you list all the relationships (with their English labels) that connect Novartis to other items in Wikidata?

Show me the English names of all properties that have Novartis as their object in Wikidata, excluding qualifiers and statements.

SELECT ?var1 ?var2Label WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { ?var3 ?var4 "Novartis"@en . } UNION { BIND ( ?var5 AS ?var2 ). ?var3 ?var4 "Novartis"@en . ?var3 ?var1 ?var5 . FILTER ( ( !( isIRI ( ?var5 ) ) ) ) . } UNION { BIND ( ?var5 AS ?var2 ). ?var3 ?var4 "Novartis"@en . ?var3 ?var1 ?var5 . FILTER ( ( isIRI ( ?var5 ) ) ) . FILTER ( ( !( REGEX ( STR ( ?var5 ) , "statement/" ) ) ) ) . } UNION { BIND ( ?var5Label AS ?var2 ). ?var3 ?var4 "Novartis"@en . ?var3 ?var1 ?var5 . ?var5 ?var6 ?var5Label . FILTER ( ( REGEX ( STR ( ?var6 ) , "string1" ) ) ) . FILTER ( ( isIRI ( ?var5 ) ) ) . FILTER ( ( REGEX ( STR ( ?var5 ) , "statement/" ) ) ) . } FILTER ( ( REGEX ( STR ( ?var1 ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Sources cited for Douglas Adams in Wikidata

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE {
  BIND(wd:Q42 AS ?var1)
  ?var1 ?p [ prov:wasDerivedFrom [(pr:P248 | pr:P854) ?var2 ] ] .
  OPTIONAL {
    ?var1 rdfs:label ?var1Label
    FILTER(LANG(?var1Label) = "en")
  }
  OPTIONAL {
    ?var2 rdfs:label ?var2Label
    FILTER(LANG(?var2Label) = "en")
  }
}

What reference URLs and authoritative sources are used to support claims about Douglas Adams?

Show me the references (websites or authority files) that back up information about Douglas Adams, along with their names.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { BIND ( <http://www.wikidata.org/entity/Q42> AS ?var1 ). ?var1 ?var3 [ <http://www.w3.org/ns/prov#wasDerivedFrom> [ ( <http://www.wikidata.org/prop/reference/P248> | <http://www.wikidata.org/prop/reference/P854> ) ?var2 ] ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: UN member states with the most heads of government

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?country ?countryLabel ( COUNT( ?headOfGovernmentStatement ) AS ?countOfHeadsOfGovernment ) WHERE {
  ?country ( p:P463 / ps:P463 ) wd:Q1065 ; p:P6 ?headOfGovernmentStatement .
  FILTER ( isIRI( ?country ) ) ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" )
}
GROUP BY ?country ?countryLabel
ORDER BY DESC ( ?countOfHeadsOfGovernment )

Which countries have had the highest number of different heads of government since joining the United Nations?

List the United Nations member countries ordered by how many times they have changed their head of government, along with the count.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/P463> / <http://www.wikidata.org/prop/statement/P463> ) <http://www.wikidata.org/entity/Q1065> ; <http://www.wikidata.org/prop/P6> ?var2 . } GROUP BY ?var1 ORDER BY DESC( ?var3 )


Question: What cities are located in the Esslingen district in Germany?

SELECT DISTINCT ?city ?cityLabel WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 . ?city wdt:P131 wd:Q8533 . FILTER(LANG(?cityLabel) = "en") . ?city rdfs:label ?cityLabel . }

List the names of all cities and towns in the administrative district of Esslingen, Baden-Württemberg.

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


Question: List of chemical databases with 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 ?chemicalDatabase ?chemicalDatabaseLabel WHERE {
  ?chemicalDatabase wdt:P31 wd:Q2881060 .
  ?chemicalDatabase rdfs:label ?chemicalDatabaseLabel .
  FILTER(LANG(?chemicalDatabaseLabel) = "en")
}

What are the English names of all chemical databases in Wikidata?

Show me the English-labeled chemical databases from Wikidata.

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


Question: How many medical findings are listed in Wikidata?

SELECT (COUNT(?medicalFinding) AS ?count) WHERE { ?medicalFinding wdt:P31 wd:Q639907 . }

What is the total number of clinical findings in Wikidata?

Can you tell me how many entities in Wikidata are classified as medical findings?

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


Question: What is the image of Larry Page in the SNAC database?

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

Can you show me the Wikimedia Commons image associated with the SNAC ARK ID w6r50mkf?

Show the photo of the person identified by the SNAC ARK ID w6r50mkf.

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


Question: Municipalities in North Rhine-Westphalia, Germany, with their administrative districts and coordinates.

SELECT DISTINCT ?var1Label ?var2Label ?var3 WHERE { ?var2 wdt:P31 wd:Q262166 . ?var2 wdt:P17 wd:Q183 . ?var2 wdt:P625 ?var3 . ?var2 wdt:P131+ wd:Q1198 . ?var2 wdt:P131 ?var1 . OPTIONAL { ?var1 rdfs:label ?var1Label . } OPTIONAL { ?var2 rdfs:label ?var2Label . } FILTER(LANG(?var1Label) = "en" || LANG(?var1Label) = "") FILTER(LANG(?var2Label) = "en" || LANG(?var2Label) = "") } LIMIT 10000

What are the names of municipalities in North Rhine-Westphalia, their parent administrative districts, and their geographic coordinates?

List all municipalities in North Rhine-Westphalia along with the districts they belong to and their GPS coordinates.

SELECT DISTINCT ?var1Label ?var2Label ?var3 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q262166> . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q1198> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } LIMIT 10000


Question: Scholarly articles about myocardial infarction

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?work ?title WHERE {
  ?work wdt:P921 wd:Q12152 .
  ?work wdt:P1476 ?title .
}
LIMIT 10000

What are the titles of scientific articles that focus on myocardial infarction?

List the titles of research papers where myocardial infarction is the main topic.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P921> <http://www.wikidata.org/entity/Q12152> . } LIMIT 10000


Question: What academic papers cite the study on malaria risk and temperature under climate change?

SELECT ?citingArticle ?title WHERE { ?citingArticle wdt:P2860 wd:Q24546273 . ?citingArticle wdt:P1476 ?title .}

Which articles reference the work titled "Malaria risk and temperature: influences from global climate change and local land use practices"?

Can you list the scholarly works that have cited this paper on malaria and climate change?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2860> <http://www.wikidata.org/entity/Q24546273> . } LIMIT 10000


Question: In which journal was the article "Modelling knowlesi malaria transmission in humans: vector preference and host competence" published?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?journal WHERE {
  wd:Q21034127 wdt:P1433 ?journal .
}

Journal where the article "Modelling knowlesi malaria transmission in humans: vector preference and host competence" appeared.

Please tell me the publication venue of the academic article on knowlesi malaria transmission.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q21034127> . } LIMIT 10000


Question: Children and grandchildren of Lionel Messi up to four generations.

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

Who are Lionel Messi’s descendants up to four generations deep, and do any of them have children?

List all of Lionel Messi’s descendants within four generations, along with their English labels and whether they have any children.

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/Q615> ; <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#linkType> <http://www.wikidata.org/prop/direct/P40> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: OlimpBase Chess Olympiad player IDs for players, including how they are sourced (main statement, qualifier, or reference)

PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?player ?id ?source WHERE {
  {
    BIND("mainsnak" AS ?source)
    ?player wdt:P3940 ?id .
  } UNION {
    BIND("qualifier" AS ?source)
    ?player ?prop ?stmt .
    ?stmt pq:P3940 ?id .
  } UNION {
    BIND("reference" AS ?source)
    ?player ?prop ?stmt .
    ?stmt prov:wasDerivedFrom [ pr:P3940 ?id ] .
  }
  FILTER(STRSTARTS(STR(?player) , "http://www.wikidata.org/entity/Q"))
}

For which chess players do we have OlimpBase IDs, and are those IDs from direct statements, qualifiers, or references?

List all players with their OlimpBase Chess Olympiad IDs and indicate whether each ID comes from a main statement, a qualifier, or a reference.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { { BIND ( "mainsnak" AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/P3940> / <http://www.wikidata.org/prop/statement/P3940> ) ?var2 . } UNION { BIND ( "qualifier" AS ?var3 ). ?var1 ?var4 [ <http://www.wikidata.org/prop/qualifier/P3940> ?var2 ] . } UNION { BIND ( "reference" AS ?var3 ). ?var1 ?var4 [ <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P3940> ?var2 ] ] . } }


Question: What is the image associated with the SNAC ARK ID "w6zw2wtr"?

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

Can you show me the Wikimedia Commons image for the historical figure identified by SNAC ARK ID w6zw2wtr?

Which image is linked to Gonzalo Fernández de Córdoba in Wikidata?

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


Question: Who has the IMDb ID nm0427430?

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

Which Wikidata entity corresponds to the IMDb identifier nm0427430?

Find the person in Wikidata whose IMDb ID is nm0427430.

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


Question: What are the subclasses and superclasses of bounded operator within three levels?

SELECT DISTINCT ?entity ?label WHERE {
  BIND(wd:Q2342396 AS ?start)

  {
    ?start wdt:P279 ?entity .
    ?entity rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  UNION
  {
    ?start wdt:P279 ?step1 .
    ?step1 wdt:P279 ?entity .
    ?entity rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  UNION
  {
    ?start wdt:P279 ?step1 .
    ?step1 wdt:P279 ?step2 .
    ?step2 wdt:P279 ?entity .
    ?entity rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  UNION
  {
    ?entity wdt:P279 ?start .
    ?entity rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  UNION
  {
    ?entity wdt:P279 ?step1 .
    ?step1 wdt:P279 ?start .
    ?entity rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
}
LIMIT 50

Can you list all mathematical operators and functions that are directly or indirectly related to bounded operator through the subclass hierarchy?

Show me the hierarchy around bounded operator: what are its direct subclasses, their subclasses, and its direct superclasses?

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/Q2342396> ; <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> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } UNION { 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/Q2342396> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<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> "pt". } }


Question: Image of the person with SNAC ARK ID w60s1cvw

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

What is the image associated with Abu al-Faraj al-Isfahani’s SNAC ARK ID?

Please show me the Wikimedia Commons image linked to the SNAC ARK ID w60s1cvw.

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


Question: People with occupation cannabis grower

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 ?person ?personLabel WHERE {
  ?person wdt:P106 wd:Q43258770 .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = 'en')
}

Who are the people whose occupation is cannabis grower?

List the names of people who work as cannabis growers.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var4 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1344> * <http://www.wikidata.org/entity/Q4826273> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P106> ?var1 . } } GROUP BY ?var1 } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1344> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Articles in the Royal Society's biographical journals that are not about specific people, with their DOIs.

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 ?article ?articleLabel ?doi WHERE {
  {
    ?article wdt:P1433 wd:Q4914871 .
  } UNION {
    ?article wdt:P1433 wd:Q29043655 .
  }
  FILTER(NOT EXISTS {
    ?article wdt:P921 [] .
  })
  OPTIONAL {
    ?article wdt:P356 ?doi .
  }
  OPTIONAL {
    ?article rdfs:label ?articleLabel .
  }
}

What are the non-biographical articles (e.g., editorials or corrections) published in the Biographical Memoirs or Obituary Notices of the Royal Society, and what are their DOIs?

List all non-biographical publications (like editorials) from the Royal Society’s Biographical Memoirs and Obituary Notices journals, along with their DOIs and titles if available.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q4914871> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q29043655> . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P921> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1415> ?var4 . } } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P356> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who are the presidents of the United States?

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 ?person ?personLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P39 wd:Q11696 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

List all individuals who have held the office of President of the United States.

Which humans have been the head of state of the United States?

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/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/P39> <http://www.wikidata.org/entity/Q11696> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Image of Thomas Nixon Carver using SNAC ARK ID w6hx22k0

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

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

Show me the Wikimedia Commons image for the person with SNAC ARK ID w6hx22k0.

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


Question: What is the English label and description of the video game with MobyGames ID "arena-3000"?

SELECT ?game ?gameLabel ?description WHERE { ?game wdt:P1933 "arena-3000" . ?game rdfs:label ?gameLabel . FILTER (LANG(?gameLabel) = "en") OPTIONAL { ?game schema:description ?description . FILTER (LANG(?description) = "en") } }

Show me the name and a brief description in English for the game identified as "arena-3000" in MobyGames.

Which video game has the MobyGames identifier "arena-3000", and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1933> "arena-3000". 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 gender of Marie Curie?

SELECT ?genderLabel WHERE { wd:Q7186 wdt:P21 ?gender . ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = 'en') }

What is the sex or gender assigned to the scientist Marie Curie?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q3531808> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the gender of James John Teding van Berkhout?

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

Is James John Teding van Berkhout male or female?

What is the English label for the gender of the person with Wikidata ID Q2104883?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2104883> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the gender of Cristina Fernández de Kirchner according to Wikidata?

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 ?genderLabel WHERE {
  wd:Q40649 wdt:P21 ?gender .
  ?gender rdfs:label ?genderLabel .
  FILTER(LANG(?genderLabel) = "en")
}

Gender of Cristina Fernández de Kirchner in English label.

Show the English label for the gender of Cristina Fernández de Kirchner.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2467685> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the gender of Catherine, Princess of Wales?

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 ?gender ?genderLabel WHERE {
  wd:Q10479 wdt:P21 ?gender .
  ?gender rdfs:label ?genderLabel .
  FILTER ( LANG( ?genderLabel ) = "en" )
}

Is Catherine, Princess of Wales female according to Wikidata?

What is the English label for the gender of Catherine, Princess of Wales?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q952378> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the gender of Cornelis van Eesteren in English?

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

Is Cornelis van Eesteren male or female?

What label does Wikidata use for the gender of Cornelis van Eesteren?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q940647> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the gender of Samantha Bee according to Wikidata?

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

Is Samantha Bee identified as female in Wikidata, and what is the label for that gender?

What is the English label of the gender entity associated with Samantha Bee on Wikidata?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2491043> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What are the countries represented by athletes in sports, along with their English labels and descriptions?

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

Show me the English names and descriptions of countries that athletes represent in international sports.

Which countries have athletes representing them in sports, and what are their English labels and descriptions?

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


Question: What are the names, countries, and locations of buildings with known titles or coordinates?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?building ?title ?country ?coordinates WHERE {
  ?building wdt:P31 wd:Q41176 .
  OPTIONAL {
    ?building wdt:P1476 ?title .
  }
  OPTIONAL {
    ?building wdt:P17 ?country .
  }
  OPTIONAL {
    ?building wdt:P625 ?coordinates .
  }
  FILTER ( EXISTS {
    ?building wdt:P1476 ?title
  }
  || EXISTS {
    ?building wdt:P625 ?coordinates
  }
  )
}
LIMIT 100

Show me buildings around the world with their geographic coordinates and the countries they are in.

List buildings with known names or locations, including where they are located.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var4Label ?var5 ?var6 ?var7 ?var8 ?var9Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q41176> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P84> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P969> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P186> ?var9 . } } LIMIT 100


Question: Female Canadian actors born in 2000

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?actor ?actorLabel(STR(?birthDate) AS ?birthDateString) WHERE {
  ?actor wdt:P31 wd:Q5 .
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P27 wd:Q16 .
  ?actor wdt:P21 wd:Q6581072 .
  ?actor wdt:P569 ?birthDate .
  FILTER(?birthDate >= "2000-01-01T00:00:00" ^^ xsd:dateTime)
  FILTER(?birthDate < "2001-01-01T00:00:00" ^^ xsd:dateTime)
  ?actor rdfs:label ?actorLabel .
  FILTER(LANG(?actorLabel) = "en")
}

Who are the female Canadian actors born in the year 2000?

List the names and birth dates of all female Canadian actors born between January 1 and December 31, 2000.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q16> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . FILTER ( ( ( DATATYPE ( ?var3 ) = <http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( ( ?var3 > "1993-01-01T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ( ?var3 = "2000-01-01T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What property is most commonly used to associate entities with higher education?

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

Which Wikidata property links the most entities to higher education, and how many times is it used?

Show me the most frequently used property that connects items to higher education, along with its usage count.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q136822> . ?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 are the institutes of technology located in Turin?

SELECT ?inst ?instLabel WHERE { ?inst wdt:P31 wd:Q1371037 . ?inst wdt:P131 wd:Q495 . ?inst rdfs:label ?instLabel FILTER(LANG(?instLabel) = 'en') } LIMIT 100

List the technical universities in Turin, Italy.

Which university in Turin is classified as an institute of technology?

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


Question: Image of M. Stanley Livingston with SNAC ARK ID w6cf9r98

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

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

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

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


Question: What is the image associated with the SNAC ARK ID "w6w09bgq"?

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

Can you find the Wikimedia Commons image for the person or entity with SNAC ARK ID w6w09bgq?

Show the image of the entity identified by the SNAC ARK ID w6w09bgq, if one exists.

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


Question: Who are the presidents of the United States?

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

Which people have held the office of President of the United States?

List the names of all U.S. presidents who are real people (not fictional characters).

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2546798> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: Who have been the presidents of the United States?

SELECT ?person WHERE { ?person wdt:P39 wd:Q11696 . }

Which individuals have held the office of President of the United States?

List all people who have served as President of the United States.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q512948> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: Did Angela Merkel hold the position of Federal Chancellor of Germany?

SELECT ?position ?positionLabel WHERE { wd:Q567 wdt:P39 ?position . ?position rdfs:label ?positionLabel . FILTER(LANG(?positionLabel) = "en") FILTER(?position = wd:Q4970706) }

What position did Angela Merkel hold as head of the German government?

Show me the English label of the position held by Angela Merkel that corresponds to Federal Chancellor of Germany.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1682342> <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q13423495> . }


Question: Film with film-documentaire.fr ID 25742

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

Which film has the film-documentaire.fr ID 25742?

Tell me the Wikidata item for the film identified as 25742 in film-documentaire.fr.

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


Question: Is the United States House of Representatives part of the United States Congress?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q11701 wdt:P361 wd:Q11268 .
}

Does the United States Congress include the House of Representatives as a component?

Confirm whether the United States House of Representatives is a part of the United States Congress.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2512541> <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q856831> . }


Question: Who are the members of the Bicker family?

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 ?member ?memberLabel WHERE {
  ?member wdt:P463 wd:Q856831 .
  ?member rdfs:label ?memberLabel .
  FILTER ( LANG( ?memberLabel ) = 'en' )
}

List the English names of people who belong to the Bicker family.

Which individuals are recognized as part of the Dutch noble Bicker family in Wikidata?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q43181952> <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q856831> . }


Question: Was Albert Einstein a member of the Royal Prussian Academy of Sciences?

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 ?memberLabel ?organizationLabel WHERE {
  wd:Q937 wdt:P463 wd:Q329464 .
  wd:Q937 rdfs:label ?memberLabel .
  wd:Q329464 rdfs:label ?organizationLabel .
  FILTER ( LANG( ?memberLabel ) = "en" ) FILTER ( LANG( ?organizationLabel ) = "en" )
}

Which organization was Albert Einstein a member of?

Who was a member of the Royal Prussian Academy of Sciences?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q13750240> <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q856831> . }


Question: What Wikidata item has the VIAF ID 176800518?

SELECT DISTINCT ?item WHERE { ?item wdt:P214 "176800518" . }

Which entity is associated with the VIAF identifier 176800518?

Find the item in Wikidata that is linked to the Virtual International Authority File ID 176800518.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "176811327". }


Question: Subclasses of male singing voice

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

What are the different types of male singing voices in classical music?

List all voice types that are considered male singing voices.

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


Question: Named places classified as terrain in Wikidata

SELECT ?terrainPlace ?terrainPlaceLabel WHERE { ?terrainPlace wdt:P31 wd:Q14524493 . ?terrainPlace rdfs:label ?terrainPlaceLabel . FILTER(LANG(?terrainPlaceLabel) = "en") } ORDER BY ?terrainPlaceLabel

What are some specific geographical areas that are instances of terrain?

List the English-named locations that are categorized as terrain in Wikidata.

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


Question: What are the genre, country of origin, and main subject of the literary work identified by VIAF ID 313670221?

SELECT DISTINCT
  ?workLabel
  ?genreLabel
  ?countryLabel
  ?publicationDate
  ?mainSubjectLabel
WHERE {
  ?work wdt:P214 "313670221" .

  OPTIONAL { ?work wdt:P136 ?genre . ?genre rdfs:label ?genreLabel . FILTER(LANG(?genreLabel) = "en") }
  OPTIONAL { ?work wdt:P495 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") }
  OPTIONAL { ?work wdt:P577 ?publicationDate }
  OPTIONAL { ?work wdt:P921 ?mainSubject . ?mainSubject rdfs:label ?mainSubjectLabel . FILTER(LANG(?mainSubjectLabel) = "en") }

  ?work rdfs:label ?workLabel . FILTER(LANG(?workLabel) = "en")
}

Can you tell me about Romeo and Juliet — its genre(s), where it comes from, and its central theme?

What do we know about the origin and themes of the work with VIAF ID 313670221, including its genre and publication date?

SELECT DISTINCT ?var1 ?var2Label ?var3Label ?var4Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "313670221". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P495> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P921> ?var5 . } }


Question: What are the mountains in Wikidata?

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

Which entities are classified as mountains?

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


Question: What are the names of people named "Aline" in French?

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

Who are the humans in Wikidata that have the French name "Aline"?

Can you list all individuals with the French label "Aline"?

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


Question: What is the image of Carl Linnaeus in Wikimedia Commons, given his SNAC ARK ID is w6th8rk6?

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

Show the Commons image associated with the person identified by SNAC ARK ID w6th8rk6.

Which image is linked to Carl Linnaeus via his SNAC ARK ID?

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


Question: Books labeled with "novel" in English, along with their authors and publication dates.

SELECT DISTINCT ?bookLabel ?authorLabel ?publicationDate WHERE { ?book wdt:P31 wd:Q571 . ?book rdfs:label ?bookLabel . ?book wdt:P50 ?author . ?author rdfs:label ?authorLabel . OPTIONAL { ?book wdt:P577 ?publicationDate . } FILTER (LANG(?bookLabel) = "en") FILTER (LANG(?authorLabel) = "en") FILTER (CONTAINS(LCASE(?bookLabel), "novel")) } LIMIT 10

What are English-language novels and who are their authors, with optional publication years?

List books whose titles include the word "novel" in English, showing their authors and when they were published, if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . ?var5 <http://wikiba.se/ontology#directClaim> ?var6 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> "author"@en . ?var7 <http://wikiba.se/ontology#directClaim> ?var8 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> "string2"@en . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var2 ?var8 ?var10 . ?var10 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . OPTIONAL { ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var2 ?var6 ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P31> ?var9 . } FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . FILTER ( ( REGEX ( ?var1 , "string3", "i" ) ) ) . } LIMIT 10


Question: What is the Wikidata item for the person with IMDb ID nm0000237?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P345 "nm0000237" .
}
ORDER BY ASC ( ?item )

Which entity in Wikidata is linked to the IMDb identifier nm0000237?

Find the Wikidata item that has the IMDb ID nm0000237.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "nm0003255". } ORDER BY ASC( ?var1 )


Question: Units of energy in Wikidata

SELECT ?unit ?unitLabel WHERE { ?unit wdt:P111 wd:Q11379 . ?unit rdfs:label ?unitLabel . FILTER(LANG(?unitLabel) = "en") } LIMIT 10000

What are the units used to measure energy?

List all units that measure the physical quantity of energy.

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


Question: Current administrative divisions of sovereign states with English labels.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?division ?countryLabel ?divisionLabel WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?country wdt:P150 ?division .
  FILTER NOT EXISTS {
    ?country p:P150 ?statement .
    ?statement ps:P150 ?division .
    ?statement pq:P582 ?end .
  }
  ?country rdfs:label ?countryLabel .
  ?division rdfs:label ?divisionLabel .
  FILTER(LANG(?countryLabel) = "en")
  FILTER(LANG(?divisionLabel) = "en")
}

Which administrative divisions currently exist in each sovereign state, and what are their names in English?

List all currently active administrative divisions of countries along with their English names.

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


Question: Companies with lowest revenue per employee in USD, with revenue and employee count for the same year.

SELECT ?company ?companyLabel ?revenue ?employees ?revenuePerEmployee ?revenueYear ?employeesYear ?revenueUnit ?revenueUnitLabel WHERE { ?company wdt:P1128 ?employees . ?company p:P2139 ?revenueStatement . ?revenueStatement ps:P2139 ?revenueAmount . ?revenueStatement pq:P585 ?revenueYear . ?revenueStatement psv:P2139 ?revenueValue . ?revenueValue wikibase:quantityUnit ?revenueUnit ; wikibase:quantityAmount ?revenue . FILTER ( ?revenueUnit = wd:Q4917 ) . ?company p:P1128 ?employeesStatement . ?employeesStatement ps:P1128 ?employees . ?employeesStatement pq:P585 ?employeesYear . FILTER ( YEAR(?revenueYear) = YEAR(?employeesYear) ) . BIND( xsd:float(?revenue) / xsd:float(?employees) AS ?revenuePerEmployee ) . ?company rdfs:label ?companyLabel . ?revenueUnit rdfs:label ?revenueUnitLabel . FILTER( LANG(?companyLabel) = "en" ) FILTER( LANG(?revenueUnitLabel) = "en" ) } ORDER BY ASC(?revenuePerEmployee)

Which companies have the smallest revenue per employee in the United States dollar, where both revenue and employee numbers are reported for the same year?

Show me a list of organizations ranked by their revenue per employee (in USD), using matching years for both revenue and headcount data, sorted from lowest to highest ratio.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ( ( <http://www.w3.org/2001/XMLSchema#float> ( ?var2 ) / <http://www.w3.org/2001/XMLSchema#float> ( ?var3 ) ) AS ?var5 ) ?var6 ?var7 ?var8 ?var9 ?var10Label WHERE { BIND ( YEAR ( ?var7 ) AS ?var9 ). ?var1 <http://www.wikidata.org/prop/direct/P1128> ?var3 . ?var1 <http://www.wikidata.org/prop/P1128> ?var11 . ?var11 <http://www.wikidata.org/prop/statement/P1128> ?var4 . ?var11 <http://www.wikidata.org/prop/qualifier/P585> ?var7 . ?var1 <http://www.wikidata.org/prop/P2139> ?var12 . ?var12 <http://www.wikidata.org/prop/statement/P2139> ?var2 . ?var12 <http://www.wikidata.org/prop/qualifier/P585> ?var6 . ?var1 ( <http://www.wikidata.org/prop/P2139> / <http://www.wikidata.org/prop/statement/value/P2139> ) ?var13 . { ?var13 <http://wikiba.se/ontology#quantityUnit> ?var10 ; <http://wikiba.se/ontology#quantityAmount> ?var14 . FILTER ( ( ( ?var10 = <http://www.wikidata.org/entity/Q4917> ) ) ) . } BIND ( YEAR ( ?var6 ) AS ?var8 ). FILTER ( ( ( ?var8 = ?var9 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY ASC( ?var5 )


Question: What is the most specific shared category that includes both Costa Rica and Pennsylvania?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ancestor ( ( ?distCR + ?distPA ) AS ?totalDist ) WHERE {
  {
    VALUES ?crType {
      wd:Q6256 wd:Q3624078
    }
    ?crType wdt:P279 ?ancestor .
    BIND( 1 AS ?distCR )
  } UNION {
    VALUES ?crType {
      wd:Q6256 wd:Q3624078
    }
    ?crType wdt:P279 ?mid .
    ?mid wdt:P279 ?ancestor .
    BIND( 2 AS ?distCR )
  } UNION {
    VALUES ?crType {
      wd:Q6256 wd:Q3624078
    }
    ?crType wdt:P279 ?mid1 .
    ?mid1 wdt:P279 ?mid2 .
    ?mid2 wdt:P279 ?ancestor .
    BIND( 3 AS ?distCR )
  } UNION {
    VALUES ?crType {
      wd:Q6256 wd:Q3624078
    }
    ?crType ?p ?ancestor .
    FILTER ( ?crType = ?ancestor ) .
    BIND( 0 AS ?distCR )
  }
  {
    VALUES ?paType {
      wd:Q35657
    }
    ?paType wdt:P279 ?ancestor .
    BIND( 1 AS ?distPA )
  } UNION {
    VALUES ?paType {
      wd:Q35657
    }
    ?paType wdt:P279 ?mid .
    ?mid wdt:P279 ?ancestor .
    BIND( 2 AS ?distPA )
  } UNION {
    VALUES ?paType {
      wd:Q35657
    }
    ?paType wdt:P279 ?mid1 .
    ?mid1 wdt:P279 ?mid2 .
    ?mid2 wdt:P279 ?ancestor .
    BIND( 3 AS ?distPA )
  } UNION {
    VALUES ?paType {
      wd:Q35657
    }
    ?paType ?p ?ancestor .
    FILTER ( ?paType = ?ancestor ) .
    BIND( 0 AS ?distPA )
  }
  FILTER ( ?distCR <= 3 && ?distPA <= 3 )
}
ORDER BY ASC ( ?totalDist )
LIMIT 1

Which superclass is closest to both Costa Rica and Pennsylvania in the Wikidata hierarchy, considering their types?

Find the common ancestor in the subclass hierarchy of Costa Rica and Pennsylvania with the smallest total distance from both.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q800> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q1400> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific shared category that includes both cities and sovereign states?

SELECT ?commonAncestor (SUM(?dist1 + ?dist2) AS ?totalDistance) WHERE { { SELECT ?ancestor1 (COUNT(?mid1) AS ?dist1) WHERE { wd:Q515 wdt:P279+ ?mid1 . ?mid1 wdt:P279* ?ancestor1 . FILTER(?ancestor1 != wd:Q515) } GROUP BY ?ancestor1 } { SELECT ?ancestor2 (COUNT(?mid2) AS ?dist2) WHERE { wd:Q3624078 wdt:P279+ ?mid2 . ?mid2 wdt:P279* ?ancestor2 . FILTER(?ancestor2 != wd:Q3624078) } GROUP BY ?ancestor2 } FILTER(?ancestor1 = ?ancestor2) BIND(?ancestor1 AS ?commonAncestor) } GROUP BY ?commonAncestor ORDER BY ASC(?totalDistance) LIMIT 1

Which taxonomic class is the closest common ancestor of Abu Dhabi and Costa Rica based on their types?

What is the highest-level category that both a city like Abu Dhabi and a country like Costa Rica belong to, according to Wikidata’s classification hierarchy?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q800> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q1519> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific category that both the United Nations and Likud belong to?

SELECT ?commonAncestor ?label WHERE { VALUES ?commonAncestor { wd:Q3778211 } ?commonAncestor rdfs:label ?label . FILTER(LANG(?label) = "en") }

What do the United Nations and Likud have in common in terms of their classification in Wikidata?

What is the highest-level shared class that includes both the United Nations and the Likud political party?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q1065> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q187009> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific category that both Boko Haram and Angola belong to in the Wikidata taxonomy?

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 ?commonClass ?label WHERE {
  wd:Q212372 wdt:P31 ?class1 .
  ?class1 wdt:P279 * ?commonClass .
  wd:Q916 wdt:P31 ?class2 .
  ?class2 wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(STR(?label) = "person or organization")
}

Find the shared superclass in the hierarchy between the terrorist organization Boko Haram and the country Angola.

What is the common parent class in Wikidata for Boko Haram and Angola, based on their instance-of and subclass-of relationships?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q212372> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q916> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most general category that both American Airlines and Vladimir Putin belong to?

SELECT ?ancestor WHERE { VALUES ?ancestor { wd:Q35120 } }

What is the highest-level class in the Wikidata taxonomy that includes both an airline and a human?

What is the common superclass of the category "airline" and the category "human"?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q32396> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q7747> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific category that both the United States and South Korea belong to, based on their classification in Wikidata?

SELECT ?common ?commonLabel (COUNT(?country) AS ?numCountries)
WHERE {
  # Types of United States
  wd:Q30 wdt:P31 ?type1 .
  # Types of South Korea
  wd:Q884 wdt:P31 ?type2 .

  # Superclasses of those types
  ?type1 wdt:P279* ?common .
  ?type2 wdt:P279* ?common .

  # Count how many countries are instances of ?common
  ?country wdt:P31 ?common .
  ?country wdt:P31 wd:Q3624078 .  # Only count sovereign states

  # Get label
  ?common rdfs:label ?commonLabel .
  FILTER(LANG(?commonLabel) = "en")
}
GROUP BY ?common ?commonLabel
ORDER BY ASC(?numCountries)
LIMIT 1

Which common superclass of the United States and South Korea has the fewest sovereign states as instances?

Find the narrowest shared classification category between the United States and South Korea in Wikidata’s hierarchy.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q30> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q884> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1