Simple Question (Direct)
Simple Question
Q5927683
P20
Q56061
USER
Where did Hubert William Lewis die ?
(Q5927683,P20,c(Q56061))
action filter_type
action find
entity Q5927683
relation P20
type Q56061
['Q5927683', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5927683 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Hubert William Lewis
action filter_type
action find
entity Hubert William Lewis
relation place of death
type administrative territorial entity
['Hubert William Lewis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hubert_William_Lewis property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q991055
SYSTEM
Milford Haven
Q991055
(Q5927683,P20,c(Q56061))
action filter_type
action find
entity Q5927683
relation P20
type Q56061
Hubert William Lewis died in [ANSWER]
['Q5927683', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5927683 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Milford Haven
Hubert William Lewis died in Milford Haven
Milford Haven
action filter_type
action find
entity Hubert William Lewis
relation place of death
type administrative territorial entity
['Hubert William Lewis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hubert_William_Lewis property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5927683
P607
Q198
USER
What battle were Hubert William Lewis a part of ?
(Q5927683,P607,c(Q198))
action filter_type
action find
entity Q5927683
relation P607
type Q198
['Q5927683', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { resource:Q5927683 property:P607 ?t . ?t rdf:type ontology:Q198 }
Hubert William Lewis
action filter_type
action find
entity Hubert William Lewis
relation conflict
type war
['Hubert William Lewis', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { resource:Hubert_William_Lewis property:conflict ?t . ?t rdf:type ontology:war }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
(Q5927683,P607,c(Q198))
action filter_type
action find
entity Q5927683
relation P607
type Q198
[ANSWERS] were Hubert William Lewis a part of
['Q5927683', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { resource:Q5927683 property:P607 ?t . ?t rdf:type ontology:Q198 }
World War II World War I
World War II and World War I were Hubert William Lewis a part of
World War II World War I
action filter_type
action find
entity Hubert William Lewis
relation conflict
type war
['Hubert William Lewis', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { resource:Hubert_William_Lewis property:conflict ?t . ?t rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16215879
P607
Q502895
USER
Did those wars fight in Andrey Kvassov ?
(Q16215879,P607,Q362) (Q16215879,P607,Q361)
action is_in
entity prev_answer
action find
entity Q16215879
relation P607
['Q16215879', 'P607', 'Q362'] ['Q16215879', 'P607', 'Q361']
ASK WHERE { resource:Q16215879 property:P607 ?c . VALUES ( ?c ) { ( resource:Q362 ) ( resource:Q361 ) } }
Andrey Kvassov
action is_in
entity prev_answer
action find
entity Andrey Kvassov
relation conflict
['Andrey Kvassov', 'conflict', 'World War II'] ['Andrey Kvassov', 'conflict', 'World War I']
ASK WHERE { resource:Andrey_Kvassov property:conflict ?c . VALUES ( ?c ) { ( resource:World_War_II ) ( resource:World_War_I ) } }
[]
common name
SYSTEM
NO
(Q16215879,P607,Q362) (Q16215879,P607,Q361)
action is_in
entity prev_answer
action find
entity Q16215879
relation P607
[ANSWER]
['Q16215879', 'P607', 'Q362'] ['Q16215879', 'P607', 'Q361']
ASK WHERE { resource:Q16215879 property:P607 ?c . VALUES ( ?c ) { ( resource:Q362 ) ( resource:Q361 ) } }
No
action is_in
entity prev_answer
action find
entity Andrey Kvassov
relation conflict
['Andrey Kvassov', 'conflict', 'World War II'] ['Andrey Kvassov', 'conflict', 'World War I']
ASK WHERE { resource:Andrey_Kvassov property:conflict ?c . VALUES ( ?c ) { ( resource:World_War_II ) ( resource:World_War_I ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q201424
P921
Q198 Q2342494 Q838948
USER
Which wars were the main subjects of less number of collectables or works of art 's work than nuclear war ?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q201424
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?t rdf:type ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P921 resource:Q201424 . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?l < ?r ) }
nuclear war
action less
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity nuclear war
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?t rdf:type ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:main_subject resource:nuclear_war . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?l < ?r ) }
[]
war collectable work of art
Q178810 Q211855 Q188972
SYSTEM
Syrian Civil War, Finnish Civil War, Greek Civil War
Q81545 Q211855 Q633862 Q188972 Q129053 Q1049945 Q209297 Q142529 Q75984 Q178810 Q243620
(c(Q2342494)|c(Q838948),P921,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q201424
relation P921
type Q2342494
type Q838948
[ANSWERS] were the main subjects of less number of collectables or works of art 's work than nuclear war
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?t rdf:type ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P921 resource:Q201424 . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?l < ?r ) }
2011 Libyan Civil War Finnish Civil War Cold War Greek Civil War partition of India Jacobite rising of 1745 Farroupilha Revolution Algerian Civil War Dirty War Syrian Civil War Somali Civil War
Syrian Civil War, Finnish Civil War and Greek Civil War were the main subjects of less number of collectables or works of art 's work than nuclear war
Syrian Civil War Finnish Civil War Greek Civil War
action less
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity nuclear war
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) ?k WHERE { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?t rdf:type ?i } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:main_subject resource:nuclear_war . { ?b rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?l < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q633862
P921
Q198 Q2342494 Q838948
USER
And what about Cold War?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q633862
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?k WHERE { { ?e rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q198 . ?e property:P921 ?k } UNION { ?e property:P921 ?k . ?k rdf:type ontology:Q198 . ?e rdf:type ontology:Q838948 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P921 resource:Q633862 . { { ?y rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q838948 } } } } . FILTER ( ?d < ?o ) }
Cold War
action less
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Cold War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?k WHERE { { ?e rdf:type ontology:collectable . ?k rdf:type ontology:war . ?e property:main_subject ?k } UNION { ?e property:main_subject ?k . ?k rdf:type ontology:war . ?e rdf:type ontology:work_of_art } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:main_subject resource:Cold_War . { { ?y rdf:type ontology:collectable } UNION { ?y rdf:type ontology:work_of_art } } } } . FILTER ( ?d < ?o ) }
[]
war collectable work of art
Q178810 Q211855 Q188972
SYSTEM
Syrian Civil War, Finnish Civil War, Greek Civil War
Q81545 Q211855 Q188972 Q1049945 Q209297 Q178810 Q243620
(c(Q2342494)|c(Q838948),P921,c(Q198))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q633862
relation P921
type Q2342494
type Q838948
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?k WHERE { { ?e rdf:type ontology:Q2342494 . ?k rdf:type ontology:Q198 . ?e property:P921 ?k } UNION { ?e property:P921 ?k . ?k rdf:type ontology:Q198 . ?e rdf:type ontology:Q838948 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P921 resource:Q633862 . { { ?y rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q838948 } } } } . FILTER ( ?d < ?o ) }
2011 Libyan Civil War Finnish Civil War Greek Civil War Jacobite rising of 1745 Farroupilha Revolution Syrian Civil War Somali Civil War
Syrian Civil War Finnish Civil War Greek Civil War
action less
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Cold War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?k WHERE { { ?e rdf:type ontology:collectable . ?k rdf:type ontology:war . ?e property:main_subject ?k } UNION { ?e property:main_subject ?k . ?k rdf:type ontology:war . ?e rdf:type ontology:work_of_art } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:main_subject resource:Cold_War . { { ?y rdf:type ontology:collectable } UNION { ?y rdf:type ontology:work_of_art } } } } . FILTER ( ?d < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2658255
P361
Q198 Q350604 Q176799
USER
Which wars are more number of armed conflicts or military units a component of than Byzantine civil war of 1341–1347 ?
(c(Q350604)|c(Q176799),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action count
action filter_multi_types
action find_reverse
entity Q2658255
relation P361
type Q350604
type Q176799
[[{'concept': 'Q350604'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?v WHERE { VALUES ( ?q ) { ( ontology:Q350604 ) ( ontology:Q176799 ) } . ?e rdf:type ?q } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P361 resource:Q2658255 . { VALUES ( ?z ) { ( ontology:Q176799 ) ( ontology:Q350604 ) } . ?a rdf:type ?z } } } . FILTER ( ?r > ?u ) }
Byzantine civil war of 1341–1347
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military unit
action count
action filter_multi_types
action find_reverse
entity Byzantine civil war of 1341–1347
relation part of
type armed conflict
type military unit
[[{'concept': 'armed conflict'}, {'concept': 'military unit'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?v WHERE { VALUES ( ?q ) { ( ontology:armed_conflict ) ( ontology:military_unit ) } . ?e rdf:type ?q } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:part_of resource:Byzantine_civil_war_of_1341–1347 . { VALUES ( ?z ) { ( ontology:military_unit ) ( ontology:armed_conflict ) } . ?a rdf:type ?z } } } . FILTER ( ?r > ?u ) }
[]
war armed conflict military unit
Q17984356 Q79911 Q362
SYSTEM
Iraqi Civil War, Russian Civil War, World War II
Q8683 Q4783165 Q3778746 Q362 Q17984356 Q242352 Q178810 Q16954835 Q15059994 Q8676 Q2672972 Q243620 Q79911
(c(Q350604)|c(Q176799),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action count
action filter_multi_types
action find_reverse
entity Q2658255
relation P361
type Q350604
type Q176799
[ANSWERS] are more number of armed conflicts or military units a component of than Byzantine civil war of 1341–1347
[[{'concept': 'Q350604'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?v WHERE { VALUES ( ?q ) { ( ontology:Q350604 ) ( ontology:Q176799 ) } . ?e rdf:type ?q } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P361 resource:Q2658255 . { VALUES ( ?z ) { ( ontology:Q176799 ) ( ontology:Q350604 ) } . ?a rdf:type ?z } } } . FILTER ( ?r > ?u ) }
Cold War Arab Cold War Sioux Wars World War II Iraqi Civil War Yugoslav Wars Syrian Civil War Nagorno-Karabakh conflict Iran–Israel proxy conflict American Civil War Uruguayan Civil War Somali Civil War Russian Civil War
Iraqi Civil War, Russian Civil War and World War II are more number of armed conflicts or military units a component of than Byzantine civil war of 1341–1347
Iraqi Civil War Russian Civil War World War II
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military unit
action count
action filter_multi_types
action find_reverse
entity Byzantine civil war of 1341–1347
relation part of
type armed conflict
type military unit
[[{'concept': 'armed conflict'}, {'concept': 'military unit'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) ?v WHERE { VALUES ( ?q ) { ( ontology:armed_conflict ) ( ontology:military_unit ) } . ?e rdf:type ?q } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:part_of resource:Byzantine_civil_war_of_1341–1347 . { VALUES ( ?z ) { ( ontology:military_unit ) ( ontology:armed_conflict ) } . ?a rdf:type ?z } } } . FILTER ( ?r > ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q545449
P361
Q198 Q350604 Q176799
USER
And what about Iraq War?
(c(Q350604)|c(Q176799),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action count
action filter_multi_types
action find_reverse
entity Q545449
relation P361
type Q350604
type Q176799
[[{'concept': 'Q350604'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:Q198 . ?l rdf:type ontology:Q350604 . ?l property:P361 ?o } UNION { ?l rdf:type ontology:Q176799 . ?o rdf:type ontology:Q198 . ?l property:P361 ?o } } GROUP BY ?o } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { ?c property:P361 resource:Q545449 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q350604 } } } } }
Iraq War
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military unit
action count
action filter_multi_types
action find_reverse
entity Iraq War
relation part of
type armed conflict
type military unit
[[{'concept': 'armed conflict'}, {'concept': 'military unit'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:war . ?l rdf:type ontology:armed_conflict . ?l property:part_of ?o } UNION { ?l rdf:type ontology:military_unit . ?o rdf:type ontology:war . ?l property:part_of ?o } } GROUP BY ?o } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { ?c property:part_of resource:Iraq_War . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:armed_conflict } } } } }
[]
war armed conflict military unit
Q17984356 Q79911 Q362
SYSTEM
Iraqi Civil War, Russian Civil War, World War II
Q8683 Q4783165 Q3778746 Q362 Q17984356 Q242352 Q178810 Q16954835 Q15059994 Q8676 Q2672972 Q243620 Q79911
(c(Q350604)|c(Q176799),P361,c(Q198))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q176799
action count
action filter_multi_types
action find_reverse
entity Q545449
relation P361
type Q350604
type Q176799
[ANSWERS]
[[{'concept': 'Q350604'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:Q198 . ?l rdf:type ontology:Q350604 . ?l property:P361 ?o } UNION { ?l rdf:type ontology:Q176799 . ?o rdf:type ontology:Q198 . ?l property:P361 ?o } } GROUP BY ?o } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { ?c property:P361 resource:Q545449 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q350604 } } } } }
Cold War Arab Cold War Sioux Wars World War II Iraqi Civil War Yugoslav Wars Syrian Civil War Nagorno-Karabakh conflict Iran–Israel proxy conflict American Civil War Uruguayan Civil War Somali Civil War Russian Civil War
Iraqi Civil War Russian Civil War World War II
action greater
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military unit
action count
action filter_multi_types
action find_reverse
entity Iraq War
relation part of
type armed conflict
type military unit
[[{'concept': 'armed conflict'}, {'concept': 'military unit'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:war . ?l rdf:type ontology:armed_conflict . ?l property:part_of ?o } UNION { ?l rdf:type ontology:military_unit . ?o rdf:type ontology:war . ?l property:part_of ?o } } GROUP BY ?o } . FILTER ( ?f > ?y ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { ?c property:part_of resource:Iraq_War . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:armed_conflict } } } } }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P361
Q198 Q176799
USER
Which wars are more number of military units a portion of than that war ?
(c(Q176799),P361,c(Q198))
[{'concept': 'Q176799'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q26883397 }
[{'concept': 'military unit'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { ?z property:part_of ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:war }
[]
war military unit
Comparative|More/Less|Single entity type|Clarification
Q17984356
SYSTEM
Did you mean Iraqi Civil War ?
(c(Q176799),P361,c(Q198))
[ANSWER]
[{'concept': 'Q176799'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q26883397 }
Did you mean Iraqi Civil War ?
Iraqi Civil War
[{'concept': 'military unit'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { ?z property:part_of ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:war }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q176799),P361,c(Q198))
[{'concept': 'Q176799'}, 'P361', {'concept': 'Q198'}]
[{'concept': 'military unit'}, 'part of', {'concept': 'war'}]
[]
Q79911
SYSTEM
Russian Civil War
Q79911
(c(Q176799),P361,c(Q198))
[ANSWER] is more number of military units a portion of than that war
[{'concept': 'Q176799'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?y WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q26883397 }
Russian Civil War
Russian Civil War is more number of military units a portion of than that war
Russian Civil War
[{'concept': 'military unit'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ?y WHERE { ?z property:part_of ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:war }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27669586 Q79911
P710
Q502895
USER
Which people attended Russian Civil War or 2013 Washington State Open Badminton Championships – Men's singles ?
OR((Q79911,P710,c(Q502895)), (Q27669586,P710,c(Q502895)))
action filter_type
action union
action find
entity Q79911
relation P710
action find
entity Q27669586
relation P710
type Q502895
{'OR': [['Q79911', 'P710', {'concept': 'Q502895'}], ['Q27669586', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q79911 property:P710 ?n } UNION { resource:Q27669586 property:P710 ?n } } . ?n rdf:type ontology:Q502895 }
2013 Washington State Open Badminton Championships – Men's singles Russian Civil War
action filter_type
action union
action find
entity Russian Civil War
relation participant
action find
entity 2013 Washington State Open Badminton Championships – Men's singles
relation participant
type common name
{'OR': [['Russian Civil War', 'participant', {'concept': 'common name'}], ["2013 Washington State Open Badminton Championships – Men's singles", 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Russian_Civil_War property:participant ?n } UNION { resource:2013_Washington_State_Open_Badminton_Championships_–_Men's_singles property:participant ?n } } . ?n rdf:type ontology:common_name }
[]
common name
Q33391 Q1394 Q27793283 Q27793280 Q27672058 Q855 Q27763849
SYSTEM
Leon Trotsky, Vladimir Lenin, Jensen Ly, Tao Yuan, Kevin La, Joseph Stalin, Chak Man Chan
Q33391 Q1394 Q27793283 Q27793280 Q27672058 Q855 Q27763849
OR((Q79911,P710,c(Q502895)), (Q27669586,P710,c(Q502895)))
action filter_type
action union
action find
entity Q79911
relation P710
action find
entity Q27669586
relation P710
type Q502895
[ANSWERS] attended Russian Civil War or 2013 Washington State Open Badminton Championships – Men's singles
{'OR': [['Q79911', 'P710', {'concept': 'Q502895'}], ['Q27669586', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q79911 property:P710 ?n } UNION { resource:Q27669586 property:P710 ?n } } . ?n rdf:type ontology:Q502895 }
Leon Trotsky Vladimir Lenin Jensen Ly Tao Yuan Kevin La Joseph Stalin Chak Man Chan
Leon Trotsky, Vladimir Lenin, Jensen Ly, Tao Yuan, Kevin La, Joseph Stalin and Chak Man Chan attended Russian Civil War or 2013 Washington State Open Badminton Championships – Men's singles
Leon Trotsky Vladimir Lenin Jensen Ly Tao Yuan Kevin La Joseph Stalin Chak Man Chan
action filter_type
action union
action find
entity Russian Civil War
relation participant
action find
entity 2013 Washington State Open Badminton Championships – Men's singles
relation participant
type common name
{'OR': [['Russian Civil War', 'participant', {'concept': 'common name'}], ["2013 Washington State Open Badminton Championships – Men's singles", 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Russian_Civil_War property:participant ?n } UNION { resource:2013_Washington_State_Open_Badminton_Championships_–_Men's_singles property:participant ?n } } . ?n rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1394
P138
Q2235308 Q1267632
USER
How many ship types and raions of Ukraine come from Vladimir Lenin ?
(c(Q2235308),P138,Q1394) (c(Q1267632),P138,Q1394)
action count
action union
action filter_type
action find_reverse
entity Q1394
relation P138
type Q2235308
action filter_type
action find_reverse
entity Q1394
relation P138
type Q1267632
[{'concept': 'Q2235308'}, 'P138', 'Q1394'] [{'concept': 'Q1267632'}, 'P138', 'Q1394']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:Q2235308 . ?d property:P138 resource:Q1394 } UNION { ?d rdf:type ontology:Q1267632 . ?d property:P138 resource:Q1394 } }
Vladimir Lenin
action count
action union
action filter_type
action find_reverse
entity Vladimir Lenin
relation named after
type ship type
action filter_type
action find_reverse
entity Vladimir Lenin
relation named after
type raion of Ukraine
[{'concept': 'ship type'}, 'named after', 'Vladimir Lenin'] [{'concept': 'raion of Ukraine'}, 'named after', 'Vladimir Lenin']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:ship_type . ?d property:named_after resource:Vladimir_Lenin } UNION { ?d rdf:type ontology:raion_of_Ukraine . ?d property:named_after resource:Vladimir_Lenin } }
[]
ship type raion of Ukraine
SYSTEM
2 ship types and 1 raions of Ukraine
Q2443152 Q3830179 Q648655
(c(Q2235308),P138,Q1394) (c(Q1267632),P138,Q1394)
action count
action union
action filter_type
action find_reverse
entity Q1394
relation P138
type Q2235308
action filter_type
action find_reverse
entity Q1394
relation P138
type Q1267632
[ANSWER]
[{'concept': 'Q2235308'}, 'P138', 'Q1394'] [{'concept': 'Q1267632'}, 'P138', 'Q1394']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:Q2235308 . ?d property:P138 resource:Q1394 } UNION { ?d rdf:type ontology:Q1267632 . ?d property:P138 resource:Q1394 } }
Lenine Raion of Crimea Lenin Lenin
2 ship types and 1 raions of Ukraine
action count
action union
action filter_type
action find_reverse
entity Vladimir Lenin
relation named after
type ship type
action filter_type
action find_reverse
entity Vladimir Lenin
relation named after
type raion of Ukraine
[{'concept': 'ship type'}, 'named after', 'Vladimir Lenin'] [{'concept': 'raion of Ukraine'}, 'named after', 'Vladimir Lenin']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:ship_type . ?d property:named_after resource:Vladimir_Lenin } UNION { ?d rdf:type ontology:raion_of_Ukraine . ?d property:named_after resource:Vladimir_Lenin } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q855
P463
Q938236
USER
Which organization was Joseph Stalin a member of ?
(Q855,P463,c(Q938236))
action filter_type
action find
entity Q855
relation P463
type Q938236
['Q855', 'P463', {'concept': 'Q938236'}]
SELECT DISTINCT ?o WHERE { resource:Q855 property:P463 ?o . ?o rdf:type ontology:Q938236 }
Joseph Stalin
action filter_type
action find
entity Joseph Stalin
relation member of
type committee
['Joseph Stalin', 'member of', {'concept': 'committee'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Stalin property:member_of ?o . ?o rdf:type ontology:committee }
[]
committee
Q842008
SYSTEM
Politburo of the Central Committee of the Communist Party of the Soviet Union
Q842008
(Q855,P463,c(Q938236))
action filter_type
action find
entity Q855
relation P463
type Q938236
The [ANSWER] was Joseph Stalin a member of
['Q855', 'P463', {'concept': 'Q938236'}]
SELECT DISTINCT ?o WHERE { resource:Q855 property:P463 ?o . ?o rdf:type ontology:Q938236 }
Politburo of the Central Committee of the Communist Party of the Soviet Union
The Politburo of the Central Committee of the Communist Party of the Soviet Union was Joseph Stalin a member of
Politburo of the Central Committee of the Communist Party of the Soviet Union
action filter_type
action find
entity Joseph Stalin
relation member of
type committee
['Joseph Stalin', 'member of', {'concept': 'committee'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Stalin property:member_of ?o . ?o rdf:type ontology:committee }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q125405
Q938236
USER
And also tell me about Hermann Matern?
(Q125405,P463,c(Q938236))
action filter_type
action find
entity Q125405
relation P463
type Q938236
['Q125405', 'P463', {'concept': 'Q938236'}]
SELECT DISTINCT ?r WHERE { resource:Q125405 property:P463 ?r . ?r rdf:type ontology:Q938236 }
Hermann Matern
action filter_type
action find
entity Hermann Matern
relation member of
type committee
['Hermann Matern', 'member of', {'concept': 'committee'}]
SELECT DISTINCT ?r WHERE { resource:Hermann_Matern property:member_of ?r . ?r rdf:type ontology:committee }
[]
committee
Q18650004
SYSTEM
Central Committee of the Socialist Unity Party of Germany
Q18650004
(Q125405,P463,c(Q938236))
action filter_type
action find
entity Q125405
relation P463
type Q938236
[ANSWER]
['Q125405', 'P463', {'concept': 'Q938236'}]
SELECT DISTINCT ?r WHERE { resource:Q125405 property:P463 ?r . ?r rdf:type ontology:Q938236 }
Central Committee of the Socialist Unity Party of Germany
Central Committee of the Socialist Unity Party of Germany
action filter_type
action find
entity Hermann Matern
relation member of
type committee
['Hermann Matern', 'member of', {'concept': 'committee'}]
SELECT DISTINCT ?r WHERE { resource:Hermann_Matern property:member_of ?r . ?r rdf:type ontology:committee }
[]