Simple Question (Direct)
Simple Question
Q5217700
P69
Q3918
USER
Which university is Daniel Johnson an alumni of ?
(Q5217700,P69,c(Q3918))
action filter_type
action find
entity Q5217700
relation P69
type Q3918
['Q5217700', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q5217700 property:P69 ?a . ?a rdf:type ontology:Q3918 }
Daniel Johnson
action filter_type
action find
entity Daniel Johnson
relation educated at
type university
['Daniel Johnson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Daniel_Johnson property:educated_at ?a . ?a rdf:type ontology:university }
[]
university
Q192334
SYSTEM
University of North Carolina at Chapel Hill
Q192334
(Q5217700,P69,c(Q3918))
action filter_type
action find
entity Q5217700
relation P69
type Q3918
Which university is Daniel Johnson an alumni of
['Q5217700', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?a WHERE { resource:Q5217700 property:P69 ?a . ?a rdf:type ontology:Q3918 }
University of North Carolina at Chapel Hill
Which university is Daniel Johnson an alumni of
University of North Carolina at Chapel Hill
action filter_type
action find
entity Daniel Johnson
relation educated at
type university
['Daniel Johnson', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?a WHERE { resource:Daniel_Johnson property:educated_at ?a . ?a rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5217700
P27
Q15617994
USER
Which administrative territory is Daniel Johnson an inhabitant of ?
(Q5217700,P27,c(Q15617994))
action filter_type
action find
entity Q5217700
relation P27
type Q15617994
['Q5217700', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5217700 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Daniel Johnson
action filter_type
action find
entity Daniel Johnson
relation country of citizenship
type designation for an administrative territorial entity
['Daniel Johnson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Daniel_Johnson property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5217700,P27,c(Q15617994))
action filter_type
action find
entity Q5217700
relation P27
type Q15617994
The [ANSWER] is Daniel Johnson an inhabitant of
['Q5217700', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q5217700 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United States of America
The United States of America is Daniel Johnson an inhabitant of
United States of America
action filter_type
action find
entity Daniel Johnson
relation country of citizenship
type designation for an administrative territorial entity
['Daniel Johnson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Daniel_Johnson property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5217700
P241
Q781132
USER
Which military branch is that person affiliated to ?
(Q30,P241,c(Q781132))
action filter_type
action find
entity Q5217700
relation P241
type Q781132
['Q30', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?k WHERE { resource:Q5217700 property:P241 ?k . ?k rdf:type ontology:Q781132 }
Daniel Johnson
action filter_type
action find
entity Daniel Johnson
relation military branch
type military branch
['United States of America', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?k WHERE { resource:Daniel_Johnson property:military_branch ?k . ?k rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q30,P241,c(Q781132))
action filter_type
action find
entity Q5217700
relation P241
type Q781132
That person is affiliated with [ANSWER]
['Q30', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?k WHERE { resource:Q5217700 property:P241 ?k . ?k rdf:type ontology:Q781132 }
United States Navy
That person is affiliated with United States Navy
United States Navy
action filter_type
action find
entity Daniel Johnson
relation military branch
type military branch
['United States of America', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?k WHERE { resource:Daniel_Johnson property:military_branch ?k . ?k rdf:type ontology:military_branch }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q7791505 Q5217700
P241
Q781132
USER
And also Thomas Kersey
AND((Q5217700,P241,c(Q781132)), (Q7791505,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q5217700
relation P241
action find
entity Q7791505
relation P241
type Q781132
{'AND': [['Q5217700', 'P241', {'concept': 'Q781132'}], ['Q7791505', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?z WHERE { resource:Q5217700 property:P241 ?z . resource:Q7791505 property:P241 ?z . ?z rdf:type ontology:Q781132 }
Thomas Kersey Daniel Johnson
action filter_type
action intersection
action find
entity Daniel Johnson
relation military branch
action find
entity Thomas Kersey
relation military branch
type military branch
{'AND': [['Daniel Johnson', 'military branch', {'concept': 'military branch'}], ['Thomas Kersey', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?z WHERE { resource:Daniel_Johnson property:military_branch ?z . resource:Thomas_Kersey property:military_branch ?z . ?z rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
AND((Q5217700,P241,c(Q781132)), (Q7791505,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q5217700
relation P241
action find
entity Q7791505
relation P241
type Q781132
[ANSWER]
{'AND': [['Q5217700', 'P241', {'concept': 'Q781132'}], ['Q7791505', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?z WHERE { resource:Q5217700 property:P241 ?z . resource:Q7791505 property:P241 ?z . ?z rdf:type ontology:Q781132 }
United States Navy
United States Navy
action filter_type
action intersection
action find
entity Daniel Johnson
relation military branch
action find
entity Thomas Kersey
relation military branch
type military branch
{'AND': [['Daniel Johnson', 'military branch', {'concept': 'military branch'}], ['Thomas Kersey', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?z WHERE { resource:Daniel_Johnson property:military_branch ?z . resource:Thomas_Kersey property:military_branch ?z . ?z rdf:type ontology:military_branch }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q781132 Q21506450 Q874405
USER
Which military branches are min number of military unit size classes and social groups a component of ?
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?n WHERE { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:Q21506450 ) ( ontology:Q874405 ) } } GROUP BY ?n } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?o WHERE { { ?r property:P361 ?o . ?o rdf:type ontology:Q781132 . ?r rdf:type ontology:Q874405 } UNION { ?r property:P361 ?o . ?o rdf:type ontology:Q781132 . ?r rdf:type ontology:Q21506450 } } GROUP BY ?o } } }
action argmin
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?n WHERE { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:military_unit_size_class ) ( ontology:social_group ) } } GROUP BY ?n } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?o WHERE { { ?r property:part_of ?o . ?o rdf:type ontology:military_branch . ?r rdf:type ontology:social_group } UNION { ?r property:part_of ?o . ?o rdf:type ontology:military_branch . ?r rdf:type ontology:military_unit_size_class } } GROUP BY ?o } } }
[]
military branch military unit size class social group
Q276538 Q2862927 Q706042
SYSTEM
Eurocorps, Indonesian Army, Prussian Army
Q16056518 Q23905126 Q56015 Q1799545 Q2328515 Q483268 Q1114493 Q1815399 Q3068744 Q1046947 Q172771 Q701923 Q2078095 Q676404 Q313422 Q9160892 Q2558747 Q311689 Q248989 Q1038047 Q833040 Q217406 Q488756 Q156649 Q1546449 Q889751 Q2492012 Q2862927 Q2749588 Q4447359 Q1652708 Q19247539 Q1951484 Q276535 Q1750688 Q276538 Q272110 Q796411 Q56012 Q7275540 Q25387 Q208711 Q897614 Q6479134 Q741691 Q11322507 Q2292358 Q151701 Q11218 Q2301347 Q167682 Q2383264 Q18643350 Q465283 Q1124986 Q2258261 Q4447363 Q355771 Q18129370 Q1753805 Q731647 Q706042 Q219712 Q706996 Q1674702 Q1370395
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
[ANSWERS] are min number of military unit size classes and social groups a component of
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?n WHERE { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:Q21506450 ) ( ontology:Q874405 ) } } GROUP BY ?n } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?o WHERE { { ?r property:P361 ?o . ?o rdf:type ontology:Q781132 . ?r rdf:type ontology:Q874405 } UNION { ?r property:P361 ?o . ?o rdf:type ontology:Q781132 . ?r rdf:type ontology:Q21506450 } } GROUP BY ?o } } }
Nepalese Army Slovak Army German Navy Philippine Army Belize Defence Force Republic of Korea Army Roman army South African Army Syrian Arab Army Royal Marines Royal Navy German Army Pakistan Army Spanish Navy German Army fortress artillery Romanian Land Forces Royal Hungarian Army Polish Land Forces Irish Army Italian Navy French Navy Republic of Korea Navy Imperial German Navy Hellenic Army 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 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 Confederate States Navy Pakistan Navy Lebanese Ground Forces Indian Army Philippine Commonwealth Army Croatian Army Japan Maritime Self-Defense Force Prussian Army Imperial Japanese Navy Southern Expeditionary Army Group GOC Army Headquarters Estonian Land Forces
Eurocorps, Indonesian Army and Prussian Army are min number of military unit size classes and social groups a component of
Eurocorps Indonesian Army Prussian Army
action argmin
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) ?n WHERE { ?q rdf:type ?v . VALUES ( ?v ) { ( ontology:military_unit_size_class ) ( ontology:social_group ) } } GROUP BY ?n } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?o WHERE { { ?r property:part_of ?o . ?o rdf:type ontology:military_branch . ?r rdf:type ontology:social_group } UNION { ?r property:part_of ?o . ?o rdf:type ontology:military_branch . ?r rdf:type ontology:military_unit_size_class } } GROUP BY ?o } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q350604 Q180684 Q781132
USER
Which military branches have their main utilization as atmost 2 armed conflicts or conflicts ?
(c(Q781132),P366,c(Q350604)|c(Q180684))
action atmost
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
value 2
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q350604 ) ( ontology:Q180684 ) } . ?y rdf:type ?e } GROUP BY ?h } . FILTER ( ?w <= 2 ) }
action atmost
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
value 2
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:armed_conflict ) ( ontology:conflict ) } . ?y rdf:type ?e } GROUP BY ?h } . FILTER ( ?w <= 2 ) }
[]
armed conflict conflict military branch
Q222883 Q4709134 Q15885502
SYSTEM
Special Air Service, Albanian Land Force, Spetsnaz GRU
Q210606 Q18669736 Q6510939 Q1426835 Q222883 Q2883880 Q1547773 Q63481 Q1046947 Q1318378 Q383108 Q15885502 Q4709134
(c(Q781132),P366,c(Q350604)|c(Q180684))
action atmost
action union
action find_tuple_counts
relation P366
type Q781132
type Q350604
action find_tuple_counts
relation P366
type Q781132
type Q180684
value 2
[ANSWERS] have their main utilization as atmost 2 armed conflicts or conflicts
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q350604'}, {'concept': 'Q180684'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q350604 ) ( ontology:Q180684 ) } . ?y rdf:type ?e } GROUP BY ?h } . FILTER ( ?w <= 2 ) }
2nd Marine Division Jamaica Regiment Lebanese Special Operations Command anti-aircraft artillery Special Air Service Barbados Regiment Groupes d'Intervention de la Police Nationale National Gendarmerie Intervention Group Royal Marines Recherche Assistance Intervention Dissuasion Afghan National Army Spetsnaz GRU Albanian Land Force
Special Air Service, Albanian Land Force and Spetsnaz GRU have their main utilization as atmost 2 armed conflicts or conflicts
Special Air Service Albanian Land Force Spetsnaz GRU
action atmost
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
value 2
[{'concept': 'military branch'}, 'use', [{'concept': 'armed conflict'}, {'concept': 'conflict'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:armed_conflict ) ( ontology:conflict ) } . ?y rdf:type ?e } GROUP BY ?h } . FILTER ( ?w <= 2 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P121
Q11436 Q20027951 Q781132
USER
How many military branches manage more number of aircrafts and aircraft power classes than that military branch ?
(c(Q781132),P121,c(Q11436)|c(Q20027951))
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q11436'}, {'concept': 'Q20027951'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:P121 ?b } . ?z rdf:type ontology:Q781132 . ?y rdf:type ontology:Q11436 . ?x rdf:type ontology:Q20027951 }
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft'}, {'concept': 'aircraft power class'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:item_operated ?b } . ?z rdf:type ontology:military_branch . ?y rdf:type ontology:aircraft . ?x rdf:type ontology:aircraft_power_class }
[]
aircraft aircraft power class military branch
Comparative|Count over More/Less|Mult. entity type|Clarification
Q222883
SYSTEM
Did you mean Special Air Service ?
(c(Q781132),P121,c(Q11436)|c(Q20027951))
[ANSWER]
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q11436'}, {'concept': 'Q20027951'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:P121 ?b } . ?z rdf:type ontology:Q781132 . ?y rdf:type ontology:Q11436 . ?x rdf:type ontology:Q20027951 }
Did you mean Special Air Service ?
Special Air Service
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft'}, {'concept': 'aircraft power class'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { VALUES ( ?b ) { ( ?y ) ( ?x ) } . ?z property:item_operated ?b } . ?z rdf:type ontology:military_branch . ?y rdf:type ontology:aircraft . ?x rdf:type ontology:aircraft_power_class }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Albanian Land Force. Could you tell me the answer for that?
(c(Q781132),P121,c(Q11436)|c(Q20027951))
Q4709134
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q11436'}, {'concept': 'Q20027951'}]]
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft'}, {'concept': 'aircraft power class'}]]
[]
SYSTEM
0
(c(Q781132),P121,c(Q11436)|c(Q20027951))
[ANSWER]
[{'concept': 'Q781132'}, 'P121', [{'concept': 'Q11436'}, {'concept': 'Q20027951'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P121 ?y } UNION { ?z property:P121 ?x } } . ?z rdf:type ontology:Q781132 . ?y rdf:type ontology:Q11436 . ?x rdf:type ontology:Q20027951 }
0
[{'concept': 'military branch'}, 'item operated', [{'concept': 'aircraft'}, {'concept': 'aircraft power class'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:item_operated ?y } UNION { ?z property:item_operated ?x } } . ?z rdf:type ontology:military_branch . ?y rdf:type ontology:aircraft . ?x rdf:type ontology:aircraft_power_class }
[]