Simple Question (Direct)
Simple Question
Q7351011
P241
Q781132
USER
Which military branch contains Robert White as its part ?
(Q7351011,P241,c(Q781132))
action filter_type
action find
entity Q7351011
relation P241
type Q781132
['Q7351011', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q7351011 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Robert White
action filter_type
action find
entity Robert White
relation military branch
type military branch
['Robert White', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Robert_White property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
military branch
Q1125021
SYSTEM
Confederate States Army
Q1125021
(Q7351011,P241,c(Q781132))
action filter_type
action find
entity Q7351011
relation P241
type Q781132
U [ANSWER] contains Robert White as its part
['Q7351011', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q7351011 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Confederate States Army
U Confederate States Army contains Robert White as its part
Confederate States Army
action filter_type
action find
entity Robert White
relation military branch
type military branch
['Robert White', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Robert_White property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7351011
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q1125021,P102,c(Q7210356))
action filter_type
action find
entity Q7351011
relation P102
type Q7210356
['Q1125021', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q7351011 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Robert White
action filter_type
action find
entity Robert White
relation member of political party
type political organization
['Confederate States Army', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Robert_White property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q1125021,P102,c(Q7210356))
action filter_type
action find
entity Q7351011
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q1125021', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q7351011 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Democratic Party
That person is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Robert White
relation member of political party
type political organization
['Confederate States Army', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Robert_White property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1046947
P366
Q350604 Q180684 Q781132
USER
How many military branches have their main use as less number of armed conflicts or conflicts than Royal Marines ?
(c(Q781132),P366,c(Q350604)|c(Q180684))
action count
action less
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
action count
action filter_multi_types
action find
entity Q1046947
relation P366
type Q350604
type Q180684
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q180684 ) ( ontology:Q350604 ) } . ?x rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Q1046947 property:P366 ?r . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q350604 ) ( ontology:Q180684 ) } } } } . FILTER ( ?l < ?y ) }
Royal Marines
action count
action less
action union
action find_tuple_counts
relation use
type military branch
type armed conflict
action find_tuple_counts
relation use
type military branch
type conflict
action count
action filter_multi_types
action find
entity Royal Marines
relation use
type armed conflict
type conflict
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:conflict ) ( ontology:armed_conflict ) } . ?x rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Royal_Marines property:use ?r . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:armed_conflict ) ( ontology:conflict ) } } } } . FILTER ( ?l < ?y ) }
[]
armed conflict conflict military branch
SYSTEM
4
Q210606 Q18669736 Q1426835 Q15885502
(c(Q781132),P366,c(Q350604)|c(Q180684))
action count
action less
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
action count
action filter_multi_types
action find
entity Q1046947
relation P366
type Q350604
type Q180684
[ANSWER]
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q180684 ) ( ontology:Q350604 ) } . ?x rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Q1046947 property:P366 ?r . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:Q350604 ) ( ontology:Q180684 ) } } } } . FILTER ( ?l < ?y ) }
2nd Marine Division Jamaica Regiment anti-aircraft artillery Spetsnaz GRU
4
action count
action less
action union
action find_tuple_counts
relation use
type military branch
type armed conflict
action find_tuple_counts
relation use
type military branch
type conflict
action count
action filter_multi_types
action find
entity Royal Marines
relation use
type armed conflict
type conflict
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?v WHERE { VALUES ( ?e ) { ( ontology:conflict ) ( ontology:armed_conflict ) } . ?x rdf:type ?e } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { resource:Royal_Marines property:use ?r . { ?r rdf:type ?p . VALUES ( ?p ) { ( ontology:armed_conflict ) ( ontology:conflict ) } } } } . FILTER ( ?l < ?y ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1046947
P607
Q1190554
USER
What battle was that military branch a part of ?
action filter_type
action find
entity Q1046947
relation P607
type Q1190554
SELECT DISTINCT ?q WHERE { resource:Q1046947 property:P607 ?q . ?q rdf:type ontology:Q1190554 }
Royal Marines
action filter_type
action find
entity Royal Marines
relation conflict
type event
SELECT DISTINCT ?q WHERE { resource:Royal_Marines property:conflict ?q . ?q rdf:type ontology:event }
[]
event
Q916495
SYSTEM
Second Anglo-Dutch War
Q916495
action filter_type
action find
entity Q1046947
relation P607
type Q1190554
[ANSWER] was that military branch a part of
SELECT DISTINCT ?q WHERE { resource:Q1046947 property:P607 ?q . ?q rdf:type ontology:Q1190554 }
Second Anglo-Dutch War
Second Anglo-Dutch War was that military branch a part of
Second Anglo-Dutch War
action filter_type
action find
entity Royal Marines
relation conflict
type event
SELECT DISTINCT ?q WHERE { resource:Royal_Marines property:conflict ?q . ?q rdf:type ontology:event }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1542
Q1190554 Q1190554
USER
How many events caused greater number of events than that event ?
(c(Q1190554),P1542,c(Q1190554))
action count
action greater
action find_tuple_counts
relation P1542
type Q1190554
type Q1190554
action count
action filter_type
action find
entity Q916495
relation P1542
type Q1190554
[{'concept': 'Q1190554'}, 'P1542', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q916495 property:P1542 ?g . ?g rdf:type ontology:Q1190554 } } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?y ) WHERE { ?p property:P1542 ?t . ?p rdf:type ontology:Q1190554 . ?t rdf:type ontology:Q1190554 } GROUP BY ?p } }
action count
action greater
action find_tuple_counts
relation cause of
type event
type event
action count
action filter_type
action find
entity Second Anglo-Dutch War
relation cause of
type event
[{'concept': 'event'}, 'cause of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Second_Anglo-Dutch_War property:cause_of ?g . ?g rdf:type ontology:event } } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?y ) WHERE { ?p property:cause_of ?t . ?p rdf:type ontology:event . ?t rdf:type ontology:event } GROUP BY ?p } }
[]
event event
SYSTEM
2
Q190035 Q504081
(c(Q1190554),P1542,c(Q1190554))
action count
action greater
action find_tuple_counts
relation P1542
type Q1190554
type Q1190554
action count
action filter_type
action find
entity Q916495
relation P1542
type Q1190554
[ANSWER]
[{'concept': 'Q1190554'}, 'P1542', {'concept': 'Q1190554'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q916495 property:P1542 ?g . ?g rdf:type ontology:Q1190554 } } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?y ) WHERE { ?p property:P1542 ?t . ?p rdf:type ontology:Q1190554 . ?t rdf:type ontology:Q1190554 } GROUP BY ?p } }
gravitational wave Greek military junta of 1967–1974
2
action count
action greater
action find_tuple_counts
relation cause of
type event
type event
action count
action filter_type
action find
entity Second Anglo-Dutch War
relation cause of
type event
[{'concept': 'event'}, 'cause of', {'concept': 'event'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Second_Anglo-Dutch_War property:cause_of ?g . ?g rdf:type ontology:event } } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?y ) WHERE { ?p property:cause_of ?t . ?p rdf:type ontology:event . ?t rdf:type ontology:event } GROUP BY ?p } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q916495
P361
Q178561
USER
Which battles are parts of Second Anglo-Dutch War ?
(c(Q178561),P361,Q916495)
action filter_type
action find_reverse
entity Q916495
relation P361
type Q178561
[{'concept': 'Q178561'}, 'P361', 'Q916495']
SELECT DISTINCT ?k WHERE { ?k property:P361 resource:Q916495 . ?k rdf:type ontology:Q178561 }
Second Anglo-Dutch War
action filter_type
action find_reverse
entity Second Anglo-Dutch War
relation part of
type battle
[{'concept': 'battle'}, 'part of', 'Second Anglo-Dutch War']
SELECT DISTINCT ?k WHERE { ?k property:part_of resource:Second_Anglo-Dutch_War . ?k rdf:type ontology:battle }
[]
battle
Q331740 Q944506 Q734934
SYSTEM
Raid on the Medway, St. James's Day Battle, Four Days' Battle
Q331740 Q944506 Q734934
(c(Q178561),P361,Q916495)
action filter_type
action find_reverse
entity Q916495
relation P361
type Q178561
[ANSWERS] are parts of Second Anglo-Dutch War
[{'concept': 'Q178561'}, 'P361', 'Q916495']
SELECT DISTINCT ?k WHERE { ?k property:P361 resource:Q916495 . ?k rdf:type ontology:Q178561 }
Raid on the Medway St. James's Day Battle Four Days' Battle
Raid on the Medway, St. James's Day Battle and Four Days' Battle are parts of Second Anglo-Dutch War
Raid on the Medway St. James's Day Battle Four Days' Battle
action filter_type
action find_reverse
entity Second Anglo-Dutch War
relation part of
type battle
[{'concept': 'battle'}, 'part of', 'Second Anglo-Dutch War']
SELECT DISTINCT ?k WHERE { ?k property:part_of resource:Second_Anglo-Dutch_War . ?k rdf:type ontology:battle }
[]
Clarification
Simple Question|Single Entity|Indirect
Q331740
P276
Q355304
USER
Where is that battle located ?
(Q331740,P276,c(Q355304))
action filter_type
action find
entity Q331740
relation P276
type Q355304
['Q331740', 'P276', {'concept': 'Q355304'}]
SELECT DISTINCT ?h WHERE { resource:Q331740 property:P276 ?h . ?h rdf:type ontology:Q355304 }
Raid on the Medway
action filter_type
action find
entity Raid on the Medway
relation location
type watercourse
['Raid on the Medway', 'location', {'concept': 'watercourse'}]
SELECT DISTINCT ?h WHERE { resource:Raid_on_the_Medway property:location ?h . ?h rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q944506
SYSTEM
Did you mean St. James's Day Battle ?
Q331740 Q944506 Q734934
(Q331740,P276,c(Q355304)) (Q944506,P276,c(Q355304)) (Q734934,P276,c(Q355304))
[ANSWER]
['Q331740', 'P276', {'concept': 'Q355304'}] ['Q944506', 'P276', {'concept': 'Q355304'}] ['Q734934', 'P276', {'concept': 'Q355304'}]
SELECT DISTINCT ?h WHERE { resource:Q331740 property:P276 ?h . ?h rdf:type ontology:Q355304 }
Raid on the Medway St. James's Day Battle Four Days' Battle
Did you mean St. James's Day Battle ?
St. James's Day Battle
['Raid on the Medway', 'location', {'concept': 'watercourse'}] ["St. James's Day Battle", 'location', {'concept': 'watercourse'}] ["Four Days' Battle", 'location', {'concept': 'watercourse'}]
SELECT DISTINCT ?h WHERE { resource:Raid_on_the_Medway property:location ?h . ?h rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
No, I meant Raid on the Medway. Could you tell me the answer for that?
(Q331740,P276,c(Q355304))
Q331740
['Q331740', 'P276', {'concept': 'Q355304'}]
['Raid on the Medway', 'location', {'concept': 'watercourse'}]
[]
Q1434222
SYSTEM
River Medway
Q1434222
(Q331740,P276,c(Q355304))
action filter_type
action find
entity Q331740
relation P276
type Q355304
That battle is located on [ANSWER]
['Q331740', 'P276', {'concept': 'Q355304'}]
SELECT DISTINCT ?h WHERE { resource:Q331740 property:P276 ?h . ?h rdf:type ontology:Q355304 }
River Medway
That battle is located on River Medway
River Medway
action filter_type
action find
entity Raid on the Medway
relation location
type watercourse
['Raid on the Medway', 'location', {'concept': 'watercourse'}]
SELECT DISTINCT ?h WHERE { resource:Raid_on_the_Medway property:location ?h . ?h rdf:type ontology:watercourse }
[]