Simple Question (Direct)
Simple Question
Q135491
P57
Q502895
USER
Who was the director of White Fang ?
(Q135491,P57,c(Q502895))
action filter_type
action find
entity Q135491
relation P57
type Q502895
['Q135491', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q135491 property:P57 ?v . ?v rdf:type ontology:Q502895 }
White Fang
action filter_type
action find
entity White Fang
relation director
type common name
['White Fang', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:White_Fang property:director ?v . ?v rdf:type ontology:common_name }
[]
common name
Q1340565
SYSTEM
Randal Kleiser
Q1340565
(Q135491,P57,c(Q502895))
action filter_type
action find
entity Q135491
relation P57
type Q502895
The director of White Fang was Hans [ANSWER]
['Q135491', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q135491 property:P57 ?v . ?v rdf:type ontology:Q502895 }
Randal Kleiser
The director of White Fang was Hans Randal Kleiser
Randal Kleiser
action filter_type
action find
entity White Fang
relation director
type common name
['White Fang', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:White_Fang property:director ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q135491
P1431
Q502895
USER
Whose production are that work of art of ?
(Q1340565,P1431,c(Q502895))
action filter_type
action find
entity Q135491
relation P1431
type Q502895
['Q1340565', 'P1431', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q135491 property:P1431 ?f . ?f rdf:type ontology:Q502895 }
White Fang
action filter_type
action find
entity White Fang
relation executive producer
type common name
['Randal Kleiser', 'executive producer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:White_Fang property:executive_producer ?f . ?f rdf:type ontology:common_name }
[]
common name
Q503720 Q25917121
SYSTEM
Andrew Bergman, Mike Lobell
Q503720 Q25917121
(Q1340565,P1431,c(Q502895))
action filter_type
action find
entity Q135491
relation P1431
type Q502895
[ANSWERS] are that work of art of
['Q1340565', 'P1431', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q135491 property:P1431 ?f . ?f rdf:type ontology:Q502895 }
Andrew Bergman Mike Lobell
Andrew Bergman and Mike Lobell are that work of art of
Andrew Bergman Mike Lobell
action filter_type
action find
entity White Fang
relation executive producer
type common name
['Randal Kleiser', 'executive producer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:White_Fang property:executive_producer ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 3711 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3711
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:P1303 ?m . ?w rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?d = 3711 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3711
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:instrument ?m . ?w rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?d = 3711 ) }
[]
musical instrument common name
Q8355 Q1444
SYSTEM
violin, organ
Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3711
Approximately 3711 people know how [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:P1303 ?m . ?w rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?d = 3711 ) }
violin organ
Approximately 3711 people know how violin and organ
violin organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3711
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:instrument ?m . ?w rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?d = 3711 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8355 Q1444
P425
Q12737077
USER
Which occupations do those musical instruments belong to ?
(c(Q12737077),P425,Q8355) (c(Q12737077),P425,Q1444)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q8355'] [{'concept': 'Q12737077'}, 'P425', 'Q1444']
SELECT DISTINCT ?x WHERE { VALUES ( ?v ) { ( resource:Q8355 ) ( resource:Q1444 ) } . ?x property:P425 ?v . ?x rdf:type ontology:Q12737077 }
violin organ
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'violin'] [{'concept': 'occupation'}, 'field of this occupation', 'organ']
SELECT DISTINCT ?x WHERE { VALUES ( ?v ) { ( resource:violin ) ( resource:organ ) } . ?x property:field_of_this_occupation ?v . ?x rdf:type ontology:occupation }
[]
occupation
Q1259917 Q765778 Q1937431
SYSTEM
violinist, organist, organ maker
Q1259917 Q765778 Q1937431
(c(Q12737077),P425,Q8355) (c(Q12737077),P425,Q1444)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
Those musical instruments belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q8355'] [{'concept': 'Q12737077'}, 'P425', 'Q1444']
SELECT DISTINCT ?x WHERE { VALUES ( ?v ) { ( resource:Q8355 ) ( resource:Q1444 ) } . ?x property:P425 ?v . ?x rdf:type ontology:Q12737077 }
violinist organist organ maker
Those musical instruments belong to the violinist, organist and organ maker
violinist organist organ maker
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'violin'] [{'concept': 'occupation'}, 'field of this occupation', 'organ']
SELECT DISTINCT ?x WHERE { VALUES ( ?v ) { ( resource:violin ) ( resource:organ ) } . ?x property:field_of_this_occupation ?v . ?x rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q765778
P39
Q502895
USER
Which person was appointed for the position of that occupation ?
(c(Q502895),P39,Q765778)
action filter_type
action find_reverse
entity Q765778
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q765778']
SELECT DISTINCT ?m WHERE { ?m property:P39 resource:Q765778 . ?m rdf:type ontology:Q502895 }
organist
action filter_type
action find_reverse
entity organist
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'organist']
SELECT DISTINCT ?m WHERE { ?m property:position_held resource:organist . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q765778
SYSTEM
Did you mean organist ?
Q1259917 Q765778 Q1937431
(c(Q502895),P39,Q1259917) (c(Q502895),P39,Q765778) (c(Q502895),P39,Q1937431)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q1259917'] [{'concept': 'Q502895'}, 'P39', 'Q765778'] [{'concept': 'Q502895'}, 'P39', 'Q1937431']
SELECT DISTINCT ?m WHERE { ?m property:P39 resource:Q765778 . ?m rdf:type ontology:Q502895 }
violinist organist organ maker
Did you mean organist ?
organist
[{'concept': 'common name'}, 'position held', 'violinist'] [{'concept': 'common name'}, 'position held', 'organist'] [{'concept': 'common name'}, 'position held', 'organ maker']
SELECT DISTINCT ?m WHERE { ?m property:position_held resource:organist . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q765778)
[{'concept': 'Q502895'}, 'P39', 'Q765778']
[{'concept': 'common name'}, 'position held', 'organist']
[]
Q3176781
SYSTEM
Jehan Perrenet
Q3176781
(c(Q502895),P39,Q765778)
action filter_type
action find_reverse
entity Q765778
relation P39
type Q502895
[ANSWER] was appointed for the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q765778']
SELECT DISTINCT ?m WHERE { ?m property:P39 resource:Q765778 . ?m rdf:type ontology:Q502895 }
Jehan Perrenet
Jehan Perrenet was appointed for the position of that occupation
Jehan Perrenet
action filter_type
action find_reverse
entity organist
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'organist']
SELECT DISTINCT ?m WHERE { ?m property:position_held resource:organist . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 2650 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2650
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?q = 2650 ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?q ) WHERE { ?c rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?c } GROUP BY ?c } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2650
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?q = 2650 ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?q ) WHERE { ?c rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?c } GROUP BY ?c } }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2650
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?q = 2650 ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?q ) WHERE { ?c rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?c } GROUP BY ?c } }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2650
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { FILTER ( ?q = 2650 ) . { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?q ) WHERE { ?c rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?c } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1340565
P69
Q163740
USER
Which nonprofit organization is the alma mater of Randal Kleiser ?
(Q1340565,P69,c(Q163740))
action filter_type
action find
entity Q1340565
relation P69
type Q163740
['Q1340565', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?f WHERE { resource:Q1340565 property:P69 ?f . ?f rdf:type ontology:Q163740 }
Randal Kleiser
action filter_type
action find
entity Randal Kleiser
relation educated at
type nonprofit organization
['Randal Kleiser', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?f WHERE { resource:Randal_Kleiser property:educated_at ?f . ?f rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q4614
SYSTEM
University of Southern California
Q4614
(Q1340565,P69,c(Q163740))
action filter_type
action find
entity Q1340565
relation P69
type Q163740
[ANSWER] is the alma mater of Randal Kleiser
['Q1340565', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?f WHERE { resource:Q1340565 property:P69 ?f . ?f rdf:type ontology:Q163740 }
University of Southern California
University of Southern California is the alma mater of Randal Kleiser
University of Southern California
action filter_type
action find
entity Randal Kleiser
relation educated at
type nonprofit organization
['Randal Kleiser', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?f WHERE { resource:Randal_Kleiser property:educated_at ?f . ?f rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5362867
Q163740
USER
And how about Elizabeth Graver?
(Q5362867,P69,c(Q163740))
action filter_type
action find
entity Q5362867
relation P69
type Q163740
['Q5362867', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q5362867 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Elizabeth Graver
action filter_type
action find
entity Elizabeth Graver
relation educated at
type nonprofit organization
['Elizabeth Graver', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Elizabeth_Graver property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49115 Q49167 Q777403
SYSTEM
Cornell University, Wesleyan University, Washington University in St. Louis
Q49115 Q49167 Q777403
(Q5362867,P69,c(Q163740))
action filter_type
action find
entity Q5362867
relation P69
type Q163740
[ANSWERS]
['Q5362867', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q5362867 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Cornell University Wesleyan University Washington University in St. Louis
Cornell University Wesleyan University Washington University in St. Louis
action filter_type
action find
entity Elizabeth Graver
relation educated at
type nonprofit organization
['Elizabeth Graver', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Elizabeth_Graver property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]