question
stringlengths 9
150
| query
stringlengths 109
692
| 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( ?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 (?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 res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri ?string
WHERE
{
?uri onto:league res: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
|
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 prop: <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 prop:spouse ?string .
?uri rdfs:label ?string .
}
|
qald-1
|
Which river does the Brooklyn Bridge cross?
|
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri ?string
WHERE
{
res:Brooklyn_Bridge prop:crosses ?string .
?uri prop: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 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#>
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 prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri ?string
WHERE
{
?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop: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
|
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 prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT ?string
WHERE
{
res:Millipede prop: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 prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri ?string
WHERE
{
?uri rdf:type onto:City .
?uri prop:subdivisionName ?location .
FILTER (regex(?location, 'New Jersey')) .
?uri prop: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 prop: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?uri ?string
WHERE
{
res:The_Scream prop: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 prop: <http://dbpedia.org/property/>
PREFIX yago: <http://dbpedia.org/class/yago/>
SELECT DISTINCT ?uri ?string
WHERE
{
{res:Kansas prop:north ?string.}
UNION
{res:Kansas prop:northeast ?string.}
UNION
{res:Kansas prop:south ?string.}
UNION
{res:Kansas prop:southeast ?string.}
UNION
{res:Kansas prop:east ?string.}
UNION
{res:Kansas prop:west ?string.}
OPTIONAL { ?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop: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 prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri ?string
WHERE
{
?uri rdf:type onto:Bridge .
?uri prop:design ?design .
res:Manhattan_Bridge prop: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 prop: <http://dbpedia.org/property/>
ASK
WHERE
{
?uri rdf:type yago:PresidentsOfTheUnitedStates .
?uri prop: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 prop: <http://dbpedia.org/property/>
SELECT ?uri ?string
WHERE
{
?uri rdf:type yago:StatesOfTheUnitedStates .
?uri prop: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 prop: <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 prop:currency ?string .
?uri rdfs:label ?string .
}
|
qald-1
|
Which countries in the European Union adopted the Euro?
|
PREFIX prop: <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 prop:currency res:Euro . }
UNION
{ ?uri prop: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
|
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 prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri ?string
WHERE
{
res:Yenisei_River prop:country ?string .
OPTIONAL { ?uri prop:commonName ?name . }
FILTER regex(?name,?string) .
OPTIONAL { ?uri prop:dateEnd ?date . }
FILTER (!BOUND(?date))
}
|
qald-1
|
When did Germany join the EU?
|
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT ?date
WHERE
{
res:Germany prop: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 prop: <http://dbpedia.org/property/>
SELECT DISTINCT ?uri ?string
WHERE
{
res:Brooklyn_Bridge prop:designer ?string .
?uri prop: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 prop: <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 prop:industry ?indus .
{ ?uri onto:location res:Belgium. }
UNION { ?uri prop:location res:Belgium. }
UNION { ?uri prop: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 prop: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?string
WHERE
{
res:Frank_Herbert prop: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 prop: <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 prop: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
|
Give me all female Russian astronauts.
|
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:RussianCosmonauts .
?uri rdf:type yago:FemaleAstronauts .
OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
}
|
qald-2
|
Give me the birthdays of all actors of the television show Charmed.
|
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?date
WHERE {
res:Charmed onto:starring ?actor .
?actor onto:birthDate ?date .
}
|
qald-2
|
Is the wife of president Obama called Michelle?
|
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:Barack_Obama onto:spouse ?spouse .
?spouse rdfs:label ?name .
FILTER(regex(?name,'Michelle'))
}
|
qald-2
|
Dataset Card for Text2Sparql-Clean
π§Ύ Dataset Summary
Text2Sparql-Clean is a clean, standardized, and multilingual dataset for the task of translating natural language questions into SPARQL queries over the DBpedia knowledge graph. It aggregates and harmonizes four widely-used benchmarks in the text-to-SPARQL research field:
- QALD (versions 1β9)
- LC-QuAD 1.0
- Orange/paraqa-sparqltotext
- julioc-p/Question-Sparql
The dataset includes questions in English and Spanish, making it a valuable resource for both monolingual and cross-lingual question answering over knowledge graphs.
This is the second official version of the dataset.
π οΈ Key Features and Improvements
This dataset goes beyond simple aggregation. It includes several important improvements over the original datasets:
- β Standardized SPARQL queries: All queries were revised to include the necessary PREFIX declarations, ensuring compatibility with DBpediaβs SPARQL endpoint.
- β Syntactic and semantic validation: Every SPARQL query was checked for syntactic correctness and semantic executability. Faulty or malformed queries were either fixed or removed.
- β Clean, high-quality corpus: The result is a clean dataset where all queries are both executable and meaningful, enabling reliable model training and evaluation.
β Supported Tasks
- Text-to-SPARQL generation β Given a natural language question, generate the corresponding SPARQL query over DBpedia.
π Languages
- English (
en) - Spanish (
es)
π Dataset Format
Each data instance contains:
question: The question in natural language (English or Spanish)query: The corresponding SPARQL querydataset-id: Original dataset source (e.g.,QALD-X,LCQUAD,Orange,JULIOC)
π§ Dataset Creation Process
This dataset is the result of a comprehensive curation pipeline:
- Aggregation of four public datasets into a unified structure.
- QALD 1-9: https://github.com/ag-sc/QALD
- LC-QuAD 1.0: https://github.com/AskNowQA/LC-QuAD
- Paraqa-SparqlToText: https://huggingface.co/datasets/Orange/paraqa-sparqltotext
- Question-Sparql: https://huggingface.co/datasets/julioc-p/Question-Sparql
- Normalization of query formats and syntax, resulting in all queries with PREFIX.
- Insertion of missing PREFIX declarations to ensure compliance with DBpedia standards.
- Execution validation: All queries were tested against a DBpedia SPARQL endpoint. Queries that failed were either corrected (if trivial) or removed.
- Language consistency checks for both English and Spanish questions.
π‘ Use Cases
- Training and evaluating text-to-SPARQL models
- Developing multilingual semantic parsers
- Enabling cross-lingual question answering over structured knowledge graphs
- Fine-tuning large language models on knowledge-graph-to-text tasks
π Citation
If you use this dataset in your research, please cite:
@misc{text2sparql-clean,
author = {Marcos GΓ΄lo, Paulo do Carmo, Edgard Marx, Ricardo Marcacini},
title = {text2sparql-clean: Natural Language Text to SPARQL for DBpedia Cleaned Dataset},
year = {2025},
howpublished = {\url{https://huggingface.co/datasets/aksw/Text2Sparql-Clean}},
}
πͺͺ Licensing
license: apache-2.0
Check each datasetβs original repository for full licensing terms.
- Downloads last month
- 7