Simple Question (Direct)
Simple Question
Q4167330
P241
Q781132
USER
Which military branch contains Philip Dowson as its part ?
(Q4167330,P241,c(Q781132))
action filter_type
action find
entity Q4167330
relation P241
type Q781132
['Q4167330', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?a WHERE { resource:Q4167330 property:P241 ?a . ?a rdf:type ontology:Q781132 }
Philip Dowson
action filter_type
action find
entity Philip Dowson
relation military branch
type military branch
['Philip Dowson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?a WHERE { resource:Philip_Dowson property:military_branch ?a . ?a rdf:type ontology:military_branch }
[]
military branch
Q172771
SYSTEM
Royal Navy
Q172771
(Q4167330,P241,c(Q781132))
action filter_type
action find
entity Q4167330
relation P241
type Q781132
U [ANSWER] contains Philip Dowson as its part
['Q4167330', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?a WHERE { resource:Q4167330 property:P241 ?a . ?a rdf:type ontology:Q781132 }
Royal Navy
U Royal Navy contains Philip Dowson as its part
Royal Navy
action filter_type
action find
entity Philip Dowson
relation military branch
type military branch
['Philip Dowson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?a WHERE { resource:Philip_Dowson property:military_branch ?a . ?a rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172771
P463
Q502895
USER
Which people have a membership of that military branch ?
(c(Q502895),P463,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q172771']
SELECT DISTINCT ?u WHERE { ?u property:P463 resource:Q172771 . ?u rdf:type ontology:Q502895 }
Royal Navy
action filter_type
action find_reverse
entity Royal Navy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Royal Navy']
SELECT DISTINCT ?u WHERE { ?u property:member_of resource:Royal_Navy . ?u rdf:type ontology:common_name }
[]
common name
Q18581903 Q4706925
SYSTEM
Rob Cooke, Alan Hyde Gardner, 2nd Baron Gardner
Q18581903 Q4706925
(c(Q502895),P463,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P463
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P463', 'Q172771']
SELECT DISTINCT ?u WHERE { ?u property:P463 resource:Q172771 . ?u rdf:type ontology:Q502895 }
Rob Cooke Alan Hyde Gardner, 2nd Baron Gardner
Rob Cooke and Alan Hyde Gardner, 2nd Baron Gardner have a membership of that military branch
Rob Cooke Alan Hyde Gardner, 2nd Baron Gardner
action filter_type
action find_reverse
entity Royal Navy
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Royal Navy']
SELECT DISTINCT ?u WHERE { ?u property:member_of resource:Royal_Navy . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18581903 Q4706925
P21
Q290
USER
Which sexes do Rob Cooke and Alan Hyde Gardner, 2nd Baron Gardner possess ?
(Q18581903,P21,c(Q290)) (Q4706925,P21,c(Q290))
action union
action filter_type
action find
entity Q18581903
relation P21
type Q290
action filter_type
action find
entity Q4706925
relation P21
type Q290
['Q18581903', 'P21', {'concept': 'Q290'}] ['Q4706925', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { { resource:Q18581903 property:P21 ?k . ?k rdf:type ontology:Q290 } UNION { resource:Q4706925 property:P21 ?k . ?k rdf:type ontology:Q290 } }
Rob Cooke Alan Hyde Gardner, 2nd Baron Gardner
action union
action filter_type
action find
entity Rob Cooke
relation gender
type sex
action filter_type
action find
entity Alan Hyde Gardner, 2nd Baron Gardner
relation gender
type sex
['Rob Cooke', 'gender', {'concept': 'sex'}] ['Alan Hyde Gardner, 2nd Baron Gardner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { { resource:Rob_Cooke property:gender ?k . ?k rdf:type ontology:sex } UNION { resource:Alan_Hyde_Gardner,_2nd_Baron_Gardner property:gender ?k . ?k rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q18581903,P21,c(Q290)) (Q4706925,P21,c(Q290))
action union
action filter_type
action find
entity Q18581903
relation P21
type Q290
action filter_type
action find
entity Q4706925
relation P21
type Q290
Rob Cooke and Alan Hyde Gardner , 2nd Baron Gardner possess both [ANSWER] and [ANSWER]
['Q18581903', 'P21', {'concept': 'Q290'}] ['Q4706925', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { { resource:Q18581903 property:P21 ?k . ?k rdf:type ontology:Q290 } UNION { resource:Q4706925 property:P21 ?k . ?k rdf:type ontology:Q290 } }
male male
Rob Cooke and Alan Hyde Gardner , 2nd Baron Gardner possess both male and male
male male
action union
action filter_type
action find
entity Rob Cooke
relation gender
type sex
action filter_type
action find
entity Alan Hyde Gardner, 2nd Baron Gardner
relation gender
type sex
['Rob Cooke', 'gender', {'concept': 'sex'}] ['Alan Hyde Gardner, 2nd Baron Gardner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { { resource:Rob_Cooke property:gender ?k . ?k rdf:type ontology:sex } UNION { resource:Alan_Hyde_Gardner,_2nd_Baron_Gardner property:gender ?k . ?k rdf:type ontology:sex } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172771
P127
Q2235308
USER
Which ship types are under posessision of Royal Navy ?
(c(Q2235308),P127,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P127
type Q2235308
[{'concept': 'Q2235308'}, 'P127', 'Q172771']
SELECT DISTINCT ?d WHERE { ?d property:P127 resource:Q172771 . ?d rdf:type ontology:Q2235308 }
Royal Navy
action filter_type
action find_reverse
entity Royal Navy
relation owned by
type ship type
[{'concept': 'ship type'}, 'owned by', 'Royal Navy']
SELECT DISTINCT ?d WHERE { ?d property:owned_by resource:Royal_Navy . ?d rdf:type ontology:ship_type }
[]
ship type
Q4357032 Q900379 Q15146383
SYSTEM
HMS Nairana, HMS Bounty, HMS Osiris
Q1564348 Q4357032 Q4040229 Q6720185 Q16208139 Q900379 Q15146383
(c(Q2235308),P127,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P127
type Q2235308
[ANSWERS] are under posessision of Royal Navy
[{'concept': 'Q2235308'}, 'P127', 'Q172771']
SELECT DISTINCT ?d WHERE { ?d property:P127 resource:Q172771 . ?d rdf:type ontology:Q2235308 }
HMS Audacity HMS Nairana HMS Russell RML 497 HMS Albatross HMS Bounty HMS Osiris
HMS Nairana, HMS Bounty and HMS Osiris are under posessision of Royal Navy
HMS Nairana HMS Bounty HMS Osiris
action filter_type
action find_reverse
entity Royal Navy
relation owned by
type ship type
[{'concept': 'ship type'}, 'owned by', 'Royal Navy']
SELECT DISTINCT ?d WHERE { ?d property:owned_by resource:Royal_Navy . ?d rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172771
P159
Q192350
USER
Where is the head office for that military branch located ?
(Q4357032,P159,c(Q192350)) (Q900379,P159,c(Q192350)) (Q15146383,P159,c(Q192350))
action filter_type
action find
entity Q172771
relation P159
type Q192350
['Q4357032', 'P159', {'concept': 'Q192350'}] ['Q900379', 'P159', {'concept': 'Q192350'}] ['Q15146383', 'P159', {'concept': 'Q192350'}]
SELECT DISTINCT ?w WHERE { resource:Q172771 property:P159 ?w . ?w rdf:type ontology:Q192350 }
Royal Navy
action filter_type
action find
entity Royal Navy
relation headquarters location
type ministry
['HMS Nairana', 'headquarters location', {'concept': 'ministry'}] ['HMS Bounty', 'headquarters location', {'concept': 'ministry'}] ['HMS Osiris', 'headquarters location', {'concept': 'ministry'}]
SELECT DISTINCT ?w WHERE { resource:Royal_Navy property:headquarters_location ?w . ?w rdf:type ontology:ministry }
[]
ministry
Q1143261
SYSTEM
Ministry of Defence
Q1143261
(Q4357032,P159,c(Q192350)) (Q900379,P159,c(Q192350)) (Q15146383,P159,c(Q192350))
action filter_type
action find
entity Q172771
relation P159
type Q192350
The head office for that military branch is located in [ANSWER]
['Q4357032', 'P159', {'concept': 'Q192350'}] ['Q900379', 'P159', {'concept': 'Q192350'}] ['Q15146383', 'P159', {'concept': 'Q192350'}]
SELECT DISTINCT ?w WHERE { resource:Q172771 property:P159 ?w . ?w rdf:type ontology:Q192350 }
Ministry of Defence
The head office for that military branch is located in Ministry of Defence
Ministry of Defence
action filter_type
action find
entity Royal Navy
relation headquarters location
type ministry
['HMS Nairana', 'headquarters location', {'concept': 'ministry'}] ['HMS Bounty', 'headquarters location', {'concept': 'ministry'}] ['HMS Osiris', 'headquarters location', {'concept': 'ministry'}]
SELECT DISTINCT ?w WHERE { resource:Royal_Navy property:headquarters_location ?w . ?w rdf:type ontology:ministry }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q172771 Q25387
P137
Q2235308
USER
How many ship types were operated by Royal Navy and Royal Canadian Navy ?
(c(Q2235308),P137,Q172771) (c(Q2235308),P137,Q25387)
action count
action intersection
action filter_type
action find_reverse
entity Q172771
relation P137
type Q2235308
action filter_type
action find_reverse
entity Q25387
relation P137
type Q2235308
[{'concept': 'Q2235308'}, 'P137', 'Q172771'] [{'concept': 'Q2235308'}, 'P137', 'Q25387']
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P137 resource:Q25387 . ?a rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q2235308 . ?a property:P137 resource:Q172771 }
Royal Navy Royal Canadian Navy
action count
action intersection
action filter_type
action find_reverse
entity Royal Navy
relation operator
type ship type
action filter_type
action find_reverse
entity Royal Canadian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Royal Navy'] [{'concept': 'ship type'}, 'operator', 'Royal Canadian Navy']
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:operator resource:Royal_Canadian_Navy . ?a rdf:type ontology:ship_type . ?a rdf:type ontology:ship_type . ?a property:operator resource:Royal_Navy }
[]
ship type
SYSTEM
51
Q5631277 Q5630792 Q1800912 Q5630779 Q5630778 Q626386 Q11195149 Q5630699 Q993960 Q16223025 Q5630969 Q1564166 Q5630736 Q1564183 Q1564180 Q5630967 Q612393 Q5630715 Q5630921 Q652746 Q3211329 Q5630848 Q404394 Q5633579 Q5630759 Q1630695 Q16161783 Q2591384 Q1552451 Q5634312 Q16223019 Q935712 Q4346556 Q500474 Q4052245 Q5630918 Q1564170 Q5630951 Q5630737 Q516401 Q503867 Q5630724 Q499205 Q615525 Q5630933 Q5633628 Q1029315 Q1084819 Q7186743 Q1564715 Q15222439
(c(Q2235308),P137,Q172771) (c(Q2235308),P137,Q25387)
action count
action intersection
action filter_type
action find_reverse
entity Q172771
relation P137
type Q2235308
action filter_type
action find_reverse
entity Q25387
relation P137
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P137', 'Q172771'] [{'concept': 'Q2235308'}, 'P137', 'Q25387']
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:P137 resource:Q25387 . ?a rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q2235308 . ?a property:P137 resource:Q172771 }
HMS Algerine HMCS Eyebright ARA Independencia HMCS Crusader HMCS Crescent HMCS Corner Brook C-class destroyer HMCS Algonquin Diadem-class cruiser HMCS Hepatica (K159) HMCS Windsor HMS Crusader HMCS CH-14 HMCS Victoria HMS Cygnet HMCS Windflower HMCS Chicoutimi HMCS Baffin HMCS Snowberry HMS Decoy Castle-class corvette HMCS Mayflower Flower-class corvette HMS Olympus HMCS Champlain Motor Torpedo Boat HMCS Arrowhead HMCS Magnificent HMS Comet HMS Shearwater HMCS Fennel (K194) HMS Niobe HMCS Ontario HMS Crescent USS Maddox HMCS Sioux HMCS Rainbow HMCS Trillium HMCS CH-15 HMCS Bonaventure HMS Griffin HMCS Bittersweet HMS Diana HMS Express HMCS St. Thomas HMS Osiris HMS Hero Isles class trawler Phoenix-class sloop HMS Fortune HMCS Spikenard (K198)
51
action count
action intersection
action filter_type
action find_reverse
entity Royal Navy
relation operator
type ship type
action filter_type
action find_reverse
entity Royal Canadian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Royal Navy'] [{'concept': 'ship type'}, 'operator', 'Royal Canadian Navy']
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a property:operator resource:Royal_Canadian_Navy . ?a rdf:type ontology:ship_type . ?a rdf:type ontology:ship_type . ?a property:operator resource:Royal_Navy }
[]