Simple Question (Direct)
Simple Question
Q3334283
P176
Q43229
USER
Which organization is the manufacturer of HMCS Athabaskan ?
(Q3334283,P176,c(Q43229))
action filter_type
action find
entity Q3334283
relation P176
type Q43229
['Q3334283', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q3334283 property:P176 ?c . ?c rdf:type ontology:Q43229 }
HMCS Athabaskan
action filter_type
action find
entity HMCS Athabaskan
relation manufacturer
type organization
['HMCS Athabaskan', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:HMCS_Athabaskan property:manufacturer ?c . ?c rdf:type ontology:organization }
[]
organization
Q2956389
SYSTEM
Davie Shipbuilding
Q2956389
(Q3334283,P176,c(Q43229))
action filter_type
action find
entity Q3334283
relation P176
type Q43229
[ANSWER] is the manufacturer of HMCS Athabaskan
['Q3334283', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?c WHERE { resource:Q3334283 property:P176 ?c . ?c rdf:type ontology:Q43229 }
Davie Shipbuilding
Davie Shipbuilding is the manufacturer of HMCS Athabaskan
Davie Shipbuilding
action filter_type
action find
entity HMCS Athabaskan
relation manufacturer
type organization
['HMCS Athabaskan', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?c WHERE { resource:HMCS_Athabaskan property:manufacturer ?c . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3334283
P138
Q5962346
USER
Which classification scheme is the etymology of that ship prefix ?
(Q2956389,P138,c(Q5962346))
action filter_type
action find
entity Q3334283
relation P138
type Q5962346
['Q2956389', 'P138', {'concept': 'Q5962346'}]
SELECT DISTINCT ?a WHERE { resource:Q3334283 property:P138 ?a . ?a rdf:type ontology:Q5962346 }
HMCS Athabaskan
action filter_type
action find
entity HMCS Athabaskan
relation named after
type classification scheme
['Davie Shipbuilding', 'named after', {'concept': 'classification scheme'}]
SELECT DISTINCT ?a WHERE { resource:HMCS_Athabaskan property:named_after ?a . ?a rdf:type ontology:classification_scheme }
[]
classification scheme
Q27475
SYSTEM
Athabaskan languages
Q27475
(Q2956389,P138,c(Q5962346))
action filter_type
action find
entity Q3334283
relation P138
type Q5962346
[ANSWER] is the etymology of that ship prefix
['Q2956389', 'P138', {'concept': 'Q5962346'}]
SELECT DISTINCT ?a WHERE { resource:Q3334283 property:P138 ?a . ?a rdf:type ontology:Q5962346 }
Athabaskan languages
Athabaskan languages is the etymology of that ship prefix
Athabaskan languages
action filter_type
action find
entity HMCS Athabaskan
relation named after
type classification scheme
['Davie Shipbuilding', 'named after', {'concept': 'classification scheme'}]
SELECT DISTINCT ?a WHERE { resource:HMCS_Athabaskan property:named_after ?a . ?a rdf:type ontology:classification_scheme }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3334283
P289
Q2235308
USER
Which ship type does HMCS Athabaskan possess as its vessel class ?
(Q3334283,P289,c(Q2235308))
action filter_type
action find
entity Q3334283
relation P289
type Q2235308
['Q3334283', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2235308 . resource:Q3334283 property:P289 ?c }
HMCS Athabaskan
action filter_type
action find
entity HMCS Athabaskan
relation vessel class
type ship type
['HMCS Athabaskan', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:ship_type . resource:HMCS_Athabaskan property:vessel_class ?c }
[]
ship type
Q1537188
SYSTEM
Iroquois-class
Q1537188
(Q3334283,P289,c(Q2235308))
action filter_type
action find
entity Q3334283
relation P289
type Q2235308
HMCS Athabaskan possesses the [ANSWER] as its vessel class
['Q3334283', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2235308 . resource:Q3334283 property:P289 ?c }
Iroquois-class
HMCS Athabaskan possesses the Iroquois-class as its vessel class
Iroquois-class
action filter_type
action find
entity HMCS Athabaskan
relation vessel class
type ship type
['HMCS Athabaskan', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:ship_type . resource:HMCS_Athabaskan property:vessel_class ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q10515077
Q2235308
USER
And what about HMS Pollux?
(Q10515077,P289,c(Q2235308))
action filter_type
action find
entity Q10515077
relation P289
type Q2235308
['Q10515077', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?v WHERE { resource:Q10515077 property:P289 ?v . ?v rdf:type ontology:Q2235308 }
HMS Pollux
action filter_type
action find
entity HMS Pollux
relation vessel class
type ship type
['HMS Pollux', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?v WHERE { resource:HMS_Pollux property:vessel_class ?v . ?v rdf:type ontology:ship_type }
[]
ship type
Q2099267
SYSTEM
Plejad-class torpedo boat
Q2099267
(Q10515077,P289,c(Q2235308))
action filter_type
action find
entity Q10515077
relation P289
type Q2235308
[ANSWER]
['Q10515077', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?v WHERE { resource:Q10515077 property:P289 ?v . ?v rdf:type ontology:Q2235308 }
Plejad-class torpedo boat
Plejad-class torpedo boat
action filter_type
action find
entity HMS Pollux
relation vessel class
type ship type
['HMS Pollux', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?v WHERE { resource:HMS_Pollux property:vessel_class ?v . ?v rdf:type ontology:ship_type }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P289
Q2235308
USER
How many ship types have that ship type as vessel class ?
(c(Q2235308),P289,Q2099267)
action count
action filter_type
action find_reverse
entity Q2099267
relation P289
type Q2235308
[{'concept': 'Q2235308'}, 'P289', 'Q2099267']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:P289 resource:Q2099267 . ?e rdf:type ontology:Q2235308 }
action count
action filter_type
action find_reverse
entity Plejad-class torpedo boat
relation vessel class
type ship type
[{'concept': 'ship type'}, 'vessel class', 'Plejad-class torpedo boat']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:vessel_class resource:Plejad-class_torpedo_boat . ?e rdf:type ontology:ship_type }
[]
ship type
SYSTEM
11
Q13230646 Q10513109 Q10513079 Q10513092 Q10513098 Q10513087 Q10513095 Q10515073 Q10515077 Q10515075 Q10515088
(c(Q2235308),P289,Q2099267)
action count
action filter_type
action find_reverse
entity Q2099267
relation P289
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P289', 'Q2099267']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:P289 resource:Q2099267 . ?e rdf:type ontology:Q2235308 }
HMS Rigel HMS Astrea HMS Aldebaran HMS Antares HMS Argo HMS Altair HMS Arcturus HMS Plejad HMS Pollux HMS Polaris HMS Regulus
11
action count
action filter_type
action find_reverse
entity Plejad-class torpedo boat
relation vessel class
type ship type
[{'concept': 'ship type'}, 'vessel class', 'Plejad-class torpedo boat']
SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:vessel_class resource:Plejad-class_torpedo_boat . ?e rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1537188
P137
Q781132
USER
Which military branch operates Iroquois-class ?
(Q1537188,P137,c(Q781132))
action filter_type
action find
entity Q1537188
relation P137
type Q781132
['Q1537188', 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q1537188 property:P137 ?b . ?b rdf:type ontology:Q781132 }
Iroquois-class
action filter_type
action find
entity Iroquois-class
relation operator
type military branch
['Iroquois-class', 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Iroquois-class property:operator ?b . ?b rdf:type ontology:military_branch }
[]
military branch
Q25387
SYSTEM
Royal Canadian Navy
Q25387
(Q1537188,P137,c(Q781132))
action filter_type
action find
entity Q1537188
relation P137
type Q781132
[ANSWER] operates Iroquois-class
['Q1537188', 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?b WHERE { resource:Q1537188 property:P137 ?b . ?b rdf:type ontology:Q781132 }
Royal Canadian Navy
Royal Canadian Navy operates Iroquois-class
Royal Canadian Navy
action filter_type
action find
entity Iroquois-class
relation operator
type military branch
['Iroquois-class', 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?b WHERE { resource:Iroquois-class property:operator ?b . ?b rdf:type ontology:military_branch }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q895526 Q192350 Q781132
USER
How many military branches are a component of around the same number of authority organs or ministries as that military branch ?
(c(Q781132),P361,c(Q895526)|c(Q192350))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q192350
action count
action filter_multi_types
action find
entity Q25387
relation P361
type Q895526
type Q192350
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?d ) WHERE { { ?h property:P361 ?y . ?h rdf:type ontology:Q781132 . ?y rdf:type ontology:Q895526 } UNION { ?h property:P361 ?y . ?y rdf:type ontology:Q192350 . ?h rdf:type ontology:Q781132 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q25387 property:P361 ?t . { { ?t rdf:type ontology:Q192350 } UNION { ?t rdf:type ontology:Q895526 } } } } . FILTER ( ?d = ?f ) }
action count
action approx
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type ministry
action count
action filter_multi_types
action find
entity Royal Canadian Navy
relation part of
type authority organ
type ministry
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'ministry'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?d ) WHERE { { ?h property:part_of ?y . ?h rdf:type ontology:military_branch . ?y rdf:type ontology:authority_organ } UNION { ?h property:part_of ?y . ?y rdf:type ontology:ministry . ?h rdf:type ontology:military_branch } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Royal_Canadian_Navy property:part_of ?t . { { ?t rdf:type ontology:ministry } UNION { ?t rdf:type ontology:authority_organ } } } } . FILTER ( ?d = ?f ) }
[]
authority organ ministry military branch
SYSTEM
253
Q222595 Q56015 Q4855270 Q704397 Q16010756 Q4114435 Q6641434 Q5290731 Q6047425 Q5370743 Q676404 Q12645011 Q1137373 Q1363476 Q248989 Q18596375 Q18601754 Q217406 Q18706531 Q18610096 Q356359 Q18610098 Q376676 Q18601907 Q2490375 Q18601902 Q2505986 Q3277832 Q15885502 Q2383264 Q1076619 Q4633784 Q2711719 Q741691 Q18668466 Q7574566 Q4114441 Q4774797 Q25436 Q1401100 Q6068085 Q3068744 Q643834 Q1370337 Q6510939 Q4637390 Q5524457 Q932840 Q192366 Q7574723 Q17597972 Q2408298 Q208711 Q3848123 Q465283 Q3848121 Q6082582 Q3480057 Q897614 Q2630039 Q2055270 Q483268 Q1815399 Q4419309 Q2387294 Q1129369 Q18615980 Q4948888 Q2258261 Q2078095 Q17812275 Q5555333 Q18612015 Q4447363 Q18612288 Q16960948 Q2055634 Q19344622 Q18611816 Q1318378 Q919292 Q17812427 Q1187401 Q488756 Q2071948 Q3124137 Q3293231 Q6025264 Q1499997 Q1188381 Q4115107 Q15059515 Q7406484 Q706042 Q1426835 Q7275540 Q2993856 Q1491482 Q457188 Q13423902 Q6479134 Q4114459 Q4114457 Q604425 Q4631091 Q2292358 Q18640848 Q2349884 Q18643350 Q7373859 Q1358152 Q5985661 Q355771 Q2074039 Q267167 Q18615977 Q702116 Q17605054 Q18706999 Q1322103 Q796754 Q11322507 Q2670650 Q1799545 Q10497058 Q781360 Q18611637 Q18696932 Q18706763 Q2883880 Q1547773 Q18676717 Q16492183 Q8501879 Q18612033 Q1678316 Q557432 Q3657642 Q18600123 Q508647 Q311381 Q4867847 Q1038047 Q833040 Q2984556 Q2575188 Q4447370 Q2257572 Q4447372 Q889751 Q2704661 Q18597127 Q898671 Q2862841 Q19247539 Q701923 Q1750688 Q1311627 Q18597663 Q4114434 Q17069134 Q2083573 Q4642716 Q18696718 Q1546449 Q2626138 Q755179 Q63481 Q2745472 Q2301347 Q4709134 Q20894979 Q56018 Q9212 Q1066532 Q1046947 Q257736 Q190949 Q4447361 Q2526431 Q2016459 Q1753805 Q17584707 Q487238 Q2594652 Q792296 Q3958034 Q1141396 Q4117226 Q682152 Q1953312 Q6019843 Q18640177 Q1951484 Q18600100 Q18640173 Q172771 Q1550893 Q18640276 Q675932 Q6448938 Q7125810 Q2558747 Q18642947 Q5403575 Q3079743 Q2528358 Q2640550 Q2905423 Q18669736 Q6497421 Q4939559 Q2006452 Q4925654 Q382551 Q15901085 Q2862927 Q2985739 Q4447359 Q1777326 Q163416 Q1130695 Q5610863 Q17049310 Q5957893 Q383108 Q25387 Q18640167 Q18640164 Q18619862 Q1370395 Q1366319 Q963354 Q2370391 Q2492012 Q4947401 Q151701 Q796411 Q3293247 Q588089 Q17111011 Q510534 Q18668460 Q18707076 Q2046686 Q18129370 Q1674702 Q575932 Q18707175 Q1427990 Q569328 Q16514728 Q18597159
(c(Q781132),P361,c(Q895526)|c(Q192350))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q781132
type Q895526
action find_tuple_counts
relation P361
type Q781132
type Q192350
action count
action filter_multi_types
action find
entity Q25387
relation P361
type Q895526
type Q192350
[ANSWER]
[{'concept': 'Q781132'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?d ) WHERE { { ?h property:P361 ?y . ?h rdf:type ontology:Q781132 . ?y rdf:type ontology:Q895526 } UNION { ?h property:P361 ?y . ?y rdf:type ontology:Q192350 . ?h rdf:type ontology:Q781132 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q25387 property:P361 ?t . { { ?t rdf:type ontology:Q192350 } UNION { ?t rdf:type ontology:Q895526 } } } } . FILTER ( ?d = ?f ) }
British Army German Navy Bangladesh Army Republic of China Army Djiboutian Army Royal Naval Force Royal Thai Air Force Commando Company Dominican Army German Army Special Boarding Unit Spanish Navy Wolves Libyan Army Korean People's Navy Polish Land Forces Army of Burkina Faso Congolese Navy French Navy 23rd Infantry Brigade Equatorial Guinean Army Indian Navy Equatorial Guinean Navy Albanian Naval Force Revolutionary Navy Royal Cambodian Army Revolutionary Army National Army of Venezuela Hungarian Ground Forces Spetsnaz GRU Finnish Army French Army 2nd Massachusetts Regiment Lithuanian Naval Force Royal Australian Navy National Army Force of Côte d'Ivoire Special Forces Brigade Naval Force of El Salvador Antigua and Barbuda Regiment Canadian Army Myanmar Army Iraqi Special Operations Forces Syrian Arab Army German Navy Estonian Navy Lebanese Special Operations Command 40 Commando Garud Commando Force Ukrainian Navy Royal Bahraini Army Special Service Group Navy Angolan Army Islamic Republic of Iran Navy Chilean Navy Kazakh Naval Force Russian Navy United Arab Emirates Navy Islamic Republic of Iran Air Defense Force Division Action Iraqi Army New Zealand Army Brazilian Army Aviation Command Republic of Korea Army South African Army Kazakh Air and Air Defence Forces Romanian Naval Forces Hellenic Navy Gambian Navy Botswana Ground Force Pakistan Navy Pakistan Army Brazilian Surface Fleet Ghana Army Military Health Service Lebanese Ground Forces Gabonese Navy Chadian ground forces Royal Bahrain Naval Force naval reserve force Naval Unit Republic of Fiji Military Forces Recherche Assistance Intervention Dissuasion Ecuadorian Navy Brazilian Submarine Fleet People's Liberation Army Ground Force Republic of Korea Navy Finnish Navy Dominican Navy Bangladesh Navy Ottoman Army Lithuanian Land Force Bulgarian Navy National Army of Colombia Myanmar Navy Salvadoran Army Prussian Army anti-aircraft artillery RAF Regiment Azerbaijani Navy Lao People's Navy Prussian Navy Czech Land Forces Egyptian Army Eritrean Navy Djiboutian Navy Coast Guard of Georgia 21st Continental Regiment Brazilian Army Bissau-Guinean Navy Croatian Navy Islamic Republic of Iran Ground Force Royal Brunei Land Forces Korean People's Army Ground Force Iceland Air Defence System Indian Army Latvian Land Forces Polish Navy Gambian National Army Republic of China Navy Azerbaijani Air Defence Force 1st Mechanized Infantry Brigade Spanish Army Soviet Navy German Army Navy of the Army of the Guardians of the Islamic Revolution Philippine Army Swedish Airbase Rangers Australian Army Ethiopian Army Lao People's Army Libyan Ground Forces Barbados Regiment Groupes d'Intervention de la Police Nationale Kazakh Ground Forces Honduran Army Ghana Navy Gabonese Army Jagdkommando East German Land Forces Eritrean Army Republican Guard Volksmarine Quds Force Basque Auxiliary Navy Irish Army Italian Navy Azerbaijani Land Force Royal Danish Army Belarusian Army Belgian Land Component Tunisian Army Japan Ground Self-Defense Force Indonesian Navy Cameroon Army Iraqi Navy Congolese Army Ottoman Army German Army Brazilian Navy Syrian Navy Cape Verde National Guard Honduran Navy Force Kenya Army Royal Norwegian Navy 6th Massachusetts Regiment Kyrgyz Army Hellenic Army Armenian Army People's Liberation Army Navy National Gendarmerie Intervention Group Chilean Army Argentine Army Albanian Land Force Malian Army Joint Medical Service United States Army Brazilian Marine Corps Royal Marines Lithuanian Special Operations Force Vietnamese Independence League Algerian People's National Army National Navy of Colombia Polish Special Forces Croatian Army Benin Army Republic of Korea Marine Corps Naval Service Belgian Naval Component Argentine Army Aviation Swedish Navy Royal Jordanian Land Force Ukrainian Ground Forces Bulgarian Land Forces Army Medical Corps Guinean Navy Georgian Land Forces Central African Army People's Army of Guinea Royal Navy Grupo Especial de Operaciones Bissau-Guinean Army Kenya Navy Kuwaiti Army Pakistan Marines Romanian Land Forces Army Aviation Center Ethiopian Navy Kuwait Naval Force Mexican Navy Chilean Marine Corps Lebanese Navy Jamaica Regiment Special Tasks Unit Bolivian Army Royal Danish Navy Royal Cambodian Navy Egyptian Navy Russian special operations forces Indonesian Army Egyptian Air Defense Command Austrian Land Forces Argentine Navy 1st Cavalry Army Royal Brunei Navy Ground Forces of the Army of the Guardians of the Islamic Revolution Angolan Navy Islamic Republic of Iran Army Aviation Afghan National Army Royal Canadian Navy Navy of National Defense National Army of Guatemala Georgian Naval Forces Estonian Land Forces Libyan Navy United States Naval Special Warfare Development Group Royal Bhutan Army Swedish Army Bosnian Ground Forces Kriegsmarine Italian Army Benin Naval Forces Portuguese Navy Navy of the Democratic Republic of the Congo Israeli Navy National Navy of Côte d'Ivoire Malagasy Army Cyprus Naval Command Philippine Commonwealth Army GOC Army Headquarters Royal New Zealand Navy Malawi Army Naval Detachment Women's Hospital Corps Air Force and Anti-Air Defence Brigade Tanzania Naval Command Cameroon Navy
253
action count
action approx
action union
action find_tuple_counts
relation part of
type military branch
type authority organ
action find_tuple_counts
relation part of
type military branch
type ministry
action count
action filter_multi_types
action find
entity Royal Canadian Navy
relation part of
type authority organ
type ministry
[{'concept': 'military branch'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'ministry'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?d ) WHERE { { ?h property:part_of ?y . ?h rdf:type ontology:military_branch . ?y rdf:type ontology:authority_organ } UNION { ?h property:part_of ?y . ?y rdf:type ontology:ministry . ?h rdf:type ontology:military_branch } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Royal_Canadian_Navy property:part_of ?t . { { ?t rdf:type ontology:ministry } UNION { ?t rdf:type ontology:authority_organ } } } } . FILTER ( ?d = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2099267
P520
Q153556 Q81103
USER
How many ranged weapons and cannons are used as a weapon by Plejad-class torpedo boat ?
(Q2099267,P520,c(Q153556)) (Q2099267,P520,c(Q81103))
action count
action union
action filter_type
action find
entity Q2099267
relation P520
type Q153556
action filter_type
action find
entity Q2099267
relation P520
type Q81103
['Q2099267', 'P520', {'concept': 'Q153556'}] ['Q2099267', 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q153556 ) ( ontology:Q81103 ) } }
Plejad-class torpedo boat
action count
action union
action filter_type
action find
entity Plejad-class torpedo boat
relation armament
type ranged weapon
action filter_type
action find
entity Plejad-class torpedo boat
relation armament
type cannon
['Plejad-class torpedo boat', 'armament', {'concept': 'ranged weapon'}] ['Plejad-class torpedo boat', 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:ranged_weapon ) ( ontology:cannon ) } }
[]
ranged weapon cannon
SYSTEM
1 ranged weapons and 1 cannons
Q1087978 Q1132216
(Q2099267,P520,c(Q153556)) (Q2099267,P520,c(Q81103))
action count
action union
action filter_type
action find
entity Q2099267
relation P520
type Q153556
action filter_type
action find
entity Q2099267
relation P520
type Q81103
[ANSWER]
['Q2099267', 'P520', {'concept': 'Q153556'}] ['Q2099267', 'P520', {'concept': 'Q81103'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q153556 ) ( ontology:Q81103 ) } }
Torpedo 61 Bofors 40 mm
1 ranged weapons and 1 cannons
action count
action union
action filter_type
action find
entity Plejad-class torpedo boat
relation armament
type ranged weapon
action filter_type
action find
entity Plejad-class torpedo boat
relation armament
type cannon
['Plejad-class torpedo boat', 'armament', {'concept': 'ranged weapon'}] ['Plejad-class torpedo boat', 'armament', {'concept': 'cannon'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:ranged_weapon ) ( ontology:cannon ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q14876166 Q10515077
P520
Q81103
USER
Which cannons are used by HMS Pollux or HMS Flaggskär ?
OR((Q10515077,P520,c(Q81103)), (Q14876166,P520,c(Q81103)))
action filter_type
action union
action find
entity Q10515077
relation P520
action find
entity Q14876166
relation P520
type Q81103
{'OR': [['Q10515077', 'P520', {'concept': 'Q81103'}], ['Q14876166', 'P520', {'concept': 'Q81103'}]]}
SELECT DISTINCT ?f WHERE { { ?p property:P520 ?f . VALUES ( ?p ) { ( resource:Q14876166 ) ( resource:Q10515077 ) } } . ?f rdf:type ontology:Q81103 }
HMS Flaggskär HMS Pollux
action filter_type
action union
action find
entity HMS Pollux
relation armament
action find
entity HMS Flaggskär
relation armament
type cannon
{'OR': [['HMS Pollux', 'armament', {'concept': 'cannon'}], ['HMS Flaggskär', 'armament', {'concept': 'cannon'}]]}
SELECT DISTINCT ?f WHERE { { ?p property:armament ?f . VALUES ( ?p ) { ( resource:HMS_Flaggskär ) ( resource:HMS_Pollux ) } } . ?f rdf:type ontology:cannon }
[]
cannon
Q6713453 Q1132216
SYSTEM
M/40 Automatic cannon, Bofors 40 mm
Q6713453 Q1132216
OR((Q10515077,P520,c(Q81103)), (Q14876166,P520,c(Q81103)))
action filter_type
action union
action find
entity Q10515077
relation P520
action find
entity Q14876166
relation P520
type Q81103
[ANSWERS] are used by HMS Pollux or HMS Flaggskär
{'OR': [['Q10515077', 'P520', {'concept': 'Q81103'}], ['Q14876166', 'P520', {'concept': 'Q81103'}]]}
SELECT DISTINCT ?f WHERE { { ?p property:P520 ?f . VALUES ( ?p ) { ( resource:Q14876166 ) ( resource:Q10515077 ) } } . ?f rdf:type ontology:Q81103 }
M/40 Automatic cannon Bofors 40 mm
M/40 Automatic cannon and Bofors 40 mm are used by HMS Pollux or HMS Flaggskär
M/40 Automatic cannon Bofors 40 mm
action filter_type
action union
action find
entity HMS Pollux
relation armament
action find
entity HMS Flaggskär
relation armament
type cannon
{'OR': [['HMS Pollux', 'armament', {'concept': 'cannon'}], ['HMS Flaggskär', 'armament', {'concept': 'cannon'}]]}
SELECT DISTINCT ?f WHERE { { ?p property:armament ?f . VALUES ( ?p ) { ( resource:HMS_Flaggskär ) ( resource:HMS_Pollux ) } } . ?f rdf:type ontology:cannon }
[]