Simple Question (Direct)
Simple Question
Q5651089
P166
Q618779
USER
Which awards were received by Hansford T. Johnson ?
(Q5651089,P166,c(Q618779))
action filter_type
action find
entity Q5651089
relation P166
type Q618779
['Q5651089', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q5651089 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Hansford T. Johnson
action filter_type
action find
entity Hansford T. Johnson
relation award received
type award
['Hansford T. Johnson', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Hansford_T._Johnson property:award_received ?w . ?w rdf:type ontology:award }
[]
award
Q1754110 Q852071 Q724443
SYSTEM
Distinguished Flying Cross, Silver Star, Legion of Merit
Q1754110 Q852071 Q724443
(Q5651089,P166,c(Q618779))
action filter_type
action find
entity Q5651089
relation P166
type Q618779
[ANSWERS]
['Q5651089', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q5651089 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Distinguished Flying Cross Silver Star Legion of Merit
Distinguished Flying Cross Silver Star Legion of Merit
action filter_type
action find
entity Hansford T. Johnson
relation award received
type award
['Hansford T. Johnson', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Hansford_T._Johnson property:award_received ?w . ?w rdf:type ontology:award }
[]
Clarification
Simple Question|Single Entity|Indirect
Q724443
P241
Q502895
USER
Which person is known to be linked with the army branch named that award ?
(c(Q502895),P241,Q724443)
action filter_type
action find_reverse
entity Q724443
relation P241
type Q502895
[{'concept': 'Q502895'}, 'P241', 'Q724443']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P241 resource:Q724443 }
Legion of Merit
action filter_type
action find_reverse
entity Legion of Merit
relation military branch
type common name
[{'concept': 'common name'}, 'military branch', 'Legion of Merit']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:military_branch resource:Legion_of_Merit }
[]
common name
Clarification for simple ques.
Q724443
SYSTEM
Did you mean Legion of Merit ?
Q1754110 Q852071 Q724443
(c(Q502895),P241,Q1754110) (c(Q502895),P241,Q852071) (c(Q502895),P241,Q724443)
[ANSWER]
[{'concept': 'Q502895'}, 'P241', 'Q1754110'] [{'concept': 'Q502895'}, 'P241', 'Q852071'] [{'concept': 'Q502895'}, 'P241', 'Q724443']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P241 resource:Q724443 }
Distinguished Flying Cross Silver Star Legion of Merit
Did you mean Legion of Merit ?
Legion of Merit
[{'concept': 'common name'}, 'military branch', 'Distinguished Flying Cross'] [{'concept': 'common name'}, 'military branch', 'Silver Star'] [{'concept': 'common name'}, 'military branch', 'Legion of Merit']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:military_branch resource:Legion_of_Merit }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P241,Q724443)
[{'concept': 'Q502895'}, 'P241', 'Q724443']
[{'concept': 'common name'}, 'military branch', 'Legion of Merit']
[]
Q24852309
SYSTEM
Charles Kettles
Q24852309
(c(Q502895),P241,Q724443)
action filter_type
action find_reverse
entity Q724443
relation P241
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P241', 'Q724443']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P241 resource:Q724443 }
Charles Kettles
Charles Kettles
action filter_type
action find_reverse
entity Legion of Merit
relation military branch
type common name
[{'concept': 'common name'}, 'military branch', 'Legion of Merit']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:military_branch resource:Legion_of_Merit }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?u = ?i ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?u = ?i ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?u = ?i ) }
piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?u = ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P106
Q502895
USER
Who has a job as that musical instrument ?
(c(Q502895),P106,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q5994']
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q5994 . ?t rdf:type ontology:Q502895 }
piano
action filter_type
action find_reverse
entity piano
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'piano']
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:piano . ?t rdf:type ontology:common_name }
[]
common name
Q12261098
SYSTEM
Judith Jauregi
Q12261098
(c(Q502895),P106,Q5994)
action filter_type
action find_reverse
entity Q5994
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q5994']
SELECT DISTINCT ?t WHERE { ?t property:P106 resource:Q5994 . ?t rdf:type ontology:Q502895 }
Judith Jauregi
Judith Jauregi
action filter_type
action find_reverse
entity piano
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'piano']
SELECT DISTINCT ?t WHERE { ?t property:occupation resource:piano . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5994
P61
Q502895
USER
Which person discovered or invented piano ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q5994 property:P61 ?u . ?u rdf:type ontology:Q502895 }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:piano property:discoverer_or_inventor ?u . ?u rdf:type ontology:common_name }
[]
common name
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q5994 property:P61 ?u . ?u rdf:type ontology:Q502895 }
Bartolomeo Cristofori
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:piano property:discoverer_or_inventor ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1481976
Q502895
USER
And also tell me about (18215) 4792 P-L?
(Q1481976,P61,c(Q502895))
action filter_type
action find
entity Q1481976
relation P61
type Q502895
['Q1481976', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q1481976 property:P61 ?y . ?y rdf:type ontology:Q502895 }
(18215) 4792 P-L
action filter_type
action find
entity (18215) 4792 P-L
relation discoverer or inventor
type common name
['(18215) 4792 P-L', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:(18215)_4792_P-L property:discoverer_or_inventor ?y . ?y rdf:type ontology:common_name }
[]
common name
Q336095 Q312255 Q231642
SYSTEM
Cornelis Johannes van Houten, Tom Gehrels, Ingrid van Houten-Groeneveld
Q336095 Q312255 Q231642
(Q1481976,P61,c(Q502895))
action filter_type
action find
entity Q1481976
relation P61
type Q502895
[ANSWERS]
['Q1481976', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q1481976 property:P61 ?y . ?y rdf:type ontology:Q502895 }
Cornelis Johannes van Houten Tom Gehrels Ingrid van Houten-Groeneveld
Cornelis Johannes van Houten Tom Gehrels Ingrid van Houten-Groeneveld
action filter_type
action find
entity (18215) 4792 P-L
relation discoverer or inventor
type common name
['(18215) 4792 P-L', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:(18215)_4792_P-L property:discoverer_or_inventor ?y . ?y rdf:type ontology:common_name }
[]