Skip to content

Commit

Permalink
fixed chaöllenge dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoUsbeck committed Nov 7, 2017
1 parent 8665bae commit 786186b
Showing 1 changed file with 25 additions and 187 deletions.
212 changes: 25 additions & 187 deletions 8/data/qald-8-test-multilingual.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "how many awards has Bertrand Russell?",
"string" : "How many awards has Bertrand Russell?",
"keywords" : "Bertrand Russell"
} ],
"query" : {
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX dbp: <http://dbpedia.org/property/> SELECT (COUNT(?Awards) AS ?Counter) WHERE { dbr:Bertrand_Russell dbp:awards ?Awards } LIMIT 10"
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX dbp: <http://dbpedia.org/property/> SELECT (COUNT(?Awards) AS ?Counter) WHERE { dbr:Bertrand_Russell dbp:awards ?Awards }"
},
"answers" : [ {
"head" : {
Expand All @@ -177,11 +177,11 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "Who is daniel jurafsky?",
"keywords" : "daniel jurafsky"
"string" : "Who is Dan Jurafsky?",
"keywords" : "Dan Jurafsky"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?Dan WHERE { dbr:Daniel_Jurafsky dbo:abstract ?Dan }"
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?Dan WHERE { VALUES ?Dan {dbr:Daniel_Jurafsky } }"
},
"answers" : [ {
"head" : {
Expand All @@ -190,8 +190,8 @@
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "Daniel Jurafsky, commonly known as Dan Jurafsky, is a Professor of Linguistics and Computer Science at Stanford University."
"type" : "uri",
"value" : "http://dbpedia.org/resource/Daniel_Jurafsky"
}
} ]
}
Expand Down Expand Up @@ -223,33 +223,6 @@
} ]
}
} ]
}, {
"id" : "9",
"answertype" : "string",
"aggregation" : true,
"onlydbo" : false,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "What is the difference between correlation and dependence?",
"keywords" : "correlation and dependence"
} ],
"query" : {
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?diff WHERE { dbr:Correlation_and_dependence rdfs:comment ?diff } OFFSET 4 LIMIT 1"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "In statistics, dependence or association is any statistical relationship, whether causal or not, between two random variables or two sets of data. Correlation is any of a broad class of statistical relationships involving dependence, though in common usage it most often refers to the extent to which two variables have a linear relationship with each other. Familiar examples of dependent phenomena include the correlation between the physical statures of parents and their offspring, and the correlation between the demand for a product and its price."
}
} ]
}
} ]
}, {
"id" : "10",
"answertype" : "number",
Expand Down Expand Up @@ -358,33 +331,6 @@
} ]
}
} ]
}, {
"id" : "14",
"answertype" : "string",
"aggregation" : true,
"onlydbo" : false,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "Who are the founding fathers of united states?",
"keywords" : "US founding fathers"
} ],
"query" : {
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?foundingfathers WHERE { dbr:Founding_Fathers_of_the_United_States rdfs:comment ?foundingfathers } OFFSET 7 LIMIT 1"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "The Founding Fathers of the United States are the individuals of the Thirteen British Colonies in North America who led the American Revolution against the authority of the British Crown and established the United States of America. The term is also used more narrowly, referring specifically to those who either signed the Declaration of Independence in 1776 or who were delegates to the 1787 Constitutional Convention and took part in drafting the proposed Constitution of the United States. A further subset includes those who signed the Continental Association or the Articles of Confederation. During much of the 19th century, they were referred to as either the \"Founders\" or the \"Fathers\"."
}
} ]
}
} ]
}, {
"id" : "15",
"answertype" : "string",
Expand Down Expand Up @@ -458,20 +404,20 @@
"question" : [ {
"language" : "en",
"string" : "Where is the origin of Carolina reaper?",
"keywords" : "Carolina reaper"
"keywords" : "Carolina reaper, origin"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?hot WHERE { dbr:Carolina_Reaper dbo:abstract ?hot } OFFSET 10 LIMIT 10"
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?uri WHERE { dbr:Carolina_Reaper dbo:origin ?uri }"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
"vars" : [ "uri" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "The Carolina Reaper, originally named the HP22B, is a cultivar of chili pepper of the Capsicum chinense species. It is red and has a gnarled, lumpy pod with a tail like a scythe. As of 2013, Guinness has dubbed it as the hottest chilli in the world, surpassing the previous record holder, the Trinidad Scorpion \"Butch T\"."
"type" : "uri",
"value" : "http://dbpedia.org/resource/Fort_Mill,_South_Carolina"
}
} ]
}
Expand All @@ -484,7 +430,7 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "How much is the population of mexico city ?",
"string" : "How much is the population of Mexico City ?",
"keywords" : "mexico city"
} ],
"query" : {
Expand All @@ -511,7 +457,7 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "what is the nick name of Baghdad?",
"string" : "What is the nick name of Baghdad?",
"keywords" : "Baghdad"
} ],
"query" : {
Expand Down Expand Up @@ -592,8 +538,8 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "how much is the population Iraq?",
"keywords" : "Iraq"
"string" : "How much is the population of Iraq?",
"keywords" : "Iraq, population"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?pIraq WHERE { dbr:Iraq dbo:populationTotal ?pIraq }"
Expand All @@ -611,33 +557,6 @@
} ]
}
} ]
}, {
"id" : "23",
"answertype" : "string",
"aggregation" : false,
"onlydbo" : false,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "What is the Sicilian pizza?",
"keywords" : "Sicilian pizza"
} ],
"query" : {
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?pizza WHERE { dbr:Sicilian_pizza rdfs:comment ?pizza } OFFSET 3 LIMIT 1"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "Sicilian pizza is pizza prepared in a manner that originated in Sicily, Italy. In the United States, the phrase Sicilian pizza is often synonymous with thick-crust or deep-dish pizza derived from the Sicilian sfincione [sfiŋˈtʃoːne]."
}
} ]
}
} ]
}, {
"id" : "24",
"answertype" : "number",
Expand Down Expand Up @@ -673,7 +592,7 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "how much is the population densty rank of germany?",
"string" : "How much is the population density rank of Germany?",
"keywords" : "Germany"
} ],
"query" : {
Expand Down Expand Up @@ -727,8 +646,8 @@
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "how big is the total area of North Rhine- Westphalia?",
"keywords" : "Nord Rhine Westphalia"
"string" : "How large is the total area of North Rhine-Westphalia?",
"keywords" : "Nord Rhine Westphalia, total area"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?tarea WHERE { dbr:North_Rhine-Westphalia dbo:areaTotal ?tarea }"
Expand Down Expand Up @@ -778,33 +697,6 @@
} ]
}
} ]
}, {
"id" : "29",
"answertype" : "string",
"aggregation" : false,
"onlydbo" : false,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "how many times the German football team won the world cup?",
"keywords" : "German football team"
} ],
"query" : {
"sparql" : "PREFIX dbr: <http://dbpedia.org/resource/> PREFIX dbp: <http://dbpedia.org/property/> SELECT ?winner WHERE { dbr:Germany_national_football_team dbp:worldCupBest ?winner }"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "Champions, 1954, 1974, 1990 and 2014"
}
} ]
}
} ]
}, {
"id" : "30",
"answertype" : "string",
Expand Down Expand Up @@ -941,33 +833,6 @@
} ]
}
} ]
}, {
"id" : "33",
"answertype" : "resource",
"aggregation" : false,
"onlydbo" : true,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "Where is Sungkyunkwan University?",
"keywords" : "Sungkyunkwan, University"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT DISTINCT ?country WHERE { dbr:Sungkyunkwan_University dbo:city ?city ; dbo:country ?country }"
},
"answers" : [ {
"head" : {
"vars" : [ "uri" ]
},
"results" : {
"bindings" : [ {
"uri" : {
"type" : "uri",
"value" : "http://dbpedia.org/resource/South_Korea"
}
} ]
}
} ]
}, {
"id" : "34",
"answertype" : "resource",
Expand Down Expand Up @@ -1094,16 +959,16 @@
}, {
"id" : "38",
"answertype" : "resource",
"aggregation" : true,
"onlydbo" : true,
"aggregation" : false,
"onlydbo" : false,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "What is the highest mountain in Saxony Germany?",
"keywords" : "highest, mountain, Saxony, Germany"
"string" : "What is the highest mountain in the Bavarian Alps?",
"keywords" : "highest, mountain, Bavarian Alps"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?m WHERE { ?m dbo:mountainRange dbr:Ore_Mountains ; dbo:elevation ?height } ORDER BY DESC(?height) LIMIT 1"
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?m WHERE { dbr:Bavarian_Alps dbp:highest ?m} "
},
"answers" : [ {
"head" : {
Expand All @@ -1113,34 +978,7 @@
"bindings" : [ {
"uri" : {
"type" : "uri",
"value" : "http://dbpedia.org/resource/Fichtelberg"
}
} ]
}
} ]
}, {
"id" : "39",
"answertype" : "string",
"aggregation" : false,
"onlydbo" : true,
"hybrid" : false,
"question" : [ {
"language" : "en",
"string" : "Who wrote Thinking In Java? ( dose not exist in dbpedia)",
"keywords" : "Thinking of java"
} ],
"query" : {
"sparql" : "PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?name WHERE { dbr:Thinking_in_Java dbo:abstract ?name }"
},
"answers" : [ {
"head" : {
"vars" : [ "string" ]
},
"results" : {
"bindings" : [ {
"string" : {
"type" : "literal",
"value" : "Thinking in Java (ISBN 978-0131872486) is a book about the Java programming language, written by Bruce Eckel and first published in 1998. Prentice Hall published the 4th edition of the work in 2006. The book represents a print version of Eckel’s “Hands-on Java” seminar."
"value" : "http://dbpedia.org/resource/Zugspitze"
}
} ]
}
Expand Down

0 comments on commit 786186b

Please sign in to comment.