Simple Question (Direct)
Simple Question
Q7312090
P86
Q502895
USER
Who was Remote Control composed by ?
(Q7312090,P86,c(Q502895))
action filter_type
action find
entity Q7312090
relation P86
type Q502895
['Q7312090', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7312090 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Remote Control
action filter_type
action find
entity Remote Control
relation composer
type common name
['Remote Control', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Remote_Control property:composer ?g . ?g rdf:type ontology:common_name }
[]
common name
Q1483469
SYSTEM
Peter Bernstein
Q1483469
(Q7312090,P86,c(Q502895))
action filter_type
action find
entity Q7312090
relation P86
type Q502895
[ANSWER]
['Q7312090', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7312090 property:P86 ?g . ?g rdf:type ontology:Q502895 }
Peter Bernstein
Peter Bernstein
action filter_type
action find
entity Remote Control
relation composer
type common name
['Remote Control', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Remote_Control property:composer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7312090
P161
Q502895
USER
Who were casted in that work of art ?
(Q1483469,P161,c(Q502895))
action filter_type
action find
entity Q7312090
relation P161
type Q502895
['Q1483469', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7312090 property:P161 ?e . ?e rdf:type ontology:Q502895 }
Remote Control
action filter_type
action find
entity Remote Control
relation cast member
type common name
['Peter Bernstein', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Remote_Control property:cast_member ?e . ?e rdf:type ontology:common_name }
[]
common name
Q827443 Q495549 Q452963
SYSTEM
Bert Remsen, Jennifer Tilly, Frank Beddor
Q517405 Q495549 Q452963 Q827443
(Q1483469,P161,c(Q502895))
action filter_type
action find
entity Q7312090
relation P161
type Q502895
[ANSWERS]
['Q1483469', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7312090 property:P161 ?e . ?e rdf:type ontology:Q502895 }
Kevin Dillon Jennifer Tilly Frank Beddor Bert Remsen
Bert Remsen Jennifer Tilly Frank Beddor
action filter_type
action find
entity Remote Control
relation cast member
type common name
['Peter Bernstein', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Remote_Control property:cast_member ?e . ?e rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19205237
P161
Q838948
USER
Does Hope star those people as actor ?
(Q19205237,P161,Q827443) (Q19205237,P161,Q495549) (Q19205237,P161,Q452963)
action is_in
entity prev_answer
action find
entity Q19205237
relation P161
['Q19205237', 'P161', 'Q827443'] ['Q19205237', 'P161', 'Q495549'] ['Q19205237', 'P161', 'Q452963']
ASK WHERE { resource:Q19205237 property:P161 ?n . VALUES ( ?n ) { ( resource:Q517405 ) ( resource:Q495549 ) ( resource:Q452963 ) } }
Hope
action is_in
entity prev_answer
action find
entity Hope
relation cast member
['Hope', 'cast member', 'Bert Remsen'] ['Hope', 'cast member', 'Jennifer Tilly'] ['Hope', 'cast member', 'Frank Beddor']
ASK WHERE { resource:Hope property:cast_member ?n . VALUES ( ?n ) { ( resource:Kevin_Dillon ) ( resource:Jennifer_Tilly ) ( resource:Frank_Beddor ) } }
[]
work of art
SYSTEM
NO
(Q19205237,P161,Q827443) (Q19205237,P161,Q495549) (Q19205237,P161,Q452963)
action is_in
entity prev_answer
action find
entity Q19205237
relation P161
[ANSWER]
['Q19205237', 'P161', 'Q827443'] ['Q19205237', 'P161', 'Q495549'] ['Q19205237', 'P161', 'Q452963']
ASK WHERE { resource:Q19205237 property:P161 ?n . VALUES ( ?n ) { ( resource:Q517405 ) ( resource:Q495549 ) ( resource:Q452963 ) } }
No
action is_in
entity prev_answer
action find
entity Hope
relation cast member
['Hope', 'cast member', 'Bert Remsen'] ['Hope', 'cast member', 'Jennifer Tilly'] ['Hope', 'cast member', 'Frank Beddor']
ASK WHERE { resource:Hope property:cast_member ?n . VALUES ( ?n ) { ( resource:Kevin_Dillon ) ( resource:Jennifer_Tilly ) ( resource:Frank_Beddor ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 2477 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2477
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P1303 ?i . ?d rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?s >= 2477 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2477
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:instrument ?i . ?d rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?s >= 2477 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2477
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P1303 ?i . ?d rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . FILTER ( ?s >= 2477 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2477
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:instrument ?i . ?d rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . FILTER ( ?s >= 2477 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q43229 Q191067 Q502895
USER
Which people have been referred in atleast 1 organizations or articles ?
(c(Q502895),P248,c(Q43229)|c(Q191067))
action atleast
action union
action find_tuple_counts
relation P248
type Q502895
type Q43229
action find_tuple_counts
relation P248
type Q502895
type Q191067
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q43229'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?o WHERE { { ?o property:P248 ?d . ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q43229 } UNION { ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q191067 . ?o property:P248 ?d } } GROUP BY ?o } . FILTER ( ?v >= 1 ) }
action atleast
action union
action find_tuple_counts
relation stated in
type common name
type organization
action find_tuple_counts
relation stated in
type common name
type article
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'organization'}, {'concept': 'article'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?o WHERE { { ?o property:stated_in ?d . ?o rdf:type ontology:common_name . ?d rdf:type ontology:organization } UNION { ?o rdf:type ontology:common_name . ?d rdf:type ontology:article . ?o property:stated_in ?d } } GROUP BY ?o } . FILTER ( ?v >= 1 ) }
[]
organization article common name
Q6251897 Q16031260 Q17308862
SYSTEM
John Parker, John Murphy, Colin Campbell
Q5232852 Q6260667 Q16062974 Q16857953 Q16106932 Q8004400 Q16031260 Q15994621 Q15994622 Q17308862 Q6263007 Q5144957 Q6221424 Q15994581 Q16859187 Q6145005 Q6251897 Q5537322
(c(Q502895),P248,c(Q43229)|c(Q191067))
action atleast
action union
action find_tuple_counts
relation P248
type Q502895
type Q43229
action find_tuple_counts
relation P248
type Q502895
type Q191067
value 1
[ANSWERS]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q43229'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?o WHERE { { ?o property:P248 ?d . ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q43229 } UNION { ?o rdf:type ontology:Q502895 . ?d rdf:type ontology:Q191067 . ?o property:P248 ?d } } GROUP BY ?o } . FILTER ( ?v >= 1 ) }
David Davies John Thompson James Walker John Martin David Evans William Anderson John Murphy John Martin John Martin Colin Campbell John Ward Colin Campbell John Bell John Lewis James Walker James Walker John Parker George Brown
John Parker John Murphy Colin Campbell
action atleast
action union
action find_tuple_counts
relation stated in
type common name
type organization
action find_tuple_counts
relation stated in
type common name
type article
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'organization'}, {'concept': 'article'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?o WHERE { { ?o property:stated_in ?d . ?o rdf:type ontology:common_name . ?d rdf:type ontology:organization } UNION { ?o rdf:type ontology:common_name . ?d rdf:type ontology:article . ?o property:stated_in ?d } } GROUP BY ?o } . FILTER ( ?v >= 1 ) }
[]