question stringlengths 9 150 | query stringlengths 109 692 | dataset-id stringclasses 12
values |
|---|---|---|
Which countries have places with more than two caves? | PREFIX onto: <http://dbpedia.org/ontology/>
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 {
?cave rdf:type onto:Cave .
?cave onto:location ?uri .
?uri rdf:type onto:Country .
OPTI... | qald-2 |
Give me the capitals of all countries in Africa. | PREFIX onto: <http://dbpedia.org/ontology/>
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 {
?states rdf:type yago:AfricanCountries .
?states onto:capital ?uri .
... | qald-2 |
How many employees does IBM have? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?number
WHERE {
res:IBM onto:numberOfEmployees ?number .
} | qald-2 |
Which states border Illinois? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string
WHERE {
res:Illinois prop:borderingstates ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') . }
} | qald-2 |
Which European countries have a constitutional monarchy? | 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 yago:EuropeanCountries ... | qald-2 |
Which awards did WikiLeaks win? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string
WHERE {
res:WikiLeaks prop:awards ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which state of the USA 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#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string
WHERE {
?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop:densityrank ?rank... | qald-2 |
When did Finland join the EU? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?date
WHERE {
res:Finland prop:accessioneudate ?date .
} | qald-2 |
What is the highest mountain in Australia? | 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:Mountain .
?uri onto:locatedInArea res:Australia .
... | qald-2 |
Is Frank Herbert still alive? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Frank_Herbert onto:deathDate ?date .
FILTER (!BOUND(?date))
} | qald-2 |
Give me all companies in the advertising industry. | 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#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string
WHERE {
?uri rdf:type onto:Company .
... | qald-2 |
Give me all presidents of the United States. | PREFIX yago: <http://dbpedia.org/class/yago/>
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
WH... | qald-2 |
Who was the wife of U.S. president Lincoln? | 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:Abraham_Lincoln onto:spouse ?uri.
OPTIONAL { ?uri rdfs:label ?string . FILTER (lang(?string) = 'en') }
} | qald-2 |
What is the official website of Tom Cruise? | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string
WHERE {
res:Tom_Cruise foaf:homepage ?string .
} | qald-2 |
Give me all people with first name Jimmy. | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
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 foaf:Person.
?uri foaf:givenName 'Jimmy'@en .
OPTIONAL { ?uri rdfs:label ?string . FILTER... | qald-2 |
Who created Wikipedia? | 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:Wikipedia onto:author ?uri .
OPTIONAL { ?uri rdfs:label ?string . FILTER (lang(?string) = 'en') }
} | qald-2 |
Give me all video games published by Mean Hamster Software. | 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:VideoGame .
... | qald-2 |
Which languages are spoken in Estonia? | 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:Estonia onto:language ?uri . }
UNION
{ ?uri onto:spokenIn res:Estonia . }
OPTIONAL { ?uri rdfs:label ?string... | qald-2 |
How many films did Hal Roach produce? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
?uri onto:producer res:Hal_Roach .
} | qald-2 |
Give me all books written by Danielle Steel. | 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:author res:Danielle_Steel .
OPTIONAL ... | qald-2 |
Which airports are located in California, USA? | 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:Airport .
?uri onto:location res:California .
O... | qald-2 |
Give me all Canadian Grunge record labels. | 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:RecordLabel .
?uri onto:genre res:Grunge .
?uri ... | qald-2 |
Give me all movies with Tom Cruise. | 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:Film.
?uri onto:starring res:Tom_Cruise .
OPTIONAL {?uri rdfs:... | qald-2 |
Give me all female German chancellors. | PREFIX yago: <http://dbpedia.org/class/yago/>
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 yago:FemaleHeadsOfGover... | qald-2 |
Was Natalie Portman born in the United States? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK
WHERE {
res:Natalie_Portman onto:birthPlace ?city .
?city onto:country res:United_States .
} | qald-2 |
Which German cities have more than 250000 inhabitants? | 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:City . } UNION { ?uri rdf:type onto:Town . }
?uri onto... | qald-2 |
Who was the successor of John F. Kennedy? | 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:John_F._Kennedy onto:successor ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who is the mayor of Berlin? | 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:Berlin onto:leader ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
How many students does the Free University in Amsterdam have? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:Vrije_Universiteit onto:numberOfStudents ?num .
} | qald-2 |
What is the second highest mountain on Earth? | PREFIX onto: <http://dbpedia.org/ontology/>
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:Mountain .
?uri onto:elevation ?elevation .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?stri... | qald-2 |
Give me all professional skateboarders from Sweden. | 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
{
?uri onto:occupation res:Skateboarding .
{ ?uri onto:birthPlace res:Sweden . }
U... | qald-2 |
When was Alberta admitted as province? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?date WHERE
{
res:Alberta prop:admittancedate ?date .
} | qald-2 |
To which countries does the Himalayan mountain system extend? | 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:Himalayas onto:country ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Give me a list of all trumpet players that were bandleaders. | 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:occupation res:Bandleader .
?uri onto:instrument res:Trumpet .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) =... | qald-2 |
What is the total amount of men and women serving in the FDNY? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:New_York_City_Fire_Department prop:strength ?num .
} | qald-2 |
Who is the Formula 1 race driver with the most races? | 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:FormulaOneRacer .
?uri onto:races ?x .
OPTIONAL {... | qald-2 |
Give me all world heritage sites designated within the past five 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE {
?uri rdf:type onto:WorldHeritageSite .
?uri prop:year ?x .
FILTER ( ?x >= "2007"^... | qald-2 |
Who is the youngest player in the Premier League? | 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:team ?x .
?x onto:league res:Premier_League .
?uri onto:birthDate ?y .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?s... | qald-2 |
Give me all members of Prodigy. | 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:The_Prodigy onto:bandMember ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
What is the longest river? | 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri rdf:type onto:River .
?uri prop:length ?x .
OPTIONAL {... | qald-2 |
Does the new Battlestar Galactica series have more episodes than the old one? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK WHERE {
<http://dbpedia.org/resource/Battlestar_Galactica_%281978_TV_series%29> onto:numberOfEpisodes ?x .
<http://dbpedia.org/resource/Battlestar_Galactica_%282004_TV_series%29> onto:numberOfEpisodes ?y .
FILTER (?y > ?x)
} | qald-2 |
Give me all cars that are produced in Germany. | PREFIX onto: <http://dbpedia.org/ontology/>
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 DISTINCT ?uri ?string WHE... | qald-2 |
Give me all people that were born in Vienna and died in Berlin. | 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:birthPlace res:Vienna .
?uri onto:deathPlace res:Berlin .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?... | qald-2 |
How tall is Michael Jordan? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:Michael_Jordan onto:height ?num .
} | qald-2 |
What is the capital of Canada? | 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:Canada onto:capital ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who is the governor of Texas? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?uri ?string WHERE
{
res:Texas prop:governor ?string .
?uri foaf:name ?string.
} | qald-2 |
Do Harry and William, Princes of Wales, 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-2 |
Who was the father of Queen Elizabeth II? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE {
res:Elizabeth_II prop:father ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which U.S. state has been admitted latest? | 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#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string ?x WHERE
{
?uri rdf:type yago:StatesOfTheUni... | qald-2 |
How many official languages are spoken on the Seychelles? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?x) WHERE
{
res:Seychelles onto:officialLanguage ?x .
} | qald-2 |
Sean Parnell is the governor of which U.S. state? | PREFIX yago: <http://dbpedia.org/class/yago/>
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 yago:StatesOfThe... | qald-2 |
Give me all movies directed by Francis Ford Coppola. | 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:Film .
?uri onto:director res:Francis_Ford_Coppol... | qald-2 |
Give me all actors starring in movies directed by and starring William Shatner. | 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
{
?x onto:director res:William_Shatner .
?x onto:starring res:William_Shatner .
... | qald-2 |
What is the birth name of Angela Merkel? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string WHERE
{
res:Angela_Merkel prop:birthName ?string .
} | qald-2 |
Give me all current Methodist national leaders. | 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 DISTINCT ?uri ?string WHERE
{
?uri rdf:type yago:CurrentNationalLea... | qald-2 |
How often did Nicole Kidman marry? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?x) WHERE
{
res:Nicole_Kidman onto:spouse ?x .
} | qald-2 |
Give me all Australian nonprofit organizations. | 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:type res:Nonprofit_organization .
{ ?uri onto:locationCountry res:Australia . }
UNION
{ ?uri ... | qald-2 |
In which military conflicts did Lawrence of Arabia participate? | 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:T._E._Lawrence onto:battle ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who developed Skype? | 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:Skype onto:developer ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
How many inhabitants does Maribor have? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:Maribor onto:populationTotal ?num .
} | qald-2 |
Give me all companies in Munich. | 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:Company .
{ ?uri onto:location res:Munich . }
... | qald-2 |
List all boardgames by GMT. | 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
{
?uri onto:publisher res:GMT_Games .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who founded Intel? | 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:Intel onto:foundedBy ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who is the husband of Amanda Palmer? | 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:Amanda_Palmer prop:spouse ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Give me all breeds of the German Shepherd dog. | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?uri WHERE
{
?uri prop:breed res:German_Shepherd_Dog .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which cities does the Weser flow through? | 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:Weser onto:city ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which countries are connected by the Rhine? | 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:Rhine onto:country ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which professional surfers were born on the Philippines? | 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:occupation res:Surfing .
?uri onto:birthPlace res:Philippines .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') ... | qald-2 |
In which UK city are the headquarters of the MI6? | 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:Secret_Intelligence_Service onto:headquarter ?uri .
?uri onto:country res:United_Kingdom .
OPTIONAL { ?uri rdfs:label ?string. F... | qald-2 |
Which other weapons did the designer of the Uzi develop? | 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:Weapon .
?uri... | qald-2 |
Was the Cuban Missile Crisis earlier than the Bay of Pigs Invasion? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK WHERE
{
res:Cuban_Missile_Crisis onto:date ?x .
res:Bay_of_Pigs_Invasion onto:date ?y .
FILTER (?x < ?y)
} | qald-2 |
Give me all Frisian islands that belong to the Netherlands. | 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 yago:FrisianIslands .
... | qald-2 |
What is the ruling party in Lisbon? | 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:Lisbon prop:leaderParty ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
What are the nicknames of San Francisco? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string WHERE
{
res:San_Francisco prop:nickname ?string .
} | qald-2 |
Which Greek goddesses dwelt on Mount Olympus? | 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 DISTINCT ?uri ?string WHERE
{
?uri rdf:type yago:GreekGoddes... | qald-2 |
When were the Hells Angels founded? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?date WHERE
{
res:Hells_Angels prop:founded ?date .
} | qald-2 |
Give me the Apollo 14 astronauts. | 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:mission res:Apollo_14 .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
What is the time zone of Salt Lake City? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Salt_Lake_City prop:timezone ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which U.S. states are in the same timezone 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#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
res:Utah prop:timezone ?x .
... | qald-2 |
Give me a list of all lakes in Denmark. | 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:Lake .
?uri on... | qald-2 |
How many space missions have there been? | PREFIX res: <http://dbpedia.org/resource/>
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:SpaceMission .
} | qald-2 |
Did Socrates influence Aristotle? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
ASK WHERE
{
res:Aristotle onto:influencedBy res:Socrates .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Give me all Argentine films. | PREFIX onto: <http://dbpedia.org/ontology/>
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 DISTINCT ?uri ?string WHE... | qald-2 |
Give me all launch pads operated by NASA. | 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:LaunchPad .
?uri onto:operator res:NASA .
OPTION... | qald-2 |
Which instruments did John Lennon play? | 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:John_Lennon onto:instrument ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Which ships were called after Benjamin Franklin? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?uri ?string WHERE
{
?uri prop:shipNamesake res:Benjamin_Franklin .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who are the parents of the wife of Juan Carlos I? | 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:Juan_Carlos_I_of_Spain onto:spouse ?x .
?x onto:parent ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) =... | qald-2 |
How many employees does Google have? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT ?num WHERE
{
res:Google onto:numberOfEmployees ?num .
} | qald-2 |
Did Tesla win a nobel prize in physics? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK WHERE
{
res:Nikola_Tesla onto:award res:Nobel_Prize_in_Physics .
} | qald-2 |
Is Michelle Obama the wife of Barack Obama? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
ASK WHERE
{
res:Barack_Obama onto:spouse res:Michelle_Obama .
} | qald-2 |
When was the Statue of Liberty built? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?num WHERE
{
res:Statue_of_Liberty prop:built ?num .
} | qald-2 |
In which U.S. state is Area 51 located? | 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:Area_51 onto:location ?uri .
?uri onto:country res:United_States .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?stri... | qald-2 |
How many children did Benjamin Franklin have? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT COUNT(DISTINCT ?uri) {
res:Benjamin_Franklin onto:child ?uri .
} | qald-2 |
When did Michael Jackson die? | PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?date WHERE {
res:Michael_Jackson onto:deathDate ?date .
} | qald-2 |
Which daughters of British earls died in the same place they were born in? | PREFIX onto: <http://dbpedia.org/ontology/>
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:DaughtersOfBritishEarls .
?uri onto:birthPlace ?x .
?uri on... | qald-2 |
List the children of Margaret Thatcher. | 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:Margaret_Thatcher onto:child ?uri .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Who was called Scarface? | 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 {
?uri prop:nickname res:Scarface .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
} | qald-2 |
Was Margaret Thatcher a chemist? | PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
ASK WHERE {
res:Margaret_Thatcher onto:profession res:Chemist .
} | qald-2 |
Was Dutch Schultz a jew? | PREFIX prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
ASK WHERE {
res:Dutch_Schultz prop:ethnicity 'Jewish'@en .
} | qald-2 |
Give me all books by William Goldman with more than 300 pages. | 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:author res:William_Goldman .
?u... | qald-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.