Question: What are some cities and their countries according to Wikidata?

SELECT DISTINCT ?city ?country WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 . ?city wdt:P17 ?country . } LIMIT 10

Can you list 10 cities along with the countries they are located in?

Which countries contain cities or their subclasses, such as towns or villages?

SELECT DISTINCT ?var1 ?var2 WHERE { BIND ( <http://www.wikidata.org/entity/Q515> AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var3 . ?var1 <http://www.wikidata.org/prop/P17> ?var2 . } LIMIT 10


Question: Which property is most commonly used to link to the 1983 film Scarface?

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

Most frequent property connecting Scarface (1983) to other items in Wikidata

Show me the property that has the highest number of statements with Scarface (1983) as the object.

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


Question: What are the Spanish labels and descriptions of the properties used to describe the film Forrest Gump?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?prop ?propLabel ?propDescription WHERE {
  wd:Q134773 ?prop ?value .
  BIND(IRI(REPLACE(STR(?prop) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propEntity)
  .
  ?propEntity rdfs:label ?propLabel .
  ?propEntity schema:description ?propDescription .
  FILTER(LANG(?propLabel) = "es")
  FILTER(LANG(?propDescription) = "es")
}
LIMIT 100

Show me the Spanish names and explanations of all properties that have Forrest Gump as a subject in Wikidata.

Which properties describe Forrest Gump, and how are they labeled and described in Spanish?

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/Q134773> . ?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: Humans with 'Remilly' in their French name

SELECT DISTINCT ?item WHERE { ?item rdfs:label ?label . FILTER(LANG(?label) = "fr") . FILTER(CONTAINS(LCASE(?label), "remilly")) . ?item wdt:P31 wd:Q5 . }

Who are the French people named Remilly?

List all humans whose French label contains 'remilly'

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


Question: List English-named people born between 1980 and 2002 who have Russian Wikipedia pages.

SELECT ?personLabel ?ruWikiPageTitle ?birthDate WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birthDate . ?ruWikiPage schema:isPartOf <https://ru.wikipedia.org/> ; schema:about ?person . BIND(strafter(str(?ruWikiPage), "https://ru.wikipedia.org/wiki/") AS ?ruWikiPageTitle) ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") FILTER ( ?birthDate >= "1980-01-01T00:00:00Z"^^xsd:dateTime && ?birthDate <= "2002-01-01T00:00:00Z"^^xsd:dateTime ) } LIMIT 10

Who are the people born between 1980 and 2002 that have English Wikipedia labels and corresponding Russian Wikipedia articles?

Show me the names, birth dates, and Russian Wikipedia links of people born between 1980 and 2002, using their English labels.

SELECT ?var1Label ?var2 ?var3 ?var4Label ?var5Label ?var6Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var2 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> . ?var2 <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } FILTER ( ( ( ?var3 >= "1980-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var3 <= "2002-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var6 . } } LIMIT 10


Question: Which Wikidata items have Twitter handles carlbildt, OpenAI, datagouvfr, Wikimedia, or mySociety?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "carlbildt" "OpenAI" "datagouvfr" "Wikimedia" "mySociety" } }

Who are the entities on Wikidata that use the Twitter usernames "carlbildt", "OpenAI", "datagouvfr", "Wikimedia", or "mySociety"?

List the Wikidata items associated with the Twitter accounts @carlbildt, @OpenAI, @datagouvfr, @Wikimedia, and @mySociety.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "fagerving" ) ( "string1" ) ( "fuzheado" ) ( "string2" ) ( "carlbildt" ) ( "uveavanto" ) ( "Ludovic_P_" ) ( "string3" ) ( "Wikimedia" ) ( "MaelLeHir" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "GSC_GUMA" ) ( "string13" ) ( "string14" ) ( "l1twit" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "egaucher" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "fnielsen" ) ( "nichtich" ) ( "mySociety" ) ( "string24" ) ( "inOut2018" ) ( "string25" ) ( "wikidata" ) ( "K_rho" ) ( "string26" ) ( "AngersData" ) ( "datagouvfr" ) ( "awjuliani" ) ( "OpenAI" ) ( "DataBzh" ) ( "string27" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "string31" ) ( "string32" ) ( "kamacess" ) ( "akaAgar" ) ( "ykamit" ) ( "mimimibe" ) ( "string33" ) ( "string34" ) ( "LObs" ) ( "string35" ) ( "string36" ) ( "string37" ) ( "cortico" ) ( "string38" ) } } ORDER BY ASC( ?var3 )


Question: Who are the people named Raphaël in French?

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

Which humans have "Raphaël" as their French label on Wikidata?

Can you list individuals whose name in French is Raphaël?

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


Question: What are some subgenres of fiction literature?

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 ?var1 ?var1Label WHERE {
  ?var1 wdt:P279 wd:Q38072107 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}
LIMIT 11

Can you list 11 types of fiction that are subclasses of fiction literature?

Show me the English labels of the 11 most specific categories under fiction literature.

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


Question: Which entities have Twitter handles "UNESCO_fr" or "envlh", and how many Wikipedia language editions cover them?

SELECT ?item ?twitter (COUNT(?page) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?twitter . VALUES ?twitter { "UNESCO_fr" "envlh" } . ?page schema:about ?item ; schema:isPartOf ?wiki . } GROUP BY ?item ?twitter ORDER BY ASC(?sitelinkCount)

What are the Twitter accounts "UNESCO_fr" and "envlh", and which one has fewer Wikipedia language editions linked to it?

List the Wikidata items for the Twitter handles "UNESCO_fr" and "envlh", sorted by the number of Wikipedia pages they appear on, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "UNESCO_fr" ) ( "string2" ) ( "SqreenIO" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) } } ORDER BY ASC( ?var3 )


Question: What Wikidata items have the Twitter usernames 'lemondefr' or 'decodeurs'?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "lemondefr" "decodeurs" } }

Which entities on Wikidata are associated with the Twitter accounts @lemondefr and @decodeurs?

Show me the Wikidata entries for the Twitter accounts lemondefr and decodeurs.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "lemondefr" ) ( "decodeurs" ) } } ORDER BY ASC( ?var3 )


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

SELECT ?item WHERE { ?item wdt:P345 "tt1877830" . }

Which film in Wikidata has the IMDb identifier tt1877830?

Find the entity in Wikidata that is linked to the IMDb ID tt1877830.

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


Question: Scholarly articles by Rita Casadio with co-authors, publication venues, and dates.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT(MIN(xsd:date(?date)) AS ?pubDate) ?work ?workLabel(GROUP_CONCAT(DISTINCT ?typeLabel ; SEPARATOR = ", ") AS ?types)(SAMPLE(?pages) AS ?numPages) ?venue ?venueLabel(GROUP_CONCAT(DISTINCT ?coAuthorLabel ; SEPARATOR = ", ") AS ?coAuthors) WHERE {
  ?work wdt:P50 wd:Q28946169 .
  ?work wdt:P50 ?author .
  FILTER(?author != wd:Q28946169)
  OPTIONAL {
    ?author rdfs:label ?coAuthorLabel .
    FILTER(LANG(?coAuthorLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P31 ?type .
    ?type rdfs:label ?typeLabel .
    FILTER(LANG(?typeLabel) = "en")
  }
  OPTIONAL {
    ?work wdt:P577 ?date
  }
  OPTIONAL {
    ?work wdt:P1104 ?pages
  }
  OPTIONAL {
    ?work wdt:P1433 ?venue .
    ?venue rdfs:label ?venueLabel .
    FILTER(LANG(?venueLabel) = "en")
  }
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}
GROUP BY ?work ?workLabel ?venue ?venueLabel
ORDER BY DESC(?pubDate)

What are the scholarly articles authored by Rita Casadio, who are her co-authors, where were they published, and when?

List all research papers written by Rita Casadio, including her co-authors, the journals they appeared in, their publication dates, and the type of publication.

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


Question: Is there a Commodore 64 game with Ready64 ID 2385?

Does the game Arnie II have the Ready64 identifier 2385?

Confirm if the Ready64 ID 2385 corresponds to any video game in the Wikidata database.

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


Question: What Commodore 64 game has the Ready64 ID 112?

SELECT ?game WHERE { ?game wdt:P4916 "112" }

Find the Commodore 64 game with Ready64 identifier 112

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


Question: Movie theaters in Baden-Württemberg and their cities

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 ?theater ?theaterLabel ?adminEntityLabel WHERE {
  ?theater wdt:P31 wd:Q41253 .
  ?theater wdt:P131 * wd:Q985 .
  ?theater wdt:P131 ?adminEntity .
  ?theater rdfs:label ?theaterLabel .
  ?adminEntity rdfs:label ?adminEntityLabel .
  FILTER(LANG(?theaterLabel) = "en")
  FILTER(LANG(?adminEntityLabel) = "en")
}

What are the movie theaters located in Baden-Württemberg, and in which cities or districts are they directly situated?

List all movie theaters in Baden-Württemberg along with the names of the administrative areas they belong to, using English labels.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q41253> . ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q985> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Multilingual descriptions and names of Amy Jacques Garvey

SELECT ?property ?value WHERE { wd:Q481874 ?property ?value . } LIMIT 10

What are the descriptions and names of Amy Jacques Garvey in different languages?

Show me how Amy Jacques Garvey is described and named in various languages.

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


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

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

Which ISO 639 language codes are assigned to different language versions of Wikipedia?

List all the language codes used by Wikipedia in different languages, as defined by Wikimedia.

SELECT DISTINCT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q10876391> ; <http://www.wikidata.org/prop/direct/P407> [ <http://www.wikidata.org/prop/direct/P424> ?var1 ] . MINUS { BIND ( LANG ( ?var3Label ) AS ?var1 ). <http://www.wikidata.org/entity/P233> <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } } ORDER BY ASC( ?var1 )


Question: Is David Cotterill listed in Wikidata with Transfermarkt ID 40207?

ASK WHERE { ?player wdt:P2446 "40207" . }

Does the footballer with Transfermarkt player ID 40207 have a Wikidata entry?

Confirm if there is a Wikidata item for the football player identified by Transfermarkt ID 40207.

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


Question: Does Renato Augusto have a Transfermarkt player ID of 232096?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?player wdt:P2446 "232096" .
}

Is there a football player in Wikidata with the Transfermarkt ID 232096?

Confirm if the Transfermarkt ID 232096 corresponds to a football player in Wikidata.

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


Question: Drinks with ginger in their description

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?drink ?label ?description WHERE {
  ?drink wdt:P31 wd:Q40050 .
  ?drink rdfs:label ?label .
  ?drink schema:description ?description .
  FILTER ( LANG( ?label ) = "en" && LANG( ?description ) = "en" ) FILTER ( CONTAINS( LCASE( ?description ) , "ginger" ) )
}
ORDER BY ?label

Which drinks are described as containing ginger?

Show me beverages that include ginger as an ingredient, based on their Wikidata descriptions.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q40050> . ?var1 <http://schema.org/description> ?var2 . FILTER ( ( CONTAINS ( ?var2 , "g" ) ) ) . }


Question: Who died in 2018?

SELECT ?person ?personLabel WHERE { ?person wdt:P570 ?deathDate . FILTER ( YEAR(?deathDate) = 2018 ) . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") }

List of people who died in 2018 with their names.

Can you provide the names of all individuals who passed away in 2018?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . FILTER ( ( ( YEAR ( ?var3 ) = "2018"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . }


Question: Who has the Twitter username "mweill"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "mweill" } }

Which Wikidata item is associated with the Twitter handle "mweill"?

Show me the person who uses the Twitter username "mweill".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "QOfficiel" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Qofficiel" ) ( "string5" ) ( "string6" ) ( "mweill" ) } } ORDER BY ASC( ?var3 )


Question: What are some cities, buildings, and landmarks in North America with their images and Wikimedia Commons categories?

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?address WHERE {
  VALUES ?placeType { wd:Q515 wd:Q486972 wd:Q1549591 wd:Q173835 wd:Q173836 }  # city, human settlement, building, mountain, hill
  ?item wdt:P31 ?placeType .
  VALUES ?country { wd:Q30 wd:Q16 wd:Q147 wd:Q35 }  # United States, Canada, Mexico, Greenland
  ?item wdt:P17 ?country .
  OPTIONAL { ?item wdt:P625 ?coord . }
  OPTIONAL { ?item wdt:P18 ?image . }
  OPTIONAL { ?item wdt:P373 ?commonsCategory . }
  OPTIONAL { ?item wdt:P969 ?address . }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
} LIMIT 3000

Show me English-labeled places in the United States, Canada, Mexico, and Greenland, along with their coordinates, photos, and street addresses if available.

List notable geographic features in North America that have photos on Wikimedia Commons and are located in the US, Canada, Mexico, or Greenland.

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


Question: Artworks exhibited at the 1808 Paris Salon with their creators, images, and catalog numbers.

SELECT ?artwork ?artworkLabel ?creator ?creatorLabel ?image ?catalogCode ?catalogNumber WHERE {  ?artwork p:P608 ?statement .  ?statement ps:P608 wd:Q15273842 .  ?statement pq:P528 ?catalogNumber .  OPTIONAL {    ?artwork wdt:P170 ?creator .  }  OPTIONAL {    ?artwork wdt:P18 ?image .  }  OPTIONAL {    ?artwork wdt:P528 ?catalogCode .    ?catalogCode wdt:P972 wd:Q15273857 .  }  ?artwork rdfs:label ?artworkLabel .  FILTER(LANG(?artworkLabel) = "en" || LANG(?artworkLabel) = "")  ?creator rdfs:label ?creatorLabel .  FILTER(LANG(?creatorLabel) = "en" || LANG(?creatorLabel) = "")} ORDER BY ASC(?creatorLabel)

Which artworks were displayed at the 1808 Salon, who created them, what do they look like, and what number were they assigned in the exhibition catalog?

List all paintings from the 1808 Paris Salon, including the artist’s name, an image of the artwork, and its catalog number in the official 1808 exhibition catalogue.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P608> <http://www.wikidata.org/entity/Q15273842> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P170> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P528> [ <http://www.wikidata.org/prop/qualifier/P972> <http://www.wikidata.org/entity/Q15273857> ; <http://www.wikidata.org/prop/statement/P528> ?var4 ] . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/P608> [ <http://www.wikidata.org/prop/qualifier/P528> ?var5 ; <http://www.wikidata.org/prop/statement/P608> <http://www.wikidata.org/entity/Q15273842> ] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY ASC( ?var2Label )


Question: What is the Wikidata item for the TV series with IMDb ID tt0056751?

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

Which TV series on Wikidata has the IMDb identifier tt0056751?

Show me the Wikidata entry for the show with IMDb ID tt0056751.

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


Question: Cities and their countries

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 ?city ?cityLabel ?country ?countryLabel WHERE {
  ?city(wdt:P31 / wdt:P279 *) wd:Q515 .
  ?city wdt:P17 ?country .
  ?city rdfs:label ?cityLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?cityLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}
LIMIT 1000

What cities are there, and which countries are they in?

List the names of cities (including towns and similar settlements) along with the countries they belong to, using English labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,it". } } LIMIT 1000


Question: Does the GND ID 4802864-2 exist in Wikidata?

Is there a Wikidata item associated with the GND ID 4802864-2?

Check if the German National Library ID 4802864-2 is assigned to any entity in Wikidata.

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


Question: What statements in Wikidata have provenance sources?

PREFIX prov: <http://www.w3.org/ns/prov#>
SELECT ?statement ?source WHERE {
  ?statement prov:wasDerivedFrom ?source .
}
LIMIT 100

Show me the statements and their sources in Wikidata.

Which items in Wikidata have statements with referenced sources?

SELECT * WHERE { ?var1 ?var2 ?var3 . ?var3 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var4 . ?var4 <http://wikiba.se/ontology#reference> ?var5 . } LIMIT 100


Question: Image of the person with SNAC ARK ID w6jq3pdt

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

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

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

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


Question: Cemeteries and landmarks in northern Alabama with coordinates between 33.9°N and 34.1°N and 87.1°W and 86.9°W, including images and Commons categories.

SELECT ?item ?itemLabel ?location ?image ?commonsCategory ?address WHERE {
  ?item wdt:P625 ?location .
  FILTER(geof:latitude(?location) >= 33.9 && geof:latitude(?location) <= 34.1)
  FILTER(geof:longitude(?location) >= -87.1 && geof:longitude(?location) <= -86.9)
  OPTIONAL { ?item wdt:P18 ?image . }
  OPTIONAL { ?item wdt:P373 ?commonsCategory . }
  OPTIONAL { ?item wdt:P969 ?address . }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
} LIMIT 3000

What places in the region around 34°N, 87°W have geographic coordinates within a small bounding box and are associated with images, Wikimedia Commons categories, or street addresses?

List all entities located in northern Alabama (latitude 33.9–34.1, longitude -87.1 to -86.9) along with their images, Commons categories, and addresses if available.

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


Question: German municipalities and their official municipality keys (Gemeindeschlüssel)

SELECT ?municipality ?municipalityKey WHERE { ?municipality wdt:P439 ?municipalityKey . } ORDER BY ?municipality LIMIT 12000

What are the German municipalities and their corresponding Gemeindeschlüssel identifiers?

List all municipalities in Germany along with their 8-digit official municipal identification codes.

SELECT * WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P439> ?var2 . } } LIMIT 12000


Question: What are the names and official municipality keys of all German municipalities?

SELECT ?municipality ?municipalityLabel ?municipalityKey WHERE { ?municipality wdt:P439 ?municipalityKey . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "de") } LIMIT 12000

Can you list German towns and their Gemeindeschlüssel identifiers?

Show me the German names and identification codes for municipalities in Germany.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P439> ?var3 . } } LIMIT 12000


Question: Japanese people and their occupations

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 ?occupationLabel WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 wd:Q17 .
  ?person wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER ( LANG( ?occupationLabel ) = "en" )
}
LIMIT 100

What are the occupations of people who are citizens of Japan?

List the English labels of occupations held by Japanese citizens.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q17> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 250000


Question: Who are the actors in the movie Titanic?

SELECT ?castMemberLabel WHERE { wd:Q44578 wdt:P161 ?castMember . ?castMember rdfs:label ?castMemberLabel . FILTER(LANG(?castMemberLabel) = "en") } LIMIT 10

List the English-language names of the cast members of the film Titanic.

Which actors starred in James Cameron’s Titanic?

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


Question: Who was the 23rd President of the United States?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?person WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q11696 .
  ?statement pq:P1545 "23" .
}

Which person held the 23rd term as President of the United States?

Tell me the name of the 23rd president of the United States.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q11696> . ?var2 <http://www.wikidata.org/prop/qualifier/P1545> "23". ?var2 <http://www.wikidata.org/prop/statement/P39> ?var1 . }


Question: What publications has Lisa Brown published in, and how many works did she publish in each?

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

Which conference proceedings contain work by Lisa Brown, and how many of her works appear in each?

List the English-named publications where Lisa Brown has authored works, showing the count of her works per publication, preferring abbreviated names if available.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q47071859> . ?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: Dutch athletes and their occupations

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

What are the occupations of people who are citizens of the Netherlands?

List the names and occupations of people from the Netherlands.

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


Question: What are the types or categories that a backpack belongs to?

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

What is a backpack a subclass of in Wikidata?

Show me the parent categories of a backpack.

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


Question: What are the geographical locations (country, city, continent) associated with the 20th-century martyrs sculpture at Westminster Abbey?

SELECT DISTINCT ?location WHERE { wd:Q29546709 (wdt:P131|wdt:P17|wdt:P30)+ ?location } LIMIT 100

Show the administrative and geographical hierarchy of the 20th-century martyrs sculpture series.

Where is the 20th-century martyrs sculpture located, from the local level up to the continent?

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


Question: Japanese foundations with their corporate numbers and NDL Authority IDs

SELECT ?foundation ?label ?corporateNumber ?ndlId WHERE { ?foundation wdt:P17 wd:Q17 . ?foundation wdt:P31 wd:Q157031 . OPTIONAL { ?foundation wdt:P3225 ?corporateNumber . } OPTIONAL { ?foundation wdt:P349 ?ndlId . } ?foundation rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 1000

What are the English names, corporate numbers, and NDL IDs of foundations located in Japan?

List Japanese foundations along with their English labels, Japanese corporate numbers, and National Diet Library IDs.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q17> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q157031> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3225> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P349> ?var3 . } } LIMIT 1000


Question: Film actors who have won awards, with their award names listed.

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 ?actor(GROUP_CONCAT(DISTINCT ?awardLabel ; SEPARATOR = "; ") AS ?awards) WHERE {
  ?actor wdt:P106 wd:Q10800557 .
  ?actor wdt:P166 ?award .
  ?award rdfs:label ?awardLabel .
  FILTER(LANGMATCHES(LANG(?awardLabel) , "en"))
}
GROUP BY ?actor
LIMIT 10

Which film actors have received awards, and what are the names of those awards in English?

List up to 10 film actors along with all the awards they have received, showing the award names in English.

SELECT ?var1 ( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = "; " ) AS ?var2Label ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10800557> . ?var1 <http://www.wikidata.org/prop/direct/P166> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ro". ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 LIMIT 10


Question: List film actors and the awards they have received in English.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?actor ?awardLabel WHERE {
  ?actor wdt:P106 wd:Q10800557 .
  ?actor wdt:P166 ?award .
  ?award rdfs:label ?awardLabel .
  FILTER(LANG(?awardLabel) = "en")
}
LIMIT 100

Which awards have film actors received, and who are the actors?

Show me the English names of awards won by film actors.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10800557> . ?var1 <http://www.wikidata.org/prop/direct/P166> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ro,jp". ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } LIMIT 100


Question: Who is a human with the family name Poquelin?

SELECT DISTINCT ?human WHERE { ?human wdt:P734 wd:Q53733927 . ?human wdt:P31 wd:Q5 .}

Which famous person had Poquelin as their last name?

Can you tell me the person whose surname is Poquelin?

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


Question: What countries with Spanish labels and descriptions are used as locations for other entities?

SELECT DISTINCT ?location ?locationLabel ?locationDescription WHERE { ?location rdfs:label ?locationLabel . ?location schema:description ?locationDescription . FILTER(LANG(?locationLabel) = "es") . FILTER(LANG(?locationDescription) = "es") . ?location wdt:P31/wdt:P279* wd:Q3624078 . ?item wdt:P276 ?location . } LIMIT 10

Show me Spanish-named countries that are listed as the location of something in Wikidata.

Which places (countries) in Spanish have both a label and a description, and are used as a location for other items?

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P276> ?var1 . } 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 are the geographic locations associated with Hempsted village cross?

SELECT DISTINCT ?location WHERE { { wd:Q17537721 wdt:P131 ?location } UNION { wd:Q17537721 wdt:P17 ?country . ?country wdt:P30 ?location } UNION { wd:Q17537721 wdt:P17 ?location } }

Which country and continent is Hempsted village cross in, and what is its immediate administrative division?

Can you tell me the administrative, national, and continental context of the Hempsted village cross?

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


Question: Places at sea level with their coordinates and names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?place ?placeLabel ?coordinates ?elevation WHERE {
  ?place wdt:P2044 ?elevation .
  ?place wdt:P625 ?coordinates .
  ?place rdfs:label ?placeLabel .
  FILTER ( LANG( ?placeLabel ) = "en" ) FILTER ( ?elevation = 0 )
}

Which places on Earth have an elevation of exactly 0 meters, and what are their names and coordinates?

List all geographical locations at sea level, including their English names, coordinates, and elevation (which should be 0).

SELECT ?var1 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2044> ?var4 . FILTER ( ( ( ?var4 = "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,zh". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } }


Question: Does Wikidata contain an entry for the GND ID 4189714-6?

Is there a person, organization, or subject in Wikidata identified by the German National Library ID 4189714-6?

Can the value assurance clause be found in Wikidata using its GND identifier?

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


Question: Chemical compounds with molecular mass 180.06 g/mol, InChI, and KEGG ID.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?compound ?inchi ?kegg_id ?label WHERE {
  VALUES(?mass) {("180.063388" ^^ xsd:decimal)
  }
  ?compound wdt:P234 ?inchi .
  ?compound wdt:P665 ?kegg_id .
  ?compound wdt:P2067 ?mass .
  ?compound rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 190

Which monosaccharides have a molecular weight of approximately 180.06 g/mol and are listed in KEGG with an InChI identifier?

Show me the English names, InChI codes, and KEGG IDs of all chemical compounds with a mass of 180.063388 g/mol.

SELECT * WHERE { VALUES ( ?var1 ) { ( "180.063388"^^<http://www.w3.org/2001/XMLSchema#decimal> ) } ?var2 <http://www.wikidata.org/prop/direct/P234> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P665> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P2067> ?var1 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } LIMIT 190


Question: Which entity has the Library of Congress Control Number n79021345?

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

What Wikidata item is associated with the LCCN n79021345?

Find the Wikidata entity identified by the Library of Congress authority ID n79021345.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P244> "string1". } LIMIT 1


Question: List of U.S. counties and their coordinates

SELECT ?county ?coordinates WHERE { ?county (wdt:P31* / wdt:P279*) wd:Q47168 ; wdt:P625 ?coordinates .}

What are the geographic coordinates of all counties in the United States?

Show me the locations of all counties in the United States, including those specific to states like California or Texas.

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


Question: Wikipedia pages for the movie with IMDb ID tt0768183 in English or German

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipedia_page WHERE {
  ?item wdt:P345 "tt0768183" .
  ?wikipedia_page schema:about ?item .
  {
    ?wikipedia_page schema:inLanguage "en" .
  } UNION {
    ?wikipedia_page schema:inLanguage "de" .
  }
}

What are the English or German Wikipedia pages for the film with IMDb ID tt0768183?

Show me the English or German Wikipedia links for the movie identified by tt0768183 on IMDb.

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


Question: What animals are classified as female organisms in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P21 wd:Q43445 .
}
LIMIT 10

Which entities have their sex or gender listed as 'female organism'?

Show me a list of organisms identified as female in Wikidata.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/prop/Q43445> . } LIMIT 10


Question: What are the subclasses of Semitic letter?

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

List the English names of all types of Semitic letters.

Which characters are considered specific kinds of Semitic letters, such as aleph or bet?

SELECT ?var1 ?var1Label ?var2Label WHERE { BIND ( <http://www.wikidata.org/entity/Q19793980> AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.wikidata.org/prop/direct/P279> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


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

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

Image for Tadeusz Borowski based on SNAC ARK ID w61w3c0s.

Show me the Wikimedia Commons image linked to the SNAC ARK ID w61w3c0s.

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


Question: What are the subclasses of immersion foot syndrome?

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

Can you list the more specific types of immersion foot syndrome?

Which conditions are considered more specific forms of immersion foot syndrome?

SELECT ?var1 ?var1Label ?var2Label WHERE { BIND ( <http://www.wikidata.org/entity/Q7846175> AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 ; <http://www.wikidata.org/prop/direct/P279> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Image of the person with SNAC ARK ID w6513w86

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6513w86?

Show me the picture of David Peck Todd from Wikimedia Commons, identified by the SNAC ARK ID w6513w86.

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


Question: Does Transfermarkt player ID 20163 exist in Wikidata?

ASK WHERE { ?player wdt:P2446 "20163" . }

Is there a football player in Wikidata with the Transfermarkt ID 20163?

Confirm if the player with Transfermarkt ID 20163 is listed in Wikidata.

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


Question: Subclasses of chalice with their labels

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q210723 . OPTIONAL { ?subclass rdfs:label ?subclassLabel . } } LIMIT 11

What are the subclasses of a chalice, and what are their names in any language?

List up to 11 subclasses of the chalice along with their labels, even if some labels are missing.

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


Question: Wikipedia page for the movie with IMDb ID tt2266781 in English or German.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikipediaPage WHERE {
  ?item wdt:P345 "tt2266781" .
  ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang .
  FILTER(?lang = "en" || ?lang = "de")
}

What is the English or German Wikipedia page for the film with IMDb ID tt2266781?

Show me the Wikipedia article in English or German about the movie identified by IMDb ID tt2266781.

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


Question: Diseases with DOID ID but missing exact match link to DOID URI in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?doid WHERE {
  ?item wdt:P699 ?doid .
  FILTER ( STRSTARTS( STR( ?doid ) , "DOID:" ) ) .
  FILTER NOT EXISTS {
    ?item wdt:P2888 ?match .
    FILTER ( STRSTARTS( STR( ?match ) , "http://purl.obolibrary.org/obo/DOID_" ) )
  }
  .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 1000

Which diseases in Wikidata have a Disease Ontology ID (P699) but do not have a corresponding exact match (P2888) to the DOID ontology URI?

List diseases in Wikidata that are identified by DOID but lack a link to the official DOID ontology URL — for data curation purposes.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2888> ?var2 . FILTER ( ( ( SUBSTR ( STR ( ?var2 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"28"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P699> ?var3 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 1000


Question: Who are some people who died in Ireland, and what additional details are recorded about their death?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?person ?statement(SAMPLE(?qualifierProperty) AS ?qualifier) WHERE {
  ?person p:P20 ?statement .
  ?statement ps:P20 wd:Q27 .
  ?statement ?qualifierProperty ?qualifierValue .
  FILTER(STRSTARTS(STR(?qualifierProperty) , STR(pq:)))
}
GROUP BY ?person ?statement
LIMIT 101

What qualifier properties are associated with death statements of people who died in Ireland?

Can you list individuals who died in Ireland and the supplementary information (like date or location) linked to their death records?

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


Question: What entity and property are associated with the statement s:Q937-075AFDBC-7E85-428C-A407-4B45211B3C28?

SELECT ?item ?property WHERE { ?item ?property s:Q937-075AFDBC-7E85-428C-A407-4B45211B3C28 . }

Which person and occupation property does this Wikidata statement refer to?

Find the subject and property of the given statement in Wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q18558009-1D643596-FD09-4C74-BF0D-B4549C5F2E0B> . }


Question: What are the direct properties and values associated with Albert Einstein in Wikidata?

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

Show all information known about Albert Einstein from Wikidata.

List all the attributes of Albert Einstein stored in Wikidata.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q18557911-D2010192-4BC8-4141-8C3F-E5E30AF08D3B> ?var1 ?var2 . }


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

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?article ?imdbId WHERE {
  ?item wdt:P345 "tt0133093" .
  ?article schema:about ?item .
  ?article schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" ) .
  ?item wdt:P345 ?imdbId .
}

Which English and German language pages on Wikimedia projects are about the movie identified by the IMDb ID tt0133093?

Show me the links to the English and German language pages related to the movie The Matrix (IMDb: tt0133093).

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


Question: Who is Gilberto Gil in French?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Gilberto Gil"@fr . ?item wdt:P31 wd:Q5 .}

What is the French label for the person Gilberto Gil?

Can you tell me the Wikidata item for the French-named person Gilberto Gil?

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


Question: Films released in 2017 with their titles, IMDb IDs, Rotten Tomatoes IDs, and genres.

SELECT DISTINCT ?film ?title ?imdb_id ?rotten_tomatoes_id ?genre WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P577 ?pubDate . FILTER (YEAR(?pubDate) = 2017) OPTIONAL { ?film wdt:P1476 ?title . } OPTIONAL { ?film wdt:P345 ?imdb_id . } OPTIONAL { ?film wdt:P1258 ?rotten_tomatoes_id . } OPTIONAL { ?film wdt:P136 ?genre . } } LIMIT 10

What are the titles, IMDb IDs, Rotten Tomatoes IDs, and genres of films released in 2017?

List up to 10 films from 2017, including their titles, IMDb identifiers, Rotten Tomatoes links, and genres if available.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?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> "[AUTO_LANGUAGE],en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1258> ?var4 . } FILTER ( ( ( ?var6 >= "2017-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var6 <= "2017-12-31T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var5 . } } LIMIT 10


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

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

Which film on Wikidata has the IMDb identifier tt5934402?

What Wikidata item corresponds to the IMDb ID tt5934402?

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


Question: What organization is Gabriel Ferraté Pascual affiliated with or employed by, and what is its image, start/end dates, and academic degree?

SELECT ?image ?organization ?organizationLabel ?start ?end ?degreeLabel WHERE { wd:Q8963283 (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") } }

Which organization did Gabriel Ferraté Pascual work for or affiliate with, and do we have an image of it, along with the start and end dates of the relationship and any academic degree associated with it?

Show me the organization associated with Gabriel Ferraté Pascual (either as employer or affiliation), including its English label, image, the time period of the association, and any academic degree linked to that relationship.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q8963283> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q8963283> <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: Athletes with Olympic.org ID but no Sports-Reference.com ID.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?athlete ?olympicOrgId WHERE {
  ?athlete wdt:P3171 ?olympicOrgId .
  FILTER NOT EXISTS {
    ?athlete wdt:P1447 [] .
  }
}

Which athletes are listed on the archived Olympic.org site but not on the archived Sports-Reference.com site?

Show me the list of athletes who have an identifier on Olympic.org (archived) but do not have a corresponding identifier on Sports-Reference.com (archived).

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3171> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1447> ?var3 . } ) ) . }


Question: Which Wikidata items have Twitter usernames SpaceX, UNESCO, Wikipedia, edent, or Le_Figaro?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "SpaceX" "UNESCO" "Wikipedia" "edent" "Le_Figaro" } } ORDER BY ?username

What are the Wikidata entities associated with the Twitter handles SpaceX, UNESCO, Wikipedia, edent, and Le_Figaro?

List the Wikidata items and their corresponding Twitter usernames for the handles SpaceX, UNESCO, Wikipedia, edent, and Le_Figaro, sorted alphabetically by username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "OSM_FR" ) ( "nojhan" ) ( "string3" ) ( "hogwxrts" ) ( "Le_Figaro" ) ( "string4" ) ( "string5" ) ( "SpaceX" ) ( "Anthere" ) ( "string6" ) ( "string7" ) ( "UNESCO" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "jm_gilot" ) ( "MumTaupe" ) ( "1J1Poilu" ) ( "leplanning" ) ( "string13" ) ( "string14" ) ( "Mac_Picsou" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "_Dom_I" ) ( "string19" ) ( "string20" ) ( "MSR_Tlse" ) ( "string21" ) ( "mamie_caro" ) ( "southgeist" ) ( "TomChivers" ) ( "string22" ) ( "GoogleOSS" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "string26" ) ( "string27" ) ( "Le_Plown" ) ( "WESHORSON" ) ( "Kocobe" ) ( "RDjoumi" ) ( "string28" ) ( "string29" ) ( "tatakDH" ) ( "string30" ) ( "string31" ) ( "Wikipedia" ) ( "string32" ) ( "string33" ) ( "string34" ) ( "SJ_Mage" ) ( "PoulpyWP" ) ( "string35" ) ( "WikiMoyg" ) ( "string36" ) ( "string37" ) ( "maltbyps" ) ( "string38" ) ( "edent" ) ( "bhilburn" ) ( "0xMatt" ) ( "addelindh" ) } } ORDER BY ASC( ?var3 )


Question: Language descriptions of Chao Chuan

SELECT ?description WHERE { wd:Q12973025 schema:description ?description . } LIMIT 10

What are the descriptions of Taiwanese singer Chao Chuan in different languages?

Show me how Chao Chuan is described in various languages.

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


Question: Female pianists

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

List up to 100 female pianists with their English names.

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


Question: Who is the person with ISNI 000000011059439X, and what are their birth and death details including places?

SELECT ?person ?personLabel ?dob ?dod ?birthplace ?birthplaceLabel ?deathplace ?deathplaceLabel WHERE { ?person wdt:P213 "000000011059439X" . ?person wdt:P569 ?dob . ?person wdt:P19 ?birthplace . ?person wdt:P570 ?dod . ?person wdt:P20 ?deathplace . ?person rdfs:label ?personLabel . ?birthplace rdfs:label ?birthplaceLabel . ?deathplace rdfs:label ?deathplaceLabel . FILTER(LANG(?personLabel) = "en") . FILTER(LANG(?birthplaceLabel) = "en") . FILTER(LANG(?deathplaceLabel) = "en") . } LIMIT 10

Show me the birth date, death date, birthplace, and death place of the person identified by ISNI 000000011059439X.

Can you find the full biographical details — including place of birth and death — for the individual whose ISNI is 000000011059439X?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P213> "string1". ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P20> ?var5 . } LIMIT 100


Question: Most frequently used property to assign the family name "Sesso" in Wikidata.

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

Which property is used most often to indicate that someone has the family name "Sesso", and how many times is it used?

Show me the property that links the most entities to the family name "Sesso", along with the count of such links.

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


Question: Who is the French actress named Fanny Ardant in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person rdfs:label "Fanny Ardant" @fr .
  ?person wdt:P31 wd:Q5 .
}

What Wikidata item corresponds to the French label 'Fanny Ardant' and represents a human?

Find the human entity in Wikidata that has the French label 'Fanny Ardant'.

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


Question: Is there a Wikidata item associated with the IMDb ID tt2384950?

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

Does the TV series "Critical" have an entry in Wikidata using the IMDb identifier tt2384950?

Does the IMDb ID tt2384950 exist in Wikidata?

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


Question: What Star Trek episode has the IMDb ID tt0708835?

SELECT ?episode WHERE { ?episode wdt:P345 "tt0708835" . }

Which Wikidata item corresponds to the IMDb identifier tt0708835?

Find the Wikidata entry for the movie or episode with IMDb ID tt0708835.

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


Question: Which Twitter/X usernames from the list (envlh, MuseeArmee, ADULLACT, etc.) are used on Wikidata, and how many Wikipedia sitelinks do their associated items have?

SELECT ?item ?username (COUNT(?site) AS ?sitelinkCount)
WHERE {
  ?item wdt:P2002 ?username .
  ?site schema:about ?item ;
        schema:isPartOf ?wiki .
  VALUES ?username {
    "envlh" "string1" "MuseeArmee" "Calimaq" "PoulpyWP" "Sociabble" "archives35" "atolcd" "ADULLACT"
  }
}
GROUP BY ?item ?username
ORDER BY ASC(?sitelinkCount)

For the Twitter usernames "envlh", "MuseeArmee", "ADULLACT", "archives35", and "Calimaq", which entities on Wikidata have them, and how many language versions of Wikipedia link to each?

List the Wikidata items that have Twitter/X usernames including "envlh", "MuseeArmee", "ADULLACT", "archives35", and "Calimaq", sorted by the number of Wikipedia sitelinks they have, from least to most.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "MuseeArmee" ) ( "Calimaq" ) ( "PoulpyWP" ) ( "Sociabble" ) ( "archives35" ) ( "atolcd" ) ( "ADULLACT" ) } } ORDER BY ASC( ?var3 )


Question: Does the movie with IMDb ID tt0734739 exist in Wikidata?

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

Is there a Wikidata item associated with the IMDb identifier tt0734739?

Confirm whether tt0734739 is a valid IMDb ID in Wikidata.

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


Question: Is there a Wikidata item for the IMDb ID tt2368860?

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

Does the TV series 'High Road' have a Wikidata entry linked to its IMDb ID tt2368860?

Confirm if the IMDb identifier tt2368860 is associated with any entity in Wikidata.

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


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

SELECT ?item ?itemLabel WHERE { ?item wdt:P345 "tt0517622" . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which film in Wikidata is associated with the IMDb identifier tt0517622?

Can you find the English name of the movie identified by tt0517622 on IMDb?

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


Question: What is the image of the Tram stop De Boelelaan/VU?

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

Show me the photo of the De Boelelaan/VU tram stop in Amsterdam.

Is there an image available for the Tram stop De Boelelaan/VU on Wikimedia Commons?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1339195> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } FILTER ( ( ?var1 IN ( <http://www.wikidata.org/entity/Q2224590> ) ) ) . }


Question: What are the French-language labeled humans with 'Glize' in their name?

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

Who are the people with the surname Glize who have a French label on Wikidata?

List all humans in Wikidata whose French label contains 'Glize'.

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


Question: What administrative area is the street Westerdok located in?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?administrativeEntity WHERE {
  wd:Q19650009 wdt:P131 ?administrativeEntity .
}

Administrative entity of Westerdok street in Amsterdam.

Tell me which city the Westerdok street belongs to.

SELECT ?var1 WHERE { OPTIONAL { <https://adamlink.nl/geo/street/westerdok/4950> <http://www.wikidata.org/prop/direct/P276> ?var2 . } }


Question: Who are the French people with the surname "Le Bert"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'fr' ) .
  FILTER ( CONTAINS( ?label , 'Le Bert' ) ) .
  ?item wdt:P31 wd:Q5 .
}

Can you list humans in Wikidata whose French label contains "Le Bert"?

Which individuals of French origin have "Le Bert" as part of their name?

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


Question: What are the names of Wikimedia categories that focus on Titan (the moon) in different languages?

SELECT ?category ?categoryLabel WHERE { ?category wdt:P301 wd:Q2565 . ?category rdfs:label ?categoryLabel .}

Which Wikipedia categories are dedicated to Titan, and in what languages are they labeled?

Show me all the language versions of the category for Titan (moon) on Wikimedia projects.

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


Question: What are some roads with OpenStreetMap relation IDs?

SELECT ?item ?itemLabel ?osmId WHERE { ?item wdt:P402 ?osmId . ?item wdt:P31 wd:Q34442 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 5

Which roads in Wikidata have corresponding OpenStreetMap relation IDs, and what are those IDs?

Show me five roads with their OpenStreetMap relation IDs and English names.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q17908ë72> <http://www.wikidata.org/prop/direct/P402> ?var1 . }


Question: Who are the people with the surname Rabaste?

SELECT DISTINCT ?human WHERE { ?human wdt:P31 wd:Q5 ; wdt:P734 wd:Q63760855 . }

Can you list all humans in Wikidata whose family name is Rabaste?

Which individuals are known to have Rabaste as their last name?

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


Question: List of theatre buildings in Wikidata with their English names.

SELECT ?theatre ?theatreLabel WHERE { ?theatre wdt:P31 wd:Q24354 . ?theatre rdfs:label ?theatreLabel . FILTER(LANG(?theatreLabel) = "en") }

What are the names of all theatre buildings in Wikidata in English?

Show me the English labels of all entities that are instances of a theatre building.

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


Question: Monuments with their English and native language labels

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 ?monument ?englishLabel ?nativeLabel WHERE {
  ?monument wdt:P31 wd:Q4989906 .
  ?monument rdfs:label ?englishLabel .
  FILTER ( LANG( ?englishLabel ) = "en" ) .
  ?monument wdt:P1705 ?nativeLabel .
}
LIMIT 10000

What are the English and native language names of monuments?

Show me monuments along with their English labels and the labels in their original or official language.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4989906> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P1705> [] . } LIMIT 10000


Question: Anglican priests with Early Modern Letters Online IDs and their images

SELECT ?priest ?priestLabel ?image WHERE { ?priest wdt:P106 wd:Q3409375 . ?priest wdt:P1802 ?emloId . OPTIONAL { ?priest wdt:P18 ?image . } } LIMIT 100

Who are the Anglican priests that have an EMLO identifier, and do they have images on Wikimedia Commons?

List Anglican priests from the Early Modern Letters Online project along with their available images.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1802> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var4 <http://www.wikidata.org/prop/direct/P737> <http://www.wikidata.org/entity/Q13534389> . } LIMIT 100


Question: What actors played which characters in the Lord of the Rings film trilogy?

SELECT ?film ?filmLabel ?actor ?actorLabel ?character ?characterLabel WHERE { ?film wdt:P179 wd:Q190214 . ?film p:P161 ?statement . ?statement ps:P161 ?actor . ?statement pq:P453 ?character . OPTIONAL { ?film rdfs:label ?filmLabel FILTER(LANG(?filmLabel) = "en") } OPTIONAL { ?actor rdfs:label ?actorLabel FILTER(LANG(?actorLabel) = "en") } OPTIONAL { ?character rdfs:label ?characterLabel FILTER(LANG(?characterLabel) = "en") } }

List the cast and their character roles in each movie of The Lord of the Rings trilogy.

Which actors portrayed which characters in Peter Jackson’s Lord of the Rings movies?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P179> <http://www.wikidata.org/entity/Q190214> . ?var1 <http://www.wikidata.org/prop/direct/P161> ?var2 . ?var1 <http://www.wikidata.org/prop/qualifier/P453> ?var3 . }


Question: What are the English Wikipedia pages for all mountains?

SELECT DISTINCT ?wikipediaPage WHERE { ?mountain wdt:P31 wd:Q8502 . ?wikipediaPage schema:about ?mountain ; schema:isPartOf <https://en.wikipedia.org/> . }

Show me the links to English Wikipedia articles about mountains.

Which mountains have English Wikipedia pages?

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6621591> . OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } OPTIONAL { } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,nl,de,it,es". } OPTIONAL { ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } }


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

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

Is there a person in Wikidata whose Virtual International Authority File identifier is 72497600?

Confirm if the VIAF ID 72497600 is assigned to any entity in Wikidata.

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


Question: Does the railway station with UIC code 2208425 exist in Wikidata?

ASK WHERE { ?station wdt:P722 "2208425" . }

Is there a railway station in Europe or nearby regions assigned the UIC station code 2208425?

Confirm if the UIC station code 2208425 corresponds to a known railway station in Wikidata.

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


Question: Does Vanja Radovanović have a VIAF ID of 305504330?

Is there a Wikidata item associated with the VIAF identifier 305504330?

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

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


Question: Does the GND ID "4386158-1" exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "4386158-1" .
}

Is there a Wikidata item associated with the German National Library ID 4386158-1?

Confirm if the entity with GND identifier 4386158-1 is present in Wikidata.

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


Question: What is the genomic end position of the BRCA1 gene, and on which chromosome and genomic assembly is it located?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?genomicEnd ?chromosome ?assembly WHERE {
  wd:Q227339 wdt:P645 ?genomicEnd .
  wd:Q227339 p:P645 ?statement .
  ?statement pq:P1057 ?chromosome .
  ?statement pq:P659 ?assembly .
}

Show the genomic end coordinates of the BRCA1 gene along with the chromosome and reference genome assembly used.

Where is the BRCA1 gene located in the human genome? Include the end position, chromosome, and genomic assembly.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q227339-3581DC44-8D14-4EE8-8EAC-D6A9CBA18D90> ?var1 ?var2 . }


Question: What entity and property are associated with the statement node for A2M?

PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?item ?statementProperty WHERE {
  ?item ?statementProperty s:Q289013-3ACF8435-6FF2-4EF2-88BB-3386E11ED015 .
}

Which subject and statement property point to the statement about A2M being a gene?

Can you tell me the subject and property that reference the statement with ID s:Q289013-3ACF8435-6FF2-4EF2-88BB-3386E11ED015?

SELECT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/statement/Q289013-3ACF8435-6FF2-4EF2-88BB-3386E11ED015> . }


Question: Who are the current female heads of state of countries?

SELECT DISTINCT ?country ?countryLabel ?headOfState ?headOfStateLabel ?endDate WHERE { ?country wdt:P31 wd:Q6256 . ?country p:P35 ?statement . ?statement ps:P35 ?headOfState . ?headOfState wdt:P21 wd:Q6581072 . ?headOfState rdfs:label ?headOfStateLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?headOfStateLabel) = "en") FILTER(LANG(?countryLabel) = "en") OPTIONAL { ?statement pq:P582 ?endDate . } FILTER ( !BOUND(?endDate) || ?endDate >= NOW() ) }

List all countries with a female head of state who is still in office, along with their names and the country names.

Which female leaders are currently serving as heads of state, and what countries do they lead?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P35> ?var2 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> ; <http://www.wikidata.org/prop/P35> ?var4 ; <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/qualifier/P582> ?var3 . } FILTER ( ( !( BOUND ( ?var3 ) ) || ( ?var3 >= NOW ( ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } }


Question: Is the Swedish band Lagoona a human?

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

Could Lagoona be classified as a human being based on its type hierarchy?

Is Lagoona an instance of a human or any subclass of human?

ASK WHERE { <http://www.wikidata.org/entity/Q22338455> ( <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: List cathedrals in Paris with their arrondissement, coordinates, 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 ?cathedral ?cathedralLabel ?districtLabel ?coordinates ?image WHERE {
  ?cathedral wdt:P31 wd:Q2977 .
  ?cathedral wdt:P131 ?district .
  ?district wdt:P131 wd:Q90 .
  OPTIONAL {
    ?cathedral wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?cathedral wdt:P18 ?image .
  }
  ?cathedral rdfs:label ?cathedralLabel .
  ?district rdfs:label ?districtLabel .
  FILTER(LANG(?cathedralLabel) = "en")
  FILTER(LANG(?districtLabel) = "en")
}
ORDER BY ASC(?districtLabel) ASC(?cathedralLabel)

What are the names, locations (arrondissements), geographic coordinates, and images of all cathedrals located in Paris?

Can you show me all the cathedrals in Paris, including which arrondissement they’re in, their coordinates, and a picture of each?

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2977> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q90> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } ORDER BY ASC( ?var2Label )ASC( ?var1Label )


Question: What is the Wikidata item for the Galleria Nazionale di Cosenza, and is it classified as a museum?

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 ?museum WHERE {
  ?museum rdfs:label "Galleria nazionale di Cosenza" @it ; ( wdt:P31 / wdt:P279 * ) wd:Q33506 .
}

Is the Galleria Nazionale di Cosenza in Italy a museum according to Wikidata?

Find the museum in Cosenza, Italy, known as Galleria Nazionale di Cosenza.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2002/07/owl#sameAs> <http://it.dbpedia.org/resource/Galleria_Nazionale_di_Cosenza_Palazzo_Arnone> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q33506> . }


Question: Who are the children of Johann Sebastian Bach?

SELECT ?childLabel WHERE { wd:Q1339 wdt:P40 ?child . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") } LIMIT 100

List the names of Johann Sebastian Bach’s children in English.

Can you provide the English labels of all children of the composer Johann Sebastian Bach?

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


Question: International airports with their IATA codes, countries, and number of associated statements, sorted by least statements first.

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 ?airport ?airportLabel ?iataCode ?countryLabel ( COUNT( * ) AS ?statementCount ) WHERE {
  ?airport wdt:P31 wd:Q644371 .
  OPTIONAL {
    ?airport wdt:P238 ?iataCode .
  }
  OPTIONAL {
    ?airport wdt:P17 ?country .
  }
  OPTIONAL {
    ?airport rdfs:label ?airportLabel .
    FILTER ( LANG( ?airportLabel ) = "en" )
  }
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  ?airport ?p ?o .
}
GROUP BY ?airport ?airportLabel ?iataCode ?countryLabel
ORDER BY ASC ( ?statementCount )

Which international airports have the fewest statements in Wikidata, and what are their IATA codes and countries?

List all international airports along with their IATA codes, countries, and how many data triples describe each, ordered from least to most detailed.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4Label ( COUNT ( ?var1 ) AS ?var5 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q644371> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P238> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "ar" ) ) ) . } ?var1 ?var7 ?var8 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en, en". } } GROUP BY ?var1 ?var1Label ?var2 ?var3Label ?var4Label ORDER BY ASC( ?var5 )


Question: What properties are associated with the BeagleBoard.org Foundation, and what are their values and English labels?

SELECT ?property ?propertyLabel ?value ?itemLogo ?propertyImage WHERE { wd:Q50361551 ?property ?value . OPTIONAL { ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } OPTIONAL { wd:Q50361551 wdt:P154 ?itemLogo . } OPTIONAL { ?property wdt:P18 ?propertyImage . } }

Show me all the data about BeagleBoard.org Foundation, including its logo and any images associated with its properties.

List the properties used on the BeagleBoard.org Foundation item in Wikidata, along with their English labels and the organization’s logo image.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { { BIND ( <http://www.wikidata.org/entity/Q50361551> AS ?var1 ). ?var1 ?var6 ?var7 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } ?var3 ?var8 ?var6 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var7 ) , "string1" ) ) ) . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string2" ) ) ) . } UNION { BIND ( "EFFBD8" AS ?var5 ). <http://www.wikidata.org/entity/Q50361551> ?var6 ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 ?var8 ?var6 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . FILTER ( ( STRSTARTS ( STR ( ?var3 ) , "string1" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 <http://www.wikidata.org/prop/direct/P18> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Italian National Archaeological Museum of Vulci on Wikidata

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?museum WHERE {
  ?museum rdfs:label "Museo archeologico nazionale di Vulci" @it ; wdt:P31 / wdt:P279 * wd:Q33506 .
}

What is the Wikidata item for the Museo archeologico nazionale di Vulci, and is it classified as a museum?

Find the Wikidata entry for the National Archaeological Museum of Vulci in Italy and confirm it is a museum.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/2002/07/owl#sameAs> <http://it.dbpedia.org/resource/Museo_nazionale_archeologico_di_Vulci> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q33506> . }


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

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

Show me the Wikipedia articles in English and German about the film "Killer by Nature".

Which language versions of Wikipedia have articles about the movie identified by tt0844866?

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


Question: What are the English and German Wikipedia articles for the movie with IMDb ID tt0133093?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?enwiki ?dewiki ?imdb_id WHERE {
  ?item wdt:P345 "tt0133093" .
  BIND( "tt0133093" AS ?imdb_id ) OPTIONAL {
    ?enwiki schema:about ?item ; schema:inLanguage "en" ; schema:name ?enname .
    FILTER ( CONTAINS( STR( ?enwiki ) , "wikipedia.org" ) )
  }
  OPTIONAL {
    ?dewiki schema:about ?item ; schema:inLanguage "de" ; schema:name ?denname .
    FILTER ( CONTAINS( STR( ?dewiki ) , "wikipedia.org" ) )
  }
}

Can you find the Wikipedia pages in English and German for the film that has the IMDb identifier tt0133093?

Show me the Wikipedia links in English and German for the movie identified by tt0133093 on IMDb.

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


Question: List countries with their flag image pages on Wikimedia Commons.

SELECT DISTINCT ?countryLabel ?flagPageUrl WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P36 ?capital . ?capital wdt:P625 ?capitalCoordinates . ?country wdt:P163 ?flag . ?flag wdt:P18 ?flagFilename . BIND( STRAFTER( STR( ?flagFilename ), "Special:FilePath/" ) AS ?filename ) . BIND( REPLACE( ?filename, "%20", "_" ) AS ?filenameClean ) . BIND( REPLACE( ?filenameClean, "\\.svg$", "" ) AS ?filenameNoExt ) . BIND( CONCAT( "https://commons.wikimedia.org/wiki/File:", ?filenameNoExt, ".svg" ) AS ?flagPageUrl ) . ?country rdfs:label ?countryLabel . FILTER( LANG( ?countryLabel ) = "en" ) }

What are the Wikimedia Commons file pages for the flags of all countries?

Show me the English names of all countries and links to their official flag images on Wikimedia Commons.

SELECT ?var1Label ( SAMPLE ( ?var2 ) AS ?var2 ) WHERE { BIND ( REPLACE ( STR ( ?var3 ) , "string1", "" ) AS ?var4 ). BIND ( CONCAT ( "string2", ?var4 ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . ?var1 <http://www.wikidata.org/prop/direct/P36> ?var5 . ?var5 <http://www.wikidata.org/prop/P625> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/value/P625> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P163> ?var8 . ?var8 <http://www.wikidata.org/prop/direct/P18> ?var3 . ?var7 <http://wikiba.se/ontology#geoLatitude> ?var9 . ?var7 <http://wikiba.se/ontology#geoLongitude> ?var10 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var11Label . } } GROUP BY ?var1Label


Question: What are the English and German Wikipedia articles about the movie with IMDb ID tt0133093?

SELECT ?movie ?wikipedia_article WHERE { ?movie wdt:P345 "tt0133093" . ?wikipedia_article schema:about ?movie . { ?wikipedia_article schema:inLanguage "en" } UNION { ?wikipedia_article schema:inLanguage "de" } }

Show me the Wikipedia and Wikiquote pages in English and German for The Matrix (1999)

Find all language versions of Wikipedia articles about the film The Matrix (IMDb: tt0133093)

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


Question: German regions with their regional key and German alternative names

SELECT ?key ?region ?label ?altLabelDe WHERE { ?region wdt:P1388 ?key . OPTIONAL { ?region rdfs:label ?label . FILTER(LANG(?label) = "de") } OPTIONAL { ?region skos:altLabel ?altLabelDe . FILTER(LANG(?altLabelDe) = "de") } }

What are the German regional keys for municipalities in Germany, along with their German labels and alternative names?

Show me all German regions with their official regional key, their German name, and any other German names they are known by.

SELECT ?var1 ?var2 ?var3 ?var3Label ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,de". } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1388> ?var1 . } OPTIONAL { ?var3 <http://www.w3.org/2004/02/skos/core#altLabel> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . } }


Question: Alternative names in English for positions held by U.S. presidents before or after their presidency.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?positionLabel ?altLabel WHERE {
  ?person wdt:P31 wd:Q5 ; p:P39 ?presidencyStmt .
  ?presidencyStmt ps:P39 wd:Q11696 .
  ?person p:P39 ?positionStmt .
  ?positionStmt ps:P39 ?position .
  ?position wdt:P31 / wdt:P279 * wd:Q4164871 .
  ?position rdfs:label ?positionLabel .
  ?position skos:altLabel ?altLabel .
  FILTER(LANG(?altLabel) = "en")
  .
  FILTER(?position != wd:Q11696)
}
LIMIT 10000

What are some alternative English names for the political offices held by individuals who have served as President of the United States?

List all the English alternative labels for the government positions that U.S. presidents have held, excluding the presidency itself.

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var3 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var3 <http://www.wikidata.org/prop/direct/P39> ?var1 . ?var3 <http://www.wikidata.org/prop/P39> ?var4 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/p279> *) <http://www.wikidata.org/entity/Q4164871> . ?var4 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10000


Question: Popes and their children

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?pope ?child WHERE {
  ?pope p:P39 [ ps:P39 wd:Q19546 ] .
  ?pope wdt:P40 ?child .
}

Who are the children of each pope in history?

List all individuals who have held the position of pope along with their children.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q19546> ] . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . }


Question: Tributaries of the Mississippi River

SELECT ?tributary ?tributaryLabel WHERE { wd:Q1497 wdt:P974 ?tributary . ?tributary rdfs:label ?tributaryLabel . FILTER(LANG(?tributaryLabel) = "en")}

What are the tributaries of the Mississippi River?

List the English names of all rivers that flow into the Mississippi River.

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


Question: Creative works with English labels and Library of Congress IDs

SELECT DISTINCT ?item ?itemLabel ?instanceLabel ?lccn WHERE { ?item wdt:P31/wdt:P279* wd:Q17537576 . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") ?item wdt:P31 ?instance . ?instance rdfs:label ?instanceLabel . FILTER (LANG(?instanceLabel) = "en") OPTIONAL { ?item wdt:P244 ?lccn } } LIMIT 100

What are some creative works in English that have a Library of Congress control number, and what type of work are they?

List creative works with English names, their classification (e.g., book, article), and their Library of Congress IDs if available.

SELECT DISTINCT * WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q17537576> . ?var1 <http://wikiba.se/ontology#identifiers> ?var2 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P244> ?var5 . } } LIMIT 100 OFFSET 300