Simple Question (Direct)
Simple Question
Q4911188
P241
Q781132
USER
Which military branch did Bill Tucker belong to ?
(Q4911188,P241,c(Q781132))
action filter_type
action find
entity Q4911188
relation P241
type Q781132
['Q4911188', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { resource:Q4911188 property:P241 ?p . ?p rdf:type ontology:Q781132 }
Bill Tucker
action filter_type
action find
entity Bill Tucker
relation military branch
type military branch
['Bill Tucker', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { resource:Bill_Tucker property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q4911188,P241,c(Q781132))
action filter_type
action find
entity Q4911188
relation P241
type Q781132
Bill Tucker belonged to [ANSWER]
['Q4911188', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?p WHERE { resource:Q4911188 property:P241 ?p . ?p rdf:type ontology:Q781132 }
British Army
Bill Tucker belonged to British Army
British Army
action filter_type
action find
entity Bill Tucker
relation military branch
type military branch
['Bill Tucker', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?p WHERE { resource:Bill_Tucker property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q222595
P495
Q728
USER
What is that military branch a country of origin of ?
(c(Q728),P495,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P495
type Q728
[{'concept': 'Q728'}, 'P495', 'Q222595']
SELECT DISTINCT ?n WHERE { ?n property:P495 resource:Q222595 . ?n rdf:type ontology:Q728 }
British Army
action filter_type
action find_reverse
entity British Army
relation country of origin
type weapon
[{'concept': 'weapon'}, 'country of origin', 'British Army']
SELECT DISTINCT ?n WHERE { ?n property:country_of_origin resource:British_Army . ?n rdf:type ontology:weapon }
[]
weapon
Q6658187
SYSTEM
Livens Large Gallery Flame Projector
Q6658187
(c(Q728),P495,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P495
type Q728
That military branch a country of origin of is from [ANSWER]
[{'concept': 'Q728'}, 'P495', 'Q222595']
SELECT DISTINCT ?n WHERE { ?n property:P495 resource:Q222595 . ?n rdf:type ontology:Q728 }
Livens Large Gallery Flame Projector
That military branch a country of origin of is from Livens Large Gallery Flame Projector
Livens Large Gallery Flame Projector
action filter_type
action find_reverse
entity British Army
relation country of origin
type weapon
[{'concept': 'weapon'}, 'country of origin', 'British Army']
SELECT DISTINCT ?n WHERE { ?n property:country_of_origin resource:British_Army . ?n rdf:type ontology:weapon }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q222595
P17
Q7275
USER
Which state is British Army present in ?
(Q222595,P17,c(Q7275))
action filter_type
action find
entity Q222595
relation P17
type Q7275
['Q222595', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { resource:Q222595 property:P17 ?z . ?z rdf:type ontology:Q7275 }
British Army
action filter_type
action find
entity British Army
relation country
type state
['British Army', 'country', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { resource:British_Army property:country ?z . ?z rdf:type ontology:state }
[]
state
Q161885
SYSTEM
Kingdom of Great Britain
Q161885
(Q222595,P17,c(Q7275))
action filter_type
action find
entity Q222595
relation P17
type Q7275
British Army is the [ANSWER]
['Q222595', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { resource:Q222595 property:P17 ?z . ?z rdf:type ontology:Q7275 }
Kingdom of Great Britain
British Army is the Kingdom of Great Britain
Kingdom of Great Britain
action filter_type
action find
entity British Army
relation country
type state
['British Army', 'country', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { resource:British_Army property:country ?z . ?z rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q222595
P137
Q2235308
USER
Which ship type was operated by British Army ?
(c(Q2235308),P137,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P137
type Q2235308
[{'concept': 'Q2235308'}, 'P137', 'Q222595']
SELECT DISTINCT ?c WHERE { ?c property:P137 resource:Q222595 . ?c rdf:type ontology:Q2235308 }
British Army
action filter_type
action find_reverse
entity British Army
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'British Army']
SELECT DISTINCT ?c WHERE { ?c property:operator resource:British_Army . ?c rdf:type ontology:ship_type }
[]
ship type
Q4212561
SYSTEM
Fly-class gunboat
Q4212561
(c(Q2235308),P137,Q222595)
action filter_type
action find_reverse
entity Q222595
relation P137
type Q2235308
[ANSWER] was operated by British Army
[{'concept': 'Q2235308'}, 'P137', 'Q222595']
SELECT DISTINCT ?c WHERE { ?c property:P137 resource:Q222595 . ?c rdf:type ontology:Q2235308 }
Fly-class gunboat
Fly-class gunboat was operated by British Army
Fly-class gunboat
action filter_type
action find_reverse
entity British Army
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'British Army']
SELECT DISTINCT ?c WHERE { ?c property:operator resource:British_Army . ?c rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4212561
P176
Q43229
USER
Who is the manufacturer of that ship type ?
(Q4212561,P176,c(Q43229))
action filter_type
action find
entity Q4212561
relation P176
type Q43229
['Q4212561', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?p WHERE { resource:Q4212561 property:P176 ?p . ?p rdf:type ontology:Q43229 }
Fly-class gunboat
action filter_type
action find
entity Fly-class gunboat
relation manufacturer
type organization
['Fly-class gunboat', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?p WHERE { resource:Fly-class_gunboat property:manufacturer ?p . ?p rdf:type ontology:organization }
[]
organization
Q932897
SYSTEM
Yarrow Shipbuilders
Q932897
(Q4212561,P176,c(Q43229))
action filter_type
action find
entity Q4212561
relation P176
type Q43229
The manufacturer of that ship type is the [ANSWER]
['Q4212561', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?p WHERE { resource:Q4212561 property:P176 ?p . ?p rdf:type ontology:Q43229 }
Yarrow Shipbuilders
The manufacturer of that ship type is the Yarrow Shipbuilders
Yarrow Shipbuilders
action filter_type
action find
entity Fly-class gunboat
relation manufacturer
type organization
['Fly-class gunboat', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?p WHERE { resource:Fly-class_gunboat property:manufacturer ?p . ?p rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q13530035 Q4212561
P137 P241
Q781132
USER
Which military branches are the facility operator of Fly-class gunboat and are Percy Royds associated with ?
AND((Q4212561,P137,c(Q781132)), (Q13530035,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q4212561
relation P137
action find
entity Q13530035
relation P241
type Q781132
{'AND': [['Q4212561', 'P137', {'concept': 'Q781132'}], ['Q13530035', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?p WHERE { resource:Q4212561 property:P137 ?p . resource:Q13530035 property:P241 ?p . ?p rdf:type ontology:Q781132 }
Percy Royds Fly-class gunboat
action filter_type
action intersection
action find
entity Fly-class gunboat
relation operator
action find
entity Percy Royds
relation military branch
type military branch
{'AND': [['Fly-class gunboat', 'operator', {'concept': 'military branch'}], ['Percy Royds', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?p WHERE { resource:Fly-class_gunboat property:operator ?p . resource:Percy_Royds property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
military branch
Q172771
SYSTEM
Royal Navy
Q172771
AND((Q4212561,P137,c(Q781132)), (Q13530035,P241,c(Q781132)))
action filter_type
action intersection
action find
entity Q4212561
relation P137
action find
entity Q13530035
relation P241
type Q781132
[ANSWER] is the facility operator of Fly-class gunboat and is Percy Royds associated with
{'AND': [['Q4212561', 'P137', {'concept': 'Q781132'}], ['Q13530035', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?p WHERE { resource:Q4212561 property:P137 ?p . resource:Q13530035 property:P241 ?p . ?p rdf:type ontology:Q781132 }
Royal Navy
Royal Navy is the facility operator of Fly-class gunboat and is Percy Royds associated with
Royal Navy
action filter_type
action intersection
action find
entity Fly-class gunboat
relation operator
action find
entity Percy Royds
relation military branch
type military branch
{'AND': [['Fly-class gunboat', 'operator', {'concept': 'military branch'}], ['Percy Royds', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?p WHERE { resource:Fly-class_gunboat property:operator ?p . resource:Percy_Royds property:military_branch ?p . ?p rdf:type ontology:military_branch }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P121
Q20027951 Q781132
USER
Which military branches operate approximately the same number of aircraft power classes as that military branch ?
(c(Q781132),P121,c(Q20027951))
action approx
action find_tuple_counts
relation P121
type Q781132
type Q20027951
action count
action filter_type
action find
entity Q172771
relation P121
type Q781132
[{'concept': 'Q781132'}, 'P121', {'concept': 'Q20027951'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?g property:P121 ?p . ?g rdf:type ontology:Q781132 . ?p rdf:type ontology:Q20027951 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q172771 property:P121 ?s . ?s rdf:type ontology:Q781132 } } . FILTER ( ?d = ?z ) }
action approx
action find_tuple_counts
relation item operated
type military branch
type aircraft power class
action count
action filter_type
action find
entity Royal Navy
relation item operated
type military branch
[{'concept': 'military branch'}, 'item operated', {'concept': 'aircraft power class'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?g property:item_operated ?p . ?g rdf:type ontology:military_branch . ?p rdf:type ontology:aircraft_power_class } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Royal_Navy property:item_operated ?s . ?s rdf:type ontology:military_branch } } . FILTER ( ?d = ?z ) }
[]
aircraft power class military branch
Q17597972 Q3277832 Q18640276
SYSTEM
Angolan Army, Hungarian Ground Forces, Bissau-Guinean Army
Q6082582 Q897614 Q17404781 Q18696932 Q1324290 Q18640177 Q11220 Q2408298 Q18615980 Q172771 Q1129369 Q3958034 Q18640276 Q4709164 Q2055634 Q833040 Q2905423 Q1546449 Q4939559 Q2704661 Q3293231 Q356359 Q2862927 Q376676 Q2862841 Q1777326 Q2665572 Q731647 Q3277832 Q4855270 Q1491482 Q1322103 Q4114459 Q2711719 Q2370391 Q11218 Q2301347 Q4709134 Q2349884 Q17597972 Q5985661 Q355771 Q2071948 Q192366 Q2074039 Q17049310 Q18707175 Q3293247 Q569328
(c(Q781132),P121,c(Q20027951))
action approx
action find_tuple_counts
relation P121
type Q781132
type Q20027951
action count
action filter_type
action find
entity Q172771
relation P121
type Q781132
[ANSWERS] operate approximately the same number of aircraft power classes as that military branch
[{'concept': 'Q781132'}, 'P121', {'concept': 'Q20027951'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?g property:P121 ?p . ?g rdf:type ontology:Q781132 . ?p rdf:type ontology:Q20027951 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Q172771 property:P121 ?s . ?s rdf:type ontology:Q781132 } } . FILTER ( ?d = ?z ) }
Islamic Republic of Iran Air Defense Force Iraqi Army Afghan Special Mission Wing Lao People's Army Vietnam People's Navy Guinean Navy United States Navy Islamic Republic of Iran Navy Gambian Navy Royal Navy Hellenic Navy Argentine Army Aviation Bissau-Guinean Army Albanian Royal Army Royal Bahrain Naval Force Italian Navy Lebanese Navy Hellenic Army Bolivian Army Indonesian Navy Bangladesh Navy Indian Navy Indonesian Army Albanian Naval Force Congolese Army Argentine Navy Algerian National Navy Japan Maritime Self-Defense Force Hungarian Ground Forces Bangladesh Army Lao People's Navy Spanish Army Eritrean Navy Lithuanian Naval Force Royal Bhutan Army United States Marine Corps Argentine Army Albanian Land Force Croatian Navy Angolan Army Iceland Air Defence System Indian Army Finnish Navy Royal Bahraini Army Latvian Land Forces Angolan Navy Malawi Army Naval Detachment Benin Naval Forces Air Force and Anti-Air Defence Brigade
Angolan Army, Hungarian Ground Forces and Bissau-Guinean Army operate approximately the same number of aircraft power classes as that military branch
Angolan Army Hungarian Ground Forces Bissau-Guinean Army
action approx
action find_tuple_counts
relation item operated
type military branch
type aircraft power class
action count
action filter_type
action find
entity Royal Navy
relation item operated
type military branch
[{'concept': 'military branch'}, 'item operated', {'concept': 'aircraft power class'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { ?g property:item_operated ?p . ?g rdf:type ontology:military_branch . ?p rdf:type ontology:aircraft_power_class } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { resource:Royal_Navy property:item_operated ?s . ?s rdf:type ontology:military_branch } } . FILTER ( ?d = ?z ) }
[]