Datasets:
aksw
/

Modalities:
Text
Formats:
csv
Libraries:
Datasets
pandas
Dataset Viewer
Auto-converted to Parquet
question
stringlengths
9
150
query
stringlengths
63
685
dataset-id
stringclasses
12 values
Give me all school types.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:SchoolTypes . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which presidents were born in 1945?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { { ?uri rdf:type onto:President . ?uri onto:birthDate ?date . FILTER regex(?date,'^1945') . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } } UNION { ?uri rdf:type yago:President. ?uri onto:birthDate ?date . FILTER regex(?date, '^1945') . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } } }
qald-1
Who are the presidents of the United States?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX yago: <http://dbpedia.org/class/yago/> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { { ?uri rdf:type yago:PresidentsOfTheUnitedStates. } UNION { ?uri rdf:type onto:President. ?uri prop:title res:President_of_the_United_States. } OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Who was the wife of President Lincoln?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?person rdf:type onto:President . ?person foaf:surname 'Lincoln'@en . ?person onto:spouse ?uri. OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who developed the video game World of Warcraft?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?subject rdf:type onto:Software . ?subject rdfs:label 'World of Warcraft'@en . ?subject onto:developer ?uri . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
What is the official website of Tom Hanks?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?uri WHERE { ?subject rdfs:label 'Tom Hanks'@en . ?subject foaf:homepage ?uri }
qald-1
List all episodes of the first season of the HBO television series The Sopranos!
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { ?uri onto:series res:The_Sopranos . ?uri onto:seasonNumber 1 . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who produced the most films?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?film rdf:type onto:Film . ?film onto:producer ?uri . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } } ORDER BY DESC(COUNT(?film)) LIMIT 1
qald-1
Which people have as their given name Jimmy?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type foaf:Person. ?uri foaf:givenName 'Jimmy'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Is there a video game called Battle Chess?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> ASK WHERE { ?software rdf:type onto:Software . ?software rdfs:label ?name . FILTER (regex(?name, 'Battle Chess')) }
qald-1
Which mountains are higher than the Nanga Parbat?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX prop: <http://dbpedia.org/property/> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Mountain . ?acon rdfs:label 'Nanga Parbat'@en . ?acon prop:elevationM ?elevation . ?uri prop:elevationM ?allelevation . FILTER (?allelevation > ?elevation) . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who created English Wikipedia?
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 ?uri ?string WHERE { ?website rdf:type onto:Website . ?website onto:author ?uri . ?website rdfs:label 'English Wikipedia'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Give me all actors starring in Batman Begins.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?film rdf:type onto:Film . ?film onto:starring ?uri . ?film foaf:name 'Batman Begins'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which software has been developed by organizations founded in California?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { ?company rdf:type onto:Organisation . ?company onto:foundationPlace res:California . ?uri onto:developer ?company . ?uri rdf:type onto:Software . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which companies work in the aerospace industry as well as on nuclear reactor technology?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> PREFIX prop: <http://dbpedia.org/property/> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Company . ?uri prop:industry res:Aerospace . ?uri prop:industry res:Nuclear_reactor_technology . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Is Christian Bale starring in Batman Begins?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> ASK WHERE { ?film rdf:type onto:Film . ?film onto:starring ?actors . ?actors rdfs:label 'Christian Bale'@en . ?film foaf:name 'Batman Begins'@en }
qald-1
Give me the websites of companies with more than 500000 employees.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX prop: <http://dbpedia.org/property/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri WHERE { ?subject rdf:type onto:Company . ?subject prop:numEmployees ?employees . FILTER( xsd:integer(?employees) >= 500000 ) . ?subject foaf:homepage ?uri . }
qald-1
Which actors were born in Germany?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Actor . { ?uri onto:birthPlace res:Germany . } UNION { ?uri onto:birthPlace ?city . ?city rdf:type yago:StatesOfGermany . } OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which country does the Airedale Terrier come from?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX prop: <http://dbpedia.org/property/> SELECT ?string WHERE { ?dog rdfs:label 'Airedale Terrier'@en . ?dog prop:country ?string }
qald-1
Which birds are there in the United States?
PREFIX yago: <http://dbpedia.org/class/yago/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:BirdsOfTheUnitedStates. OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Give me all European Capitals!
PREFIX yago: <http://dbpedia.org/class/yago/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?uri ?string WHERE { ?uri rdf:type yago:CapitalsInEurope. OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which cities have more than 2 million inhabitants?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX prop: <http://dbpedia.org/property/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:City. { ?uri prop:population ?population. } UNION { ?uri prop:populationUrban ?population. } FILTER (xsd:integer(?population) > 2000000) . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who was Tom Hanks married to?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { ?person rdfs:label 'Tom Hanks'@en . ?person prop:spouse ?string . OPTIONAL { ?uri rdfs:label ?string . } }
qald-1
When was DBpedia released?
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 ?date WHERE { ?website rdf:type onto:Software . ?website onto:releaseDate ?date . ?website rdfs:label 'DBpedia'@en }
qald-1
Which people were born in Heraklion?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Person . ?uri onto:birthPlace ?city . ?city rdfs:label 'Heraklion'@en OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which caves have more than 3 entrances?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Cave . ?uri onto:numberOfEntrances ?entrance . FILTER (?entrance > 3) . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Give me all films produced by Hal Roach.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Film . ?uri onto:producer ?producer . ?producer rdfs:label 'Hal Roach'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which software has been published by Mean Hamster Software?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX prop: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Software . { ?uri prop:publisher 'Mean Hamster Software'@en . } UNION { ?uri onto:publisher res:Mean_Hamster_Software . } OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
What languages are spoken in Estonia?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?country rdf:type onto:Country. { ?country onto:language ?uri . } UNION { ?uri onto:spokenIn ?country . } FILTER (regex(?country, 'Estonia')). OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who owns Aldi?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?orga rdf:type onto:Organisation . ?orga onto:keyPerson ?uri . ?orga rdfs:label 'Aldi'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } FILTER (lang(?string) = 'en') }
qald-1
Which capitals in Europe were host cities of the summer olympic games?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT ?uri ?string WHERE { ?uri rdf:type yago:CapitalsInEurope . ?uri rdf:type yago:HostCitiesOfTheSummerOlympicGames . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who has been the 5th president of the United States of America?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?uri ?string WHERE { ?uri rdf:type onto:President . ?uri onto:orderInOffice '5th President of the United States'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who is called Dana?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { { ?uri rdf:type foaf:Person. ?uri foaf:givenName 'Dana'@en. } UNION { ?uri prop:alias ?alias . FILTER regex(?alias,'Dana') . } OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which music albums contain the song Last Christmas?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?single rdf:type onto:Single . ?single onto:album ?uri . ?single foaf:name 'Last Christmas'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which books were written by Danielle Steel?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Book . ?uri onto:author ?author . ?author foaf:name 'Danielle Steel'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which companies are located in California, USA?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Organisation . ?uri onto:location res:California . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which genre does DBpedia belong to?
PREFIX prop: <http://dbpedia.org/property/> 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 ?uri ?string WHERE { ?dbpedia rdf:type onto:Software . ?dbpedia onto:genre ?uri . ?dbpedia rdfs:label 'DBpedia'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which country has the most official languages?
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 ?uri ?string WHERE { ?uri rdf:type onto:Country . ?uri onto:language ?language . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en')} } ORDER BY DESC(count(?language)) LIMIT 1
qald-1
In which programming language is GIMP written?
PREFIX prop: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?string WHERE { res:GIMP prop:programmingLanguage ?string . }
qald-1
Who produced films starring Natalie Portman?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?film rdf:type onto:Film . ?film onto:starring ?actors . ?actors foaf:name 'Natalie Portman'@en . ?film onto:producer ?uri . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Give me all movies with Tom Cruise!
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 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 prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Film. { ?uri prop:starring res:Tom_Cruise . } UNION { ?uri onto:starring res:Tom_Cruise . } OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
In which films did Julia Roberts as well as Richard Gere play?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 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 ?uri ?string WHERE { ?uri rdf:type onto:Film . ?uri onto:starring res:Julia_Roberts . ?uri onto:starring res:Richard_Gere. OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Give me all female German chancellors!
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX yago: <http://dbpedia.org/class/yago/> PREFIX prop: <http://dbpedia.org/property/> SELECT ?uri ?string WHERE { ?uri rdf:type yago:FemaleHeadsOfGovernment. ?uri prop:office ?office . FILTER regex(?office, 'Chancellor of Germany'). OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Who wrote the book The pillars of the Earth?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?books rdf:type onto:Book . ?books onto:author ?uri . ?books rdfs:label 'The Pillars of the Earth'@en . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
How many films did Leonardo DiCaprio star in?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT COUNT(?film) WHERE { ?film rdf:type onto:Film . ?film onto:starring ?actors . ?actors foaf:name 'Leonardo DiCaprio'@en . }
qald-1
Give me all soccer clubs in the Premier League.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX resource: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri onto:league resource:Premier_League . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
When was Capcom founded?
PREFIX res: <http://dbpedia.org/resource/> PREFIX prop: <http://dbpedia.org/property/> SELECT ?date WHERE { res:Capcom prop:foundation ?date . }
qald-1
Which organizations were founded in 1950?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX prop: <http://dbpedia.org/property/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Organisation . ?uri prop:foundation ?date . FILTER regex(?date,'^1950') . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
What is the highest mountain?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Mountain . ?uri onto:elevation ?elevation . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } } ORDER BY DESC(?elevation) LIMIT 1
qald-1
Is Natalie Portman an actress?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> ASK WHERE { ?subject rdf:type onto:Actor. ?subject rdfs:label 'Natalie Portman'@en. }
qald-1
Which presidents of the United States had more than three children?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:PresidentsOfTheUnitedStates . ?uri onto:child ?child . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } HAVING (count(?child) > 3)
qald-1
Give me the official websites of actors of the television show Charmed.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri WHERE { ?film rdf:type onto:TelevisionShow . ?film rdfs:label 'Charmed'@en . ?film onto:starring ?actors . ?actors foaf:homepage ?uri . }
qald-1
Who is the daughter of Bill Clinton married to?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?uri ?string WHERE { res:Bill_Clinton onto:child ?child . ?child dbpedia2:spouse ?string . ?uri rdfs:label ?string . }
qald-1
Which river does the Brooklyn Bridge cross?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { res:Brooklyn_Bridge dbpedia2:crosses ?string . ?uri dbpedia2:name ?string . }
qald-1
How many monarchical countries are there in Europe?
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#> SELECT COUNT(DISTINCT ?uri) WHERE { ?uri rdf:type yago:EuropeanCountries . ?uri onto:governmentType ?govern . FILTER regex(?govern,'monarchy') . }
qald-1
Where did Abraham Lincoln die?
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:deathPlace ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Is the wife of President Obama called Michelle?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> ASK WHERE { res:Barack_Obama onto:spouse ?spouse . ?spouse rdfs:label ?name . FILTER(regex(?name,'Michelle')) }
qald-1
Which states of Germany are governed by the Social Democratic Party?
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#> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:StatesOfGermany . ?uri onto:leaderParty res:Social_Democratic_Party_of_Germany . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which U.S. states possess gold minerals?
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#> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:StatesOfTheUnitedStates . ?uri dbpedia2:mineral ?mineral . FILTER (regex(?mineral,'Gold')) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
In which country does the Nile start?
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { res:Nile onto:sourceCountry ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which locations have 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 . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } HAVING (count(?cave) > 2)
qald-1
Is proinsulin a protein?
PREFIX res: <http://dbpedia.org/resource/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX onto: <http://dbpedia.org/ontology/> ASK WHERE { res:Proinsulin rdf:type onto:Protein . }
qald-1
Which classis does the Millepede belong to?
PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?string WHERE { res:Millipede dbpedia2:classis ?string . }
qald-1
How tall is Claudia Schiffer?
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?number WHERE { res:Claudia_Schiffer onto:height ?number . }
qald-1
Who created Goofy?
PREFIX res: <http://dbpedia.org/resource/> PREFIX prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { res:Goofy prop:creator ?string . ?uri prop:name ?string . }
qald-1
Give me the capitals of all U.S. states.
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#> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { ?states rdf:type yago:StatesOfTheUnitedStates . ?states onto:capital ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Give me all cities in New Jersey with more than 100000 inhabitants.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:City . ?uri dbpedia2:subdivisionName ?location . FILTER (regex(?location, 'New Jersey')) . ?uri dbpedia2:populationTotal ?inhabitants . FILTER (?inhabitants > 100000) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which museum exhibits The Scream by Munch?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?uri ?string WHERE { res:The_Scream dbpedia2:museum ?string . OPTIONAL { ?uri rdfs:label ?string. } }
qald-1
Is Egypts largest city also its capital?
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> ASK WHERE { res:Egypt onto:largestCity ?large . res:Egypt onto:capital ?capital . FILTER (?large = ?capital) }
qald-1
What is the revenue of IBM?
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?number WHERE { res:IBM onto:revenue ?number . }
qald-1
Which states border Utah?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX yago: <http://dbpedia.org/class/yago/> SELECT DISTINCT ?uri ?string WHERE { {res:Kansas dbpedia2:north ?string.} UNION {res:Kansas dbpedia2:northeast ?string.} UNION {res:Kansas dbpedia2:south ?string.} UNION {res:Kansas dbpedia2:southeast ?string.} UNION {res:Kansas dbpedia2:east ?string.} UNION {res:Kansas dbpedia2:west ?string.} OPTIONAL { ?uri rdf:type yago:StatesOfTheUnitedStates . ?uri dbpedia2:name ?string . } }
qald-1
In which country is the Limerick Lake?
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { res:Limerick_Lake onto:country ?uri . OPTIONAL { ?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
Which television shows were created by Walt Disney?
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#> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:TelevisionShow . ?uri onto:creator res:Walt_Disney . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which mountain is the highest after the Annapurna?
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#> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { res:Annapurna onto:elevation ?elev . ?uri rdf:type onto:Mountain . ?uri onto:elevation ?all . FILTER (?all < ?elev) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } ORDER BY DESC(?all) LIMIT 1
qald-1
In which films directed by Garry Marshall was Julia Roberts starring?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Film . ?uri onto:starring res:Julia_Roberts . ?uri onto:director res:Garry_Marshall . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which bridges are of the same type as the Manhattan Bridge?
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#> PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Bridge . ?uri dbpedia2:design ?design . res:Manhattan_Bridge dbpedia2:design ?manha . FILTER (regex(?design, ?manha)). FILTER (?uri != res:Manhattan_Bridge) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Was U.S. president Jackson involved in a war?
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#> PREFIX dbpedia2: <http://dbpedia.org/property/> ASK WHERE { ?uri rdf:type yago:PresidentsOfTheUnitedStates . ?uri dbpedia2:name ?name . FILTER (regex(?name, 'Jackson')) . OPTIONAL {?uri onto:battle ?battle .} FILTER BOUND(?battle). }
qald-1
Which European countries are a constitutional monarchy?
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#> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:EuropeanCountries . ?uri onto:governmentType res:Constitutional_monarchy . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Who is the author of WikiLeaks?
PREFIX res: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { res:WikiLeaks onto:author ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Which state of the United States of America has the highest density?
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#> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT ?uri ?string WHERE { ?uri rdf:type yago:StatesOfTheUnitedStates . ?uri dbpedia2:densityrank ?density OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } ORDER BY ASC(?density) LIMIT 1
qald-1
What is the currency of the Czech Republic?
PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?uri ?string WHERE { res:Czech_Republic dbpedia2:currency ?string . ?uri rdfs:label ?string . }
qald-1
Which countries in the European Union adopted the Euro?
PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX yago: <http://dbpedia.org/class/yago/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:EuropeanUnionMemberStates . { ?uri dbpedia2:currency res:Euro . } UNION { ?uri dbpedia2:currencyCode ?code . FILTER regex(?code,'EUR') } OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
What is the area code of Berlin?
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?string WHERE { res:Berlin onto:areaCode ?string . }
qald-1
Which countries have more than two official languages?
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:Country . ?uri onto:officialLanguage ?language . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } HAVING (count(?language) > 2)
qald-1
Who is the owner of Universal Studios?
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:Universal_Studios onto:owner ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Through which countries does the Yenisei river flow?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { res:Yenisei_River dbpedia2:country ?string . OPTIONAL { ?uri dbpedia2:commonName ?name . } FILTER regex(?name,?string) . OPTIONAL { ?uri dbpedia2:dateEnd ?date . } FILTER (!BOUND(?date)) }
qald-1
When did Germany join the EU?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT ?date WHERE { res:Germany dbpedia2:accessioneudate ?date . }
qald-1
Which monarchs of the United Kingdom were married to a German?
PREFIX yago: <http://dbpedia.org/class/yago/> 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#> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type yago:MonarchsOfTheUnitedKingdom . { ?uri onto:spouse ?spouse . } UNION { ?spouse onto:spouse ?uri . } ?spouse onto:birthPlace res:Germany. OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
When was the Battle of Gettysburg?
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?string WHERE { res:Battle_of_Gettysburg onto:date ?string . }
qald-1
What is the highest mountain in Germany?
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Mountain . ?uri onto:elevation ?elevation . ?uri onto:locatedInArea ?area . FILTER (regex(?area,'Germany')) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } } ORDER BY DESC(?elevation) LIMIT 1
qald-1
Give me all soccer clubs in Spain.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX prop: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:SoccerClub . { ?uri onto:ground ?ground . } UNION { ?uri prop:ground ?ground . } FILTER (regex(?ground, 'Spain')) . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
What are the official languages of 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 { res:Philippines onto:officialLanguage ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Who is the mayor of New York City?
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?uri ?string WHERE { res:New_York_City onto:leaderName ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Who designed the Brooklyn Bridge?
PREFIX res: <http://dbpedia.org/resource/> PREFIX dbpedia2: <http://dbpedia.org/property/> SELECT DISTINCT ?uri ?string WHERE { res:Brooklyn_Bridge dbpedia2:designer ?string . ?uri dbpedia2:name ?string . }
qald-1
Which telecommunications organizations are located in Belgium?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { ?uri rdf:type onto:Organisation . ?uri dbpedia2:industry ?indus . { ?uri onto:location res:Belgium. } UNION { ?uri dbpedia2:location res:Belgium. } UNION { ?uri dbpedia2:locationCountry 'Belgium'@en . } FILTER (regex(?indus, 'Telecommunication')) . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
What is the profession of Frank Herbert?
PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?string WHERE { res:Frank_Herbert dbpedia2:occupation ?string . }
qald-1
What is the highest place of Karakoram?
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX res: <http://dbpedia.org/resource/> SELECT ?uri ?string WHERE { res:Karakoram onto:highestPlace ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
Give me the homepage of Forbes.
PREFIX res: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT DISTINCT ?uri WHERE { res:Forbes foaf:homepage ?uri . }
qald-1
Which companies are in the computer software industry?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dbpedia2: <http://dbpedia.org/property/> PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri ?string WHERE { ?uri rdf:type onto:Company . ?uri dbpedia2:industry ?indus . FILTER regex(?indus,'Computer') . FILTER regex(?indus,'software','i') . OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') } }
qald-1
What did Bruce Carver die from?
PREFIX res: <http://dbpedia.org/resource/> PREFIX onto: <http://dbpedia.org/ontology/> SELECT ?uri ?string WHERE { res:Bruce_Carver onto:deathCause ?uri . OPTIONAL {?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } }
qald-1
End of preview. Expand in Data Studio
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Dataset Card for Text2sparql-Raw

🧾 Dataset Summary

Text2Sparql-Raw is a multilingual dataset designed for the task of translating natural language questions into SPARQL queries over the DBpedia knowledge graph. This dataset aggregates and harmonizes four widely used benchmarks in the text-to-SPARQL domain:

  • QALD (versions 1–9)
  • LC-QuAD 1.0
  • Orange/paraqa-sparqltotext
  • julioc-p/Question-Sparql

It contains questions in both English and Spanish, making it suitable for multilingual and cross-lingual question answering tasks over knowledge graphs.

This is the first version of the dataset.


βœ… Supported Tasks and Leaderboards

  • Text-to-SPARQL generation: Given a natural language question, the task is to generate a syntactically correct and semantically accurate SPARQL query that retrieves the answer from the DBpedia knowledge graph.

🌍 Languages

  • English (en)
  • Spanish (es)

πŸ“ Dataset Structure

Each instance in the dataset includes:

  • question: The question in natural language (English or Spanish)
  • query: The corresponding SPARQL query
  • dataset-id: Original dataset source (e.g., QALD-X, LCQUAD, Orange, JULIOC)

πŸ”§ Dataset Creation

The dataset is a curated compilation of four public datasets:

The merged dataset aims to provide a unified resource for training multilingual text-to-SPARQL models.


πŸ’‘ Use Cases

This dataset is intended for training and evaluating models that:

  • Generate SPARQL from natural language
  • Support multilingual question answering over knowledge graphs
  • Learn cross-lingual representations for semantic parsing

πŸ“š Citation

If you use this dataset in your research, please cite:

@misc{text2sparql-raw,
  author = {Marcos GΓ΄lo, Paulo do Carmo, Edgard Marx, Ricardo Marcacini},
  title = {text2sparql-raw: Natural Language Text to SPARQL for DBpedia Dataset},
  year = {2025},
  howpublished = {\url{https://huggingface.co/datasets/aksw/Text2Sparql-Raw}},
}

πŸͺͺ Licensing

license: apache-2.0

Check each dataset’s original repository for full licensing terms.


Downloads last month
4