Simple Question (Direct)
Simple Question
Q7781939
P607
Q198
USER
What was the war that Theodore P. Greene took part in
(Q7781939,P607,c(Q198))
action filter_type
action find
entity Q7781939
relation P607
type Q198
['Q7781939', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { resource:Q7781939 property:P607 ?n . ?n rdf:type ontology:Q198 }
Theodore P. Greene
action filter_type
action find
entity Theodore P. Greene
relation conflict
type war
['Theodore P. Greene', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { resource:Theodore_P._Greene property:conflict ?n . ?n rdf:type ontology:war }
[]
war
Q8676
SYSTEM
American Civil War
Q8676
(Q7781939,P607,c(Q198))
action filter_type
action find
entity Q7781939
relation P607
type Q198
The war that Theodore P. was the [ANSWER]
['Q7781939', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?n WHERE { resource:Q7781939 property:P607 ?n . ?n rdf:type ontology:Q198 }
American Civil War
The war that Theodore P. was the American Civil War
American Civil War
action filter_type
action find
entity Theodore P. Greene
relation conflict
type war
['Theodore P. Greene', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?n WHERE { resource:Theodore_P._Greene property:conflict ?n . ?n rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7781939
P241
Q781132
USER
Which military branch was that person a part of ?
(Q8676,P241,c(Q781132))
action filter_type
action find
entity Q7781939
relation P241
type Q781132
['Q8676', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q7781939 property:P241 ?b . ?b rdf:type ontology:Q781132 }
Theodore P. Greene
action filter_type
action find
entity Theodore P. Greene
relation military branch
type military branch
['American Civil War', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Theodore_P._Greene property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q8676,P241,c(Q781132))
action filter_type
action find
entity Q7781939
relation P241
type Q781132
Navy [ANSWER] was that person a part of
['Q8676', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q7781939 property:P241 ?b . ?b rdf:type ontology:Q781132 }
United States Navy
Navy United States Navy was that person a part of
United States Navy
action filter_type
action find
entity Theodore P. Greene
relation military branch
type military branch
['American Civil War', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Theodore_P._Greene property:military_branch ?b . ?b rdf:type ontology:military_branch }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1067064
P361
Q781132 Q781132
USER
How many military branches are lesser number of military branches a part of than United States Special Operations Command ?
(c(Q781132),P361,c(Q781132))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_type
action find_reverse
entity Q1067064
relation P361
type Q781132
[{'concept': 'Q781132'}, 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?j ) WHERE { ?s rdf:type ontology:Q781132 . ?f rdf:type ontology:Q781132 . ?f property:P361 ?s } GROUP BY ?s } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u property:P361 resource:Q1067064 . ?u rdf:type ontology:Q781132 } } }
United States Special Operations Command
action count
action less
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_type
action find_reverse
entity United States Special Operations Command
relation part of
type military branch
[{'concept': 'military branch'}, 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?j ) WHERE { ?s rdf:type ontology:military_branch . ?f rdf:type ontology:military_branch . ?f property:part_of ?s } GROUP BY ?s } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u property:part_of resource:United_States_Special_Operations_Command . ?u rdf:type ontology:military_branch } } }
[]
military branch military branch
SYSTEM
71
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,c(Q781132))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_type
action find_reverse
entity Q1067064
relation P361
type Q781132
[ANSWER]
[{'concept': 'Q781132'}, 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?j ) WHERE { ?s rdf:type ontology:Q781132 . ?f rdf:type ontology:Q781132 . ?f property:P361 ?s } GROUP BY ?s } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u property:P361 resource:Q1067064 . ?u rdf:type ontology:Q781132 } } }
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
71
action count
action less
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_type
action find_reverse
entity United States Special Operations Command
relation part of
type military branch
[{'concept': 'military branch'}, 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?j ) WHERE { ?s rdf:type ontology:military_branch . ?f rdf:type ontology:military_branch . ?f property:part_of ?s } GROUP BY ?s } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u property:part_of resource:United_States_Special_Operations_Command . ?u rdf:type ontology:military_branch } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q2862927
P361
Q781132 Q781132
USER
And how about Indonesian Army?
(c(Q781132),P361,c(Q781132))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_type
action find_reverse
entity Q2862927
relation P361
type Q781132
[{'concept': 'Q781132'}, 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?t ) WHERE { ?y rdf:type ontology:Q781132 . ?w rdf:type ontology:Q781132 . ?w property:P361 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ontology:Q781132 . ?a property:P361 resource:Q2862927 } } . FILTER ( ?t < ?r ) }
Indonesian Army
action count
action less
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_type
action find_reverse
entity Indonesian Army
relation part of
type military branch
[{'concept': 'military branch'}, 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?t ) WHERE { ?y rdf:type ontology:military_branch . ?w rdf:type ontology:military_branch . ?w property:part_of ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ontology:military_branch . ?a property:part_of resource:Indonesian_Army } } . FILTER ( ?t < ?r ) }
[]
military branch military branch
SYSTEM
71
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,c(Q781132))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
action count
action filter_type
action find_reverse
entity Q2862927
relation P361
type Q781132
[ANSWER]
[{'concept': 'Q781132'}, 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?t ) WHERE { ?y rdf:type ontology:Q781132 . ?w rdf:type ontology:Q781132 . ?w property:P361 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ontology:Q781132 . ?a property:P361 resource:Q2862927 } } . FILTER ( ?t < ?r ) }
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
71
action count
action less
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
action count
action filter_type
action find_reverse
entity Indonesian Army
relation part of
type military branch
[{'concept': 'military branch'}, 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?t ) WHERE { ?y rdf:type ontology:military_branch . ?w rdf:type ontology:military_branch . ?w property:part_of ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { ?a rdf:type ontology:military_branch . ?a property:part_of resource:Indonesian_Army } } . FILTER ( ?t < ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17597972 Q2862927
P121
Q12876
USER
Which tanks are the facilities operated by Indonesian Army or Angolan Army ?
OR((Q2862927,P121,c(Q12876)), (Q17597972,P121,c(Q12876)))
action filter_type
action union
action find
entity Q2862927
relation P121
action find
entity Q17597972
relation P121
type Q12876
{'OR': [['Q2862927', 'P121', {'concept': 'Q12876'}], ['Q17597972', 'P121', {'concept': 'Q12876'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Q2862927 ) ( resource:Q17597972 ) } . ?m property:P121 ?v } . ?v rdf:type ontology:Q12876 }
Angolan Army Indonesian Army
action filter_type
action union
action find
entity Indonesian Army
relation item operated
action find
entity Angolan Army
relation item operated
type tank
{'OR': [['Indonesian Army', 'item operated', {'concept': 'tank'}], ['Angolan Army', 'item operated', {'concept': 'tank'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Indonesian_Army ) ( resource:Angolan_Army ) } . ?m property:item_operated ?v } . ?v rdf:type ontology:tank }
[]
tank
Q151968 Q328272 Q641764 Q155658
SYSTEM
Leopard 2, T-54/55, PT-76, T-72
Q151968 Q328272 Q641764 Q155658
OR((Q2862927,P121,c(Q12876)), (Q17597972,P121,c(Q12876)))
action filter_type
action union
action find
entity Q2862927
relation P121
action find
entity Q17597972
relation P121
type Q12876
[ANSWERS] are the facilities operated by Indonesian Army or Angolan Army
{'OR': [['Q2862927', 'P121', {'concept': 'Q12876'}], ['Q17597972', 'P121', {'concept': 'Q12876'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Q2862927 ) ( resource:Q17597972 ) } . ?m property:P121 ?v } . ?v rdf:type ontology:Q12876 }
Leopard 2 T-54/55 PT-76 T-72
Leopard 2, T-54/55, PT-76 and T-72 are the facilities operated by Indonesian Army or Angolan Army
Leopard 2 T-54/55 PT-76 T-72
action filter_type
action union
action find
entity Indonesian Army
relation item operated
action find
entity Angolan Army
relation item operated
type tank
{'OR': [['Indonesian Army', 'item operated', {'concept': 'tank'}], ['Angolan Army', 'item operated', {'concept': 'tank'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?m ) { ( resource:Indonesian_Army ) ( resource:Angolan_Army ) } . ?m property:item_operated ?v } . ?v rdf:type ontology:tank }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P121
Q12876 Q781132
USER
Which military branches handle the operation of approximately 1 tank ?
(c(Q781132),P121,c(Q12876))
action approx
action find_tuple_counts
relation P121
type Q781132
type Q12876
value 1
[{'concept': 'Q781132'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?g ) WHERE { ?m property:P121 ?f . ?m rdf:type ontology:Q781132 . ?f rdf:type ontology:Q12876 } GROUP BY ?m } . FILTER ( ?g = 1 ) }
action approx
action find_tuple_counts
relation item operated
type military branch
type tank
value 1
[{'concept': 'military branch'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?g ) WHERE { ?m property:item_operated ?f . ?m rdf:type ontology:military_branch . ?f rdf:type ontology:tank } GROUP BY ?m } . FILTER ( ?g = 1 ) }
[]
tank military branch
Q2862927 Q3277832 Q192366
SYSTEM
Indonesian Army, Hungarian Ground Forces, Royal Bahraini Army
Q2862927 Q3277832 Q192366
(c(Q781132),P121,c(Q12876))
action approx
action find_tuple_counts
relation P121
type Q781132
type Q12876
value 1
[ANSWERS] handle the operation of approximately 1 tank
[{'concept': 'Q781132'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?g ) WHERE { ?m property:P121 ?f . ?m rdf:type ontology:Q781132 . ?f rdf:type ontology:Q12876 } GROUP BY ?m } . FILTER ( ?g = 1 ) }
Indonesian Army Hungarian Ground Forces Royal Bahraini Army
Indonesian Army, Hungarian Ground Forces and Royal Bahraini Army handle the operation of approximately 1 tank
Indonesian Army Hungarian Ground Forces Royal Bahraini Army
action approx
action find_tuple_counts
relation item operated
type military branch
type tank
value 1
[{'concept': 'military branch'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?g ) WHERE { ?m property:item_operated ?f . ?m rdf:type ontology:military_branch . ?f rdf:type ontology:tank } GROUP BY ?m } . FILTER ( ?g = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3277832
P17
Q15617994
USER
Which administrative territory is that military branch situated in ?
(Q3277832,P17,c(Q15617994))
action filter_type
action find
entity Q3277832
relation P17
type Q15617994
['Q3277832', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q3277832 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Hungarian Ground Forces
action filter_type
action find
entity Hungarian Ground Forces
relation country
type designation for an administrative territorial entity
['Hungarian Ground Forces', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Hungarian_Ground_Forces property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q2862927
SYSTEM
Did you mean Indonesian Army ?
Q2862927 Q3277832 Q192366
(Q2862927,P17,c(Q15617994)) (Q3277832,P17,c(Q15617994)) (Q192366,P17,c(Q15617994))
[ANSWER]
['Q2862927', 'P17', {'concept': 'Q15617994'}] ['Q3277832', 'P17', {'concept': 'Q15617994'}] ['Q192366', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q3277832 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Indonesian Army Hungarian Ground Forces Royal Bahraini Army
Did you mean Indonesian Army ?
Indonesian Army
['Indonesian Army', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hungarian Ground Forces', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Royal Bahraini Army', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Hungarian_Ground_Forces property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Hungarian Ground Forces. Could you tell me the answer for that?
(Q3277832,P17,c(Q15617994))
Q3277832
['Q3277832', 'P17', {'concept': 'Q15617994'}]
['Hungarian Ground Forces', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q28
SYSTEM
Hungary
Q28
(Q3277832,P17,c(Q15617994))
action filter_type
action find
entity Q3277832
relation P17
type Q15617994
That military branch is situated in [ANSWER]
['Q3277832', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q3277832 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Hungary
That military branch is situated in Hungary
Hungary
action filter_type
action find
entity Hungarian Ground Forces
relation country
type designation for an administrative territorial entity
['Hungarian Ground Forces', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Hungarian_Ground_Forces property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?n ) WHERE { ?j property:P530 ?v . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?c ) WHERE { ?o property:P530 ?d . ?o rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?o } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?n ) WHERE { ?j property:diplomatic_relation ?v . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?c ) WHERE { ?o property:diplomatic_relation ?d . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have tactful political relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?n ) WHERE { ?j property:P530 ?v . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?c ) WHERE { ?o property:P530 ?d . ?o rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?o } } }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have tactful political relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?n ) WHERE { ?j property:diplomatic_relation ?v . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . FILTER ( ?n = ?q ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?o ( COUNT ( ?d ) AS ?c ) WHERE { ?o property:diplomatic_relation ?d . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17597972 Q3277832
P121
Q12876
USER
Which tanks are the facilities operated by Hungarian Ground Forces or Angolan Army ?
OR((Q3277832,P121,c(Q12876)), (Q17597972,P121,c(Q12876)))
action filter_type
action union
action find
entity Q3277832
relation P121
action find
entity Q17597972
relation P121
type Q12876
{'OR': [['Q3277832', 'P121', {'concept': 'Q12876'}], ['Q17597972', 'P121', {'concept': 'Q12876'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12876 . { { resource:Q17597972 property:P121 ?p } UNION { resource:Q3277832 property:P121 ?p } } }
Angolan Army Hungarian Ground Forces
action filter_type
action union
action find
entity Hungarian Ground Forces
relation item operated
action find
entity Angolan Army
relation item operated
type tank
{'OR': [['Hungarian Ground Forces', 'item operated', {'concept': 'tank'}], ['Angolan Army', 'item operated', {'concept': 'tank'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:tank . { { resource:Angolan_Army property:item_operated ?p } UNION { resource:Hungarian_Ground_Forces property:item_operated ?p } } }
[]
tank
Q328272 Q641764 Q155658
SYSTEM
T-54/55, PT-76, T-72
Q328272 Q641764 Q155658
OR((Q3277832,P121,c(Q12876)), (Q17597972,P121,c(Q12876)))
action filter_type
action union
action find
entity Q3277832
relation P121
action find
entity Q17597972
relation P121
type Q12876
[ANSWERS] are the facilities operated by Hungarian Ground Forces or Angolan Army
{'OR': [['Q3277832', 'P121', {'concept': 'Q12876'}], ['Q17597972', 'P121', {'concept': 'Q12876'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12876 . { { resource:Q17597972 property:P121 ?p } UNION { resource:Q3277832 property:P121 ?p } } }
T-54/55 PT-76 T-72
T-54/55, PT-76 and T-72 are the facilities operated by Hungarian Ground Forces or Angolan Army
T-54/55 PT-76 T-72
action filter_type
action union
action find
entity Hungarian Ground Forces
relation item operated
action find
entity Angolan Army
relation item operated
type tank
{'OR': [['Hungarian Ground Forces', 'item operated', {'concept': 'tank'}], ['Angolan Army', 'item operated', {'concept': 'tank'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:tank . { { resource:Angolan_Army property:item_operated ?p } UNION { resource:Hungarian_Ground_Forces property:item_operated ?p } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P121
Q12876 Q176799
USER
How many tanks are the facilities operated by more number of military units than that tank ?
(c(Q176799),P121,c(Q12876))
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P121 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q1964626 }
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:item_operated ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:tank }
[]
tank military unit
Comparative|Count over More/Less|Single entity type|Clarification
Q155658
SYSTEM
Did you mean T-72 ?
(c(Q176799),P121,c(Q12876))
[ANSWER]
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P121 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q1964626 }
Did you mean T-72 ?
T-72
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:item_operated ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:tank }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant PT-76. Could you tell me the answer for that?
(c(Q176799),P121,c(Q12876))
Q641764
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
[]
SYSTEM
4
Q504320 Q1640447 Q684337 Q7623719
(c(Q176799),P121,c(Q12876))
[ANSWER]
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P121 ?y . ?z rdf:type ontology:Q176799 . ?y rdf:type ontology:Q1964626 }
Centurion tank Stridsvagn 74 Stridsvagn 103 Stridsvagn 122
4
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:item_operated ?y . ?z rdf:type ontology:military_unit . ?y rdf:type ontology:tank }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P121
Q12876 Q176799
USER
How many military units operate around 4 tanks ?
(c(Q176799),P121,c(Q12876))
action count
action approx
action find_tuple_counts
relation P121
type Q176799
type Q12876
value 4
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:P121 ?v . ?b rdf:type ontology:Q176799 . ?v rdf:type ontology:Q12876 } GROUP BY ?b } . FILTER ( ?e = 4 ) }
action count
action approx
action find_tuple_counts
relation item operated
type military unit
type tank
value 4
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:item_operated ?v . ?b rdf:type ontology:military_unit . ?v rdf:type ontology:tank } GROUP BY ?b } . FILTER ( ?e = 4 ) }
[]
tank military unit
SYSTEM
1
Q7053241
(c(Q176799),P121,c(Q12876))
action count
action approx
action find_tuple_counts
relation P121
type Q176799
type Q12876
value 4
[ANSWER]
[{'concept': 'Q176799'}, 'P121', {'concept': 'Q12876'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:P121 ?v . ?b rdf:type ontology:Q176799 . ?v rdf:type ontology:Q12876 } GROUP BY ?b } . FILTER ( ?e = 4 ) }
Norrbotten Armoured Battalion
1
action count
action approx
action find_tuple_counts
relation item operated
type military unit
type tank
value 4
[{'concept': 'military unit'}, 'item operated', {'concept': 'tank'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?e ) WHERE { ?b property:item_operated ?v . ?b rdf:type ontology:military_unit . ?v rdf:type ontology:tank } GROUP BY ?b } . FILTER ( ?e = 4 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q466704 Q641764
P121
Q781132
USER
Which military branches operate PT-76 or surface-to-air missile ?
OR((c(Q781132),P121,Q641764), (c(Q781132),P121,Q466704))
action filter_type
action union
action find_reverse
entity Q641764
relation P121
action find_reverse
entity Q466704
relation P121
type Q781132
{'OR': [[{'concept': 'Q781132'}, 'P121', 'Q641764'], [{'concept': 'Q781132'}, 'P121', 'Q466704']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P121 resource:Q641764 } UNION { ?h property:P121 resource:Q466704 } } . ?h rdf:type ontology:Q781132 }
surface-to-air missile PT-76
action filter_type
action union
action find_reverse
entity PT-76
relation item operated
action find_reverse
entity surface-to-air missile
relation item operated
type military branch
{'OR': [[{'concept': 'military branch'}, 'item operated', 'PT-76'], [{'concept': 'military branch'}, 'item operated', 'surface-to-air missile']]}
SELECT DISTINCT ?h WHERE { { { ?h property:item_operated resource:PT-76 } UNION { ?h property:item_operated resource:surface-to-air_missile } } . ?h rdf:type ontology:military_branch }
[]
military branch
Q2862841 Q17597972 Q6082582 Q18640276 Q2862927
SYSTEM
Congolese Army, Angolan Army, Islamic Republic of Iran Air Defense Force, Bissau-Guinean Army, Indonesian Army
Q2862841 Q17597972 Q6082582 Q18640276 Q2862927
OR((c(Q781132),P121,Q641764), (c(Q781132),P121,Q466704))
action filter_type
action union
action find_reverse
entity Q641764
relation P121
action find_reverse
entity Q466704
relation P121
type Q781132
[ANSWERS] operate PT-76 or surface-to-air missile
{'OR': [[{'concept': 'Q781132'}, 'P121', 'Q641764'], [{'concept': 'Q781132'}, 'P121', 'Q466704']]}
SELECT DISTINCT ?h WHERE { { { ?h property:P121 resource:Q641764 } UNION { ?h property:P121 resource:Q466704 } } . ?h rdf:type ontology:Q781132 }
Congolese Army Angolan Army Islamic Republic of Iran Air Defense Force Bissau-Guinean Army Indonesian Army
Congolese Army, Angolan Army, Islamic Republic of Iran Air Defense Force, Bissau-Guinean Army and Indonesian Army operate PT-76 or surface-to-air missile
Congolese Army Angolan Army Islamic Republic of Iran Air Defense Force Bissau-Guinean Army Indonesian Army
action filter_type
action union
action find_reverse
entity PT-76
relation item operated
action find_reverse
entity surface-to-air missile
relation item operated
type military branch
{'OR': [[{'concept': 'military branch'}, 'item operated', 'PT-76'], [{'concept': 'military branch'}, 'item operated', 'surface-to-air missile']]}
SELECT DISTINCT ?h WHERE { { { ?h property:item_operated resource:PT-76 } UNION { ?h property:item_operated resource:surface-to-air_missile } } . ?h rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155658
P287
Q43229
USER
Which organization is the designer of T-72 ?
(Q155658,P287,c(Q43229))
action filter_type
action find
entity Q155658
relation P287
type Q43229
['Q155658', 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q155658 property:P287 ?c . ?c rdf:type ontology:Q43229 }
T-72
action filter_type
action find
entity T-72
relation designer
type organization
['T-72', 'designer', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:T-72 property:designer ?c . ?c rdf:type ontology:organization }
[]
organization
Q1762250
SYSTEM
Uralvagonzavod
Q1762250
(Q155658,P287,c(Q43229))
action filter_type
action find
entity Q155658
relation P287
type Q43229
[ANSWER] is the designer of T-72
['Q155658', 'P287', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q155658 property:P287 ?c . ?c rdf:type ontology:Q43229 }
Uralvagonzavod
Uralvagonzavod is the designer of T-72
Uralvagonzavod
action filter_type
action find
entity T-72
relation designer
type organization
['T-72', 'designer', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:T-72 property:designer ?c . ?c rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q786
P138
Q811979
USER
Which architectural structure is named after Dominican Republic ?
(c(Q811979),P138,Q786)
action filter_type
action find_reverse
entity Q786
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q786']
SELECT DISTINCT ?z WHERE { ?z property:P138 resource:Q786 . ?z rdf:type ontology:Q811979 }
Dominican Republic
action filter_type
action find_reverse
entity Dominican Republic
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Dominican Republic']
SELECT DISTINCT ?z WHERE { ?z property:named_after resource:Dominican_Republic . ?z rdf:type ontology:architectural_structure }
[]
architectural structure
Q3390411
SYSTEM
place de la République-Dominicaine
Q3390411
(c(Q811979),P138,Q786)
action filter_type
action find_reverse
entity Q786
relation P138
type Q811979
[ANSWER] is named after Dominican Republic
[{'concept': 'Q811979'}, 'P138', 'Q786']
SELECT DISTINCT ?z WHERE { ?z property:P138 resource:Q786 . ?z rdf:type ontology:Q811979 }
place de la République-Dominicaine
Place de la République-Dominicaine is named after Dominican Republic
place de la République-Dominicaine
action filter_type
action find_reverse
entity Dominican Republic
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Dominican Republic']
SELECT DISTINCT ?z WHERE { ?z property:named_after resource:Dominican_Republic . ?z rdf:type ontology:architectural_structure }
[]