Simple Question (Direct)
Simple Question
Q5634552
P176
Q1048835
USER
Who is the producer of HMS Sylvia ?
(Q5634552,P176,c(Q1048835))
action filter_type
action find
entity Q5634552
relation P176
type Q1048835
['Q5634552', 'P176', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q5634552 property:P176 ?m . ?m rdf:type ontology:Q1048835 }
HMS Sylvia
action filter_type
action find
entity HMS Sylvia
relation manufacturer
type political territorial entity
['HMS Sylvia', 'manufacturer', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:HMS_Sylvia property:manufacturer ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q23635
SYSTEM
Bermuda
Q23635
(Q5634552,P176,c(Q1048835))
action filter_type
action find
entity Q5634552
relation P176
type Q1048835
The producer of HMS Sylvia is in [ANSWER]
['Q5634552', 'P176', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q5634552 property:P176 ?m . ?m rdf:type ontology:Q1048835 }
Bermuda
The producer of HMS Sylvia is in Bermuda
Bermuda
action filter_type
action find
entity HMS Sylvia
relation manufacturer
type political territorial entity
['HMS Sylvia', 'manufacturer', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:HMS_Sylvia property:manufacturer ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5634552
P289
Q2235308
USER
Which ship type does the vessel class of HMS Sylvia belong to ?
(Q5634552,P289,c(Q2235308))
action filter_type
action find
entity Q5634552
relation P289
type Q2235308
['Q5634552', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2235308 . resource:Q5634552 property:P289 ?p }
HMS Sylvia
action filter_type
action find
entity HMS Sylvia
relation vessel class
type ship type
['HMS Sylvia', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:ship_type . resource:HMS_Sylvia property:vessel_class ?p }
[]
ship type
Q4684540
SYSTEM
Adonis class schooner
Q4684540
(Q5634552,P289,c(Q2235308))
action filter_type
action find
entity Q5634552
relation P289
type Q2235308
The vessel class of HMS Sylvia belongs to the [ANSWER]
['Q5634552', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2235308 . resource:Q5634552 property:P289 ?p }
Adonis class schooner
The vessel class of HMS Sylvia belongs to the Adonis class schooner
Adonis class schooner
action filter_type
action find
entity HMS Sylvia
relation vessel class
type ship type
['HMS Sylvia', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:ship_type . resource:HMS_Sylvia property:vessel_class ?p }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4800681 Q5634552
P137 P241
Q781132
USER
Which military branches operates HMS Sylvia or are Arthur William Hammond associated with ?
OR((Q5634552,P137,c(Q781132)), (Q4800681,P241,c(Q781132)))
action filter_type
action union
action find
entity Q5634552
relation P137
action find
entity Q4800681
relation P241
type Q781132
{'OR': [['Q5634552', 'P137', {'concept': 'Q781132'}], ['Q4800681', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4800681 property:P241 ?p } UNION { resource:Q5634552 property:P137 ?p } } . ?p rdf:type ontology:Q781132 }
Arthur William Hammond HMS Sylvia
action filter_type
action union
action find
entity HMS Sylvia
relation operator
action find
entity Arthur William Hammond
relation military branch
type military branch
{'OR': [['HMS Sylvia', 'operator', {'concept': 'military branch'}], ['Arthur William Hammond', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Arthur_William_Hammond property:military_branch ?p } UNION { resource:HMS_Sylvia property:operator ?p } } . ?p rdf:type ontology:military_branch }
[]
military branch
Q222595 Q172771
SYSTEM
British Army, Royal Navy
Q222595 Q172771
OR((Q5634552,P137,c(Q781132)), (Q4800681,P241,c(Q781132)))
action filter_type
action union
action find
entity Q5634552
relation P137
action find
entity Q4800681
relation P241
type Q781132
[ANSWERS] operate HMS Sylvia or are Arthur William Hammond associated with
{'OR': [['Q5634552', 'P137', {'concept': 'Q781132'}], ['Q4800681', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q4800681 property:P241 ?p } UNION { resource:Q5634552 property:P137 ?p } } . ?p rdf:type ontology:Q781132 }
British Army Royal Navy
British Army and Royal Navy operate HMS Sylvia or are Arthur William Hammond associated with
British Army Royal Navy
action filter_type
action union
action find
entity HMS Sylvia
relation operator
action find
entity Arthur William Hammond
relation military branch
type military branch
{'OR': [['HMS Sylvia', 'operator', {'concept': 'military branch'}], ['Arthur William Hammond', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Arthur_William_Hammond property:military_branch ?p } UNION { resource:HMS_Sylvia property:operator ?p } } . ?p rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6197066
P241
Q502895
USER
Are George Sutherland-Leveson-Gower, 5th Duke of Sutherland affiliated to the military branch named those ones ?
(Q6197066,P241,Q222595) (Q6197066,P241,Q172771)
action is_in
entity prev_answer
action find
entity Q6197066
relation P241
['Q6197066', 'P241', 'Q222595'] ['Q6197066', 'P241', 'Q172771']
ASK WHERE { resource:Q6197066 property:P241 ?s . VALUES ( ?s ) { ( resource:Q222595 ) ( resource:Q172771 ) } }
George Sutherland-Leveson-Gower, 5th Duke of Sutherland
action is_in
entity prev_answer
action find
entity George Sutherland-Leveson-Gower, 5th Duke of Sutherland
relation military branch
['George Sutherland-Leveson-Gower, 5th Duke of Sutherland', 'military branch', 'British Army'] ['George Sutherland-Leveson-Gower, 5th Duke of Sutherland', 'military branch', 'Royal Navy']
ASK WHERE { resource:George_Sutherland-Leveson-Gower,_5th_Duke_of_Sutherland property:military_branch ?s . VALUES ( ?s ) { ( resource:British_Army ) ( resource:Royal_Navy ) } }
[]
common name
SYSTEM
YES
(Q6197066,P241,Q222595) (Q6197066,P241,Q172771)
action is_in
entity prev_answer
action find
entity Q6197066
relation P241
[ANSWER]
['Q6197066', 'P241', 'Q222595'] ['Q6197066', 'P241', 'Q172771']
ASK WHERE { resource:Q6197066 property:P241 ?s . VALUES ( ?s ) { ( resource:Q222595 ) ( resource:Q172771 ) } }
Yes
action is_in
entity prev_answer
action find
entity George Sutherland-Leveson-Gower, 5th Duke of Sutherland
relation military branch
['George Sutherland-Leveson-Gower, 5th Duke of Sutherland', 'military branch', 'British Army'] ['George Sutherland-Leveson-Gower, 5th Duke of Sutherland', 'military branch', 'Royal Navy']
ASK WHERE { resource:George_Sutherland-Leveson-Gower,_5th_Duke_of_Sutherland property:military_branch ?s . VALUES ( ?s ) { ( resource:British_Army ) ( resource:Royal_Navy ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5634552 Q172771
P137
Q781132
USER
Is Royal Navy the facility operator of HMS Sylvia ?
(Q5634552,P137,Q172771)
action is_in
entity Q172771
action find
entity Q5634552
relation P137
['Q5634552', 'P137', 'Q172771']
ASK WHERE { resource:Q5634552 property:P137 resource:Q172771 }
HMS Sylvia Royal Navy
action is_in
entity Royal Navy
action find
entity HMS Sylvia
relation operator
['HMS Sylvia', 'operator', 'Royal Navy']
ASK WHERE { resource:HMS_Sylvia property:operator resource:Royal_Navy }
[]
military branch
SYSTEM
YES
(Q5634552,P137,Q172771)
action is_in
entity Q172771
action find
entity Q5634552
relation P137
[ANSWER]
['Q5634552', 'P137', 'Q172771']
ASK WHERE { resource:Q5634552 property:P137 resource:Q172771 }
Yes
action is_in
entity Royal Navy
action find
entity HMS Sylvia
relation operator
['HMS Sylvia', 'operator', 'Royal Navy']
ASK WHERE { resource:HMS_Sylvia property:operator resource:Royal_Navy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2235308 Q874405 Q17444909
USER
How many ship types are around 1 social groups or astronomical object types named after ?
(c(Q874405)|c(Q17444909),P138,c(Q2235308))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q874405
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q17444909
value 1
[[{'concept': 'Q874405'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q874405 ) ( ontology:Q17444909 ) } . ?q rdf:type ?e } GROUP BY ?c } . FILTER ( ?n = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type ship type
type social group
action find_reverse_tuple_counts
relation named after
type ship type
type astronomical object type
value 1
[[{'concept': 'social group'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:social_group ) ( ontology:astronomical_object_type ) } . ?q rdf:type ?e } GROUP BY ?c } . FILTER ( ?n = 1 ) }
[]
ship type social group astronomical object type
SYSTEM
6
Q827360 Q900379 Q557286 Q1500360 Q7024076 Q449016
(c(Q874405)|c(Q17444909),P138,c(Q2235308))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q874405
action find_reverse_tuple_counts
relation P138
type Q2235308
type Q17444909
value 1
[ANSWER]
[[{'concept': 'Q874405'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:Q874405 ) ( ontology:Q17444909 ) } . ?q rdf:type ?e } GROUP BY ?c } . FILTER ( ?n = 1 ) }
USS Nautilus HMS Bounty Gorch Fock I Nautilus Niantic DSV Alvin
6
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type ship type
type social group
action find_reverse_tuple_counts
relation named after
type ship type
type astronomical object type
value 1
[[{'concept': 'social group'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?q ) AS ?n ) WHERE { VALUES ( ?e ) { ( ontology:social_group ) ( ontology:astronomical_object_type ) } . ?q rdf:type ?e } GROUP BY ?c } . FILTER ( ?n = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q248989
P361
Q781132 Q21506450 Q874405
USER
How many military branches are more number of military unit size classes and social groups a part of than Polish Land Forces ?
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q248989
relation P361
type Q21506450
type Q874405
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?k WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q21506450 ) ( ontology:Q874405 ) } } GROUP BY ?k } . FILTER ( ?p > ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P361 resource:Q248989 . { VALUES ( ?i ) { ( ontology:Q874405 ) ( ontology:Q21506450 ) } . ?h rdf:type ?i } } } }
Polish Land Forces
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity Polish Land Forces
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?k WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:military_unit_size_class ) ( ontology:social_group ) } } GROUP BY ?k } . FILTER ( ?p > ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:part_of resource:Polish_Land_Forces . { VALUES ( ?i ) { ( ontology:social_group ) ( ontology:military_unit_size_class ) } . ?h rdf:type ?i } } } }
[]
military branch military unit size class social group
SYSTEM
17
Q222595 Q210606 Q11220 Q1078222 Q5555333 Q19344622 Q642932 Q4117226 Q2575188 Q1067064 Q781360 Q1076619 Q2384177 Q25436 Q1358152 Q9212 Q2630039
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q248989
relation P361
type Q21506450
type Q874405
[ANSWER]
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?k WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q21506450 ) ( ontology:Q874405 ) } } GROUP BY ?k } . FILTER ( ?p > ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P361 resource:Q248989 . { VALUES ( ?i ) { ( ontology:Q874405 ) ( ontology:Q21506450 ) } . ?h rdf:type ?i } } } }
British Army 2nd Marine Division United States Navy Imperial Russian Army Ghana Army naval reserve force Indian Army Royal Jordanian Land Force Royal Danish Army United States Special Operations Command Australian Army French Army Norwegian Army Canadian Army Korean People's Army Ground Force United States Army New Zealand Army
17
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity Polish Land Forces
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?k WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:military_unit_size_class ) ( ontology:social_group ) } } GROUP BY ?k } . FILTER ( ?p > ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:part_of resource:Polish_Land_Forces . { VALUES ( ?i ) { ( ontology:social_group ) ( ontology:military_unit_size_class ) } . ?h rdf:type ?i } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1753805
P361
Q781132 Q21506450 Q874405
USER
And how about Croatian Army?
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q1753805
relation P361
type Q21506450
type Q874405
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?m WHERE { { ?k property:P361 ?m . ?m rdf:type ontology:Q781132 . ?k rdf:type ontology:Q21506450 } UNION { ?k property:P361 ?m . ?m rdf:type ontology:Q781132 . ?k rdf:type ontology:Q874405 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P361 resource:Q1753805 . { { ?r rdf:type ontology:Q21506450 } UNION { ?r rdf:type ontology:Q874405 } } } } . FILTER ( ?t > ?b ) }
Croatian Army
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity Croatian Army
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?m WHERE { { ?k property:part_of ?m . ?m rdf:type ontology:military_branch . ?k rdf:type ontology:military_unit_size_class } UNION { ?k property:part_of ?m . ?m rdf:type ontology:military_branch . ?k rdf:type ontology:social_group } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:part_of resource:Croatian_Army . { { ?r rdf:type ontology:military_unit_size_class } UNION { ?r rdf:type ontology:social_group } } } } . FILTER ( ?t > ?b ) }
[]
military branch military unit size class social group
SYSTEM
17
Q222595 Q210606 Q11220 Q1078222 Q5555333 Q19344622 Q642932 Q4117226 Q2575188 Q1067064 Q781360 Q1076619 Q2384177 Q25436 Q1358152 Q9212 Q2630039
(c(Q21506450)|c(Q874405),P361,c(Q781132))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q21506450
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
action count
action filter_multi_types
action find_reverse
entity Q1753805
relation P361
type Q21506450
type Q874405
[ANSWER]
[[{'concept': 'Q21506450'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?m WHERE { { ?k property:P361 ?m . ?m rdf:type ontology:Q781132 . ?k rdf:type ontology:Q21506450 } UNION { ?k property:P361 ?m . ?m rdf:type ontology:Q781132 . ?k rdf:type ontology:Q874405 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P361 resource:Q1753805 . { { ?r rdf:type ontology:Q21506450 } UNION { ?r rdf:type ontology:Q874405 } } } } . FILTER ( ?t > ?b ) }
British Army 2nd Marine Division United States Navy Imperial Russian Army Ghana Army naval reserve force Indian Army Royal Jordanian Land Force Royal Danish Army United States Special Operations Command Australian Army French Army Norwegian Army Canadian Army Korean People's Army Ground Force United States Army New Zealand Army
17
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit size class
action find_reverse_tuple_counts
relation part of
type military branch
type social group
action count
action filter_multi_types
action find_reverse
entity Croatian Army
relation part of
type military unit size class
type social group
[[{'concept': 'military unit size class'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?m WHERE { { ?k property:part_of ?m . ?m rdf:type ontology:military_branch . ?k rdf:type ontology:military_unit_size_class } UNION { ?k property:part_of ?m . ?m rdf:type ontology:military_branch . ?k rdf:type ontology:social_group } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:part_of resource:Croatian_Army . { { ?r rdf:type ontology:military_unit_size_class } UNION { ?r rdf:type ontology:social_group } } } } . FILTER ( ?t > ?b ) }
[]