Simple Question (Direct)
Simple Question
Q6129758
P241
Q781132
USER
Which military branch is James Bevan Edwards affiliated to ?
(Q6129758,P241,c(Q781132))
action filter_type
action find
entity Q6129758
relation P241
type Q781132
['Q6129758', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?c WHERE { resource:Q6129758 property:P241 ?c . ?c rdf:type ontology:Q781132 }
James Bevan Edwards
action filter_type
action find
entity James Bevan Edwards
relation military branch
type military branch
['James Bevan Edwards', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?c WHERE { resource:James_Bevan_Edwards property:military_branch ?c . ?c rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q6129758,P241,c(Q781132))
action filter_type
action find
entity Q6129758
relation P241
type Q781132
James Bevan Edwards is affiliated with [ANSWER]
['Q6129758', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?c WHERE { resource:Q6129758 property:P241 ?c . ?c rdf:type ontology:Q781132 }
British Army
James Bevan Edwards is affiliated with British Army
British Army
action filter_type
action find
entity James Bevan Edwards
relation military branch
type military branch
['James Bevan Edwards', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?c WHERE { resource:James_Bevan_Edwards property:military_branch ?c . ?c rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6129758
P166
Q2003221
USER
What were awarded to that person ?
(Q222595,P166,c(Q2003221))
action filter_type
action find
entity Q6129758
relation P166
type Q2003221
['Q222595', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?w WHERE { resource:Q6129758 property:P166 ?w . ?w rdf:type ontology:Q2003221 }
James Bevan Edwards
action filter_type
action find
entity James Bevan Edwards
relation award received
type chivalric order
['British Army', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?w WHERE { resource:James_Bevan_Edwards property:award_received ?w . ?w rdf:type ontology:chivalric_order }
[]
chivalric order
Q12177415 Q12177470
SYSTEM
Knight Commander of the Order of St Michael and St George, Knight Commander of the Order of the Bath
Q12177415 Q12177470
(Q222595,P166,c(Q2003221))
action filter_type
action find
entity Q6129758
relation P166
type Q2003221
[ANSWERS] were awarded to that person
['Q222595', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?w WHERE { resource:Q6129758 property:P166 ?w . ?w rdf:type ontology:Q2003221 }
Knight Commander of the Order of St Michael and St George Knight Commander of the Order of the Bath
Knight Commander of the Order of St Michael and St George and Knight Commander of the Order of the Bath were awarded to that person
Knight Commander of the Order of St Michael and St George Knight Commander of the Order of the Bath
action filter_type
action find
entity James Bevan Edwards
relation award received
type chivalric order
['British Army', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?w WHERE { resource:James_Bevan_Edwards property:award_received ?w . ?w rdf:type ontology:chivalric_order }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16192925
P166
Q502895
USER
Were Joyce J. Scott honoured with those chivalric orders ?
(Q16192925,P166,Q12177415) (Q16192925,P166,Q12177470)
action is_in
entity prev_answer
action find
entity Q16192925
relation P166
['Q16192925', 'P166', 'Q12177415'] ['Q16192925', 'P166', 'Q12177470']
ASK WHERE { resource:Q16192925 property:P166 ?d . VALUES ( ?d ) { ( resource:Q12177415 ) ( resource:Q12177470 ) } }
Joyce J. Scott
action is_in
entity prev_answer
action find
entity Joyce J. Scott
relation award received
['Joyce J. Scott', 'award received', 'Knight Commander of the Order of St Michael and St George'] ['Joyce J. Scott', 'award received', 'Knight Commander of the Order of the Bath']
ASK WHERE { resource:Joyce_J._Scott property:award_received ?d . VALUES ( ?d ) { ( resource:Knight_Commander_of_the_Order_of_St_Michael_and_St_George ) ( resource:Knight_Commander_of_the_Order_of_the_Bath ) } }
[]
common name
SYSTEM
NO
(Q16192925,P166,Q12177415) (Q16192925,P166,Q12177470)
action is_in
entity prev_answer
action find
entity Q16192925
relation P166
[ANSWER]
['Q16192925', 'P166', 'Q12177415'] ['Q16192925', 'P166', 'Q12177470']
ASK WHERE { resource:Q16192925 property:P166 ?d . VALUES ( ?d ) { ( resource:Q12177415 ) ( resource:Q12177470 ) } }
No
action is_in
entity prev_answer
action find
entity Joyce J. Scott
relation award received
['Joyce J. Scott', 'award received', 'Knight Commander of the Order of St Michael and St George'] ['Joyce J. Scott', 'award received', 'Knight Commander of the Order of the Bath']
ASK WHERE { resource:Joyce_J._Scott property:award_received ?d . VALUES ( ?d ) { ( resource:Knight_Commander_of_the_Order_of_St_Michael_and_St_George ) ( resource:Knight_Commander_of_the_Order_of_the_Bath ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6129758
P410
Q4189293
USER
Which title was the military rank held by James Bevan Edwards ?
(Q6129758,P410,c(Q4189293))
action filter_type
action find
entity Q6129758
relation P410
type Q4189293
['Q6129758', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?u WHERE { resource:Q6129758 property:P410 ?u . ?u rdf:type ontology:Q4189293 }
James Bevan Edwards
action filter_type
action find
entity James Bevan Edwards
relation military rank
type title
['James Bevan Edwards', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?u WHERE { resource:James_Bevan_Edwards property:military_rank ?u . ?u rdf:type ontology:title }
[]
title
Q6544390
SYSTEM
lieutenant-general
Q6544390
(Q6129758,P410,c(Q4189293))
action filter_type
action find
entity Q6129758
relation P410
type Q4189293
The [ANSWER] was the military rank held by James Bevan Edwards
['Q6129758', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?u WHERE { resource:Q6129758 property:P410 ?u . ?u rdf:type ontology:Q4189293 }
lieutenant-general
The lieutenant-general was the military rank held by James Bevan Edwards
lieutenant-general
action filter_type
action find
entity James Bevan Edwards
relation military rank
type title
['James Bevan Edwards', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?u WHERE { resource:James_Bevan_Edwards property:military_rank ?u . ?u rdf:type ontology:title }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5395219
Q4189293
USER
And how about Miguel Aráoz y Arce?
(Q5395219,P410,c(Q4189293))
action filter_type
action find
entity Q5395219
relation P410
type Q4189293
['Q5395219', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?m WHERE { resource:Q5395219 property:P410 ?m . ?m rdf:type ontology:Q4189293 }
Miguel Aráoz y Arce
action filter_type
action find
entity Miguel Aráoz y Arce
relation military rank
type title
['Miguel Aráoz y Arce', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?m WHERE { resource:Miguel_Aráoz_y_Arce property:military_rank ?m . ?m rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q5395219,P410,c(Q4189293))
action filter_type
action find
entity Q5395219
relation P410
type Q4189293
[ANSWER]
['Q5395219', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?m WHERE { resource:Q5395219 property:P410 ?m . ?m rdf:type ontology:Q4189293 }
general officer
general officer
action filter_type
action find
entity Miguel Aráoz y Arce
relation military rank
type title
['Miguel Aráoz y Arce', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?m WHERE { resource:Miguel_Aráoz_y_Arce property:military_rank ?m . ?m rdf:type ontology:title }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1318378
P366
Q350604 Q180684 Q781132
USER
How many military branches have their main functionality as lesser number of armed conflicts and conflicts than Recherche Assistance Intervention Dissuasion ?
(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 Q1318378
relation P366
type Q350604
type Q180684
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?w WHERE { VALUES ( ?a ) { ( ontology:Q180684 ) ( ontology:Q350604 ) } . ?d rdf:type ?a } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q1318378 property:P366 ?g . { { ?g rdf:type ontology:Q350604 } UNION { ?g rdf:type ontology:Q180684 } } } } . FILTER ( ?v < ?t ) }
Recherche Assistance Intervention Dissuasion
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 Recherche Assistance Intervention Dissuasion
relation use
type armed conflict
type conflict
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?w WHERE { VALUES ( ?a ) { ( ontology:conflict ) ( ontology:armed_conflict ) } . ?d rdf:type ?a } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Recherche_Assistance_Intervention_Dissuasion property:use ?g . { { ?g rdf:type ontology:armed_conflict } UNION { ?g rdf:type ontology:conflict } } } } . FILTER ( ?v < ?t ) }
[]
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 Q1318378
relation P366
type Q350604
type Q180684
[ANSWER]
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?w WHERE { VALUES ( ?a ) { ( ontology:Q180684 ) ( ontology:Q350604 ) } . ?d rdf:type ?a } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Q1318378 property:P366 ?g . { { ?g rdf:type ontology:Q350604 } UNION { ?g rdf:type ontology:Q180684 } } } } . FILTER ( ?v < ?t ) }
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 Recherche Assistance Intervention Dissuasion
relation use
type armed conflict
type conflict
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) ?w WHERE { VALUES ( ?a ) { ( ontology:conflict ) ( ontology:armed_conflict ) } . ?d rdf:type ?a } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { resource:Recherche_Assistance_Intervention_Dissuasion property:use ?g . { { ?g rdf:type ontology:armed_conflict } UNION { ?g rdf:type ontology:conflict } } } } . FILTER ( ?v < ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1799545
P361
Q781132 Q176799 Q23905071
USER
How many military branches are less number of military units or military unit type-size classes a portion of than Philippine Army ?
(c(Q176799)|c(Q23905071),P361,c(Q781132))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action count
action filter_multi_types
action find_reverse
entity Q1799545
relation P361
type Q176799
type Q23905071
[[{'concept': 'Q176799'}, {'concept': 'Q23905071'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { { ?z property:P361 ?b . ?b rdf:type ontology:Q781132 . ?z rdf:type ontology:Q23905071 } UNION { ?z property:P361 ?b . ?b rdf:type ontology:Q781132 . ?z rdf:type ontology:Q176799 } } GROUP BY ?b } . FILTER ( ?l < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P361 resource:Q1799545 . { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q176799 ) ( ontology:Q23905071 ) } } } } }
Philippine Army
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action count
action filter_multi_types
action find_reverse
entity Philippine Army
relation part of
type military unit
type military unit type-size class
[[{'concept': 'military unit'}, {'concept': 'military unit type-size class'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { { ?z property:part_of ?b . ?b rdf:type ontology:military_branch . ?z rdf:type ontology:military_unit_type-size_class } UNION { ?z property:part_of ?b . ?b rdf:type ontology:military_branch . ?z rdf:type ontology:military_unit } } GROUP BY ?b } . FILTER ( ?l < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:part_of resource:Philippine_Army . { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:military_unit ) ( ontology:military_unit_type-size_class ) } } } } }
[]
military branch military unit military unit type-size class
SYSTEM
78
Q16056518 Q23905126 Q222595 Q56015 Q210606 Q2328515 Q483268 Q1114493 Q1815399 Q3068744 Q11220 Q1046947 Q172771 Q1078222 Q2078095 Q676404 Q5555333 Q313422 Q9160892 Q2558747 Q19344622 Q311689 Q642932 Q1038047 Q833040 Q4117226 Q217406 Q2575188 Q488756 Q156649 Q1546449 Q1067064 Q889751 Q2492012 Q2862927 Q2749588 Q4447359 Q1652708 Q19247539 Q1951484 Q276535 Q1750688 Q276538 Q272110 Q796411 Q56012 Q7275540 Q25387 Q208711 Q1076619 Q897614 Q6479134 Q741691 Q11322507 Q2292358 Q151701 Q11218 Q2301347 Q167682 Q2383264 Q18643350 Q465283 Q2384177 Q1124986 Q25436 Q1358152 Q2258261 Q4447363 Q355771 Q18129370 Q1753805 Q731647 Q706042 Q2630039 Q219712 Q706996 Q1674702 Q1370395
(c(Q176799)|c(Q23905071),P361,c(Q781132))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action count
action filter_multi_types
action find_reverse
entity Q1799545
relation P361
type Q176799
type Q23905071
[ANSWER]
[[{'concept': 'Q176799'}, {'concept': 'Q23905071'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { { ?z property:P361 ?b . ?b rdf:type ontology:Q781132 . ?z rdf:type ontology:Q23905071 } UNION { ?z property:P361 ?b . ?b rdf:type ontology:Q781132 . ?z rdf:type ontology:Q176799 } } GROUP BY ?b } . FILTER ( ?l < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P361 resource:Q1799545 . { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:Q176799 ) ( ontology:Q23905071 ) } } } } }
Nepalese Army Slovak Army British Army German Navy 2nd Marine Division Belize Defence Force Republic of Korea Army Roman army South African Army Syrian Arab Army United States Navy Royal Marines Royal Navy Imperial Russian Army Pakistan Army Spanish Navy Ghana Army German Army fortress artillery Romanian Land Forces naval reserve force Royal Hungarian Army Indian Army Irish Army Italian Navy Royal Jordanian Land Force French Navy Royal Danish Army Republic of Korea Navy Imperial German Navy Hellenic Army United States Special Operations Command Japan Ground Self-Defense Force Swedish Army Indonesian Army Royal Thai Army Austrian Land Forces South African Navy Ottoman Army Georgian Land Forces Imperial Japanese Army Brazilian Navy Eurocorps Yugoslav People's Army Italian Army German Army RAF Regiment Royal Canadian Navy Chilean Navy French Army Iraqi Army Egyptian Army Royal Australian Navy German Army Brazilian Army Kriegsmarine United States Marine Corps Argentine Army rocket artillery Finnish Army Islamic Republic of Iran Ground Force Russian Navy Norwegian Army Confederate States Navy Canadian Army Korean People's Army Ground Force Pakistan Navy Lebanese Ground Forces Indian Army Philippine Commonwealth Army Croatian Army Japan Maritime Self-Defense Force Prussian Army New Zealand Army Imperial Japanese Navy Southern Expeditionary Army Group GOC Army Headquarters Estonian Land Forces
78
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action count
action filter_multi_types
action find_reverse
entity Philippine Army
relation part of
type military unit
type military unit type-size class
[[{'concept': 'military unit'}, {'concept': 'military unit type-size class'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { { ?z property:part_of ?b . ?b rdf:type ontology:military_branch . ?z rdf:type ontology:military_unit_type-size_class } UNION { ?z property:part_of ?b . ?b rdf:type ontology:military_branch . ?z rdf:type ontology:military_unit } } GROUP BY ?b } . FILTER ( ?l < ?m ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:part_of resource:Philippine_Army . { ?s rdf:type ?u . VALUES ( ?u ) { ( ontology:military_unit ) ( ontology:military_unit_type-size_class ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2301347
P361
Q781132 Q176799 Q23905071
USER
And how about Argentine Army?
(c(Q176799)|c(Q23905071),P361,c(Q781132))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action count
action filter_multi_types
action find_reverse
entity Q2301347
relation P361
type Q176799
type Q23905071
[[{'concept': 'Q176799'}, {'concept': 'Q23905071'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:Q781132 . ?v rdf:type ontology:Q176799 . ?v property:P361 ?w } UNION { ?v property:P361 ?w . ?w rdf:type ontology:Q781132 . ?v rdf:type ontology:Q23905071 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P361 resource:Q2301347 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q23905071 } } } } . FILTER ( ?r < ?p ) }
Argentine Army
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action count
action filter_multi_types
action find_reverse
entity Argentine Army
relation part of
type military unit
type military unit type-size class
[[{'concept': 'military unit'}, {'concept': 'military unit type-size class'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:military_branch . ?v rdf:type ontology:military_unit . ?v property:part_of ?w } UNION { ?v property:part_of ?w . ?w rdf:type ontology:military_branch . ?v rdf:type ontology:military_unit_type-size_class } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:part_of resource:Argentine_Army . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:military_unit_type-size_class } } } } . FILTER ( ?r < ?p ) }
[]
military branch military unit military unit type-size class
SYSTEM
43
Q16056518 Q210606 Q2328515 Q1114493 Q11220 Q1046947 Q172771 Q1078222 Q676404 Q5555333 Q9160892 Q19344622 Q1038047 Q4117226 Q217406 Q2575188 Q488756 Q156649 Q1067064 Q2492012 Q2749588 Q4447359 Q1652708 Q1951484 Q1750688 Q276538 Q272110 Q25387 Q208711 Q11322507 Q2292358 Q151701 Q167682 Q18643350 Q465283 Q2384177 Q1124986 Q25436 Q2258261 Q4447363 Q2630039 Q219712 Q1674702
(c(Q176799)|c(Q23905071),P361,c(Q781132))
action count
action less
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action count
action filter_multi_types
action find_reverse
entity Q2301347
relation P361
type Q176799
type Q23905071
[ANSWER]
[[{'concept': 'Q176799'}, {'concept': 'Q23905071'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:Q781132 . ?v rdf:type ontology:Q176799 . ?v property:P361 ?w } UNION { ?v property:P361 ?w . ?w rdf:type ontology:Q781132 . ?v rdf:type ontology:Q23905071 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P361 resource:Q2301347 . { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q23905071 } } } } . FILTER ( ?r < ?p ) }
Nepalese Army 2nd Marine Division Belize Defence Force Roman army United States Navy Royal Marines Royal Navy Imperial Russian Army Spanish Navy Ghana Army fortress artillery naval reserve force Irish Army Royal Jordanian Land Force French Navy Royal Danish Army Republic of Korea Navy Imperial German Navy United States Special Operations Command Swedish Army Royal Thai Army Austrian Land Forces South African Navy Georgian Land Forces Brazilian Navy Eurocorps Yugoslav People's Army Royal Canadian Navy Chilean Navy German Army Brazilian Army Kriegsmarine rocket artillery Islamic Republic of Iran Ground Force Russian Navy Norwegian Army Confederate States Navy Canadian Army Pakistan Navy Lebanese Ground Forces New Zealand Army Imperial Japanese Navy GOC Army Headquarters
43
action count
action less
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action count
action filter_multi_types
action find_reverse
entity Argentine Army
relation part of
type military unit
type military unit type-size class
[[{'concept': 'military unit'}, {'concept': 'military unit type-size class'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?w WHERE { { ?w rdf:type ontology:military_branch . ?v rdf:type ontology:military_unit . ?v property:part_of ?w } UNION { ?v property:part_of ?w . ?w rdf:type ontology:military_branch . ?v rdf:type ontology:military_unit_type-size_class } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:part_of resource:Argentine_Army . { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:military_unit_type-size_class } } } } . FILTER ( ?r < ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8057703 Q5395219
P1412 P364
Q34770
USER
What can Miguel Aráoz y Arce read or are considered to be the original language of creation of You are Cordially Invited... ?
OR((Q5395219,P1412,c(Q34770)), (Q8057703,P364,c(Q34770)))
action filter_type
action union
action find
entity Q5395219
relation P1412
action find
entity Q8057703
relation P364
type Q34770
{'OR': [['Q5395219', 'P1412', {'concept': 'Q34770'}], ['Q8057703', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5395219 property:P1412 ?l } UNION { resource:Q8057703 property:P364 ?l } } . ?l rdf:type ontology:Q34770 }
You are Cordially Invited... Miguel Aráoz y Arce
action filter_type
action union
action find
entity Miguel Aráoz y Arce
relation languages spoken, written or signed
action find
entity You are Cordially Invited...
relation original language of work
type language
{'OR': [['Miguel Aráoz y Arce', 'languages spoken, written or signed', {'concept': 'language'}], ['You are Cordially Invited...', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Miguel_Aráoz_y_Arce property:languages_spoken,_written_or_signed ?l } UNION { resource:You_are_Cordially_Invited... property:original_language_of_work ?l } } . ?l rdf:type ontology:language }
[]
language
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
OR((Q5395219,P1412,c(Q34770)), (Q8057703,P364,c(Q34770)))
action filter_type
action union
action find
entity Q5395219
relation P1412
action find
entity Q8057703
relation P364
type Q34770
Miguel Aráoz y Arce can read considered in [ANSWERS] ...
{'OR': [['Q5395219', 'P1412', {'concept': 'Q34770'}], ['Q8057703', 'P364', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5395219 property:P1412 ?l } UNION { resource:Q8057703 property:P364 ?l } } . ?l rdf:type ontology:Q34770 }
English Spanish
Miguel Aráoz y Arce can read considered in English and Spanish ...
English Spanish
action filter_type
action union
action find
entity Miguel Aráoz y Arce
relation languages spoken, written or signed
action find
entity You are Cordially Invited...
relation original language of work
type language
{'OR': [['Miguel Aráoz y Arce', 'languages spoken, written or signed', {'concept': 'language'}], ['You are Cordially Invited...', 'original language of work', {'concept': 'language'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Miguel_Aráoz_y_Arce property:languages_spoken,_written_or_signed ?l } UNION { resource:You_are_Cordially_Invited... property:original_language_of_work ?l } } . ?l rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q23024183
P1412
Q502895
USER
Does Emily Temple-Wood write those languages ?
(Q23024183,P1412,Q1860) (Q23024183,P1412,Q1321)
action is_in
entity prev_answer
action find
entity Q23024183
relation P1412
['Q23024183', 'P1412', 'Q1860'] ['Q23024183', 'P1412', 'Q1321']
ASK WHERE { resource:Q23024183 property:P1412 ?o . VALUES ( ?o ) { ( resource:Q1860 ) ( resource:Q1321 ) } }
Emily Temple-Wood
action is_in
entity prev_answer
action find
entity Emily Temple-Wood
relation languages spoken, written or signed
['Emily Temple-Wood', 'languages spoken, written or signed', 'English'] ['Emily Temple-Wood', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Emily_Temple-Wood property:languages_spoken,_written_or_signed ?o . VALUES ( ?o ) { ( resource:English ) ( resource:Spanish ) } }
[]
common name
SYSTEM
YES
(Q23024183,P1412,Q1860) (Q23024183,P1412,Q1321)
action is_in
entity prev_answer
action find
entity Q23024183
relation P1412
[ANSWER]
['Q23024183', 'P1412', 'Q1860'] ['Q23024183', 'P1412', 'Q1321']
ASK WHERE { resource:Q23024183 property:P1412 ?o . VALUES ( ?o ) { ( resource:Q1860 ) ( resource:Q1321 ) } }
Yes
action is_in
entity prev_answer
action find
entity Emily Temple-Wood
relation languages spoken, written or signed
['Emily Temple-Wood', 'languages spoken, written or signed', 'English'] ['Emily Temple-Wood', 'languages spoken, written or signed', 'Spanish']
ASK WHERE { resource:Emily_Temple-Wood property:languages_spoken,_written_or_signed ?o . VALUES ( ?o ) { ( resource:English ) ( resource:Spanish ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12177470
P17
Q15617994
USER
Which administrative territory is Knight Commander of the Order of the Bath situated in ?
(Q12177470,P17,c(Q15617994))
action filter_type
action find
entity Q12177470
relation P17
type Q15617994
['Q12177470', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q12177470 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Knight Commander of the Order of the Bath
action filter_type
action find
entity Knight Commander of the Order of the Bath
relation country
type designation for an administrative territorial entity
['Knight Commander of the Order of the Bath', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Knight_Commander_of_the_Order_of_the_Bath property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q12177470,P17,c(Q15617994))
action filter_type
action find
entity Q12177470
relation P17
type Q15617994
Knight Commander of the Order of the Bath is situated in [ANSWER]
['Q12177470', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q12177470 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
United Kingdom
Knight Commander of the Order of the Bath is situated in United Kingdom
United Kingdom
action filter_type
action find
entity Knight Commander of the Order of the Bath
relation country
type designation for an administrative territorial entity
['Knight Commander of the Order of the Bath', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Knight_Commander_of_the_Order_of_the_Bath property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q874405 Q192350 Q781132
USER
Which military branches are parts of max number of social groups or ministries ?
(c(Q781132),P361,c(Q874405)|c(Q192350))
action argmax
action union
action find_tuple_counts
relation P361
type Q781132
type Q874405
action find_tuple_counts
relation P361
type Q781132
type Q192350
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?x WHERE { { ?x property:P361 ?k . ?x rdf:type ontology:Q781132 . ?k rdf:type ontology:Q874405 } UNION { ?x property:P361 ?k . ?x rdf:type ontology:Q781132 . ?k rdf:type ontology:Q192350 } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?a WHERE { { ?a property:P361 ?s . ?a rdf:type ontology:Q781132 . ?s rdf:type ontology:Q874405 } UNION { ?s rdf:type ontology:Q192350 . ?a rdf:type ontology:Q781132 . ?a property:P361 ?s } } GROUP BY ?a } . FILTER ( ?v = ?r ) }
action argmax
action union
action find_tuple_counts
relation part of
type military branch
type social group
action find_tuple_counts
relation part of
type military branch
type ministry
[{'concept': 'military branch'}, 'part of', [{'concept': 'social group'}, {'concept': 'ministry'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?x WHERE { { ?x property:part_of ?k . ?x rdf:type ontology:military_branch . ?k rdf:type ontology:social_group } UNION { ?x property:part_of ?k . ?x rdf:type ontology:military_branch . ?k rdf:type ontology:ministry } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?a WHERE { { ?a property:part_of ?s . ?a rdf:type ontology:military_branch . ?s rdf:type ontology:social_group } UNION { ?s rdf:type ontology:ministry . ?a rdf:type ontology:military_branch . ?a property:part_of ?s } } GROUP BY ?a } . FILTER ( ?v = ?r ) }
[]
social group ministry military branch
Q11220 Q15885502 Q11218
SYSTEM
United States Navy, Spetsnaz GRU, United States Marine Corps
Q15885502 Q11218 Q1067064 Q796754 Q11220 Q963354
(c(Q781132),P361,c(Q874405)|c(Q192350))
action argmax
action union
action find_tuple_counts
relation P361
type Q781132
type Q874405
action find_tuple_counts
relation P361
type Q781132
type Q192350
[ANSWERS] are parts of max number of social groups or ministries
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?x WHERE { { ?x property:P361 ?k . ?x rdf:type ontology:Q781132 . ?k rdf:type ontology:Q874405 } UNION { ?x property:P361 ?k . ?x rdf:type ontology:Q781132 . ?k rdf:type ontology:Q192350 } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?a WHERE { { ?a property:P361 ?s . ?a rdf:type ontology:Q781132 . ?s rdf:type ontology:Q874405 } UNION { ?s rdf:type ontology:Q192350 . ?a rdf:type ontology:Q781132 . ?a property:P361 ?s } } GROUP BY ?a } . FILTER ( ?v = ?r ) }
Spetsnaz GRU United States Marine Corps United States Special Operations Command Soviet Navy United States Navy United States Naval Special Warfare Development Group
United States Navy, Spetsnaz GRU and United States Marine Corps are parts of max number of social groups or ministries
United States Navy Spetsnaz GRU United States Marine Corps
action argmax
action union
action find_tuple_counts
relation part of
type military branch
type social group
action find_tuple_counts
relation part of
type military branch
type ministry
[{'concept': 'military branch'}, 'part of', [{'concept': 'social group'}, {'concept': 'ministry'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?x WHERE { { ?x property:part_of ?k . ?x rdf:type ontology:military_branch . ?k rdf:type ontology:social_group } UNION { ?x property:part_of ?k . ?x rdf:type ontology:military_branch . ?k rdf:type ontology:ministry } } GROUP BY ?x } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?a WHERE { { ?a property:part_of ?s . ?a rdf:type ontology:military_branch . ?s rdf:type ontology:social_group } UNION { ?s rdf:type ontology:ministry . ?a rdf:type ontology:military_branch . ?a property:part_of ?s } } GROUP BY ?a } . FILTER ( ?v = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q781132 Q5962346
USER
How many classification schemes were managed by exactly 2 military branches ?
(c(Q5962346),P137,c(Q781132))
action count
action equal
action find_tuple_counts
relation P137
type Q5962346
type Q781132
value 2
[{'concept': 'Q5962346'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?d ) WHERE { ?t property:P137 ?z . ?t rdf:type ontology:Q5962346 . ?z rdf:type ontology:Q781132 } GROUP BY ?t } . FILTER ( ?d = 2 ) }
action count
action equal
action find_tuple_counts
relation operator
type classification scheme
type military branch
value 2
[{'concept': 'classification scheme'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?d ) WHERE { ?t property:operator ?z . ?t rdf:type ontology:classification_scheme . ?z rdf:type ontology:military_branch } GROUP BY ?t } . FILTER ( ?d = 2 ) }
[]
military branch classification scheme
SYSTEM
61
Q2451575 Q1960377 Q2975881 Q1499693 Q1773877 Q1782356 Q1066814 Q1720127 Q513869 Q2993149 Q395500 Q19623641 Q264912 Q13360583 Q494403 Q637775 Q1288529 Q6676568 Q846078 Q911728 Q713262 Q4172473 Q4367177 Q3679377 Q842423 Q11797542 Q2596671 Q975420 Q1068329 Q7862861 Q1194287 Q337990 Q2062612 Q2297597 Q6675326 Q1153647 Q955978 Q4785927 Q7449173 Q1754293 Q1541289 Q2000100 Q1626375 Q7862878 Q1070632 Q913512 Q528109 Q4367155 Q4367153 Q4367159 Q15631872 Q1475075 Q663037 Q1968562 Q1545043 Q14906943 Q2707876 Q2307521 Q442303 Q1389261 Q1719789
(c(Q5962346),P137,c(Q781132))
action count
action equal
action find_tuple_counts
relation P137
type Q5962346
type Q781132
value 2
[ANSWER]
[{'concept': 'Q5962346'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?d ) WHERE { ?t property:P137 ?z . ?t rdf:type ontology:Q5962346 . ?z rdf:type ontology:Q781132 } GROUP BY ?t } . FILTER ( ?d = 2 ) }
Karp-class submarine Soviet S-class submarine British H-class submarine Yankee-class submarine CB-class midget submarine Delta IV-class submarine Charlie-class submarine British J-class submarine Oscar-class submarine Holland 602 type submarine Agosta-class submarine Oscar-I-class submarine November-class submarine Papa class submarine Type 214 submarine Daphné-class submarine CA-class midget submarine Delta I-class submarine Romeo-class submarine Victor III class submarine Hai Lung-class submarine Echo I class submarine Ronis-class submarine Liuzzi-class submarine Foxtrot-class submarine Oscar-II-class submarine Type B1 submarine Som-class submarine Golf-class submarine U-10-class submarine Tango-class submarine Juliett class submarine S1000 class submarines Delta II-class submarine Echo II class submarine Zulu-class submarine Marcello-class submarine Archer-class submarine Victor I class submarine Upholder/Victoria-class submarine Västergötland-class submarine Kaiman-class submarine Project 615 U-43-class submarine Sierra-class submarine Victor II class submarine Hotel-class submarine Charlie II-class submarine Project 667AT Grusha Sierra II class submarine German Type UE II submarine Victor-class submarine Alfa-class submarine Delta III-class submarine Delta-class submarine Project 636 Varshavyanka Sjöormen-class submarine Losos-class submarine Beluga-class submarine Priz class deep submergence rescue vehicle German UD-class submarine
61
action count
action equal
action find_tuple_counts
relation operator
type classification scheme
type military branch
value 2
[{'concept': 'classification scheme'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?d ) WHERE { ?t property:operator ?z . ?t rdf:type ontology:classification_scheme . ?z rdf:type ontology:military_branch } GROUP BY ?t } . FILTER ( ?d = 2 ) }
[]