Simple Question (Direct)
Simple Question
Q7174664
P21
Q290
USER
Which sex does Peter Hill-Norton, Baron Hill-Norton have ?
(Q7174664,P21,c(Q290))
action filter_type
action find
entity Q7174664
relation P21
type Q290
['Q7174664', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q7174664 property:P21 ?s . ?s rdf:type ontology:Q290 }
Peter Hill-Norton, Baron Hill-Norton
action filter_type
action find
entity Peter Hill-Norton, Baron Hill-Norton
relation gender
type sex
['Peter Hill-Norton, Baron Hill-Norton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Peter_Hill-Norton,_Baron_Hill-Norton property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7174664,P21,c(Q290))
action filter_type
action find
entity Q7174664
relation P21
type Q290
Peter Hill-Norton , Baron Hill-Norton has a [ANSWER]
['Q7174664', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q7174664 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Peter Hill-Norton , Baron Hill-Norton has a male
male
action filter_type
action find
entity Peter Hill-Norton, Baron Hill-Norton
relation gender
type sex
['Peter Hill-Norton, Baron Hill-Norton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Peter_Hill-Norton,_Baron_Hill-Norton property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7174664
P607
Q198
USER
What battle was Peter Hill-Norton, Baron Hill-Norton a part of ?
(Q7174664,P607,c(Q198))
action filter_type
action find
entity Q7174664
relation P607
type Q198
['Q7174664', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q7174664 property:P607 ?a . ?a rdf:type ontology:Q198 }
Peter Hill-Norton, Baron Hill-Norton
action filter_type
action find
entity Peter Hill-Norton, Baron Hill-Norton
relation conflict
type war
['Peter Hill-Norton, Baron Hill-Norton', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Peter_Hill-Norton,_Baron_Hill-Norton property:conflict ?a . ?a rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q7174664,P607,c(Q198))
action filter_type
action find
entity Q7174664
relation P607
type Q198
Peter Hill-Norton , Baron Hill-Norton a part of was in [ANSWER]
['Q7174664', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { resource:Q7174664 property:P607 ?a . ?a rdf:type ontology:Q198 }
World War II
Peter Hill-Norton , Baron Hill-Norton a part of was in World War II
World War II
action filter_type
action find
entity Peter Hill-Norton, Baron Hill-Norton
relation conflict
type war
['Peter Hill-Norton, Baron Hill-Norton', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { resource:Peter_Hill-Norton,_Baron_Hill-Norton property:conflict ?a . ?a rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3430690
Q198
USER
And also tell me about Richard Daniel?
(Q3430690,P607,c(Q198))
action filter_type
action find
entity Q3430690
relation P607
type Q198
['Q3430690', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { resource:Q3430690 property:P607 ?j . ?j rdf:type ontology:Q198 }
Richard Daniel
action filter_type
action find
entity Richard Daniel
relation conflict
type war
['Richard Daniel', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Daniel property:conflict ?j . ?j rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q3430690,P607,c(Q198))
action filter_type
action find
entity Q3430690
relation P607
type Q198
[ANSWER]
['Q3430690', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?j WHERE { resource:Q3430690 property:P607 ?j . ?j rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action find
entity Richard Daniel
relation conflict
type war
['Richard Daniel', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?j WHERE { resource:Richard_Daniel property:conflict ?j . ?j rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q361 Q1408499
P607
Q502895
USER
Did that war engage in Quinto Bertoloni ?
(Q1408499,P607,Q361)
action is_in
entity Q1408499
action find
entity Q361
relation P607
['Q1408499', 'P607', 'Q361']
ASK WHERE { resource:Q361 property:P607 resource:Q1408499 }
World War I Quinto Bertoloni
action is_in
entity Quinto Bertoloni
action find
entity World War I
relation conflict
['Quinto Bertoloni', 'conflict', 'World War I']
ASK WHERE { resource:World_War_I property:conflict resource:Quinto_Bertoloni }
[]
common name
SYSTEM
NO
(Q1408499,P607,Q361)
action is_in
entity Q1408499
action find
entity Q361
relation P607
[ANSWER]
['Q1408499', 'P607', 'Q361']
ASK WHERE { resource:Q361 property:P607 resource:Q1408499 }
No
action is_in
entity Quinto Bertoloni
action find
entity World War I
relation conflict
['Quinto Bertoloni', 'conflict', 'World War I']
ASK WHERE { resource:World_War_I property:conflict resource:Quinto_Bertoloni }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P607
Q198 Q2235308 Q502895
USER
Which wars did atmost 4260 ship types or people take part in ?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action atmost
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
value 4260
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?i <= 4260 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P607 ?f . ?f rdf:type ontology:Q198 . ?r rdf:type ontology:Q2235308 } UNION { ?r property:P607 ?f . ?f rdf:type ontology:Q198 . ?r rdf:type ontology:Q502895 } } GROUP BY ?f } }
action atmost
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
value 4260
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?i <= 4260 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:conflict ?f . ?f rdf:type ontology:war . ?r rdf:type ontology:ship_type } UNION { ?r property:conflict ?f . ?f rdf:type ontology:war . ?r rdf:type ontology:common_name } } GROUP BY ?f } }
[]
war ship type common name
Q545449 Q17984356 Q163883
SYSTEM
Iraq War, Iraqi Civil War, Ten-Day War
Q8683 Q211855 Q1006311 Q795269 Q3067868 Q3778746 Q920894 Q81545 Q10859 Q163883 Q18121212 Q1021160 Q15860072 Q17984356 Q1072889 Q1980081 Q633862 Q209297 Q242352 Q2105495 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q4971401 Q2086498 Q1049945 Q75984 Q1021172 Q1021175 Q1122110 Q43378 Q8676 Q1127302 Q1052332 Q1070890 Q188972 Q12302518 Q475678 Q213394 Q17183365 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911 Q142529
(c(Q2235308)|c(Q502895),P607,c(Q198))
action atmost
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
value 4260
Atmost 4260 ship types or people took in the [ANSWERS] part
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?i <= 4260 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P607 ?f . ?f rdf:type ontology:Q198 . ?r rdf:type ontology:Q2235308 } UNION { ?r property:P607 ?f . ?f rdf:type ontology:Q198 . ?r rdf:type ontology:Q502895 } } GROUP BY ?f } }
Cold War Finnish Civil War war of national liberation Sierra Leone Civil War Colombian Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War Ten-Day War American-led intervention in Syria Armagnac–Burgundian Civil War 2014–16 Russian military intervention in Ukraine Iraqi Civil War Chilean War of Independence Civil war in Afghanistan Cold War Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War British military intervention in the Sierra Leone Civil War First Barons' War Jacobite rising of 1745 Dirty War Republic of the Congo Civil War First Ivorian Civil War Civil war in Tajikistan Thousand Days' War American Civil War Estonian War of Independence War in Somalia Georgian Civil War Greek Civil War Civil war in Afghanistan Mexican Drug War Sri Lankan Civil War Sectarian violence in Iraq (2006–07) military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War Algerian Civil War
Atmost 4260 ship types or people took in the Iraq War, Iraqi Civil War and Ten-Day War part
Iraq War Iraqi Civil War Ten-Day War
action atmost
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
value 4260
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?i <= 4260 ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:conflict ?f . ?f rdf:type ontology:war . ?r rdf:type ontology:ship_type } UNION { ?r property:conflict ?f . ?f rdf:type ontology:war . ?r rdf:type ontology:common_name } } GROUP BY ?f } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q163883
P710
Q781132
USER
Who was a participant of that war ?
(Q163883,P710,c(Q781132))
action filter_type
action find
entity Q163883
relation P710
type Q781132
['Q163883', 'P710', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q781132 . resource:Q163883 property:P710 ?e }
Ten-Day War
action filter_type
action find
entity Ten-Day War
relation participant
type military branch
['Ten-Day War', 'participant', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:military_branch . resource:Ten-Day_War property:participant ?e }
[]
military branch
Clarification for simple ques.
Q163883
SYSTEM
Did you mean Ten-Day War ?
Q545449 Q17984356 Q163883
(Q545449,P710,c(Q781132)) (Q17984356,P710,c(Q781132)) (Q163883,P710,c(Q781132))
[ANSWER]
['Q545449', 'P710', {'concept': 'Q781132'}] ['Q17984356', 'P710', {'concept': 'Q781132'}] ['Q163883', 'P710', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q781132 . resource:Q163883 property:P710 ?e }
Iraq War Iraqi Civil War Ten-Day War
Did you mean Ten-Day War ?
Ten-Day War
['Iraq War', 'participant', {'concept': 'military branch'}] ['Iraqi Civil War', 'participant', {'concept': 'military branch'}] ['Ten-Day War', 'participant', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:military_branch . resource:Ten-Day_War property:participant ?e }
[]
Simple Question (Coreferenced)
USER
Yes
(Q163883,P710,c(Q781132))
['Q163883', 'P710', {'concept': 'Q781132'}]
['Ten-Day War', 'participant', {'concept': 'military branch'}]
[]
Q272110
SYSTEM
Yugoslav People's Army
Q272110
(Q163883,P710,c(Q781132))
action filter_type
action find
entity Q163883
relation P710
type Q781132
[ANSWER] was a participant of that war
['Q163883', 'P710', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q781132 . resource:Q163883 property:P710 ?e }
Yugoslav People's Army
Yugoslav People's Army was a participant of that war
Yugoslav People's Army
action filter_type
action find
entity Ten-Day War
relation participant
type military branch
['Ten-Day War', 'participant', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:military_branch . resource:Ten-Day_War property:participant ?e }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q781132 Q781132
USER
Which military branches are min number of military branches a component of ?
(c(Q781132),P361,Q1370395)
action argmin
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
[{'concept': 'Q781132'}, 'P361', 'Q1370395']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P361 ?g . ?g rdf:type ontology:Q781132 . ?h rdf:type ontology:Q781132 } GROUP BY ?g } } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?r ) WHERE { ?p rdf:type ontology:Q781132 . ?j rdf:type ontology:Q781132 . ?j property:P361 ?p } GROUP BY ?p } }
action argmin
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
[{'concept': 'military branch'}, 'part of', 'Estonian Land Forces']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:part_of ?g . ?g rdf:type ontology:military_branch . ?h rdf:type ontology:military_branch } GROUP BY ?g } } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?r ) WHERE { ?p rdf:type ontology:military_branch . ?j rdf:type ontology:military_branch . ?j property:part_of ?p } GROUP BY ?p } }
[]
military branch military branch
Q276538 Q706042 Q11220
SYSTEM
Eurocorps, Prussian Army, United States Navy
Q16056518 Q23905126 Q222595 Q56015 Q210606 Q1799545 Q2328515 Q483268 Q1114493 Q1815399 Q3068744 Q11220 Q1046947 Q172771 Q701923 Q1078222 Q2078095 Q5555333 Q9160892 Q2558747 Q19344622 Q311689 Q248989 Q642932 Q1038047 Q833040 Q4117226 Q217406 Q2575188 Q156649 Q1546449 Q889751 Q781360 Q2492012 Q2749588 Q4447359 Q1652708 Q19247539 Q1951484 Q276535 Q276538 Q272110 Q796411 Q56012 Q7275540 Q25387 Q1076619 Q897614 Q6479134 Q741691 Q11322507 Q151701 Q11218 Q167682 Q2383264 Q465283 Q2384177 Q1124986 Q25436 Q1358152 Q4447363 Q9212 Q18129370 Q1753805 Q731647 Q706042 Q2630039 Q219712 Q706996 Q1674702 Q1370395
(c(Q781132),P361,Q1370395)
action argmin
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
Min number of military branches a component of are the [ANSWERS]
[{'concept': 'Q781132'}, 'P361', 'Q1370395']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P361 ?g . ?g rdf:type ontology:Q781132 . ?h rdf:type ontology:Q781132 } GROUP BY ?g } } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?r ) WHERE { ?p rdf:type ontology:Q781132 . ?j rdf:type ontology:Q781132 . ?j property:P361 ?p } GROUP BY ?p } }
Nepalese Army Slovak Army British Army German Navy 2nd Marine Division Philippine Army Belize Defence Force Republic of Korea Army Roman army South African Army Syrian Arab Army United States Navy Royal Marines Royal Navy German Army Imperial Russian Army Pakistan Army Ghana Army fortress artillery Romanian Land Forces naval reserve force Royal Hungarian Army Polish Land Forces Indian Army Irish Army Italian Navy Royal Jordanian Land Force French Navy Royal Danish Army Imperial German Navy Hellenic Army Japan Ground Self-Defense Force Australian Army Swedish Army Royal Thai Army Austrian Land Forces South African Navy Ottoman Army Georgian Land Forces Imperial Japanese Army Eurocorps Yugoslav People's Army Italian Army German Army RAF Regiment Royal Canadian Navy French Army Iraqi Army Egyptian Army Royal Australian Navy German Army Kriegsmarine United States Marine Corps rocket artillery Finnish Army Russian Navy Norwegian Army Confederate States Navy Canadian Army Korean People's Army Ground Force Lebanese Ground Forces United States 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
Min number of military branches a component of are the Eurocorps, Prussian Army and United States Navy
Eurocorps Prussian Army United States Navy
action argmin
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
[{'concept': 'military branch'}, 'part of', 'Estonian Land Forces']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:part_of ?g . ?g rdf:type ontology:military_branch . ?h rdf:type ontology:military_branch } GROUP BY ?g } } . FILTER ( ?r = ?u ) . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?r ) WHERE { ?p rdf:type ontology:military_branch . ?j rdf:type ontology:military_branch . ?j property:part_of ?p } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P366
Q180684 Q350604 Q781132
USER
How many military branches mainly plays the role of a atmost 1 conflicts or armed conflicts ?
(c(Q781132),P366,c(Q180684)|c(Q350604))
action count
action atmost
action union
action find_tuple_counts
relation P366
type Q781132
type Q180684
action find_tuple_counts
relation P366
type Q781132
type Q350604
value 1
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q180684'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { FILTER ( ?a <= 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?k WHERE { { ?k property:P366 ?m . ?k rdf:type ontology:Q781132 . ?m rdf:type ontology:Q180684 } UNION { ?k rdf:type ontology:Q781132 . ?m rdf:type ontology:Q350604 . ?k property:P366 ?m } } GROUP BY ?k } }
action count
action atmost
action union
action find_tuple_counts
relation use
type military branch
type conflict
action find_tuple_counts
relation use
type military branch
type armed conflict
value 1
[{'concept': 'military branch'}, 'use', [{'concept': 'conflict'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { FILTER ( ?a <= 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?k WHERE { { ?k property:use ?m . ?k rdf:type ontology:military_branch . ?m rdf:type ontology:conflict } UNION { ?k rdf:type ontology:military_branch . ?m rdf:type ontology:armed_conflict . ?k property:use ?m } } GROUP BY ?k } }
[]
conflict armed conflict military branch
SYSTEM
12
Q210606 Q18669736 Q6510939 Q1426835 Q2883880 Q1547773 Q63481 Q1046947 Q1318378 Q383108 Q15885502 Q4709134
(c(Q781132),P366,c(Q180684)|c(Q350604))
action count
action atmost
action union
action find_tuple_counts
relation P366
type Q781132
type Q180684
action find_tuple_counts
relation P366
type Q781132
type Q350604
value 1
[ANSWER]
[{'concept': 'Q781132'}, 'P366', [{'concept': 'Q180684'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { FILTER ( ?a <= 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?k WHERE { { ?k property:P366 ?m . ?k rdf:type ontology:Q781132 . ?m rdf:type ontology:Q180684 } UNION { ?k rdf:type ontology:Q781132 . ?m rdf:type ontology:Q350604 . ?k property:P366 ?m } } GROUP BY ?k } }
2nd Marine Division Jamaica Regiment Lebanese Special Operations Command anti-aircraft artillery 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
12
action count
action atmost
action union
action find_tuple_counts
relation use
type military branch
type conflict
action find_tuple_counts
relation use
type military branch
type armed conflict
value 1
[{'concept': 'military branch'}, 'use', [{'concept': 'conflict'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { FILTER ( ?a <= 1 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) ?k WHERE { { ?k property:use ?m . ?k rdf:type ontology:military_branch . ?m rdf:type ontology:conflict } UNION { ?k rdf:type ontology:military_branch . ?m rdf:type ontology:armed_conflict . ?k property:use ?m } } GROUP BY ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q781132 Q62447
USER
Which aerodromes can be described as facility operator of max number of military branches ?
(c(Q62447),P137,c(Q781132))
action argmax
action find_tuple_counts
relation P137
type Q62447
type Q781132
[{'concept': 'Q62447'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?k ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?n ) WHERE { ?u property:P137 ?z . ?z rdf:type ontology:Q781132 . ?u rdf:type ontology:Q62447 } GROUP BY ?u } } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?t ) WHERE { ?g property:P137 ?j . ?g rdf:type ontology:Q62447 . ?j rdf:type ontology:Q781132 } GROUP BY ?g } }
action argmax
action find_tuple_counts
relation operator
type aerodrome
type military branch
[{'concept': 'aerodrome'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?k ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?n ) WHERE { ?u property:operator ?z . ?z rdf:type ontology:military_branch . ?u rdf:type ontology:aerodrome } GROUP BY ?u } } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?t ) WHERE { ?g property:operator ?j . ?g rdf:type ontology:aerodrome . ?j rdf:type ontology:military_branch } GROUP BY ?g } }
[]
military branch aerodrome
Q800126 Q5135044 Q3017076
SYSTEM
Bagram Airfield, Narsarsuaq Air Base, Naval Air Station Jacksonville
Q800126 Q5135044 Q3017076
(c(Q62447),P137,c(Q781132))
action argmax
action find_tuple_counts
relation P137
type Q62447
type Q781132
[ANSWERS] can be described as facility operator of max number of military branches
[{'concept': 'Q62447'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?k ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?n ) WHERE { ?u property:P137 ?z . ?z rdf:type ontology:Q781132 . ?u rdf:type ontology:Q62447 } GROUP BY ?u } } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?t ) WHERE { ?g property:P137 ?j . ?g rdf:type ontology:Q62447 . ?j rdf:type ontology:Q781132 } GROUP BY ?g } }
Bagram Airfield Narsarsuaq Air Base Naval Air Station Jacksonville
Bagram Airfield, Narsarsuaq Air Base and Naval Air Station Jacksonville can be described as facility operator of max number of military branches
Bagram Airfield Narsarsuaq Air Base Naval Air Station Jacksonville
action argmax
action find_tuple_counts
relation operator
type aerodrome
type military branch
[{'concept': 'aerodrome'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?k ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?n ) WHERE { ?u property:operator ?z . ?z rdf:type ontology:military_branch . ?u rdf:type ontology:aerodrome } GROUP BY ?u } } . FILTER ( ?t = ?k ) . { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?t ) WHERE { ?g property:operator ?j . ?g rdf:type ontology:aerodrome . ?j rdf:type ontology:military_branch } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9212 Q706042
P361
Q23905071
USER
Which military unit type-size classes are a part of Prussian Army or United States Army ?
OR((c(Q23905071),P361,Q706042), (c(Q23905071),P361,Q9212))
action filter_type
action union
action find_reverse
entity Q706042
relation P361
action find_reverse
entity Q9212
relation P361
type Q23905071
{'OR': [[{'concept': 'Q23905071'}, 'P361', 'Q706042'], [{'concept': 'Q23905071'}, 'P361', 'Q9212']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P361 resource:Q706042 } UNION { ?j property:P361 resource:Q9212 } } . ?j rdf:type ontology:Q23905071 }
United States Army Prussian Army
action filter_type
action union
action find_reverse
entity Prussian Army
relation part of
action find_reverse
entity United States Army
relation part of
type military unit type-size class
{'OR': [[{'concept': 'military unit type-size class'}, 'part of', 'Prussian Army'], [{'concept': 'military unit type-size class'}, 'part of', 'United States Army']]}
SELECT DISTINCT ?j WHERE { { { ?j property:part_of resource:Prussian_Army } UNION { ?j property:part_of resource:United_States_Army } } . ?j rdf:type ontology:military_unit_type-size_class }
[]
military unit type-size class
Q216951 Q164669 Q4635080 Q2332494 Q4642697 Q173964 Q2815598 Q4641330 Q4631982 Q217777
SYSTEM
Some of them are 24th Infantry Division, 10th Mountain Division, 32nd Infantry Division, 30th Infantry Division, 6th Infantry Regiment, 8th Infantry Division, 27th Infantry Division, 5th Infantry Regiment, 24th Infantry Regiment, 25th Infantry Division
Q210607 Q216951 Q217777 Q164051 Q164669 Q16057511 Q4644080 Q2715566 Q223551 Q3737022 Q4645383 Q4547071 Q2614247 Q2332494 Q173964 Q900835 Q4635080 Q2815510 Q4634840 Q2815598 Q4631982 Q4639316 Q4641330 Q4642697 Q261179 Q2640018 Q4646583
OR((c(Q23905071),P361,Q706042), (c(Q23905071),P361,Q9212))
action filter_type
action union
action find_reverse
entity Q706042
relation P361
action find_reverse
entity Q9212
relation P361
type Q23905071
[ANSWERS]
{'OR': [[{'concept': 'Q23905071'}, 'P361', 'Q706042'], [{'concept': 'Q23905071'}, 'P361', 'Q9212']]}
SELECT DISTINCT ?j WHERE { { { ?j property:P361 resource:Q706042 } UNION { ?j property:P361 resource:Q9212 } } . ?j rdf:type ontology:Q23905071 }
2nd Infantry Division 24th Infantry Division 25th Infantry Division 10th Division 10th Mountain Division 2nd Infantry Regiment 7th Infantry Regiment 9th Infantry Division 3rd Infantry Division 3rd Infantry Regiment 8th Infantry Regiment 10th Infantry Regiment 5th Infantry Division 30th Infantry Division 8th Infantry Division 6th Infantry Division 32nd Infantry Division 26th Infantry Division 31st Infantry Division 27th Infantry Division 24th Infantry Regiment 4th Infantry Regiment 5th Infantry Regiment 6th Infantry Regiment 7th Infantry Division 28th Infantry Division 9th Infantry Regiment
Which military unit type-size classes are a part of Prussian Army or United States Army
24th Infantry Division 10th Mountain Division 32nd Infantry Division 30th Infantry Division 6th Infantry Regiment 8th Infantry Division 27th Infantry Division 5th Infantry Regiment 24th Infantry Regiment 25th Infantry Division
action filter_type
action union
action find_reverse
entity Prussian Army
relation part of
action find_reverse
entity United States Army
relation part of
type military unit type-size class
{'OR': [[{'concept': 'military unit type-size class'}, 'part of', 'Prussian Army'], [{'concept': 'military unit type-size class'}, 'part of', 'United States Army']]}
SELECT DISTINCT ?j WHERE { { { ?j property:part_of resource:Prussian_Army } UNION { ?j property:part_of resource:United_States_Army } } . ?j rdf:type ontology:military_unit_type-size_class }
[]