question stringlengths 9 150 | query stringlengths 109 692 | dataset-id stringclasses 12
values |
|---|---|---|
Which books by Kerouac were published by Viking Press? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE {
?uri rdf:type onto:Book .
?uri onto:publisher res:Viking_Press .
?uri onto:... | qald-2 |
Give me a list of all American inventions. | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri rdf:type yago:AmericanInventions .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
How high is the Mount Everest? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:Mount_Everest onto:elevation ?num.
} | qald-2 |
Who created the comic Captain America? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?uri ?string WHERE {
res:Captain_America onto:creator ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
How many people live in the capital of Australia? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE {
res:Australia onto:capital ?x .
?x onto:populationTotal ?num .
} | qald-2 |
What is the largest city in Australia? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE {
res:Australia onto:largestCity ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who composed the music for Harold and Maude? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE {
res:Harold_and_Maude onto:musicComposer ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which films starring Clint Eastwood did he direct himself? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri onto:director res:Clint_Eastwood .
?uri onto:starring res:Clint_Eastwood .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?st... | qald-2 |
In which city was the former Dutch queen Juliana buried? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Juliana_of_the_Netherlands onto:restingPlace ?uri.
?uri rdf:type onto:Settleme... | qald-2 |
Where is the residence of the prime minister of Spain? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Prime_Minister_of_Spain prop:residence ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which U.S. State has the abbreviation MN? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?uri ?string WHERE
{
?uri rdf:type yago:StatesOfTheUnitedStates .
... | qald-2 |
Show me all songs from Bruce Springsteen released between 1980 and 1990. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri rdf:type onto:Song .
... | qald-2 |
Which movies did Sam Raimi direct after Army of Darkness? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri rdf:type onto:Film .
?uri onto:dir... | qald-2 |
What is the founding year of the brewery that produces Pilsner Urquell? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?num WHERE
{
res:Pilsner_Urquell prop:brewery ?uri .
?uri prop:foundation ?num .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who wrote the lyrics for the Polish national anthem? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Poland onto:anthem ?x .
?x prop:author ?uri .
OPTIONAL { ?uri rdfs:label ?string. FIL... | qald-2 |
Give me all B-sides of the Ramones. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string WHERE
{
?x onto:musicalArtist res:Ramones .
?x prop:bSide ?string .
} | qald-2 |
Who painted The Storm on the Sea of Galilee? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:The_Storm_on_the_Sea_of_Galilee prop:artist ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which country does the creator of Miffy come from? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Miffy onto:creator ?x .
?x onto:nationality ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
For which label did Elvis record his first album? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?x rdf:type onto:Album .
?x onto:artist res:Elvis_Presley .
?x onto:releaseDate ?y... | qald-2 |
Who produces Orangina? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri onto:product res:Orangina .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who is the daughter of Ingrid Bergman married to? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri
WHERE {
res:Ingrid_Bergman onto:child ?child .
?child onto:spouse ?uri .
} | qald-3 |
In which city did John F. Kennedy die? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
res:John_F._Kennedy onto:deathPlace ?uri .
?uri rdf:type onto:City .
} | qald-3 |
Which classis do tree frogs belong to? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Hylidae prop:classis ?uri .
} | qald-3 |
When did Latvia join the EU? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?date
WHERE {
res:Latvia prop:accessioneudate ?date .
} | qald-3 |
Give me all actors starring in Last Action Hero. | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Last_Action_Hero prop:starring ?uri .
} | qald-3 |
Who wrote the book Les Piliers de la terre? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:The_Pillars_of_the_Earth onto:author ?uri .
} | qald-3 |
Who is the governor of Wyoming? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri
WHERE {
res:Wyoming prop:governor ?uri .
} | qald-3 |
Do Prince Harry and Prince William have the same mother? | PREFIX prop: <http://dbpedia.org/property/>
ASK
WHERE {
<http://dbpedia.org/resource/Prince_William,_Duke_of_Cambridge> prop:mother ?x .
<http://dbpedia.org/resource/Prince_Harry_of_Wales> prop:mother ?y .
FILTER (?x = ?y)
} | qald-3 |
Who developed Minecraft? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Minecraft onto:developer ?uri .
} | qald-3 |
List all games by GMT. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:publisher res:GMT_Games .
} | qald-3 |
In which U.S. state is Fort Knox located? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Fort_Knox prop:location ?uri .
?uri onto:country res:United_States .
} | qald-3 |
Which U.S. state has the abbreviation MN? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop:postalabbreviation 'MN'@en .
} | qald-3 |
Which movies did Kurosawa direct after Rashomon? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Film .
?uri onto:director res:Akira_Kurosawa .
{ ?uri onto:releaseDate ?x... | qald-3 |
Which diseases is Cetuximab used for? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?v
WHERE {
?x rdfs:label ?l.
FILTER(REGEX(?l,'Cetuximab','i')).
?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/possibleDiseaseTarget> ?v.
?v a <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasom... | qald-4 |
What are the diseases caused by Valdecoxib? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?x
WHERE {
?v1 rdfs:label ?l.
FILTER(REGEX(?l,'Valdecoxib','i')).
?v2 <http://www.w3.org/2002/07/owl#sameAs> ?v1.
?v2 <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?x.
?x a ?c.
?c <ht... | qald-4 |
What is the side effects of drugs used for Tuberculosis? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?x
WHERE {
<http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseases/1154> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/possibleDrug> ?v2.
?v2 a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugs>.
... | qald-4 |
What are the side effects of Valdecoxib? | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?x
WHERE {
?v1 rdfs:label ?l.
FILTER(REGEX(?l,'Valdecoxib','i')).
?v2 <http://www.w3.org/2002/07/owl#sameAs> ?v1.
?v2 <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?x.
} | qald-4 |
Give me all cosmonauts. | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Astronaut .
{ ?uri onto:nationality res:Russia . }
UNION
{ ?uri onto:nationality res:Soviet_U... | qald-4 |
Who was John F. Kennedy's vice president? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE { res:John_F._Kennedy onto:vicePresident ?uri .
} | qald-4 |
Give me a list of all bandleaders that play trumpet. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:occupation res:Bandleader .
?uri onto:instrument res:Trumpet .
} | qald-4 |
Which countries have more than ten caves? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Country . ?cave rdf:type onto:Cave . { ?cave onto:location ?uri . } UNION { ?cave onto:location ?loc . ?loc onto:country ?uri . } } GROUP BY ?uri HAVING(COUNT... | qald-4 |
Give me all world heritage sites designated within the past two years. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:WorldHeritageSite .
?uri prop:year ?x .
FILTER... | qald-4 |
Does Breaking Bad have more episodes than Game of Thrones? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Breaking_Bad onto:numberOfEpisodes ?x .
res:Game_of_Thrones onto:numberOfEpisodes ?y .
FILTER (?y > ?x)
} | qald-4 |
How many languages are spoken in Turkmenistan? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?x)
WHERE {
res:Turkmenistan onto:language ?x .
} | qald-4 |
Give me all actors starring in movies directed by William Shatner. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?x onto:director res:William_Shatner .
?x onto:starring ?uri .
} | qald-4 |
Are tree frogs a type of amphibian? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Hylidae onto:class res:Amphibian .
} | qald-4 |
Give me all Methodist politicians. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Politician .
?uri onto:religion res:Methodism .
} | qald-4 |
How often did Jane Fonda marry? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
res:Jane_Fonda onto:spouse ?uri .
} | qald-4 |
Which professional surfers were born in Australia? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:occupation res:Surfing .
?uri onto:birthPlace res:Australia .
} | qald-4 |
Give me all islands that belong to Japan. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Island .
?uri onto:country res:Japan .
} | qald-4 |
Give me all Apollo 14 astronauts. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:mission res:Apollo_14 .
} | qald-4 |
Which U.S. states are in the same time zone as Utah? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
res:Utah prop:timezone ?x .
?uri rdf:type yago:StatesOfTheUnitedStates .
... | qald-4 |
Give me all Danish films. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Film .
?uri onto:country res:Denmark .
} | qald-4 |
Which instruments does Cat Stevens play? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Cat_Stevens onto:instrument ?uri .
} | qald-4 |
Which Chess players died in the same place they were born in? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:ChessPlayer .
?uri onto:birthPlace ?x .
?uri onto:deathPlace ?y .
FILTER (?x = ?y) .
} | qald-4 |
Was Marc Chagall a jew? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Marc_Chagall prop:ethnicity 'Jewish'@en .
} | qald-4 |
Give me all communist countries. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Country .
{ ?uri onto:governmentType res:Communism . }
UNION
{ ?uri onto:governmentType res:Communi... | qald-4 |
Which U.S. state has the highest population density? | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop:densityrank ?rank .
}
ORDER BY ASC(?rank)
OFFSET 0 LIMIT 1 | qald-4 |
Which countries adopted the Euro? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Country .
{ ?uri onto:currency res:Euro . }
UNION
... | qald-4 |
Which monarchs were married to a German? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Monarch .
?uri onto:spouse ?spouse .
{ ?spouse onto:birthPlace res:Germany. }
UNION
{ ?spo... | qald-4 |
What is the official language of Suriname? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Suriname onto:officialLanguage ?uri .
} | qald-4 |
Who is the mayor of Tel Aviv? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Tel_Aviv onto:leaderName ?uri .
} | qald-4 |
What is the highest place of the Urals? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Ural_Mountains onto:highestPlace ?uri .
} | qald-4 |
Who is the editor of Forbes? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri
WHERE {
res:Forbes onto:editor ?uri .
} | qald-4 |
How many countries are there in Europe? | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type yago:EuropeanCountries .
} | qald-4 |
Give me all libraries established earlier than 1400. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Library .
?uri prop:established ?year .
FILTER (?year < 1400)
} | qald-4 |
Give me all federal chancellors of Germany. | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri prop:office res:Chancellor_of_Germany .
} | qald-4 |
List all episodes of the first season of the HBO television series The Sopranos. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:series res:The_Sopranos .
?uri onto:seasonNumber 1 .
} | qald-4 |
Which companies work in the aerospace industry as well as in medicine? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Company .
?uri onto:industry res:Aerospace .
?uri onto:industry res:Medicine .
} | qald-4 |
Is Christian Bale starring in Velvet Goldmine? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Velvet_Goldmine onto:starring res:Christian_Bale .
} | qald-4 |
How many Aldi stores are there? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?number
WHERE {
res:Aldi onto:numberOfLocations ?number .
} | qald-4 |
Who was the first president of the United States? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Person .
?uri onto:office '1st President of the United States'@en .
} | qald-4 |
Give me all female given names. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:GivenName .
?uri onto:gender res:Female .
} | qald-4 |
Who wrote the book The Pillars of the Earth? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:The_Pillars_of_the_Earth onto:author ?uri .
} | qald-4 |
In which U.S. state is Mount McKinley located? | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type yago:StatesOfTheUnitedStates .
res:Mount_McKinley onto:locatedInAre... | qald-4 |
Which organizations were founded in 1930? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Organisation .
{ ?uri onto:formationYear ?date . }
UNION
{ ?uri onto:foundingYear ?date. }
FILTER regex(?date,'^1930') .
} | qald-4 |
Give me all taikonauts. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Astronaut .
?uri onto:nationality res:China .
} | qald-4 |
How many languages are spoken in Colombia? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type onto:Language .
res:Colombia onto:language ?uri .
} | qald-4 |
Which poet wrote the most books? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri onto:occupation res:Poet .
?x onto:author ?uri .
?x rdf:type onto:Book .
}
ORDER BY DESC(COUNT(?x))
OFFSET 0 LIMIT 1 | qald-4 |
How many programming languages are there? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type onto:ProgrammingLanguage .
} | qald-4 |
Give me all Dutch parties. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:PoliticalParty .
?uri onto:country res:Netherlands .
} | qald-4 |
When was Carlo Giuliani shot? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?date
WHERE {
res:Death_of_Carlo_Giuliani prop:dateOfDeath ?date .
} | qald-4 |
Does the Isar flow into a lake? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK
WHERE {
?x onto:inflow res:Isar .
?x rdf:type onto:Lake .
} | qald-4 |
Which rivers flow into a German lake? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:River .
?x onto:inflow ?uri .
?x rdf:type onto:Lake .
?x onto:country res:Germany .
} | qald-4 |
How heavy is Jupiter's lightest moon? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?n
WHERE {
?uri prop:satelliteOf res:Jupiter .
?uri onto:mass ?n .
}
ORDER BY ASC(?n)
OFFSET 0 LIMIT 1 | qald-4 |
Who is the youngest Darts player? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:DartsPlayer .
?uri onto:birthDate ?date .
}
ORDER BY DESC(?date)
OFFSET 0 LIMIT 1 | qald-4 |
Give me all animals that are extinct. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Animal .
?uri onto:conservationStatus "EX"@en .
} | qald-4 |
How many pages does War and Peace have? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?n
WHERE {
res:War_and_Peace onto:numberOfPages ?n .
} | qald-4 |
Which ingredients do I need for carrot cake? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Carrot_cake onto:ingredient ?uri .
} | qald-4 |
What is the most frequent death cause? | PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?x
WHERE {
?uri onto:deathCause ?x .
}
ORDER BY DESC(COUNT(DISTINCT ?uri))
OFFSET 0 LIMIT 1 | qald-4 |
Who has Tom Cruise been married to? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:spouse res:Tom_Cruise.
} | qald-4 |
Who is the tallest player of the Atlanta Falcons? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:team res:Atlanta_Falcons .
?uri onto:height ?h .
}
ORDER BY DESC(?h)
OFFSET 0 LIMIT 1 | qald-4 |
What is the bridge with the longest span? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Bridge .
?uri onto:mainspan ?s .
}
ORDER BY DESC(?s)
OFFSET 0 LIMIT 1 | qald-4 |
Give me all films produced by Steven Spielberg with a budget of at least $80 million. | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Film .
?uri onto:director res:Steven_Spielberg .
?uri onto:budget ?b .
FILTER( xsd:double(?b) ... | qald-4 |
Is Cola a beverage? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
ASK
WHERE {
res:Cola rdf:type onto:Beverage .
} | qald-4 |
Which actor was casted in the most movies? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:Actor .
?f rdf:type onto:Film .
?f onto:starring ?uri .
} ... | qald-4 |
Where was Bach born? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Johann_Sebastian_Bach onto:birthPlace ?uri .
} | qald-4 |
Which of Tim Burton's films had the highest budget? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri onto:director res:Tim_Burton .
?uri onto:budget ?b .
}
ORDER BY ?b
OFFSET 0 LIMIT 1 | qald-4 |
Does Abraham Lincoln's death place have a website? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Abraham_Lincoln onto:deathPlace ?p .
?p onto:website ?w .
} | qald-4 |
Who are the four youngest MVP basketball players? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type onto:BasketballPlayer .
?uri onto:birthDate ?date.
?uri prop:hi... | qald-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.