Simple Question (Direct)
Simple Question
Q126660
P937
Q515
USER
What is the work location of Theodor Stolojan ?
(Q126660,P937,c(Q515))
action filter_type
action find
entity Q126660
relation P937
type Q515
['Q126660', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q126660 property:P937 ?c . ?c rdf:type ontology:Q515 }
Theodor Stolojan
action filter_type
action find
entity Theodor Stolojan
relation work location
type city
['Theodor Stolojan', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Theodor_Stolojan property:work_location ?c . ?c rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q126660,P937,c(Q515))
action filter_type
action find
entity Q126660
relation P937
type Q515
The work location of Theodor Stolojan is in [ANSWER]
['Q126660', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q126660 property:P937 ?c . ?c rdf:type ontology:Q515 }
Strasbourg
The work location of Theodor Stolojan is in Strasbourg
Strasbourg
action filter_type
action find
entity Theodor Stolojan
relation work location
type city
['Theodor Stolojan', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Theodor_Stolojan property:work_location ?c . ?c rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q126660
P39
Q12737077
USER
What were the positions held by that person ?
(Q6602,P39,c(Q12737077))
action filter_type
action find
entity Q126660
relation P39
type Q12737077
['Q6602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q126660 property:P39 ?r }
Theodor Stolojan
action filter_type
action find
entity Theodor Stolojan
relation position held
type occupation
['Strasbourg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Theodor_Stolojan property:position_held ?r }
[]
occupation
Q15304810 Q27169
SYSTEM
Prime Minister of Romania, member of the European Parliament
Q15304810 Q27169
(Q6602,P39,c(Q12737077))
action filter_type
action find
entity Q126660
relation P39
type Q12737077
The positions held by that person were the [ANSWERS]
['Q6602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12737077 . resource:Q126660 property:P39 ?r }
Prime Minister of Romania member of the European Parliament
The positions held by that person were the Prime Minister of Romania and member of the European Parliament
Prime Minister of Romania member of the European Parliament
action filter_type
action find
entity Theodor Stolojan
relation position held
type occupation
['Strasbourg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:occupation . resource:Theodor_Stolojan property:position_held ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6602
P1444
Q878123
USER
Which racings end their journey at Strasbourg ?
(c(Q878123),P1444,Q6602)
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q878123
[{'concept': 'Q878123'}, 'P1444', 'Q6602']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q6602 . ?r rdf:type ontology:Q878123 }
Strasbourg
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Strasbourg']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:Strasbourg . ?r rdf:type ontology:racing }
[]
racing
Q1780971 Q1807340
SYSTEM
prologue of the Tour de France 2006, 2006 Tour de France, Stage 1
Q1780971 Q1807340
(c(Q878123),P1444,Q6602)
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q878123
[ANSWERS]
[{'concept': 'Q878123'}, 'P1444', 'Q6602']
SELECT DISTINCT ?r WHERE { ?r property:P1444 resource:Q6602 . ?r rdf:type ontology:Q878123 }
prologue of the Tour de France 2006 2006 Tour de France, Stage 1
Prologue of the Tour de France 2006 and 2006 Tour de France, Stage 1 end their journey at Strasbourg
prologue of the Tour de France 2006 2006 Tour de France, Stage 1
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type racing
[{'concept': 'racing'}, 'destination point', 'Strasbourg']
SELECT DISTINCT ?r WHERE { ?r property:destination_point resource:Strasbourg . ?r rdf:type ontology:racing }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1807340
P1427
Q515
USER
Which city gives the origination point of that racing ?
(Q1807340,P1427,c(Q515))
action filter_type
action find
entity Q1807340
relation P1427
type Q515
['Q1807340', 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q1807340 property:P1427 ?z . ?z rdf:type ontology:Q515 }
2006 Tour de France, Stage 1
action filter_type
action find
entity 2006 Tour de France, Stage 1
relation start point
type city
['2006 Tour de France, Stage 1', 'start point', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:2006_Tour_de_France,_Stage_1 property:start_point ?z . ?z rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q1807340
SYSTEM
Did you mean 2006 Tour de France, Stage 1 ?
Q1780971 Q1807340
(Q1780971,P1427,c(Q515)) (Q1807340,P1427,c(Q515))
[ANSWER]
['Q1780971', 'P1427', {'concept': 'Q515'}] ['Q1807340', 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q1807340 property:P1427 ?z . ?z rdf:type ontology:Q515 }
prologue of the Tour de France 2006 2006 Tour de France, Stage 1
Did you mean 2006 Tour de France, Stage 1 ?
2006 Tour de France, Stage 1
['prologue of the Tour de France 2006', 'start point', {'concept': 'city'}] ['2006 Tour de France, Stage 1', 'start point', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:2006_Tour_de_France,_Stage_1 property:start_point ?z . ?z rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1807340,P1427,c(Q515))
['Q1807340', 'P1427', {'concept': 'Q515'}]
['2006 Tour de France, Stage 1', 'start point', {'concept': 'city'}]
[]
Q6602
SYSTEM
Strasbourg
Q6602
(Q1807340,P1427,c(Q515))
action filter_type
action find
entity Q1807340
relation P1427
type Q515
[ANSWER] gives the origination point of that racing
['Q1807340', 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q1807340 property:P1427 ?z . ?z rdf:type ontology:Q515 }
Strasbourg
Strasbourg gives the origination point of that racing
Strasbourg
action filter_type
action find
entity 2006 Tour de France, Stage 1
relation start point
type city
['2006 Tour de France, Stage 1', 'start point', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:2006_Tour_de_France,_Stage_1 property:start_point ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1376
Q20667921
USER
How many french administrative divisions have that city as their capital ?
(Q6602,P1376,c(Q20667921))
action count
action filter_type
action find
entity Q6602
relation P1376
type Q20667921
['Q6602', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Q6602 property:P1376 ?e . ?e rdf:type ontology:Q20667921 }
action count
action filter_type
action find
entity Strasbourg
relation capital of
type type of french administrative division
['Strasbourg', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Strasbourg property:capital_of ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
10
Q1399216 Q1399187 Q427164 Q1399247 Q1399239 Q1399221 Q1399253 Q1399197 Q1263703 Q1399226
(Q6602,P1376,c(Q20667921))
action count
action filter_type
action find
entity Q6602
relation P1376
type Q20667921
[ANSWER]
['Q6602', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Q6602 property:P1376 ?e . ?e rdf:type ontology:Q20667921 }
canton of Strasbourg-1 canton of Strasbourg-3 canton of Strasbourg-10 canton of Strasbourg-9 canton of Strasbourg-4 canton of Strasbourg-7 canton of Strasbourg-8 canton of Strasbourg-2 canton of Strasbourg-5 canton of Strasbourg-6
10
action count
action filter_type
action find
entity Strasbourg
relation capital of
type type of french administrative division
['Strasbourg', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Strasbourg property:capital_of ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1427
Q20667921 Q13220204 Q878123
USER
How many racings originate at atleast 1 french administrative divisions or administrative country subdivisions ?
(c(Q878123),P1427,c(Q20667921)|c(Q13220204))
action count
action atleast
action union
action find_tuple_counts
relation P1427
type Q878123
type Q20667921
action find_tuple_counts
relation P1427
type Q878123
type Q13220204
value 1
[{'concept': 'Q878123'}, 'P1427', [{'concept': 'Q20667921'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { { ?e rdf:type ontology:Q878123 . ?g rdf:type ontology:Q20667921 . ?e property:P1427 ?g } UNION { ?e property:P1427 ?g . ?g rdf:type ontology:Q13220204 . ?e rdf:type ontology:Q878123 } } GROUP BY ?e } }
action count
action atleast
action union
action find_tuple_counts
relation start point
type racing
type type of french administrative division
action find_tuple_counts
relation start point
type racing
type second-level administrative country subdivision
value 1
[{'concept': 'racing'}, 'start point', [{'concept': 'type of french administrative division'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { { ?e rdf:type ontology:racing . ?g rdf:type ontology:type_of_french_administrative_division . ?e property:start_point ?g } UNION { ?e property:start_point ?g . ?g rdf:type ontology:second-level_administrative_country_subdivision . ?e rdf:type ontology:racing } } GROUP BY ?e } }
[]
type of french administrative division second-level administrative country subdivision racing
SYSTEM
124
Q17321721 Q446637 Q445134 Q20012554 Q17173105 Q17173106 Q2807500 Q2120753 Q17353476 Q13365502 Q2682496 Q4575464 Q2120713 Q444115 Q2648416 Q2118563 Q2682711 Q2682369 Q2682477 Q2818655 Q2803766 Q2746157 Q2746151 Q358744 Q1603625 Q2120684 Q2682484 Q1951408 Q2682374 Q446106 Q4575491 Q2682699 Q20638177 Q20638176 Q20638174 Q20638173 Q1626315 Q2120633 Q17172874 Q9133583 Q2121115 Q17172978 Q20638178 Q2714899 Q444498 Q444091 Q20638167 Q20638169 Q444493 Q2682510 Q20638180 Q2120745 Q123247 Q1780368 Q2818837 Q446119 Q2215356 Q17172889 Q2746168 Q2120648 Q17321409 Q1894417 Q17173083 Q444376 Q2649091 Q20638186 Q20638175 Q2066704 Q4575423 Q17335715 Q20638179 Q1781362 Q2482697 Q2682366 Q445142 Q2806915 Q20087606 Q20750872 Q248606 Q20087609 Q20087608 Q629308 Q2120663 Q20638171 Q1894773 Q17340057 Q446137 Q446061 Q20640445 Q202087 Q20638183 Q444488 Q20638188 Q20087612 Q445119 Q20087611 Q1894151 Q20087607 Q1894784 Q20070492 Q17347419 Q1907167 Q2120702 Q20638187 Q20640442 Q446156 Q20638181 Q15992424 Q444077 Q20025045 Q2803769 Q20638185 Q2120667 Q1807329 Q17173056 Q20638182 Q13414863 Q2458085 Q2120692 Q4575443 Q10862357 Q2682701 Q20638184 Q2682705
(c(Q878123),P1427,c(Q20667921)|c(Q13220204))
action count
action atleast
action union
action find_tuple_counts
relation P1427
type Q878123
type Q20667921
action find_tuple_counts
relation P1427
type Q878123
type Q13220204
value 1
[ANSWER]
[{'concept': 'Q878123'}, 'P1427', [{'concept': 'Q20667921'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { { ?e rdf:type ontology:Q878123 . ?g rdf:type ontology:Q20667921 . ?e property:P1427 ?g } UNION { ?e property:P1427 ?g . ?g rdf:type ontology:Q13220204 . ?e rdf:type ontology:Q878123 } } GROUP BY ?e } }
2014 Tour de France, Stage 9 2005 Tour de France, Stage 20 2005 Tour de France, Stage 13 2015 Giro d'Italia, Stage 18 2014 Tour de France, Stage 6 2014 Tour de France, Stage 7 2003 Tour de France, Stage 12 2012 Tour de France, Stage 19 2014 Tour de France, Stage 18 2013 Giro d'Italia, Stage 16 2013 Tour de France, Stage 20 2006 Tour de France, Stage 15 2012 Tour de France, Stage 20 2005 Tour de France, Stage 2 2013 Tour de France, Stage 1 2012 Tour de France, Stage 16 2013 Tour de France, Stage 11 2013 Tour de France, Stage 9 2013 Tour de France, Stage 5 2003 Tour de France, Stage 8 2004 Tour de France, Stage 4 2013 Tour de France, Stage 15 2013 Tour de France, Stage 16 2004 Tour de France, Stage 10 2006 Tour de France, Stage 2 2012 Tour de France, Stage 8 2013 Tour de France, Stage 12 2004 Tour de France, Stage 6 2013 Tour de France, Stage 14 2005 Tour de France, Stage 21 2006 Tour de France, Stage 19 2013 Tour de France, Stage 17 1982 Tour de France, Stage 10 1982 Tour de France, Stage 9b 1982 Tour de France, Stage 8 1982 Tour de France, Stage 7 2004 Tour de France, Stage 18 2012 Tour de France, Stage 11 2014 Tour de France, Stage 10 2006 Tour de France, Stage 20 2012 Tour de France, Stage 3 2014 Tour de France, Stage 19 1982 Tour de France, Stage 11 2004 Tour de France, Stage 17 2005 Tour de France, Stage 5 2005 Tour de France, Stage 3 1982 Tour de France, Stage 1 1982 Tour de France, Stage 3 2005 Tour de France, Stage 4 2013 Tour de France, Stage 8 1982 Tour de France, Stage 13 2012 Tour de France, Stage 4 2005 Tour de France, Stage 14 2012 Tour de France, Stage 13 2003 Tour de France, Stage 9 2005 Tour de France, Stage 19 2004 Tour de France, Stage 16 2014 Tour de France, Stage 15 2013 Tour de France, Stage 19 2012 Tour de France, Stage 9 2014 Tour de France, Stage 8 2012 Tour de France, Stage 14 2014 Tour de France, Stage 4 2005 Tour de France, Stage 7 2013 Tour de France, Stage 2 1982 Tour de France, Stage 19 1982 Tour de France, Stage 9a 2009 Tour de France, Stage 21 2006 Tour de France, Stage 14 2014 Tour de France, Stage 12 1982 Tour de France, Stage 12 2012 Tour de France, Stage 10 2004 Tour de France, Stage 12 2013 Tour de France, Stage 10 2005 Tour de France, Stage 15 2003 Tour de France, Stage 10 2015 tour of Switzerland, Stage 1 2015 Vuelta a Colombia 2004 Tour de France, Stage 11 2015 tour of Switzerland, Stage 4 2015 tour of Switzerland, Stage 3 2004 Tour de France, Stage 20 2012 Tour de France, Stage 7 1982 Tour de France, Stage 5 2012 Tour de France, Stage 18 2014 Tour de France, Stage 13 2005 Tour de France, Stage 17 2005 Tour de France, Stage 16 2015 Volta ao Algarve, Stage 4 2004 Tour de France, Stage 15 1982 Tour de France, Stage 16 2005 Tour de France, Stage 9 1982 Tour de France, Stage 21 2015 tour of Switzerland, Stage 6 2005 Tour de France, Stage 12 2015 tour of Switzerland, Stage 5 2012 Tour de France, Stage 17 2015 tour of Switzerland, Stage 2 2012 Tour de France, Stage 15 2015 Tour of Croatia, Stage 2 2014 Tour de France, Stage 17 2004 Tour de France, Stage 13 2012 Tour de France, Stage 12 1982 Tour de France, Stage 20 2015 Volta ao Algarve, Stage 1 2005 Tour de France, Stage 18 1982 Tour de France, Stage 14 2014 Tour de France, Stage 20 2005 Tour de France, Stage 6 2015 Giro d'Italia, Stage 19 2004 Tour de France, Stage 9 1982 Tour de France, Stage 18 2012 Tour de France, Stage 5 2006 Tour de France, Stage 5 2014 Tour de France, Stage 21 1982 Tour de France, Stage 15 2004 Tour de France, Stage 8 2004 Tour de France, Stage 7 2012 Tour de France, Stage 6 2006 Tour de France, Stage 16 2006 Tour de France, Stage 18 2013 Tour de France, Stage 13 1982 Tour de France, Stage 17 2013 Tour de France, Stage 6
124
action count
action atleast
action union
action find_tuple_counts
relation start point
type racing
type type of french administrative division
action find_tuple_counts
relation start point
type racing
type second-level administrative country subdivision
value 1
[{'concept': 'racing'}, 'start point', [{'concept': 'type of french administrative division'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?n >= 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?n ) WHERE { { ?e rdf:type ontology:racing . ?g rdf:type ontology:type_of_french_administrative_division . ?e property:start_point ?g } UNION { ?e property:start_point ?g . ?g rdf:type ontology:second-level_administrative_country_subdivision . ?e rdf:type ontology:racing } } GROUP BY ?e } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6602
P190
Q515
USER
Which city is twin town of Strasbourg ?
(Q6602,P190,c(Q515))
action filter_type
action find
entity Q6602
relation P190
type Q515
['Q6602', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q6602 property:P190 ?z . ?z rdf:type ontology:Q515 }
Strasbourg
action filter_type
action find
entity Strasbourg
relation sister city
type city
['Strasbourg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Strasbourg property:sister_city ?z . ?z rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q6602,P190,c(Q515))
action filter_type
action find
entity Q6602
relation P190
type Q515
[ANSWER] is twin town of Strasbourg
['Q6602', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q6602 property:P190 ?z . ?z rdf:type ontology:Q515 }
Dresden
Dresden is twin town of Strasbourg
Dresden
action filter_type
action find
entity Strasbourg
relation sister city
type city
['Strasbourg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Strasbourg property:sister_city ?z . ?z rdf:type ontology:city }
[]