Question: Image of the person with SNAC ARK ID w6ww8mw0

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

What is the image associated with Alexander Fraser Tytler, Lord Woodhouselee in Wikidata?

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

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


Question: Humans born between January 2 and July 1, 1993, including their names, gender, place of birth, and family/given names.

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 ?person ?personLabel ?familyNameLabel ?givenNameLabel ?genderLabel ?dob ?birthPlaceLabel ?birthPlace WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P569 ?dob .
  FILTER ( ?dob >= "1993-01-02" ^^ xsd:date && ?dob < "1993-07-01" ^^ xsd:date ) OPTIONAL {
    ?person wdt:P734 ?familyName .
    ?familyName rdfs:label ?familyNameLabel .
    FILTER ( LANG( ?familyNameLabel ) = "en" )
  }
  OPTIONAL {
    ?person wdt:P735 ?givenName .
    ?givenName rdfs:label ?givenNameLabel .
    FILTER ( LANG( ?givenNameLabel ) = "en" )
  }
  OPTIONAL {
    ?person wdt:P21 ?gender .
    ?gender rdfs:label ?genderLabel .
    FILTER ( LANG( ?genderLabel ) = "en" )
  }
  OPTIONAL {
    ?person wdt:P19 ?birthPlace .
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER ( LANG( ?birthPlaceLabel ) = "en" )
  }
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
ORDER BY ?person

Who were the people born between January 2 and July 1, 1993, and what are their given names, family names, gender, and birthplaces?

List all humans born in the first half of 1993 with their full names, gender, and place of birth, using English labels.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var10 . } BIND ( ( ( ?var9 - ?var7 ) /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var11 ). FILTER ( ( ( ?var7 >= "1993-01-02"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var7 < "1993-07-01"^^<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". } } ORDER BY ASC( ?var1 )


Question: What are the types of bilabial fricative consonants?

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

Which consonants are both bilabial and fricative?

List all subclasses of consonants that are both bilabial and fricative.

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


Question: Male grandchildren of Princess Cecilia of Sweden and their fathers.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?grandchild ?child WHERE {
  wd:Q271940 wdt:P40 ?child .
  ?child wdt:P40 ?grandchild .
  ?grandchild wdt:P21 wd:Q6581097 .
}
LIMIT 101

Who are the male grandchildren of Princess Cecilia of Sweden, and who are their fathers?

List all male descendants two generations below Princess Cecilia of Sweden, along with their immediate parents.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P21> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P21> <http://www.wikidata.org/entity/Q6581097> . <http://www.wikidata.org/entity/Q271940> <http://www.wikidata.org/prop/P40> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P40> ?var2 . ?var2 <http://www.wikidata.org/prop/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P40> ?var1 . } LIMIT 101


Question: People born between July 1, 1939 and December 31, 1939, including their gender, birthplace, and names.

SELECT ?person ?birthDate ?familyName ?givenName ?gender ?birthPlace WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birthDate . OPTIONAL { ?person wdt:P734 ?familyName . } OPTIONAL { ?person wdt:P735 ?givenName . } OPTIONAL { ?person wdt:P21 ?gender . } OPTIONAL { ?person wdt:P19 ?birthPlace . } FILTER ( ?birthDate >= "1939-07-01"^^xsd:date && ?birthDate < "1940-01-01"^^xsd:date ) } ORDER BY ?person

Who were born between July 1, 1939 and January 1, 1940, and what are their given names, family names, genders, and places of birth?

List all humans born in the second half of 1939, along with their birth details such as gender, birthplace, and first and last names.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var10 . } BIND ( ( ( ?var9 - ?var7 ) /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var11 ). FILTER ( ( ( ?var7 >= "1939-07-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var7 < "1940-01-01"^^<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". } } ORDER BY ASC( ?var1 )


Question: Sovereign states and their demonyms with Wikidata IDs in {Q123} format

SELECT ?item ?demonym ( CONCAT( "{", REPLACE( STR( ?item ), "http://www.wikidata.org/entity/", "" ), "}" ) AS ?id ) WHERE { ?item wdt:P31 wd:Q3624078 . ?item wdt:P1549 ?demonym . }

What are the demonyms for sovereign states, and how are their Wikidata IDs formatted as {Q123}?

List all sovereign states along with their demonyms and show their entity IDs wrapped in curly braces like {Q123}.

SELECT ?var1 ?var2 ( CONCAT ( "{", "string1", ?var3 , "string2", "}" ) AS ?var4 ) WHERE { BIND ( REPLACE ( STR ( ?var1 ) , "string3", "" ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> ; <http://www.wikidata.org/prop/P1549> [ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/prop/novalue/P1549> ; <http://www.wikidata.org/prop/qualifier/P510> ?var2 ] . ?var1 <http://www.wikidata.org/prop/direct/P1549> ?var5 . }


Question: People born between July 1 and December 31, 1947, with their birthplaces and English labels.

SELECT ?person ?personLabel ?birthDate ?placeOfBirthLabel ?placeOfBirth WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birthDate . FILTER ( ?birthDate >= "1947-07-01"^^xsd:date && ?birthDate < "1948-01-01"^^xsd:date ) ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") OPTIONAL { ?person wdt:P19 ?placeOfBirth . ?placeOfBirth rdfs:label ?placeOfBirthLabel . FILTER(LANG(?placeOfBirthLabel) = "en") } } ORDER BY ASC(?person)

Who were the humans born between July 1, 1947 and January 1, 1948, and where were they born?

List the names and birthplaces of all humans born in the second half of 1947.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var10 . } BIND ( ( ( ?var9 - ?var7 ) /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var11 ). FILTER ( ( ( ?var7 >= "1947-07-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var7 < "1948-01-01"^^<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". } } ORDER BY ASC( ?var1 )


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

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

Show the Wikimedia Commons image associated with the SNAC ARK ID w6z03v2w.

Which image is linked to F. David Mathews in Wikidata?

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


Question: People who died in 1901, including their birth date and place of birth.

SELECT ?person ?personLabel ?birthDate ?deathDate ?ageInYears ?birthPlace WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P570 ?deathDate . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P19 ?birthPlace . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") BIND( ( ( ?deathDate - ?birthDate ) / "365.2425"^^xsd:decimal ) AS ?ageInYears ) FILTER( ?deathDate >= "1901-01-01"^^xsd:date && ?deathDate < "1902-01-01"^^xsd:date ) } ORDER BY ASC(?person) LIMIT 5

Who were the people that died in 1901, and when and where were they born?

List humans who died in 1901 with their names, birth dates, and birth places.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var6Label ?var7 ?var8Label ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var9 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var10 . } BIND ( ( ( ?var9 - ?var7 ) /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var11 ). FILTER ( ( ( ?var9 >= "1901-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var9 < "1901-01-02"^^<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". } } ORDER BY ASC( ?var1 )


Question: Is the Chilean commune of Cerrillos a type of software?

Does Cerrillos belong to any category that is a subclass of software?

Can a geographical administrative division like Cerrillos be classified as software?

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


Question: What software applications are digital calendars?

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 ?software ?softwareLabel WHERE {
  ?software wdt:P31 wd:Q2933820 .
  OPTIONAL {
    ?software rdfs:label ?softwareLabel
    FILTER(LANG(?softwareLabel) = 'en')
  }
}

Which programs provide calendar functionality?

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


Question: Items in the Musée du quai Branly collection with their English names and images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?image WHERE {
  ?item wdt:P195 wd:Q167863 .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 100

What are the items in the Musée du quai Branly collection, and what are their English labels and images?

Show me the English names and images of all items held in the Musée du quai Branly.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q167863> . 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/P18> ?var3 . } } LIMIT 100


Question: What are the occupations of G-Eazy?

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 ?occupation ?occupationLabel WHERE {
  wd:Q5511893 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}

List the professions of the American rapper G-Eazy.

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


Question: What is the French label and description of the property that links representatives to electoral districts?

SELECT ?propLabel ?propDescription WHERE { wd:P768 rdfs:label ?propLabel . wd:P768 schema:description ?propDescription . FILTER(LANG(?propLabel) = "fr") . FILTER(LANG(?propDescription) = "fr") }

How is the electoral district represented in French in Wikidata?

Which property in French indicates the electoral constituency a person represents?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q192611> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } LIMIT 100


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

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

Image of David Auburn (SNAC ARK ID w6c27nqv)

Show me the Wikimedia Commons image associated with the SNAC ARK ID w6c27nqv.

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


Question: Does Jørgen Ringnis have a mitochondrial DNA haplogroup?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q196060 wdt:P1887 ?haplogroup .
}

Is there any mitochondrial DNA haplogroup associated with Jørgen Ringnis in Wikidata?

Check if Jørgen Ringnis is documented as having a mitochondrial DNA haplogroup.

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


Question: Family names in Wikidata not assigned to any person, with English labels.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item(SAMPLE(?label) AS ?labelName) WHERE {
  ?item wdt:P31 wd:Q101352 . MINUS {
    ?person wdt:P734 ?item .
  }
  ?item rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(! CONTAINS(STR(?label) , "family name"))
}
GROUP BY ?item
HAVING(COUNT(?label) = 1)
LIMIT 10

Which family names exist in Wikidata but are not used as surnames for any person?

List English-language family names in Wikidata that are not currently linked to any individual as their last name.

SELECT ?var1 ( SAMPLE ( ?var2Label ) AS ?var2Label ) WHERE { SELECT DISTINCT ?var1 ?var2Label ( COUNT ( ?var2Label ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q101352> . ?var1 <http://wikiba.se/ontology#sitelinks> "0"^^<http://www.w3.org/2001/XMLSchema#integer> . ?var1 <http://wikiba.se/ontology#statements> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . ?var4 ?var5 ?var1 . MINUS { ?var4 <http://www.wikidata.org/prop/direct/P734> ?var1 . } OPTIONAL { ?var1 ?var6 [ <http://www.w3.org/ns/prov#wasDerivedFrom> ?var7 ] . ?var7 ?var8 [] . } FILTER ( ( !( BOUND ( ?var7 ) ) ) ) . OPTIONAL { ?var1 ?var9 ?var10 . ?var11 <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#ExternalId> . ?var11 <http://wikiba.se/ontology#directClaim> ?var9 . } BIND ( STR ( ?var12Label ) AS ?var2Label ). FILTER ( ( !( BOUND ( ?var10 ) ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . } GROUP BY ?var1 ?var2Label } GROUP BY ?var1 HAVING ( ( COUNT ( ?var2Label ) = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: Battles from the Seven Years' War with their locations and start/end dates.

SELECT ?battle ?battleLabel ?location ?startDate ?endDate WHERE { ?battle (wdt:P31/wdt:P279*) wd:Q178561 . ?battle wdt:P361 wd:Q33143 . ?battle wdt:P625 ?location . ?battle wdt:P580 ?startDate . ?battle wdt:P582 ?endDate . } LIMIT 10

What were the battles during the Seven Years' War, and where and when did they occur?

List the battles that were part of the Seven Years' War, including their geographic coordinates, start times, and end times.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q178561> . ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q33143> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: What is the author of the article "The field archaeology of mottes in England and Wales: Eine kurze übersicht", and how can I find their academic profile?

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 ?author ?authorLabel(COALESCE(?orcid , CONCAT("https://orcid.org/" , ENCODE_FOR_URI(?authorLabel))) AS ?orcidOrUrl) WHERE {
  wd:Q47089090 wdt:P50 ?author .
  OPTIONAL {
    ?author wdt:P496 ?orcid .
  }
  ?author rdfs:label ?authorLabel .
  FILTER(LANG(?authorLabel) = "en")
}

Show the author of the 1972 article on mottes in England and Wales, and provide their ORCID if available; otherwise, generate a URL using their name.

Can you find the author of "The field archaeology of mottes in England and Wales" and link to their ORCID profile or create a name-based URL if no ORCID exists?

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q47089090> <http://www.wikidata.org/prop/direct/P50> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,da,de,es,fr,nl,no,ru,sv,zh". } }


Question: Who died in 1996, and how old were they at the time of death?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?dateOfDeath ?age WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P570 ?dateOfDeath .
  FILTER ( YEAR( ?dateOfDeath ) = 1996 ) .
  OPTIONAL {
    ?person wdt:P569 ?dateOfBirth .
  }
  BIND( ( ( ?dateOfDeath - ?dateOfBirth ) / "365.2425" ^^ xsd:decimal ) AS ?age ) OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER ( LANG( ?personLabel ) = "en" )
  }
}
ORDER BY ASC ( ?person )
LIMIT 10

List the names and ages of people who passed away in 1996, if their birth date is known.

Can you show me a list of humans who died in 1996, along with their English names and estimated age at death?

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var4Label ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var7 . } ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P20> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var10 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } BIND ( ( ( ?var3 - ?var7 ) /"365.2425"^^<http://www.w3.org/2001/XMLSchema#decimal> ) AS ?var5 ). FILTER ( ( ( ?var3 >= "1996-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var3 < "1996-01-02"^^<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". } } ORDER BY ASC( ?var1 )


Question: World Heritage Sites inscribed in 1973

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT DISTINCT ?site ?siteLabel WHERE {
  ?site p:P1435 ?stmt .
  ?stmt pq:P580 ?date .
  FILTER(YEAR(?date) = 1973)
  .
  ?site rdfs:label ?siteLabel .
  FILTER(LANG(?siteLabel) = "en")
}
LIMIT 100

Which World Heritage Sites were inscribed in 1973?

List the World Heritage Sites that were added to the UNESCO list in 1973.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P757> "1973". FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } ) ) . } LIMIT 1000


Question: What books have been written by the author of "The English Castle", and when were they published?

SELECT ?work ?workLabel ?publicationDate ?authorLabel WHERE { wd:Q43756571 wdt:P50 ?author . ?work wdt:P50 ?author . OPTIONAL { ?work wdt:P577 ?publicationDate . } ?work rdfs:label ?workLabel . ?author rdfs:label ?authorLabel . FILTER (LANG(?workLabel) = "en") FILTER (LANG(?authorLabel) = "en") } ORDER BY ?publicationDate LIMIT 1000

Show me all works by John Goodall, sorted by publication date, including their titles and release years.

Which other books did the author of "The English Castle" write, and in what order were they published?

SELECT( MIN ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( GROUP_CONCAT ( ?var4Label ; SEPARATOR = " // " ) AS ?var5 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q43756571> . OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var6 ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P577> ?var6 . } OPTIONAL { ?var3 ( <http://www.wikidata.org/prop/direct/P50> / <http://www.w3.org/2000/01/rdf-schema#label> ) ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ORDER BY DESC( ?var2 ) LIMIT 1000


Question: What properties are associated with Socks Clinton, and what are their values in English?

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

For each property of the cat Socks Clinton, show its English label, how many values it has, and what those values are labeled as in English.

Can you list all the properties of Socks Clinton with their English names, the count of their values, and the English labels of those values?

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


Question: Is the town Groß Disnack considered a human?

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

Does Groß Disnack belong to the category of humans or any of its subclasses?

Is Groß Disnack a person or a type of human?

ASK WHERE { <http://www.wikidata.org/entity/Q633624> ( <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: Banks in the banking industry with their websites and employee counts, ordered by size.

SELECT ?bank ?bankLabel ?website ?employeeCount WHERE { ?bank wdt:P31 wd:Q4830453 . ?bank wdt:P452 wd:Q3435731 . ?bank wdt:P856 ?website . OPTIONAL { ?bank wdt:P1128 ?employeeCount . } ?bank rdfs:label ?bankLabel . FILTER(LANG(?bankLabel) = "en") } ORDER BY DESC(?employeeCount) LIMIT 100

Which banks operate in the banking sector, what are their official websites, and how many employees do they have, listed from largest to smallest?

Show me a list of banking businesses with their official websites and number of employees, sorted by the number of employees in descending order.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/direct/P452> <http://www.wikidata.org/entity/Q3435731> . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1128> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var3 ) LIMIT 100


Question: Monarchs of Spain and their birth dates

SELECT ?monarch ?monarchLabel ?birthDate WHERE { ?monarch wdt:P39 wd:Q3847454 . ?monarch wdt:P569 ?birthDate . ?monarch rdfs:label ?monarchLabel . FILTER(LANG(?monarchLabel) = "en") }

Who were the monarchs of Spain and when were they born?

List all the people who held the title of Monarch of Spain along with their dates of birth.

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


Question: How many academic articles citing "Recognizing and Moving on from a Failed Paradigm..." were published each year, and do they have authors?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year ( COUNT( DISTINCT ?citingWork ) AS ?count ) ?hasAuthor WHERE {
  BIND( wd:Q44497747 AS ?citedArticle ) .
  ?citingWork wdt:P2860 ?citedArticle .
  ?citingWork wdt:P577 ?pubDate .
  BIND( STR( YEAR( ?pubDate ) ) AS ?year ) .
  BIND( IF( EXISTS {
    ?citingWork wdt:P50 []
  }
  , "has_author" , "no_author" ) AS ?hasAuthor )
}
GROUP BY ?year ?hasAuthor
ORDER BY DESC ( ?year )

In which years were articles that cite the 2015 paper on Anglo-Saxon agricultural landscapes published, and how many such articles with authors were published per year?

Show me the count of citing works for the academic paper on Anglo-Saxon landscapes grouped by publication year, indicating whether each citing work has at least one author.

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


Question: Japanese-labeled subclasses and their superclasses in Wikidata.

SELECT ?subclass ?superclass ?subclassLabel ?superclassLabel WHERE { ?subclass wdt:P279 ?superclass . ?subclass rdfs:label ?subclassLabel . ?superclass rdfs:label ?superclassLabel . FILTER (LANG(?subclassLabel) = "ja") . FILTER (LANG(?superclassLabel) = "ja") . } LIMIT 1000

What are the subclass-superclass relationships in Wikidata where both the subclass and superclass have Japanese labels?

Show me pairs of Japanese-labeled classes and their parent classes from Wikidata.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var5Label ) = "ja" ) ) ) . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var5Label ) = "ja" ) ) ) . } LIMIT 1000


Question: Who has the given name Charlotte and the family name Lecocq?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P735 wd:Q264002 ; wdt:P734 wd:Q31212513 .
}

Which person has Charlotte as their first name and Lecocq as their last name?

Find the person whose first name is Charlotte and last name is Lecocq.

SELECT ?var1 WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q101352> ; <http://www.w3.org/2000/01/rdf-schema#label> "Lecocq"@fr . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q202444> ; <http://www.w3.org/2000/01/rdf-schema#label> "Charlotte"@fr . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 ; <http://www.wikidata.org/prop/direct/P735> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } LIMIT 2


Question: Most frequently used property linking items to Semantic Web

SELECT ?directProperty (COUNT(?directProperty) AS ?count) WHERE { ?item ?statementProperty wd:Q54837 . ?directProperty wikibase:directClaim ?statementProperty . ?directProperty rdf:type wikibase:Property . } GROUP BY ?directProperty ORDER BY DESC(?count) LIMIT 1

Which property is used most often to classify entities as instances of Semantic Web?

Show me the property that connects the most items to the Semantic Web, along with how many times it's used.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q54837> . ?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 pairs of topics are shared by other works with the chapter "Late-antique dining: architecture, furnishings and behavior"?

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 ?topic1 ?topic1Label ?topic2 ?topic2Label WHERE {
  wd:Q47035596 wdt:P921 ?topic1 .
  wd:Q47035596 wdt:P921 ?topic2 .
  ?work wdt:P921 ?topic1 ; wdt:P921 ?topic2 .
  FILTER(?topic1 != ?topic2)
  OPTIONAL {
    ?topic1 rdfs:label ?topic1Label .
    FILTER(LANG(?topic1Label) = "en")
  }
  OPTIONAL {
    ?topic2 rdfs:label ?topic2Label .
    FILTER(LANG(?topic2Label) = "en")
  }
}

Which two main subjects, besides each other, appear together in other works that also share a main subject with the chapter "Late-antique dining: architecture, furnishings and behavior"?

List all distinct pairs of topics (with their English labels) that are main subjects of other works which also have at least one main subject in common with the chapter "Late-antique dining: architecture, furnishings and behavior".

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/Q47035596> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q47035596> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q47035596> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q47035596> != ?var1 ) && ( <http://www.wikidata.org/entity/Q47035596> != ?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: Top authors of papers in ISWC 2007 conference proceedings, with their images and publication counts.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ( SAMPLE( ?image ) AS ?imageSample ) ?author ?authorLabel ?publicationCount WHERE {
  {
    SELECT ?author ( COUNT( ?work ) AS ?publicationCount ) WHERE {
      ?work wdt:P1433 wd:Q28553532 ; wdt:P50 ?author .
    }
    GROUP BY ?author
  }
  ?author wdt:P18 ?image .
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" )
}
GROUP BY ?author ?authorLabel ?publicationCount
ORDER BY DESC ( ?publicationCount )
LIMIT 50

Who are the most frequent authors in the 2007 International Semantic Web Conference proceedings, and what are their images and how many papers did they write?

List the top 50 authors who contributed to the ISWC 2007 proceedings, ordered by number of publications, along with their English names and Wikimedia Commons images.

SELECT( SAMPLE ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ?var4 WHERE { { SELECT ?var3 ( COUNT ( ?var5 ) AS ?var4 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q28553532> ; <http://www.wikidata.org/prop/direct/P50> ?var3 . } GROUP BY ?var3 } ?var3 <http://www.wikidata.org/prop/direct/P18> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,fr,zh,jp,es". } } GROUP BY ?var3 ?var3Label ?var4 ORDER BY DESC( ?var4 ) LIMIT 50


Question: Who are the human members of the Academy of Esperanto?

SELECT ?member WHERE { ?member wdt:P31 wd:Q5 . ?member wdt:P463 wd:Q202479 .}

List all people who belong to the Academy of Esperanto.

Which individuals are both human and members of the Academy of Esperanto?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P463> <http://www.wikidata.org/entity/Q202479> . }


Question: Image of Charles Thomson with SNAC ARK ID w6np266j

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

What is the image of the historical figure with SNAC ARK ID w6np266j?

Show me the Wikimedia Commons image for Charles Thomson, identified by the SNAC ARK ID w6np266j.

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


Question: Properties and values of Jacques Brel with English labels and his image

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ?value ?valueLabel ?image WHERE {
  wd:Q1666 ?property ?value .
  ?value rdfs:label ?valueLabel .
  OPTIONAL {
    wd:Q1666 wdt:P18 ?image .
  }
  FILTER ( LANG( ?valueLabel ) = "en" )
}
ORDER BY ?property ?value
LIMIT 20

What are Jacques Brel’s occupations, nationalities, and other attributes in English, and what is his image?

Show me all the attributes of Jacques Brel with their English labels and his photo.

SELECT ?var1 ?var2Label ?var3 ?var4Label ?var5 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q1666> AS ?var3 ). BIND ( "N/A" AS ?var1 ). BIND ( "identity"@en AS ?var2Label ). } UNION { <http://www.wikidata.org/entity/Q1666> ?var1 ?var3 . ?var6 ?var7 ?var1 . ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var5 . } FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 20


Question: Books with their English titles, genres, collections, and publication dates.

SELECT DISTINCT ?book ?bookLabel ?genreLabel ?collectionLabel ?publicationDate WHERE { ?book wdt:P31 wd:Q571 . OPTIONAL { ?book wdt:P136 ?genre . ?genre rdfs:label ?genreLabel . FILTER(LANG(?genreLabel) = "en") } OPTIONAL { ?book wdt:P195 ?collection . ?collection rdfs:label ?collectionLabel . FILTER(LANG(?collectionLabel) = "en") } OPTIONAL { ?book wdt:P577 ?publicationDate } ?book rdfs:label ?bookLabel . FILTER(LANG(?bookLabel) = "en") } LIMIT 20

What are the English titles, genres, collections, and publication dates of books in Wikidata?

Show me up to 20 books, including their English labels, any associated genre and collection labels in English, and their publication dates.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var1Label ?var4Label ?var5Label ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var7 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#lable> ?var3 . ?var1 <http://dbpedia.org/ontology/author> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#lable> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P195> ?var9 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 20


Question: What properties are used to link other entities to the newspaper Gazeta Wrocławska, and how many times are they used?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel(COUNT(?item) AS ?count) WHERE {
  ?item ?propertyValue wd:Q9266428 .
  ?property wikibase:directClaim ?propertyValue .
  ?property rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
GROUP BY ?property ?propertyLabel
ORDER BY DESC(?count)

Which properties connect items to Gazeta Wrocławska in Wikidata, and what are their usage counts?

List the properties and their frequencies for statements where Gazeta Wrocławska is the object.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q9266428> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: Which Wikidata property is linked to the Art UK painters database?

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 ?property ?propertyLabel WHERE {
  ?property wdt:P1629 wd:Q19847649 .
  ?property rdfs:label ?propertyLabel .
}

What is the Wikidata property that corresponds to the Art UK artists database?

Show me the property used by Art UK to identify artists, along with its labels in all languages.

SELECT ?var1 WHERE { VALUES ( ?var2 ) { ( "string1" ) } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var2 <http://www.wikidata.org/prop/direct/P1629> <http://www.wikidata.org/entity/Q19847649> . }


Question: Image of Karl Ludwig von Littrow (SNAC ARK ID: w68f3ng2)

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

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

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

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


Question: Wikidata items with NE.se ID but no Swedish Wikipedia page, and their language codes.

SELECT ?item ?lang WHERE { ?item wdt:P3222 ?neId . ?page schema:about ?item ; schema:inLanguage ?lang . FILTER NOT EXISTS { ?page2 schema:about ?item ; schema:inLanguage "sv" . } } LIMIT 10

Which Wikidata entities are listed in the Swedish National Encyclopedia (NE.se) but do not have a Swedish-language Wikipedia page, and in what other languages do they have pages?

Show me the Wikidata items that have a NE.se ID, lack a Swedish Wikipedia article, and list the languages of their existing Wikipedia pages.

SELECT ?var1 ?var2 WHERE { ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> ?var2 . { SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3222> ?var4 . OPTIONAL { ?var5 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> "sv". } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . } } } LIMIT 10


Question: What are all the legislative bodies that have a known number of seats?

SELECT DISTINCT ?legislativeBody WHERE { ?legislativeBody wdt:P31/wdt:P279* wd:Q11204 . ?legislativeBody p:P1342 ?seatStatement . }

List all parliaments, city councils, and other legislative assemblies that specify how many members they have.

Which governing bodies with legislative power have documented membership counts?

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


Question: What organizations is Simon Kamronn affiliated with or employed by, and do any of them have images?

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 ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE {
  wd:Q28912380(p:P1416 | p:P108) ?statement .
  ?statement ps:P1416 | ps:P108 ?organization .
  ?organization rdfs:label ?organizationLabel .
  FILTER(LANG(?organizationLabel) = "en")
  OPTIONAL {
    ?organization wdt:P18 ?image
  }
  OPTIONAL {
    ?statement pq:P580 ?start
  }
  OPTIONAL {
    ?statement pq:P582 ?end
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Show me Simon Kamronn’s organizational associations (including start and end dates), along with any available images and academic degrees linked to those roles.

Which institutions has Simon Kamronn worked for or been affiliated with, and when did those associations start or end? Are there photos of these institutions?

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


Question: Paintings and their creation dates

SELECT ?painting ?paintingLabel ?creationDate WHERE { ?painting wdt:P31 wd:Q3305213 . ?painting wdt:P571 ?creationDate . ?painting rdfs:label ?paintingLabel . FILTER(LANG(?paintingLabel) = "en") } LIMIT 100

What are the titles and creation years of all paintings in Wikidata?

List the English titles and creation dates of paintings.

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


Question: What films did Zbigniew Cybulski act in?

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 ?film ?filmLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P161 wd:Q168049 .
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" )
}

Can you list all the movies featuring the Polish actor Zbigniew Cybulski?

Which cinematic works include Zbigniew Cybulski as a cast member?

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


Question: People with professions and their native 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 DISTINCT ?person ?personLabel ?profession ?professionLabel ?nativeName WHERE {
  ?person wdt:P106 ?profession .
  ?profession wdt:P31 wd:Q28640 .
  OPTIONAL {
    ?person wdt:P1559 ?nativeName .
  }
  ?person rdfs:label ?personLabel .
  ?profession rdfs:label ?professionLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?professionLabel) = "en")
}
LIMIT 20

Who are some people with professions like poet or politician, and what are their names in their native languages?

List 20 people with their occupations and, if available, their native names in English.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P735> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q28640> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1559> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Italian Wikipedia articles linked to Wikidata items

PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?page WHERE {
  ?page schema:about ?item ; schema:isPartOf <https://it.wikipedia.org/> .
}
LIMIT 10

What are some Italian Wikipedia pages that are connected to Wikidata items?

List 10 Italian Wikipedia articles that correspond to Wikidata entities.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://schema.org/about> ?var3 ; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . { ?var2 <http://schema.org/about> ?var4 ; <http://schema.org/isPartOf> <https://it.wikipedia.org/> . { FILTER ( ( ( LCASE ( ?var1 ) != LCASE ( ?var2 ) ) ) ) . } } } LIMIT 10


Question: What family names have a multi-language native label in Wikidata?

SELECT ?familyName ?nativeLabel WHERE { ?familyName wdt:P31 ?familyNameClass . ?familyNameClass wdt:P279* wd:Q101352 . ?familyName wdt:P1705 ?nativeLabel . FILTER(LANG(?nativeLabel) = "mul") }

Can you list all surnames that are labeled in a generic, non-language-specific way (lang:mul)?

Show me the native forms of family names that are intended for use across multiple languages.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q101352> . ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "mul" ) ) ) . FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/direct/P734> ?var1 . } ) ) . }


Question: Humans with Odia Wikipedia pages but no Odia label in Wikidata

SELECT ?item ?wikiPage WHERE { ?wikiPage schema:about ?item ; schema:isPartOf <https://or.wikipedia.org/> . ?item wdt:P31 wd:Q5 . FILTER NOT EXISTS { ?item skos:altLabel ?altLabel . FILTER(LANG(?altLabel) = "or") } } LIMIT 200

Which humans have articles on the Odia Wikipedia but are not labeled in Odia on Wikidata?

List all humans who are featured on the Odia Wikipedia but lack an Odia-language label in Wikidata.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var2 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://or.wikipedia.org/> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "or" ) ) ) . } FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,ar". } } LIMIT 200


Question: What are the specialized data types defined in Wikidata for properties?

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

Which items are classified as Wikibase datatypes?

Can you list all custom data types used in Wikidata properties, such as Math or Musical Notation?

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


Question: List of sovereign island nations with no historical status or ethnic group classification.

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 ?country ?countryLabel WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?country wdt:P31 ?islandType .
  FILTER(?islandType IN(wd:Q112099 , wd:Q13107770))
  .
  FILTER(NOT EXISTS {
    ?country wdt:P31 wd:Q3024240
  })
  .
  FILTER(NOT EXISTS {
    ?country wdt:P31 wd:Q41710
  })
  .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}
ORDER BY ASC(?countryLabel)

Which sovereign countries are entirely composed of islands and are not historical states or ethnic groups?

Show me the names of all current sovereign states that are island countries or archipelagic states, excluding former countries and ethnic groups.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q3624078> . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41710> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/P47> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P47> ?var3 ; <http://www.wikidata.org/prop/qualifier/P805> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15104814> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Image of John Fisher with SNAC ARK ID w6cc1mnc

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

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

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

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


Question: Date of birth and death of Terence Donovan

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?birthDate ?deathDate WHERE {
  BIND( wd:Q7701890 AS ?person ) .
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
}

When was Terence Donovan born, and when did he die?

Please provide the birth and death dates of the actor Terence Donovan.

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


Question: Who were born or died in 1876?

SELECT ?personLabel ?birthDate ?deathDate WHERE { ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . FILTER(YEAR(?birthDate) = 1876) } OPTIONAL { ?person wdt:P570 ?deathDate . FILTER(YEAR(?deathDate) = 1876) } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") FILTER(BOUND(?birthDate) || BOUND(?deathDate)) }

List people from 1876 with their birth and death dates, in English.

Can you show me the names of humans who were born or died during the year 1876?

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


Question: What are the birth and death dates of Ichirō Ishi?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?birthDate ?deathDate WHERE {
  BIND(wd:Q11584751 AS ?person)
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
}

When was Ichirō Ishi born and when did he die?

Can you tell me the life span of Ichirō Ishi, including his birth and death dates?

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


Question: Cities with population over 100,000 and elevation above 100 meters.

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 ?label ?city ?elevation ?population WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city rdfs:label ?label .
  ?city wdt:P2044 ?elevation .
  ?city wdt:P1082 ?population .
  FILTER ( LANG( ?label ) = "en" && ?elevation > 100 && ?population > 100000 )
}

Which cities have a population greater than 100,000 and are located at an elevation higher than 100 meters above sea level?

List the names, elevations, and populations of English-named cities with more than 100,000 residents and an elevation above 100 meters.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . ?var2 <http://www.wikidata.org/prop/direct/P31> ?var5 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.wikidata.org/prop/direct/P2044> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P1082> ?var4 . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) && ( ?var3 > "100"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( ?var4 > "100000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: Animal taxa that are instances of the animal kingdom

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

What are some examples of animals classified under the animal kingdom?

List the English names of all taxa that are instances of the animal kingdom.

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


Question: Wikipedia articles about Gertrude Käsebier using her ULAN ID.

PREFIX schema: <http://schema.org/>
PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
SELECT ?wikiPage ?artist WHERE {
  ?artist wdtn:P245 <http://vocab.getty.edu/ulan/500011698> .
  ?wikiPage schema:about ?artist .
}

What language versions of Wikipedia pages are about the photographer Gertrude Käsebier, identified by ULAN ID 500011698?

List all Wikimedia pages related to Gertrude Käsebier, using her Getty ULAN identifier.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500011698> . ?var1 <http://schema.org/about> ?var2 . }


Question: What Wikipedia articles are about the artist with ULAN ID 500018523?

SELECT ?article ?artist WHERE { ?artist wdt:P245 "500018523" . ?article schema:about ?artist . }

Can you show me the Wikipedia pages linked to Giovanni Battista Tiepolo?

Which language versions of Wikipedia have articles about the painter identified by the Getty ULAN ID 500018523?

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500112958> . ?var1 <http://schema.org/about> ?var2 . }


Question: What Wikipedia and Commons pages are about the artist with ULAN ID 500089107?

PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
PREFIX schema: <http://schema.org/>
SELECT ?page ?artist WHERE {
  ?artist wdtn:P245 <http://vocab.getty.edu/ulan/500089107> .
  ?page schema:about ?artist .
}

Can you list all the online pages that discuss Edgar Britton, identified by the Getty ULAN identifier?

Show me the web resources linked to the Wikidata item for Edgar Britton via his ULAN ID.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500089107> . ?var1 <http://schema.org/about> ?var2 . }


Question: What Wikipedia pages are about the artist with ULAN ID 500110692?

SELECT ?page ?artist WHERE { ?artist wdt:P245 "500110692" . ?page schema:about ?artist . }

Which web pages discuss the artist identified by the Getty ULAN ID 500110692?

Show me all the online articles linked to Les Levine via his ULAN identifier.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500110692> . ?var1 <http://schema.org/about> ?var2 . }


Question: Wikipedia pages about Jim Goldberg identified by ULAN ID 500073957

SELECT ?resource ?artist WHERE { ?artist wdtn:P245 <http://vocab.getty.edu/ulan/500073957> . ?resource schema:about ?artist .}

What Wikipedia articles are about the artist with Getty ULAN ID 500073957?

Show me all resources linked to Jim Goldberg via his ULAN identifier.

SELECT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500073957> . ?var1 <http://schema.org/about> ?var2 . }


Question: Who are the people who competed as military patrol runners?

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:P31 wd:Q5 .
  ?person wdt:P106 wd:Q38370550 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 1000

List all humans with the occupation of military patrol (sport) runner.

Which athletes participated in the military patrol sport, which is a form of ski mountaineering?

SELECT ?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/Q38370550> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1000


Question: What are the German labels of properties used for the German language, along with how many German-labeled values each has and what those values are?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q188 ?property ?value . ?propertyClaim wikibase:directClaim ?property . ?propertyClaim rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "de") . ?value rdfs:label ?valLabel . FILTER(LANG(?valLabel) = "de") } GROUP BY ?property

Show me for each property of the German language: its German name, how many German-labeled values it has, and a comma-separated list of those values.

List all properties of the German language in German, including the count and names of their German-labeled values.

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


Question: What are the Norwegian plural forms of academic disciplines ending in "-logien" or "-logiane"?

SELECT ?lexicalEntry ?label WHERE { ?lexicalEntry rdfs:label ?label . FILTER (LANG(?label) IN ("nb", "nn")) . FILTER (REGEX(?label, "logien$|logiane$")) . } LIMIT 10

Show me words in Norwegian (Bokmål and Nynorsk) that are plural forms of fields of study like etymology or Egyptology.

List the Norwegian language entries for academic disciplines in their plural form.

SELECT * WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( REGEX ( ?var2 , "n" ) ) ) . } LIMIT 10


Question: Municipalities in the state of Bahia, Brazil

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 ?municipality ?municipalityLabel WHERE {
  ?municipality wdt:P131 wd:Q40430 .
  ?municipality wdt:P31 wd:Q3184121 .
  ?municipality rdfs:label ?municipalityLabel .
  FILTER(LANG(?municipalityLabel) = "en")
}
LIMIT 500

What are all the municipalities located in the Brazilian state of Bahia?

List all municipalities in Bahia, Brazil.

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


Question: Which Wikidata entity has the ULAN ID http://vocab.getty.edu/ulan/500013708?

PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
SELECT ?artist WHERE {
  ?artist wdtn:P245 <http://vocab.getty.edu/ulan/500013708> .
}

Who is the artist identified by the Getty ULAN ID 500013708 in Wikidata?

Find the Wikidata item for the artist with the Union List of Artist Names ID 500013708.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct-normalized/P245> <http://vocab.getty.edu/ulan/500013708> . ?var2 <http://schema.org/about> ?var1 . }


Question: Who are the recipients of the Nobel Peace Prize?

SELECT ?laureate ?laureateLabel WHERE { ?laureate wdt:P166 wd:Q35637 . ?laureate rdfs:label ?laureateLabel . FILTER(LANG(?laureateLabel) = "en")}

Can you list the individuals and organizations that have been awarded the Nobel Peace Prize?

Which people and groups have received the Nobel Peace Prize, and what are their names in English?

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q35637> <http://www.wikidata.org/prop/P1346> [ <http://www.wikidata.org/prop/statement/P1346> ?var1 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Humans who are seaman recruits

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

Who are the humans that have the occupation of seaman recruit?

List the English names of all people whose occupation is seaman recruit.

SELECT ?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/Q16961535> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1000


Question: Wikimedia Commons categories for birthplaces

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 ?category ?categoryLabel ?image WHERE {
  ?category wdt:P971 wd:Q1322263 .
  OPTIONAL {
    ?category wdt:P18 ?image .
  }
  ?category rdfs:label ?categoryLabel .
  FILTER(langMatches(lang(?categoryLabel) , "en"))
}
LIMIT 100

What are the Wikimedia Commons categories that include people born in specific locations?

List the English-named Wikimedia Commons categories that are associated with the concept of place of birth.

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


Question: Food items with images, sorted alphabetically

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 ?food ?foodLabel ?image WHERE {
  ?food wdt:P31 / wdt:P279 * wd:Q2095 .
  ?food wdt:P18 ?image .
  ?food rdfs:label ?foodLabel .
  FILTER ( LANG( ?foodLabel ) = 'en' )
}
ORDER BY ?foodLabel
LIMIT 10

What are some food items that have images on Wikimedia Commons?

Show me images of food items, ordered by their names.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> ; <http://www.wikidata.org/prop/direct/P18> ?var2 ; <http://www.wikidata.org/prop/direct/P1545> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var3 ) LIMIT 10


Question: Fictional characters who are scheduled to die in 2100

SELECT DISTINCT ?character WHERE { ?character wdt:P570 ?deathDate . FILTER ( ?deathDate >= "2100-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "2100-12-31T23:59:59Z"^^xsd:dateTime ) }

Which fictional characters have their death date set to the year 2100?

List all fictional characters whose canonical death date is in the year 2100.

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


Question: Number of out-of-school children in developing and developed countries by year, with source URL.

SELECT (STR(YEAR(?date)) AS ?year) ?outOfSchoolChildren ?countryTypeLabel ?referenceUrl WHERE {  VALUES ?countryType { wd:Q177323 wd:Q132453 }  ?countryType p:P2573 [    ps:P2573 ?outOfSchoolChildren ;    pq:P585 ?date ;    prov:wasDerivedFrom [      pr:P854 ?referenceUrl    ]  ] .  ?countryType rdfs:label ?countryTypeLabel .  FILTER(LANG(?countryTypeLabel) = "en")}

How many out-of-school children were there in developing and developed countries each year, and what is the source of this data?

Show me the annual count of out-of-school children for developing and developed countries, along with the reference URL from UNESCO.

SELECT( STR ( YEAR ( ?var1 ) ) AS ?var2 ) ?var3 ?var4Label ?var5 WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q177323> ) ( <http://www.wikidata.org/entity/Q132453> ) } ?var4 <http://www.wikidata.org/prop/P2573> [ <http://www.wikidata.org/prop/statement/P2573> ?var3 ; <http://www.wikidata.org/prop/qualifier/P585> ?var1 ; <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P854> ?var5 ] ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List businesses and their countries in English.

SELECT ?business ?businessLabel ?countryLabel WHERE { ?business wdt:P31 wd:Q4830453 . ?business wdt:P17 ?country . ?business rdfs:label ?businessLabel . ?country rdfs:label ?countryLabel . FILTER(lang(?businessLabel) = "en") FILTER(lang(?countryLabel) = "en") }

What are the names of businesses and the countries they are located in, using English labels?

Show me a list of all businesses (with their English names) and the countries where they are based.

SELECT ?var1 ?var1Label ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . } GROUP BY ?var1 ?var1Label ?var2Label


Question: What are the properties and values associated with George W. Bush, including their English labels?

SELECT ?p ?var2Label ?var3 ?var4Label WHERE { { BIND( wd:Q207 AS ?var3 ) . BIND( "N/A" AS ?p ) . BIND( "identity"@en AS ?var2Label ) . wd:Q207 rdfs:label ?var4Label . FILTER ( LANG( ?var4Label ) = "en" ) . } UNION { wd:Q207 ?p ?var3 . ?prop wikibase:directClaim ?p . ?prop rdfs:label ?var2Label . ?var3 rdfs:label ?var4Label . FILTER ( LANG( ?var2Label ) = "en" ) . FILTER ( LANG( ?var4Label ) = "en" ) . } } ORDER BY ASC(?p) ASC(?var3) LIMIT 200

What occupations, political affiliations, and other attributes does George W. Bush have, and what are their English labels?

List all known facts about George W. Bush with their property names and object labels in English, and include a placeholder row for "identity".

SELECT ?var1 ?var2Label ?var3 ?var4Label WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q207> AS ?var3 ). BIND ( "N/A" AS ?var1 ). BIND ( "identity"@en AS ?var2Label ). } UNION { <http://www.wikidata.org/entity/Q207> ?var1 ?var3 . ?var5 ?var6 ?var1 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 200


Question: What is the English label for the TV series Tallahassee 7000?

SELECT ?label WHERE { wd:Q25059046 rdfs:label ?label . FILTER (LANGMATCHES(LANG(?label), "en")) } LIMIT 1

Can you show me the English name of the 1961 American TV series Tallahassee 7000?

What is the title of Tallahassee 7000 in English?

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


Question: People with notable works, in English.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 wdt:P800 ?var2 . ?var1 wdt:P31 wd:Q5 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } LIMIT 10000

Who are the notable human creators with English-language labels who have created significant works?

List the names of all human individuals who have produced notable works, using their English labels.

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


Question: Image of Albert Szent-Györgyi with SNAC ARK ID w6nc631g

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

What is the Wikimedia Commons image associated with Albert Szent-Györgyi’s SNAC ARK ID w6nc631g?

Show me the photo of the person whose SNAC ARK ID is w6nc631g.

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


Question: What properties link other entities to the Pan American Health Organization, and how many entities are linked via each property?

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

Which properties are used to connect more than one entity to the Pan American Health Organization, ranked by frequency?

Show me all the properties that connect multiple organizations or entities to the Pan American Health Organization, sorted by how many connections each has.

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


Question: Sovereign states with no land borders

SELECT DISTINCT ?country ?countryLabel WHERE { ?country p:P31 ?instanceStatement . ?instanceStatement ps:P31 wd:Q3624078 . FILTER NOT EXISTS { ?country wdt:P31 wd:Q3024240 } FILTER NOT EXISTS { ?country wdt:P31 wd:Q161243 } FILTER NOT EXISTS { ?country wdt:P31 wd:Q41710 } FILTER NOT EXISTS { ?country p:P47 ?borderStatement . ?borderStatement ps:P47 ?neighbor ; pq:P805 ?borderType . ?borderType wdt:P31 wd:Q15104814 } FILTER NOT EXISTS { ?instanceStatement pq:P582 ?endTime } ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries are sovereign states and do not share a land border with any other country?

List all currently existing island nations and countries surrounded by water that are recognized as sovereign states and have no land neighbors.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P31> <http://www.wikidata.org/entity/Q3624078> . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3024240> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41710> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q161243> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/P47> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P47> ?var3 ; <http://www.wikidata.org/prop/qualifier/P805> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15104814> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } ORDER BY ASC( ?var1Label )


Question: What are the direct properties and descriptions of the house cat in Wikidata?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  {
    wd:Q146 ?property ?value .
    FILTER ( STRSTARTS( STR( ?property ) , "http://www.wikidata.org/prop/direct/" ) )
  } UNION {
    wd:Q146 schema:description ?value .
  }
}

Can you list all the facts and language descriptions about domestic cats?

Show me all the information available about the species Felis silvestris catus, including its attributes and multilingual descriptions.

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


Question: What are the English labels, birth names, and alternative names of people in Wikidata?

SELECT DISTINCT ?person ?birthName ?otherName ?label WHERE { ?person wdt:P31/wdt:P279* wd:Q5 . ?person rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { ?person wdt:P1559 ?birthName . FILTER(LANG(?birthName) = "en") } OPTIONAL { ?person wdt:P1635 ?otherName . FILTER(LANG(?otherName) = "en") } } LIMIT 300

Show me up to 300 people with their English names, birth names, and other names, if available.

Find persons whose labels are in English, and include their birth names and other names if those are also in English.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4Label WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Person> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . OPTIONAL { ?var1 <http://dbpedia.org/ontology/birthName> ?var2 . } OPTIONAL { ?var1 <http://dbpedia.org/property/name> ?var3 . } FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 300


Question: How many organizations are in the medicine industry?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT(COUNT(?organization) AS ?count) WHERE {
  ?organization wdt:P452 wd:Q11190
}

What is the number of organizations classified under the medicine industry in Wikidata?

Can you tell me how many entities in Wikidata are categorized as operating in the medicine sector?

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P452> <http://www.wikidata.org/entity/Q11190> . }


Question: How many items have medicine as their main use?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( COUNT( ?item ) AS ?count ) WHERE {
  ?item wdt:P366 wd:Q11190 .
}

What is the number of things primarily used in medicine?

Count all entities in Wikidata whose main function or application is in the field of medicine.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P366> <http://www.wikidata.org/entity/Q11190> . }


Question: Journals and conference proceedings where Teresa Alsinet published, ordered by number of publications, using abbreviations if available.

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 ?publication ?label(COUNT(?work) AS ?count) WHERE {
  ?work wdt:P50 wd:Q46249341 .
  ?work wdt:P1433 ?publication .
  ?publication rdfs:label ?publicationLabel .
  FILTER(LANG(?publicationLabel) = "en")
  OPTIONAL {
    ?publication wdt:P1813 ?abbreviation .
  }
  BIND(COALESCE(?abbreviation , ?publicationLabel) AS ?label)
}
GROUP BY ?publication ?label
ORDER BY DESC(?count)

Which publications have featured the most papers by Teresa Alsinet, and how many papers did each contain?

List the venues (journals or conference proceedings) that have published Teresa Alsinet’s work, showing the count of works per venue, and use abbreviated names where they exist.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q46249341> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: Places in the UK with French names starting with "Plo" and their coordinates.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?label ?coordinates WHERE {
  ?item wdt:P17 wd:Q145 .
  ?item wdt:P625 ?coordinates .
  ?item rdfs:label ?label .
  FILTER ( STRSTARTS( ?label , "Plo" ) ) .
  FILTER ( LANG( ?label ) = "fr" ) .
}

What are the locations in the United Kingdom that have French labels beginning with "Plo", and what are their geographic coordinates?

Show me the French-named places in the UK that start with "Plo", along with their GPS coordinates.

SELECT DISTINCT ?var1 ?var2Label ?var3 WHERE { BIND ( STR ( ?var4 ) AS ?var2Label ). ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( STRSTARTS ( ?var4 , "Plo" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "fr" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: What is Clare Kelly’s employer, when did she start, and what is the organization’s image?

SELECT ?image ?organization ?orgLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q42882972 (p:P108|p:P1416) ?statement . ?statement ps:P108|ps:P1416 ?organization . ?organization rdfs:label ?orgLabel . FILTER(LANG(?orgLabel) = "en") OPTIONAL { ?organization wdt:P18 ?image } OPTIONAL { ?statement pq:P580 ?startDate } OPTIONAL { ?statement pq:P582 ?endDate } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER(LANG(?degreeLabel) = "en") } }

Which organization employs Clare Kelly, when did she join, and is there a picture of the organization?

Show me Clare Kelly’s employer, the start date of her employment, and the organization’s image, along with any academic degree she earned there.

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


Question: Most common first names of U.S. presidents

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 ?givenNameLabel ( COUNT( ?person ) AS ?count ) WHERE {
  ?person wdt:P39 wd:Q11696 .
  ?person wdt:P735 ?givenName .
  ?givenName rdfs:label ?givenNameLabel .
  FILTER ( LANG( ?givenNameLabel ) = "en" )
}
GROUP BY ?givenNameLabel
ORDER BY DESC ( ?count )

Which given names are most frequently held by U.S. presidents, and how many presidents had each?

List the given names of U.S. presidents along with how many times each name appears, sorted by frequency.

SELECT ?var1Label ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var3 <http://www.wikidata.org/prop/direct/P735> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } GROUP BY ?var1Label


Question: What are the coordinates of the Mascarenhas de Morais Dam and the state it is located in?

SELECT ?damCoordinates ?administrativeEntityCoordinates WHERE { wd:Q15265828 wdt:P625 ?damCoordinates . OPTIONAL { wd:Q15265828 wdt:P131 ?administrativeEntity . ?administrativeEntity wdt:P625 ?administrativeEntityCoordinates . } }

Where is the Peixotos Dam located geographically, and what are the coordinates of the Brazilian state it belongs to?

Can you provide the GPS coordinates of the Mascarenhas de Morais Dam and its administrative region, Minas Gerais?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q15265828> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q15265828> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: List house cats with English labels and their images.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?cat ?catLabel ?image WHERE {
  ?cat wdt:P31 wd:Q146 .
  ?cat rdfs:label ?catLabel .
  FILTER(LANG(?catLabel) = "en")
  OPTIONAL {
    ?cat wdt:P18 ?image .
  }
}
LIMIT 50

What are some house cats and their images, with English names?

Show me up to 50 domestic cats with their English names and pictures from Wikimedia Commons.

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


Question: What are the most common research topics in Jan Larsen's publications, and what is an example paper for each?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?count ?subjectLabel(SAMPLE(?workLabel) AS ?sampleWorkLabel) WHERE {
  {
    SELECT ?subject(COUNT(?work) AS ?count) WHERE {
      ?work wdt:P50 wd:Q24283608 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC(?count)
  }
  ?work wdt:P50 wd:Q24283608 .
  ?work wdt:P921 ?subject .
  ?subject rdfs:label ?subjectLabel .
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?subjectLabel) = "en")
  FILTER(LANG(?workLabel) = "en")
}
GROUP BY ?count ?subjectLabel
ORDER BY DESC(?count)

Which subjects are most frequently associated with Jan Larsen's academic works, and can you show one example title for each?

Show me a list of Jan Larsen's main research areas by publication count, along with one sample paper title per area.

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


Question: People who have died and their death dates in English.

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

Who are some people and when did they die, according to Wikidata?

List 20 deceased individuals with their English names and dates of death.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . FILTER ( ( BOUND ( ?var2 ) && ( DATATYPE ( ?var2 ) = <http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } LIMIT 20


Question: Is the Wikimedia template Q26030286 a human?

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

Is the template "Bản mẫu:Q-" classified as a human or any subclass of human?

Confirm whether the Wikimedia template Q26030286 belongs to the class of humans.

ASK WHERE { <http://www.wikidata.org/entity/Q43726393> ( <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: Are humans considered a type of software?

ASK WHERE { wd:Q5 (wdt:P31/wdt:P279*) wd:Q7397 . }

Is any class that humans belong to a subclass of software?

Check if humans are classified under software in the Wikidata ontology.

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


Question: What are the Spanish labels and descriptions of properties used in statements where "race" (wd:Q918036) is the object?

SELECT DISTINCT ?propertyEntity ?propertyLabel ?propertyDescription WHERE { ?item ?property wd:Q918036 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/statement/")) BIND(STRAFTER(STR(?property), "http://www.wikidata.org/prop/statement/") AS ?propId) BIND(IRI(CONCAT("http://www.wikidata.org/entity/", ?propId)) AS ?propertyEntity) ?propertyEntity rdfs:label ?propertyLabel . ?propertyEntity schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "es") FILTER(LANG(?propertyDescription) = "es") } LIMIT 100

Which properties in Spanish describe relationships involving the taxonomic rank "race"?

Show me the Spanish terms for properties like "instance of" and "subclass of" when they are used with the concept of race in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q918036> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "es" ) ) ) . } LIMIT 100


Question: What is the image of George Francis Lyon, the British naval officer with SNAC ARK ID w6m625nt?

SELECT ?image WHERE { ?item wdt:P3430 "w6m625nt" . OPTIONAL { ?item wdt:P18 ?image . } } LIMIT 1

Can you show me the Wikimedia Commons image linked to the SNAC ARK ID w6m625nt?

Find the portrait image of the person identified by the SNAC ARK ID w6m625nt.

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


Question: What are all the broader categories that a fractal belongs to, including indirect ones?

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

List all the superclass concepts of fractals in the Wikidata hierarchy.

What is the full classification tree of fractals, from the most specific to the most general category?

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


Question: Instances of taxa with the same taxon rank as the pygmy blue whale.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?instance WHERE {
  wd:Q738361 wdt:P105 ?rank .
  ?taxon wdt:P105 ?rank .
  ?instance wdt:P31 ?taxon .
}

What animals or organisms are instances of subspecies, like the pygmy blue whale?

Show me all known instances of subspecies in Wikidata, similar to the pygmy blue whale.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q738361> . ?var3 <http://www.wikidata.org/prop/direct/P31> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } }


Question: Image of the person with SNAC ARK ID w6nk63kq

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

What is the image associated with William Starling Burgess in Wikidata?

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

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


Question: What is the title of the movie with IMDb ID tt0319343?

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

Which film corresponds to the IMDb identifier tt0319343?

Find the movie titled "Elf" and confirm its IMDb ID is tt0319343.

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