Simple Question (Direct)
Simple Question
Q283991
P641
Q349
USER
What did Georges Peyroche participate in ?
(Q283991,P641,c(Q349))
action filter_type
action find
entity Q283991
relation P641
type Q349
['Q283991', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q283991 property:P641 ?b . ?b rdf:type ontology:Q349 }
Georges Peyroche
action filter_type
action find
entity Georges Peyroche
relation sport
type sport
['Georges Peyroche', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Georges_Peyroche property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q283991,P641,c(Q349))
action filter_type
action find
entity Q283991
relation P641
type Q349
Georges Peyroche participated in [ANSWER]
['Q283991', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q283991 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Georges Peyroche participated in association football
association football
action filter_type
action find
entity Georges Peyroche
relation sport
type sport
['Georges Peyroche', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Georges_Peyroche property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q283991
P54
Q1194951
USER
What is that person a member of ?
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q283991
relation P54
type Q1194951
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q283991 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
Georges Peyroche
action filter_type
action find
entity Georges Peyroche
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Georges_Peyroche property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
national sports team
Q47774
SYSTEM
France national football team
Q47774
(Q2736,P54,c(Q1194951))
action filter_type
action find
entity Q283991
relation P54
type Q1194951
That person a member of is the [ANSWER]
['Q2736', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q283991 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
France national football team
That person a member of is the France national football team
France national football team
action filter_type
action find
entity Georges Peyroche
relation member of sports team
type national sports team
['association football', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Georges_Peyroche property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q283991
P19
Q20667921
USER
Which french administrative division is the place of birth of that person ?
(Q47774,P19,c(Q20667921))
action filter_type
action find
entity Q283991
relation P19
type Q20667921
['Q47774', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q283991 property:P19 ?h }
Georges Peyroche
action filter_type
action find
entity Georges Peyroche
relation place of birth
type type of french administrative division
['France national football team', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Georges_Peyroche property:place_of_birth ?h }
[]
type of french administrative division
Q1107320
SYSTEM
Roche-la-Molière
Q1107320
(Q47774,P19,c(Q20667921))
action filter_type
action find
entity Q283991
relation P19
type Q20667921
[ANSWER] is the place of birth of that person
['Q47774', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q20667921 . resource:Q283991 property:P19 ?h }
Roche-la-Molière
Roche-la-Molière is the place of birth of that person
Roche-la-Molière
action filter_type
action find
entity Georges Peyroche
relation place of birth
type type of french administrative division
['France national football team', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:type_of_french_administrative_division . resource:Georges_Peyroche property:place_of_birth ?h }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q20667921 Q55488 Q22698
USER
Which french administrative divisions are max number of railway stations and parks named after ?
(c(Q55488)|c(Q22698),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q55488
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
[[{'concept': 'Q55488'}, {'concept': 'Q22698'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?t ) WHERE { { ?z property:P138 ?d . ?z rdf:type ontology:Q55488 . ?d rdf:type ontology:Q20667921 } UNION { ?z property:P138 ?d . ?d rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q22698 } } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { VALUES ( ?u ) { ( ontology:Q55488 ) ( ontology:Q22698 ) } . ?a rdf:type ?u } GROUP BY ?y } . FILTER ( ?p = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type railway station
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
[[{'concept': 'railway station'}, {'concept': 'park'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?t ) WHERE { { ?z property:named_after ?d . ?z rdf:type ontology:railway_station . ?d rdf:type ontology:type_of_french_administrative_division } UNION { ?z property:named_after ?d . ?d rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:park } } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { VALUES ( ?u ) { ( ontology:railway_station ) ( ontology:park ) } . ?a rdf:type ?u } GROUP BY ?y } . FILTER ( ?p = ?o ) }
[]
type of french administrative division railway station park
Q154724 Q773318
SYSTEM
Bobigny, Bercy
Q154724 Q773318
(c(Q55488)|c(Q22698),P138,c(Q20667921))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q55488
action find_reverse_tuple_counts
relation P138
type Q20667921
type Q22698
[ANSWERS] are max number of railway stations and parks named after
[[{'concept': 'Q55488'}, {'concept': 'Q22698'}], 'P138', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?t ) WHERE { { ?z property:P138 ?d . ?z rdf:type ontology:Q55488 . ?d rdf:type ontology:Q20667921 } UNION { ?z property:P138 ?d . ?d rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q22698 } } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { VALUES ( ?u ) { ( ontology:Q55488 ) ( ontology:Q22698 ) } . ?a rdf:type ?u } GROUP BY ?y } . FILTER ( ?p = ?o ) }
Bobigny Bercy
Bobigny and Bercy are max number of railway stations and parks named after
Bobigny Bercy
action argmax
action union
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type railway station
action find_reverse_tuple_counts
relation named after
type type of french administrative division
type park
[[{'concept': 'railway station'}, {'concept': 'park'}], 'named after', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?o ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?t ) WHERE { { ?z property:named_after ?d . ?z rdf:type ontology:railway_station . ?d rdf:type ontology:type_of_french_administrative_division } UNION { ?z property:named_after ?d . ?d rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:park } } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?p ) WHERE { VALUES ( ?u ) { ( ontology:railway_station ) ( ontology:park ) } . ?a rdf:type ?u } GROUP BY ?y } . FILTER ( ?p = ?o ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q154724 Q773318
P138
Q55488
USER
Which railway stations are named after those french administrative divisions ?
(c(Q55488),P138,Q154724) (c(Q55488),P138,Q773318)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q55488
[{'concept': 'Q55488'}, 'P138', 'Q154724'] [{'concept': 'Q55488'}, 'P138', 'Q773318']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q55488 . VALUES ( ?t ) { ( resource:Q154724 ) ( resource:Q773318 ) } . ?c property:P138 ?t }
Bobigny Bercy
action filter_type
action find_reverse
entity prev_answer
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Bobigny'] [{'concept': 'railway station'}, 'named after', 'Bercy']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:railway_station . VALUES ( ?t ) { ( resource:Bobigny ) ( resource:Bercy ) } . ?c property:named_after ?t }
[]
railway station
Q593257 Q888758 Q818853
SYSTEM
Bobigny – Pablo Picasso, Bobigny – Pantin – Raymond Queneau, Bercy
Q593257 Q888758 Q818853
(c(Q55488),P138,Q154724) (c(Q55488),P138,Q773318)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q55488
[ANSWERS] are named after those french administrative divisions
[{'concept': 'Q55488'}, 'P138', 'Q154724'] [{'concept': 'Q55488'}, 'P138', 'Q773318']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q55488 . VALUES ( ?t ) { ( resource:Q154724 ) ( resource:Q773318 ) } . ?c property:P138 ?t }
Bobigny – Pablo Picasso Bobigny – Pantin – Raymond Queneau Bercy
Bobigny – Pablo Picasso, Bobigny – Pantin – Raymond Queneau and Bercy are named after those french administrative divisions
Bobigny – Pablo Picasso Bobigny – Pantin – Raymond Queneau Bercy
action filter_type
action find_reverse
entity prev_answer
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Bobigny'] [{'concept': 'railway station'}, 'named after', 'Bercy']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:railway_station . VALUES ( ?t ) { ( resource:Bobigny ) ( resource:Bercy ) } . ?c property:named_after ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q888758
P197
Q55488
USER
Which railway stations are adjoined to that one ?
(c(Q55488),P197,Q888758)
action filter_type
action find
entity Q888758
relation P197
type Q55488
[{'concept': 'Q55488'}, 'P197', 'Q888758']
SELECT DISTINCT ?j WHERE { resource:Q888758 property:P197 ?j . ?j rdf:type ontology:Q55488 }
Bobigny – Pantin – Raymond Queneau
action filter_type
action find
entity Bobigny – Pantin – Raymond Queneau
relation adjacent station
type railway station
[{'concept': 'railway station'}, 'adjacent station', 'Bobigny – Pantin – Raymond Queneau']
SELECT DISTINCT ?j WHERE { resource:Bobigny_–_Pantin_–_Raymond_Queneau property:adjacent_station ?j . ?j rdf:type ontology:railway_station }
[]
railway station
Clarification for simple ques.
Q888758
SYSTEM
Did you mean Bobigny – Pantin – Raymond Queneau ?
Q593257 Q888758 Q818853
(c(Q55488),P197,Q593257) (c(Q55488),P197,Q888758) (c(Q55488),P197,Q818853)
[ANSWER]
[{'concept': 'Q55488'}, 'P197', 'Q593257'] [{'concept': 'Q55488'}, 'P197', 'Q888758'] [{'concept': 'Q55488'}, 'P197', 'Q818853']
SELECT DISTINCT ?j WHERE { resource:Q888758 property:P197 ?j . ?j rdf:type ontology:Q55488 }
Bobigny – Pablo Picasso Bobigny – Pantin – Raymond Queneau Bercy
Did you mean Bobigny – Pantin – Raymond Queneau ?
Bobigny – Pantin – Raymond Queneau
[{'concept': 'railway station'}, 'adjacent station', 'Bobigny – Pablo Picasso'] [{'concept': 'railway station'}, 'adjacent station', 'Bobigny – Pantin – Raymond Queneau'] [{'concept': 'railway station'}, 'adjacent station', 'Bercy']
SELECT DISTINCT ?j WHERE { resource:Bobigny_–_Pantin_–_Raymond_Queneau property:adjacent_station ?j . ?j rdf:type ontology:railway_station }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q55488),P197,Q888758)
[{'concept': 'Q55488'}, 'P197', 'Q888758']
[{'concept': 'railway station'}, 'adjacent station', 'Bobigny – Pantin – Raymond Queneau']
[]
Q593257 Q274526
SYSTEM
Bobigny – Pablo Picasso, Église de Pantin
Q593257 Q274526
(c(Q55488),P197,Q888758)
action filter_type
action find
entity Q888758
relation P197
type Q55488
[ANSWERS] are adjoined to that one
[{'concept': 'Q55488'}, 'P197', 'Q888758']
SELECT DISTINCT ?j WHERE { resource:Q888758 property:P197 ?j . ?j rdf:type ontology:Q55488 }
Bobigny – Pablo Picasso Église de Pantin
Bobigny – Pablo Picasso and Église de Pantin are adjoined to that one
Bobigny – Pablo Picasso Église de Pantin
action filter_type
action find
entity Bobigny – Pantin – Raymond Queneau
relation adjacent station
type railway station
[{'concept': 'railway station'}, 'adjacent station', 'Bobigny – Pantin – Raymond Queneau']
SELECT DISTINCT ?j WHERE { resource:Bobigny_–_Pantin_–_Raymond_Queneau property:adjacent_station ?j . ?j rdf:type ontology:railway_station }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P138
Q502895
USER
How many people are that railway station named after ?
(Q593257,P138,c(Q502895))
['Q593257', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q593257 property:P138 ?z . ?z rdf:type ontology:Q502895 }
['Bobigny – Pablo Picasso', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bobigny_–_Pablo_Picasso property:named_after ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q593257
SYSTEM
Did you mean Bobigny – Pablo Picasso ?
(Q593257,P138,c(Q502895)) (Q274526,P138,c(Q502895))
[ANSWER]
['Q593257', 'P138', {'concept': 'Q502895'}] ['Q274526', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q593257 property:P138 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Bobigny – Pablo Picasso ?
Bobigny – Pablo Picasso
['Bobigny – Pablo Picasso', 'named after', {'concept': 'common name'}] ['Église de Pantin', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bobigny_–_Pablo_Picasso property:named_after ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q593257,P138,c(Q502895))
['Q593257', 'P138', {'concept': 'Q502895'}]
['Bobigny – Pablo Picasso', 'named after', {'concept': 'common name'}]
[]
SYSTEM
1
Q5593
(Q593257,P138,c(Q502895))
[ANSWER]
['Q593257', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q593257 property:P138 ?z . ?z rdf:type ontology:Q502895 }
Pablo Picasso
1
['Bobigny – Pablo Picasso', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Bobigny_–_Pablo_Picasso property:named_after ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q203108
P161
Q502895
USER
How many people starred in TMNT ?
(Q203108,P161,c(Q502895))
action count
action filter_type
action find
entity Q203108
relation P161
type Q502895
['Q203108', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Q203108 property:P161 ?p . ?p rdf:type ontology:Q502895 }
TMNT
action count
action filter_type
action find
entity TMNT
relation cast member
type common name
['TMNT', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:TMNT property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
common name
SYSTEM
14
Q180852 Q193048 Q489831 Q318885 Q847133 Q16296 Q472746 Q6849459 Q313266 Q1147104 Q178348 Q180665 Q2536187 Q488335
(Q203108,P161,c(Q502895))
action count
action filter_type
action find
entity Q203108
relation P161
type Q502895
[ANSWER]
['Q203108', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Q203108 property:P161 ?p . ?p rdf:type ontology:Q502895 }
Zhang Ziyi Laurence Fishburne Kevin Smith Mako Iwamatsu Fred Tatasciore Patrick Stewart Mitchell Whitfield Mikey Kelley John DiMaggio Nolan North Chris Evans Sarah Michelle Gellar James Arnold Taylor Kevin Michael Richardson
14
action count
action filter_type
action find
entity TMNT
relation cast member
type common name
['TMNT', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:TMNT property:cast_member ?p . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q937890
Q502895
USER
And what about Rasputin, the Mad Monk?
(Q937890,P161,c(Q502895))
action count
action filter_type
action find
entity Q937890
relation P161
type Q502895
['Q937890', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q937890 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Rasputin, the Mad Monk
action count
action filter_type
action find
entity Rasputin, the Mad Monk
relation cast member
type common name
['Rasputin, the Mad Monk', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Rasputin,_the_Mad_Monk property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
12
(Q937890,P161,c(Q502895))
action count
action filter_type
action find
entity Q937890
relation P161
type Q502895
[ANSWER]
['Q937890', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q937890 property:P161 ?o . ?o rdf:type ontology:Q502895 }
12
action count
action filter_type
action find
entity Rasputin, the Mad Monk
relation cast member
type common name
['Rasputin, the Mad Monk', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Rasputin,_the_Mad_Monk property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P559
Q55488 Q34442
USER
How many roads have exactly 1 railway station as the terminus ?
(c(Q34442),P559,c(Q55488))
action count
action equal
action find_tuple_counts
relation P559
type Q34442
type Q55488
value 1
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?i ) WHERE { ?t rdf:type ontology:Q55488 . ?z rdf:type ontology:Q34442 . ?z property:P559 ?t } GROUP BY ?z } . FILTER ( ?i = 1 ) }
action count
action equal
action find_tuple_counts
relation terminus
type road
type railway station
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?i ) WHERE { ?t rdf:type ontology:railway_station . ?z rdf:type ontology:road . ?z property:terminus ?t } GROUP BY ?z } . FILTER ( ?i = 1 ) }
[]
railway station road
SYSTEM
1
Q785026
(c(Q34442),P559,c(Q55488))
action count
action equal
action find_tuple_counts
relation P559
type Q34442
type Q55488
value 1
[ANSWER]
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q55488'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?i ) WHERE { ?t rdf:type ontology:Q55488 . ?z rdf:type ontology:Q34442 . ?z property:P559 ?t } GROUP BY ?z } . FILTER ( ?i = 1 ) }
Rigaer Straße
1
action count
action equal
action find_tuple_counts
relation terminus
type road
type railway station
value 1
[{'concept': 'road'}, 'terminus', {'concept': 'railway station'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?i ) WHERE { ?t rdf:type ontology:railway_station . ?z rdf:type ontology:road . ?z property:terminus ?t } GROUP BY ?z } . FILTER ( ?i = 1 ) }
[]