Simple Question (Direct)
Simple Question
Q391450
P509
Q3839081
USER
What was the cause of death of Steve Currie ?
(Q391450,P509,c(Q3839081))
action filter_type
action find
entity Q391450
relation P509
type Q3839081
['Q391450', 'P509', {'concept': 'Q3839081'}]
SELECT DISTINCT ?x WHERE { resource:Q391450 property:P509 ?x . ?x rdf:type ontology:Q3839081 }
Steve Currie
action filter_type
action find
entity Steve Currie
relation cause of death
type disaster
['Steve Currie', 'cause of death', {'concept': 'disaster'}]
SELECT DISTINCT ?x WHERE { resource:Steve_Currie property:cause_of_death ?x . ?x rdf:type ontology:disaster }
[]
disaster
Q9687
SYSTEM
traffic accident
Q9687
(Q391450,P509,c(Q3839081))
action filter_type
action find
entity Q391450
relation P509
type Q3839081
The cause of death of Steve Currie was a [ANSWER]
['Q391450', 'P509', {'concept': 'Q3839081'}]
SELECT DISTINCT ?x WHERE { resource:Q391450 property:P509 ?x . ?x rdf:type ontology:Q3839081 }
traffic accident
The cause of death of Steve Currie was a traffic accident
traffic accident
action filter_type
action find
entity Steve Currie
relation cause of death
type disaster
['Steve Currie', 'cause of death', {'concept': 'disaster'}]
SELECT DISTINCT ?x WHERE { resource:Steve_Currie property:cause_of_death ?x . ?x rdf:type ontology:disaster }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q391450
P1196
Q1190554
USER
What manner did Steve Currie die ?
(Q391450,P1196,c(Q1190554))
action filter_type
action find
entity Q391450
relation P1196
type Q1190554
['Q391450', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1190554 . resource:Q391450 property:P1196 ?t }
Steve Currie
action filter_type
action find
entity Steve Currie
relation manner of death
type event
['Steve Currie', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:event . resource:Steve_Currie property:manner_of_death ?t }
[]
event
Q171558
SYSTEM
accident
Q171558
(Q391450,P1196,c(Q1190554))
action filter_type
action find
entity Q391450
relation P1196
type Q1190554
Steve Currie died an [ANSWER]
['Q391450', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1190554 . resource:Q391450 property:P1196 ?t }
accident
Steve Currie died an accident
accident
action filter_type
action find
entity Steve Currie
relation manner of death
type event
['Steve Currie', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:event . resource:Steve_Currie property:manner_of_death ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q391450
P21
Q290
USER
Which sex does Steve Currie have ?
(Q391450,P21,c(Q290))
action filter_type
action find
entity Q391450
relation P21
type Q290
['Q391450', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q391450 property:P21 ?s }
Steve Currie
action filter_type
action find
entity Steve Currie
relation gender
type sex
['Steve Currie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Steve_Currie property:gender ?s }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q391450,P21,c(Q290))
action filter_type
action find
entity Q391450
relation P21
type Q290
Steve Currie has a [ANSWER]
['Q391450', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . resource:Q391450 property:P21 ?s }
male
Steve Currie has a male
male
action filter_type
action find
entity Steve Currie
relation gender
type sex
['Steve Currie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . resource:Steve_Currie property:gender ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q310515
Q290
USER
And how about Bernard Hill?
(Q310515,P21,c(Q290))
action filter_type
action find
entity Q310515
relation P21
type Q290
['Q310515', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q310515 property:P21 ?s . ?s rdf:type ontology:Q290 }
Bernard Hill
action filter_type
action find
entity Bernard Hill
relation gender
type sex
['Bernard Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Bernard_Hill property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q310515,P21,c(Q290))
action filter_type
action find
entity Q310515
relation P21
type Q290
[ANSWER]
['Q310515', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q310515 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Bernard Hill
relation gender
type sex
['Bernard Hill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Bernard_Hill property:gender ?s . ?s rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1190554 Q895526 Q502895
USER
How many events are exactly 1 authority organs and people a part of ?
(c(Q895526)|c(Q502895),P361,c(Q1190554))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q895526
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q502895
value 1
[[{'concept': 'Q895526'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P361 ?h . ?h rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q502895 } UNION { ?h rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q895526 . ?f property:P361 ?h } } GROUP BY ?h } . FILTER ( ?k = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type event
type authority organ
action find_reverse_tuple_counts
relation part of
type event
type common name
value 1
[[{'concept': 'authority organ'}, {'concept': 'common name'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:part_of ?h . ?h rdf:type ontology:event . ?f rdf:type ontology:common_name } UNION { ?h rdf:type ontology:event . ?f rdf:type ontology:authority_organ . ?f property:part_of ?h } } GROUP BY ?h } . FILTER ( ?k = 1 ) }
[]
event authority organ common name
SYSTEM
4
Q20857240 Q8016240 Q6644923 Q253684
(c(Q895526)|c(Q502895),P361,c(Q1190554))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q895526
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q502895
value 1
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P361 ?h . ?h rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q502895 } UNION { ?h rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q895526 . ?f property:P361 ?h } } GROUP BY ?h } . FILTER ( ?k = 1 ) }
European migrant crisis trial Operation Hydra French campaign in Egypt and Syria
4
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type event
type authority organ
action find_reverse_tuple_counts
relation part of
type event
type common name
value 1
[[{'concept': 'authority organ'}, {'concept': 'common name'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:part_of ?h . ?h rdf:type ontology:event . ?f rdf:type ontology:common_name } UNION { ?h rdf:type ontology:event . ?f rdf:type ontology:authority_organ . ?f property:part_of ?h } } GROUP BY ?h } . FILTER ( ?k = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q1190554 Q1190554
USER
Which events are the causes of min number of events ?
(c(Q1190554),P828,Q4373)
action argmin
action find_reverse_tuple_counts
relation P828
type Q1190554
type Q1190554
[{'concept': 'Q1190554'}, 'P828', 'Q4373']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { ?p rdf:type ontology:Q1190554 . ?m rdf:type ontology:Q1190554 . ?m property:P828 ?p } GROUP BY ?p } . FILTER ( ?f = ?d ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?d ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P828 ?a . ?h rdf:type ontology:Q1190554 . ?a rdf:type ontology:Q1190554 } GROUP BY ?a } } }
action argmin
action find_reverse_tuple_counts
relation has cause
type event
type event
[{'concept': 'event'}, 'has cause', 'Battle of White Mountain']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { ?p rdf:type ontology:event . ?m rdf:type ontology:event . ?m property:has_cause ?p } GROUP BY ?p } . FILTER ( ?f = ?d ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?d ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:has_cause ?a . ?h rdf:type ontology:event . ?a rdf:type ontology:event } GROUP BY ?a } } }
[]
event event
Q150701 Q11663 Q4373
SYSTEM
War of the Spanish Succession, weather, Battle of White Mountain
Q41560 Q125928 Q18511800 Q150701 Q2737837 Q11663 Q114953 Q7939 Q4373
(c(Q1190554),P828,Q4373)
action argmin
action find_reverse_tuple_counts
relation P828
type Q1190554
type Q1190554
[ANSWERS] are the causes of min number of events
[{'concept': 'Q1190554'}, 'P828', 'Q4373']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { ?p rdf:type ontology:Q1190554 . ?m rdf:type ontology:Q1190554 . ?m property:P828 ?p } GROUP BY ?p } . FILTER ( ?f = ?d ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?d ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:P828 ?a . ?h rdf:type ontology:Q1190554 . ?a rdf:type ontology:Q1190554 } GROUP BY ?a } } }
greenhouse effect climate change split War of the Spanish Succession Irradiation weather poisoning El Niño Battle of White Mountain
War of the Spanish Succession, weather and Battle of White Mountain are the causes of min number of events
War of the Spanish Succession weather Battle of White Mountain
action argmin
action find_reverse_tuple_counts
relation has cause
type event
type event
[{'concept': 'event'}, 'has cause', 'Battle of White Mountain']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?f ) WHERE { ?p rdf:type ontology:event . ?m rdf:type ontology:event . ?m property:has_cause ?p } GROUP BY ?p } . FILTER ( ?f = ?d ) . { SELECT DISTINCT ( MIN ( ?u ) AS ?d ) { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?h property:has_cause ?a . ?h rdf:type ontology:event . ?a rdf:type ontology:event } GROUP BY ?a } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q1190554 Q895526
USER
How many events are less number of authority organs a component of than that event ?
(c(Q895526),P361,c(Q1190554))
[{'concept': 'Q895526'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q895526 . ?y rdf:type ontology:Q5416694 }
[{'concept': 'authority organ'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:authority_organ . ?y rdf:type ontology:event }
[]
event authority organ
Comparative|Count over More/Less|Single entity type|Clarification
Q4373
SYSTEM
Did you mean Battle of White Mountain ?
(c(Q895526),P361,c(Q1190554))
[ANSWER]
[{'concept': 'Q895526'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q895526 . ?y rdf:type ontology:Q5416694 }
Did you mean Battle of White Mountain ?
Battle of White Mountain
[{'concept': 'authority organ'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:authority_organ . ?y rdf:type ontology:event }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant weather. Could you tell me the answer for that?
(c(Q895526),P361,c(Q1190554))
Q11663
[{'concept': 'Q895526'}, 'P361', {'concept': 'Q1190554'}]
[{'concept': 'authority organ'}, 'part of', {'concept': 'event'}]
[]
SYSTEM
0
(c(Q895526),P361,c(Q1190554))
[ANSWER]
[{'concept': 'Q895526'}, 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q895526 . ?y rdf:type ontology:Q5416694 }
0
[{'concept': 'authority organ'}, 'part of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:authority_organ . ?y rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q391450
P19
Q56061
USER
Which administrative territory is the birthplace of Steve Currie ?
(Q391450,P19,c(Q56061))
action filter_type
action find
entity Q391450
relation P19
type Q56061
['Q391450', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q391450 property:P19 ?s }
Steve Currie
action filter_type
action find
entity Steve Currie
relation place of birth
type administrative territorial entity
['Steve Currie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Steve_Currie property:place_of_birth ?s }
[]
administrative territorial entity
Q179406
SYSTEM
Grimsby
Q179406
(Q391450,P19,c(Q56061))
action filter_type
action find
entity Q391450
relation P19
type Q56061
S [ANSWER] is the birthplace of Steve Currie
['Q391450', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q391450 property:P19 ?s }
Grimsby
S Grimsby is the birthplace of Steve Currie
Grimsby
action filter_type
action find
entity Steve Currie
relation place of birth
type administrative territorial entity
['Steve Currie', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Steve_Currie property:place_of_birth ?s }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q179406 Q145 Q101039
P17
Q15617994
USER
Is that administrative territory present in United Kingdom and Entratico ?
(Q179406,P17,Q145) (Q179406,P17,Q101039)
action is_in
entity Q179406
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q101039
relation P17
['Q179406', 'P17', 'Q145'] ['Q179406', 'P17', 'Q101039']
ASK WHERE { resource:Q179406 property:P17 resource:Q145 . resource:Q179406 property:P17 resource:Q101039 }
Grimsby United Kingdom Entratico
action is_in
entity Grimsby
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Entratico
relation country
['Grimsby', 'country', 'United Kingdom'] ['Grimsby', 'country', 'Entratico']
ASK WHERE { resource:Grimsby property:country resource:United_Kingdom . resource:Grimsby property:country resource:Entratico }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q179406,P17,Q145) (Q179406,P17,Q101039)
action is_in
entity Q179406
action intersection
action find_reverse
entity Q145
relation P17
action find_reverse
entity Q101039
relation P17
[ANSWER]
['Q179406', 'P17', 'Q145'] ['Q179406', 'P17', 'Q101039']
ASK WHERE { resource:Q179406 property:P17 resource:Q145 . resource:Q179406 property:P17 resource:Q101039 }
YES and NO respectively
action is_in
entity Grimsby
action intersection
action find_reverse
entity United Kingdom
relation country
action find_reverse
entity Entratico
relation country
['Grimsby', 'country', 'United Kingdom'] ['Grimsby', 'country', 'Entratico']
ASK WHERE { resource:Grimsby property:country resource:United_Kingdom . resource:Grimsby property:country resource:Entratico }
[]