question stringlengths 9 150 | query stringlengths 63 685 | dataset-id stringclasses 12
values |
|---|---|---|
Which U.S. states are in the same time zone as Utah? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbp: <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 dbp:timezone ?x .
?uri rdf:type yago:StatesOfTheUnitedStates .
... | qald-4 |
Give me all Danish films. | PREFIX dbo: <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 dbo:Film .
?uri dbo:country res:Denmark .
} | qald-4 |
Which instruments does Cat Stevens play? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Cat_Stevens dbo:instrument ?uri .
} | qald-4 |
Which Chess players died in the same place they were born in? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:ChessPlayer .
?uri dbo:birthPlace ?x .
?uri dbo:deathPlace ?y .
FILTER (?x = ?y) .
} | qald-4 |
Was Marc Chagall a jew? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Marc_Chagall dbp:ethnicity 'Jewish'@en .
} | qald-4 |
Give me all communist countries. | PREFIX dbo: <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 dbo:Country .
{ ?uri dbo:governmentType res:Communism . }
UNION
{ ?uri dbo:governmentType res:Communist_s... | qald-4 |
Which U.S. state has the highest population density? | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX dbp: <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 dbp:densityrank ?rank .
}
ORDER BY ASC(?rank)
OFFSET 0 LIMIT 1 | qald-4 |
Which countries adopted the Euro? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <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 dbo:Country .
{ ?uri dbo:currency res:Euro . }
UNION
{... | qald-4 |
Which monarchs were married to a German? | PREFIX dbo: <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 dbo:Monarch .
?uri dbo:spouse ?spouse .
{ ?spouse dbo:birthPlace res:Germany. }
UNION
{ ?spouse ... | qald-4 |
What is the official language of Suriname? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Suriname dbo:officialLanguage ?uri .
} | qald-4 |
Who is the mayor of Tel Aviv? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Tel_Aviv dbo:leaderName ?uri .
} | qald-4 |
What is the highest place of the Urals? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Ural_Mountains dbo:highestPlace ?uri .
} | qald-4 |
Who is the editor of Forbes? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri
WHERE {
res:Forbes dbo: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 dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:Library .
?uri dbp:established ?year .
FILTER (?year < 1400)
} | qald-4 |
Give me all federal chancellors of Germany. | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbp:office res:Chancellor_of_Germany .
} | qald-4 |
List all episodes of the first season of the HBO television series The Sopranos. | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbo:series res:The_Sopranos .
?uri dbo:seasonNumber 1 .
} | qald-4 |
Which companies work in the aerospace industry as well as in medicine? | PREFIX dbo: <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 dbo:Company .
?uri dbo:industry res:Aerospace .
?uri dbo:industry res:Medicine .
} | qald-4 |
Is Christian Bale starring in Velvet Goldmine? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Velvet_Goldmine dbo:starring res:Christian_Bale .
} | qald-4 |
How many Aldi stores are there? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?number
WHERE {
res:Aldi dbo:numberOfLocations ?number .
} | qald-4 |
Who was the first president of the United States? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:Person .
?uri dbo:office '1st President of the United States'@en .
} | qald-4 |
Give me all female given names. | PREFIX dbo: <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 dbo:GivenName .
?uri dbo:gender res:Female .
} | qald-4 |
Who wrote the book The Pillars of the Earth? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:The_Pillars_of_the_Earth dbo:author ?uri .
} | qald-4 |
In which U.S. state is Mount McKinley located? | PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX dbo: <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 dbo:locatedInArea ... | qald-4 |
Which organizations were founded in 1930? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:Organisation .
{ ?uri dbo:formationYear ?date . }
UNION
{ ?uri dbo:foundingYear ?date. }
FILTER regex(?date,'^1930') .
} | qald-4 |
Which genes are associated with Endothelin receptor type B? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/associatedGene> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/genes/EDNRB>} | qald-4 |
Which genes are associated with subtypes of rickets? | SELECT DISTINCT ?z WHERE {?x <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/diseaseSubtypeOf> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseases/1004>. ?x <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/associatedGene> ?z. } | qald-4 |
Which drug has the highest number of side-effects? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?y. } GROUP BY ?x ORDER BY DESC(COUNT(?y)) LIMIT 1 | qald-4 |
List drugs that lead to strokes and arthrosis. | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?k. ?k <http://www.w3.org/2002/07/owl#sameAs> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseases/1098>. ?x <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> <http://www4.wiwiss.fu-berlin.de/sider/res... | qald-4 |
Which drugs have a water solubility of 2.78e-01 mg/mL? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/predictedWaterSolubility> "2.78e-01 mg/mL".} | qald-4 |
Give me the side-effects drugs with a solubility of 3.24e-02 mg/mL. | SELECT DISTINCT ?k WHERE {?x <http://www.w3.org/2002/07/owl#sameAs> ?y. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/predictedWaterSolubility> "3.24e-02 mg/mL". ?y <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?k} | qald-4 |
Which diseases are associated with SAR1B? | SELECT DISTINCT ?c WHERE {?c a <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/diseases>. ?c <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/associatedGene> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/genes/SAR1B>. } | qald-4 |
Which experimental drugs interact with food? | SELECT DISTINCT ?x WHERE {?x a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugs>. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugType> <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugtype/experimental>. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/foodIntera... | qald-4 |
Which approved drugs interact with fibers? | SELECT DISTINCT ?x WHERE {?x a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugs>. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugType> <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugtype/approved>. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/foodInteractio... | qald-4 |
Which drugs interact with food and have HIV infections as side-effects? | SELECT DISTINCT ?x WHERE {?x a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugs>. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/foodInteraction> ?k. ?x <http://www.w3.org/2002/07/owl#sameAs> ?z. ?z <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> <http://www4.wiwiss.fu... | qald-4 |
Give me diseases whose possible drugs target the elongation factor 2. | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/possibleDrug> ?y. ?y <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/target> <http://www4.wiwiss.fu-berlin.de/drugbank/resource/targets/3341>} | qald-4 |
Which drugs achieve a protein binding of 100%? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/proteinBinding> "100%" } | qald-4 |
List illnesses that are treated by drugs whose mechanism of action involves norepinephrine and serotonin. | SELECT DISTINCT ?a WHERE {?a <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/possibleDrug> ?x. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/mechanismOfAction> ?y. FILTER(contains(str(?y), "norepinephrine")) . FILTER(contains(str(?y), "serotonin")) } | qald-4 |
Which is the least common chromosome location? | SELECT DISTINCT ?b WHERE {?a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/chromosomeLocation> ?b } GROUP BY (?b) ORDER BY ASC(COUNT(?a)) LIMIT 1 | qald-4 |
Are there drugs that target the Protein kinase C beta type? | ASK WHERE {?a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/target> <http://www4.wiwiss.fu-berlin.de/drugbank/resource/targets/997> } | qald-4 |
Give me all diseases of the connective tissue class. | SELECT DISTINCT ?a WHERE {?a <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/class> <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseaseClass/Connective_tissue>. } | qald-4 |
Which targets are involved in blood clotting? | SELECT DISTINCT ?a WHERE {?a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/generalFunction> ?l. FILTER(contains(str(?l), "blood clotting"))} | qald-4 |
List the number of distinct side-effects of drugs which target genes whose general function involves cell division. | SELECT COUNT(DISTINCT ?y) WHERE {?x <http://www.w3.org/2002/07/owl#sameAs> ?z. ?z <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?y. ?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/target> ?a. ?a <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/generalFunction> ?l. FILTER(co... | qald-4 |
Which drugs have no side-effects? | SELECT DISTINCT ?z WHERE {{?z a <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/drugs>} MINUS {?z <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?y.} } | qald-4 |
List diseases whose possible drugs have no side effects. | SELECT DISTINCT ?k WHERE {{?k <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/possibleDrug> ?l. ?l <http://www.w3.org/2002/07/owl#sameAs> ?z. ?z a <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/drugs>} MINUS {?z <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/sideEffect> ?y.} } | qald-4 |
Give me the drug categories of Desoxyn. | SELECT DISTINCT ?y WHERE {?k <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/brandName> "Desoxyn". ?k <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/drugCategory> ?y } | qald-4 |
Give me drugs in the gaseous state. | SELECT DISTINCT ?k WHERE {?k <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/state> "Gas" } | qald-4 |
Which disease has the largest size? | SELECT DISTINCT ?k WHERE {?k <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/size> ?l} ORDER BY DESC(?l) LIMIT 1 | qald-4 |
Which drugs have bipolar disorder as indication? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/indication> ?k. FILTER (contains (str(?k), "bipolar disorder")) } | qald-4 |
Which diseases have a class degree of 11? | SELECT DISTINCT ?x WHERE {?x <http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/classDegree> "11"^^<http://www.w3.org/2001/XMLSchema#int>} | qald-4 |
For which movie did the daughter of Francis Ford Coppola receive an Oscar? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string
WHERE {
res:Francis_Ford_Coppola dbo:child ?x .
?x text:"receive Oscar for" ?string .
} | qald-4 |
Which city does the first person to climb all 14 eight-thousanders come from? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?x text:"is" text:"first person to climb all fourteen eight-thousanders" .
?x dbo:birthPlace ?uri .
?uri rdf:type dbo:Settlement .
} | qald-4 |
At which college did the only American actor that received the César Award study? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string
WHERE {
?x text:"is" text:"the only American actor that received the César Award" .
?x dbo:almaMater ?uri .
} | qald-4 |
Did Napoleon's first wife die in France? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
?x text:"first wife of" text:"Napoleon" .
?x dbo:deathPlace res:France .
} | qald-4 |
Who is the current James Bond? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string
WHERE {
res:James_Bond dbo:lastAppearance ?x .
?x text:"feature as James Bond" ?string .
} | qald-4 |
What eating disorder is characterized by eating substances such as clay and sand? | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX yago: <http://dbpedia.org/class/yago/>
SELECT ?uri WHERE
{
?uri rdf:type yago:EatingDisorders .
?uri text:"characterized by" "appetite for clay and sand" .
} | qald-4 |
What is the birth place of Hollywood's highest-paid actress? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?x text:"is" text:"Hollywood's highest-paid actress" .
?x dbo:birthPlace ?uri .
} | qald-4 |
In which city does the leader of the Xposé girls live? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?x text:"is" text:"leader of the Xposé girls" .
?x dbo:residence ?uri . | qald-4 |
Who plays Phileas Fogg in the adaptation of Around the World in 80 Days directed by Buzz Kulik? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri
WHERE {
?x rdfs:label ?l .
FILTER regex(?l,"Around the World in 80 Days","i")
?x dbo:director res:Buzz_Kulik .
?x dbo:starrin... | qald-4 |
Who played the drums in the band that wrote Complete Control? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Complete_Control dbo:musicalArtist ?x .
?x dbo:bandMember ?uri .
?uri text:"plays" text:"drums" .
} | qald-4 |
Give me all taikonauts. | PREFIX dbo: <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 dbo:Astronaut .
?uri dbo:nationality res:China .
} | qald-4 |
How many languages are spoken in Colombia? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type dbo:Language .
res:Colombia dbo:language ?uri .
} | qald-4 |
Which poet wrote the most books? | PREFIX dbo: <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 dbo:occupation res:Poet .
?x dbo:author ?uri .
?x rdf:type dbo:Book .
}
ORDER BY DESC(COUNT(?x))
OFFSET 0 LIMIT 1 | qald-4 |
How many programming languages are there? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type dbo:ProgrammingLanguage .
} | qald-4 |
Give me all Dutch parties. | PREFIX dbo: <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 dbo:PoliticalParty .
?uri dbo:country res:Netherlands .
} | qald-4 |
When was Carlo Giuliani shot? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?date
WHERE {
res:Death_of_Carlo_Giuliani dbp:dateOfDeath ?date .
} | qald-4 |
Does the Isar flow into a lake? | PREFIX dbo: <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 dbo:inflow res:Isar .
?x rdf:type dbo:Lake .
} | qald-4 |
Which rivers flow into a German lake? | PREFIX dbo: <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 dbo:River .
?x dbo:inflow ?uri .
?x rdf:type dbo:Lake .
?x dbo:country res:Germany .
} | qald-4 |
How heavy is Jupiter's lightest moon? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?n
WHERE {
?uri dbp:satelliteOf res:Jupiter .
?uri dbo:mass ?n .
}
ORDER BY ASC(?n)
OFFSET 0 LIMIT 1 | qald-4 |
Who is the youngest Darts player? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:DartsPlayer .
?uri dbo:birthDate ?date .
}
ORDER BY DESC(?date)
OFFSET 0 LIMIT 1 | qald-4 |
Give me all animals that are extinct. | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?uri
WHERE {
?uri rdf:type dbo:Animal .
?uri dbo:conservationStatus "EX"@en .
} | qald-4 |
How many pages does War and Peace have? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?n
WHERE {
res:War_and_Peace dbo:numberOfPages ?n .
} | qald-4 |
Which ingredients do I need for carrot cake? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Carrot_cake dbo:ingredient ?uri .
} | qald-4 |
What is the most frequent death cause? | PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?x
WHERE {
?uri dbo:deathCause ?x .
}
ORDER BY DESC(COUNT(DISTINCT ?uri))
OFFSET 0 LIMIT 1 | qald-4 |
Who has Tom Cruise been married to? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbo:spouse res:Tom_Cruise.
} | qald-4 |
Who is the tallest player of the Atlanta Falcons? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbo:team res:Atlanta_Falcons .
?uri dbo:height ?h .
}
ORDER BY DESC(?h)
OFFSET 0 LIMIT 1 | qald-4 |
What is the bridge with the longest span? | PREFIX dbo: <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 dbo:Bridge .
?uri dbo: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 dbo: <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 dbo:Film .
?uri dbo:director res:Steven_Spielberg .
?uri dbo:budget ?b .
FILTER( xsd:double(?b) >= 8... | qald-4 |
Is Cola a beverage? | PREFIX dbo: <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 dbo:Beverage .
} | qald-4 |
Which actor was casted in the most movies? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <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 dbo:Actor .
?f rdf:type dbo:Film .
?f dbo:starring ?uri .
}
ORDE... | qald-4 |
Where was Bach born? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Johann_Sebastian_Bach dbo:birthPlace ?uri .
} | qald-4 |
Which of Tim Burton's films had the highest budget? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbo:director res:Tim_Burton .
?uri dbo:budget ?b .
}
ORDER BY ?b
OFFSET 0 LIMIT 1 | qald-4 |
Does Abraham Lincoln's death place have a website? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Abraham_Lincoln dbo:deathPlace ?p .
?p dbo:website ?w .
} | qald-4 |
Who are the four youngest MVP basketball players? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <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 dbo:BasketballPlayer .
?uri dbo:birthDate ?date.
?uri dbp:highlig... | qald-4 |
What are the top-10 action role-playing video games according to IGN? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Action_role-playing_video_games> .
?uri dbp:ign ?score .
}
ORDER B... | qald-4 |
Give me all actors who were born in Berlin. | PREFIX dbo: <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 dbo:Actor .
?uri dbo:birthPlace res:Berlin .
} | qald-4 |
Give me all actors who were born in Paris after 1950. | PREFIX dbo: <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 dbo:Actor .
?uri dbo:birthPlace res:Paris .
?uri dbo:birthDate ?date .
FILTER ( ?date >= xsd:dateTim... | qald-4 |
What was Brazil's lowest rank in the FIFA World Ranking? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?n
WHERE {
res:Brazil_national_football_team dbp:fifaMin ?n .
} | qald-4 |
Give me all Australian metalcore bands. | PREFIX dbo: <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 dbo:Band .
?uri dbo:genre res:Metalcore .
{ ?uri dbo:hometown res:Australia . }
UNION
{ ?uri dbo:h... | qald-4 |
When is Halloween? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?date
WHERE {
res:Halloween dbp:date ?date .
} | qald-4 |
How many inhabitants does the largest city in Canada have? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?num
WHERE {
res:Canada dbo:largestCity ?city .
?city dbo:populationTotal ?num .
} | qald-4 |
In which countries can you pay using the West African CFA franc? | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
?uri dbo:currency res:West_African_CFA_franc .
} | qald-4 |
Give me the capitals of all countries that the Himalayas run through. | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Himalayas dbp:country ?country .
?country dbo:capital ?uri .
} | qald-4 |
Who was the first to climb Mount Everest? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri
WHERE {
res:Mount_Everest dbo:firstAscentPerson ?uri .
} | qald-4 |
To which artistic movement did the painter of The Three Dancers belong? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri
WHERE {
res:The_Three_Dancers dbo:author ?person .
?person dbo:movement ?uri .
} | qald-4 |
Which pope succeeded John Paul II? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbp: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri
WHERE {
res:Pope_John_Paul_II dbp:successor ?uri .
} | qald-4 |
What was the last movie with Alec Guinness? | PREFIX dbo: <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 dbo:Film .
?uri dbo:starring res:Alec_Guinness .
?uri dbo:releaseDate ?date .
}
ORDER BY DESC(?date)
LIMI... | qald-4 |
How many James Bond movies are there? | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX yago: <http://dbpedia.org/class/yago/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri rdf:type yago:JamesBondFilms .
} | qald-4 |
Which actor played Chewbacca? | PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Chewbacca dbp:portrayer ?uri .
} | qald-4 |
Give me the grandchildren of Bruce Lee. | PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Bruce_Lee dbo:child ?child .
?child dbo:child ?uri .
} | qald-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.