Simple Question (Direct)
Simple Question
Q6227367
P607
Q198
USER
What was the war that John Cowans took part in
(Q6227367,P607,c(Q198))
action filter_type
action find
entity Q6227367
relation P607
type Q198
['Q6227367', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q198 . resource:Q6227367 property:P607 ?j }
John Cowans
action filter_type
action find
entity John Cowans
relation conflict
type war
['John Cowans', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:war . resource:John_Cowans property:conflict ?j }
[]
war
Q361
SYSTEM
World War I
Q361
(Q6227367,P607,c(Q198))
action filter_type
action find
entity Q6227367
relation P607
type Q198
The war that John Cowans took part in was in [ANSWER]
['Q6227367', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q198 . resource:Q6227367 property:P607 ?j }
World War I
The war that John Cowans took part in was in World War I
World War I
action filter_type
action find
entity John Cowans
relation conflict
type war
['John Cowans', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:war . resource:John_Cowans property:conflict ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6227367
P166
Q2003221
USER
What were won by John Cowans ?
(Q6227367,P166,c(Q2003221))
action filter_type
action find
entity Q6227367
relation P166
type Q2003221
['Q6227367', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?e WHERE { resource:Q6227367 property:P166 ?e . ?e rdf:type ontology:Q2003221 }
John Cowans
action filter_type
action find
entity John Cowans
relation award received
type chivalric order
['John Cowans', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?e WHERE { resource:John_Cowans property:award_received ?e . ?e rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177423 Q12177451
SYSTEM
Knight Grand Cross of the Order of St Michael and St George, Knight Grand Cross of the Order of the Bath
Q12177423 Q12177451
(Q6227367,P166,c(Q2003221))
action filter_type
action find
entity Q6227367
relation P166
type Q2003221
[ANSWERS] were won by John Cowans
['Q6227367', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?e WHERE { resource:Q6227367 property:P166 ?e . ?e rdf:type ontology:Q2003221 }
Knight Grand Cross of the Order of St Michael and St George Knight Grand Cross of the Order of the Bath
Knight Grand Cross of the Order of St Michael and St George and Knight Grand Cross of the Order of the Bath were won by John Cowans
Knight Grand Cross of the Order of St Michael and St George Knight Grand Cross of the Order of the Bath
action filter_type
action find
entity John Cowans
relation award received
type chivalric order
['John Cowans', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?e WHERE { resource:John_Cowans property:award_received ?e . ?e rdf:type ontology:chivalric_order }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21104172
Q2003221
USER
And what about Hugh Duberly?
(Q21104172,P166,c(Q2003221))
action filter_type
action find
entity Q21104172
relation P166
type Q2003221
['Q21104172', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?x WHERE { resource:Q21104172 property:P166 ?x . ?x rdf:type ontology:Q2003221 }
Hugh Duberly
action filter_type
action find
entity Hugh Duberly
relation award received
type chivalric order
['Hugh Duberly', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?x WHERE { resource:Hugh_Duberly property:award_received ?x . ?x rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
(Q21104172,P166,c(Q2003221))
action filter_type
action find
entity Q21104172
relation P166
type Q2003221
[ANSWER]
['Q21104172', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?x WHERE { resource:Q21104172 property:P166 ?x . ?x rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
Commander of the Order of the British Empire
action filter_type
action find
entity Hugh Duberly
relation award received
type chivalric order
['Hugh Duberly', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?x WHERE { resource:Hugh_Duberly property:award_received ?x . ?x rdf:type ontology:chivalric_order }
[]
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 atleast 3266 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3266
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?n >= 3266 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3266
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?n >= 3266 ) }
[]
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 3266
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?n >= 3266 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3266
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?n >= 3266 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21104172
P21
Q290
USER
What is the sex of Hugh Duberly ?
(Q21104172,P21,c(Q290))
action filter_type
action find
entity Q21104172
relation P21
type Q290
['Q21104172', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q21104172 property:P21 ?m . ?m rdf:type ontology:Q290 }
Hugh Duberly
action filter_type
action find
entity Hugh Duberly
relation gender
type sex
['Hugh Duberly', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Duberly property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21104172,P21,c(Q290))
action filter_type
action find
entity Q21104172
relation P21
type Q290
The sex of Hugh Duberly is a [ANSWER]
['Q21104172', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q21104172 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of Hugh Duberly is a male
male
action filter_type
action find
entity Hugh Duberly
relation gender
type sex
['Hugh Duberly', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hugh_Duberly property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q15726480 Q21104172
P21
Q290
USER
Or Liam Henderson?
OR((Q21104172,P21,c(Q290)), (Q15726480,P21,c(Q290)))
action filter_type
action union
action find
entity Q21104172
relation P21
action find
entity Q15726480
relation P21
type Q290
{'OR': [['Q21104172', 'P21', {'concept': 'Q290'}], ['Q15726480', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . { { resource:Q21104172 property:P21 ?q } UNION { resource:Q15726480 property:P21 ?q } } }
Liam Henderson Hugh Duberly
action filter_type
action union
action find
entity Hugh Duberly
relation gender
action find
entity Liam Henderson
relation gender
type sex
{'OR': [['Hugh Duberly', 'gender', {'concept': 'sex'}], ['Liam Henderson', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . { { resource:Hugh_Duberly property:gender ?q } UNION { resource:Liam_Henderson property:gender ?q } } }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q21104172,P21,c(Q290)), (Q15726480,P21,c(Q290)))
action filter_type
action union
action find
entity Q21104172
relation P21
action find
entity Q15726480
relation P21
type Q290
[ANSWER]
{'OR': [['Q21104172', 'P21', {'concept': 'Q290'}], ['Q15726480', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . { { resource:Q21104172 property:P21 ?q } UNION { resource:Q15726480 property:P21 ?q } } }
male
male
action filter_type
action union
action find
entity Hugh Duberly
relation gender
action find
entity Liam Henderson
relation gender
type sex
{'OR': [['Hugh Duberly', 'gender', {'concept': 'sex'}], ['Liam Henderson', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . { { resource:Hugh_Duberly property:gender ?q } UNION { resource:Liam_Henderson property:gender ?q } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q7926064
P21
Q502895
USER
Is Victor Kneale a that sex ?
(Q7926064,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7926064
relation P21
['Q7926064', 'P21', 'Q6581097']
ASK WHERE { resource:Q7926064 property:P21 resource:Q6581097 }
male Victor Kneale
action is_in
entity male
action find
entity Victor Kneale
relation gender
['Victor Kneale', 'gender', 'male']
ASK WHERE { resource:Victor_Kneale property:gender resource:male }
[]
common name
SYSTEM
YES
(Q7926064,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7926064
relation P21
[ANSWER]
['Q7926064', 'P21', 'Q6581097']
ASK WHERE { resource:Q7926064 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Victor Kneale
relation gender
['Victor Kneale', 'gender', 'male']
ASK WHERE { resource:Victor_Kneale property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 1728 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1728
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?k = 1728 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1728
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?k = 1728 ) }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1728
[ANSWERS] are played by around 1728 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?k = 1728 ) }
viola bass guitar double bass trumpet cello organ drum kit
Viola, bass guitar and double bass are played by around 1728 people
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1728
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?k = 1728 ) }
[]