Simple Question (Direct)
Simple Question
Q504901
P19
Q56061
USER
Which administrative territory is the birthplace of Jerald terHorst ?
(Q504901,P19,c(Q56061))
action filter_type
action find
entity Q504901
relation P19
type Q56061
['Q504901', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q504901 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Jerald terHorst
action filter_type
action find
entity Jerald terHorst
relation place of birth
type administrative territorial entity
['Jerald terHorst', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jerald_terHorst property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q184587
SYSTEM
Grand Rapids
Q184587
(Q504901,P19,c(Q56061))
action filter_type
action find
entity Q504901
relation P19
type Q56061
Rapids [ANSWER] is the birthplace of Jerald terHorst
['Q504901', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q504901 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Grand Rapids
Rapids Grand Rapids is the birthplace of Jerald terHorst
Grand Rapids
action filter_type
action find
entity Jerald terHorst
relation place of birth
type administrative territorial entity
['Jerald terHorst', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Jerald_terHorst property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q504901
P241
Q781132
USER
Which military branch did Jerald terHorst belong to ?
(Q504901,P241,c(Q781132))
action filter_type
action find
entity Q504901
relation P241
type Q781132
['Q504901', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q781132 . resource:Q504901 property:P241 ?n }
Jerald terHorst
action filter_type
action find
entity Jerald terHorst
relation military branch
type military branch
['Jerald terHorst', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:military_branch . resource:Jerald_terHorst property:military_branch ?n }
[]
military branch
Q11218
SYSTEM
United States Marine Corps
Q11218
(Q504901,P241,c(Q781132))
action filter_type
action find
entity Q504901
relation P241
type Q781132
Jerald terHorst belonged to [ANSWER]
['Q504901', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q781132 . resource:Q504901 property:P241 ?n }
United States Marine Corps
Jerald terHorst belonged to United States Marine Corps
United States Marine Corps
action filter_type
action find
entity Jerald terHorst
relation military branch
type military branch
['Jerald terHorst', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:military_branch . resource:Jerald_terHorst property:military_branch ?n }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5534896 Q504901
P241
Q781132
USER
Or Geoffrey Sherman?
OR((Q504901,P241,c(Q781132)), (Q5534896,P241,c(Q781132)))
action filter_type
action union
action find
entity Q504901
relation P241
action find
entity Q5534896
relation P241
type Q781132
{'OR': [['Q504901', 'P241', {'concept': 'Q781132'}], ['Q5534896', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q5534896 property:P241 ?d } UNION { resource:Q504901 property:P241 ?d } } . ?d rdf:type ontology:Q781132 }
Geoffrey Sherman Jerald terHorst
action filter_type
action union
action find
entity Jerald terHorst
relation military branch
action find
entity Geoffrey Sherman
relation military branch
type military branch
{'OR': [['Jerald terHorst', 'military branch', {'concept': 'military branch'}], ['Geoffrey Sherman', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Geoffrey_Sherman property:military_branch ?d } UNION { resource:Jerald_terHorst property:military_branch ?d } } . ?d rdf:type ontology:military_branch }
[]
military branch
Q11218 Q1046947 Q172771
SYSTEM
United States Marine Corps, Royal Marines, Royal Navy
Q11218 Q1046947 Q172771
OR((Q504901,P241,c(Q781132)), (Q5534896,P241,c(Q781132)))
action filter_type
action union
action find
entity Q504901
relation P241
action find
entity Q5534896
relation P241
type Q781132
[ANSWERS]
{'OR': [['Q504901', 'P241', {'concept': 'Q781132'}], ['Q5534896', 'P241', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q5534896 property:P241 ?d } UNION { resource:Q504901 property:P241 ?d } } . ?d rdf:type ontology:Q781132 }
United States Marine Corps Royal Marines Royal Navy
United States Marine Corps Royal Marines Royal Navy
action filter_type
action union
action find
entity Jerald terHorst
relation military branch
action find
entity Geoffrey Sherman
relation military branch
type military branch
{'OR': [['Jerald terHorst', 'military branch', {'concept': 'military branch'}], ['Geoffrey Sherman', 'military branch', {'concept': 'military branch'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Geoffrey_Sherman property:military_branch ?d } UNION { resource:Jerald_terHorst property:military_branch ?d } } . ?d rdf:type ontology:military_branch }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q781132 Q23905071 Q176799
USER
How many military branches are more number of military unit type-size classes or military units a part of than that military branch ?
(c(Q23905071)|c(Q176799),P361,c(Q781132))
[[{'concept': 'Q23905071'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q23905071 . ?y rdf:type ontology:Q781132 . ?x rdf:type ontology:Q176799 }
[[{'concept': 'military unit type-size class'}, {'concept': 'military unit'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:military_unit_type-size_class . ?y rdf:type ontology:military_branch . ?x rdf:type ontology:military_unit }
[]
military branch military unit type-size class military unit
Comparative|Count over More/Less|Mult. entity type|Clarification
Q172771
SYSTEM
Did you mean Royal Navy ?
(c(Q23905071)|c(Q176799),P361,c(Q781132))
[ANSWER]
[[{'concept': 'Q23905071'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q23905071 . ?y rdf:type ontology:Q781132 . ?x rdf:type ontology:Q176799 }
Did you mean Royal Navy ?
Royal Navy
[[{'concept': 'military unit type-size class'}, {'concept': 'military unit'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:military_unit_type-size_class . ?y rdf:type ontology:military_branch . ?x rdf:type ontology:military_unit }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q23905071)|c(Q176799),P361,c(Q781132))
[[{'concept': 'Q23905071'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q781132'}]
[[{'concept': 'military unit type-size class'}, {'concept': 'military unit'}], 'part of', {'concept': 'military branch'}]
[]
SYSTEM
40
Q23905126 Q222595 Q56015 Q1799545 Q483268 Q1815399 Q3068744 Q701923 Q2078095 Q313422 Q2558747 Q311689 Q248989 Q642932 Q833040 Q1546449 Q889751 Q781360 Q2862927 Q19247539 Q276535 Q796411 Q56012 Q7275540 Q1076619 Q897614 Q6479134 Q741691 Q11218 Q2301347 Q2383264 Q1358152 Q9212 Q355771 Q18129370 Q1753805 Q731647 Q706042 Q706996 Q1370395
(c(Q23905071)|c(Q176799),P361,c(Q781132))
[ANSWER]
[[{'concept': 'Q23905071'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?x property:P361 ?y } } . ?z rdf:type ontology:Q23905071 . ?y rdf:type ontology:Q781132 . ?x rdf:type ontology:Q176799 }
Slovak Army British Army German Navy Philippine Army Republic of Korea Army South African Army Syrian Arab Army German Army Pakistan Army German Army Romanian Land Forces Royal Hungarian Army Polish Land Forces Indian Army Italian Navy Hellenic Army Japan Ground Self-Defense Force Australian Army Indonesian Army Ottoman Army Imperial Japanese Army Italian Army German Army RAF Regiment French Army Iraqi Army Egyptian Army Royal Australian Navy United States Marine Corps Argentine Army Finnish Army Korean People's Army Ground Force United States Army Indian Army Philippine Commonwealth Army Croatian Army Japan Maritime Self-Defense Force Prussian Army Southern Expeditionary Army Group Estonian Land Forces
40
[[{'concept': 'military unit type-size class'}, {'concept': 'military unit'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?x property:part_of ?y } } . ?z rdf:type ontology:military_unit_type-size_class . ?y rdf:type ontology:military_branch . ?x rdf:type ontology:military_unit }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4724937 Q504901
P27
Q15617994
USER
Which administrative territories are Jerald terHorst or Ali Karimi an inhabitant of ?
OR((Q504901,P27,c(Q15617994)), (Q4724937,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q504901
relation P27
action find
entity Q4724937
relation P27
type Q15617994
{'OR': [['Q504901', 'P27', {'concept': 'Q15617994'}], ['Q4724937', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q504901 property:P27 ?a } UNION { resource:Q4724937 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Ali Karimi Jerald terHorst
action filter_type
action union
action find
entity Jerald terHorst
relation country of citizenship
action find
entity Ali Karimi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jerald terHorst', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ali Karimi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jerald_terHorst property:country_of_citizenship ?a } UNION { resource:Ali_Karimi property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q794
SYSTEM
United States of America, Iran
Q30 Q794
OR((Q504901,P27,c(Q15617994)), (Q4724937,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q504901
relation P27
action find
entity Q4724937
relation P27
type Q15617994
[ANSWERS] are Jerald terHorst or Ali Karimi an inhabitant of
{'OR': [['Q504901', 'P27', {'concept': 'Q15617994'}], ['Q4724937', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q504901 property:P27 ?a } UNION { resource:Q4724937 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
United States of America Iran
United States of America and Iran are Jerald terHorst or Ali Karimi an inhabitant of
United States of America Iran
action filter_type
action union
action find
entity Jerald terHorst
relation country of citizenship
action find
entity Ali Karimi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jerald terHorst', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ali Karimi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jerald_terHorst property:country_of_citizenship ?a } UNION { resource:Ali_Karimi property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1382535
P27
Q502895
USER
Are Ivan Galamian a native of those administrative territories ?
(Q1382535,P27,Q30) (Q1382535,P27,Q794)
action is_in
entity prev_answer
action find
entity Q1382535
relation P27
['Q1382535', 'P27', 'Q30'] ['Q1382535', 'P27', 'Q794']
ASK WHERE { resource:Q1382535 property:P27 ?d . VALUES ( ?d ) { ( resource:Q30 ) ( resource:Q794 ) } }
Ivan Galamian
action is_in
entity prev_answer
action find
entity Ivan Galamian
relation country of citizenship
['Ivan Galamian', 'country of citizenship', 'United States of America'] ['Ivan Galamian', 'country of citizenship', 'Iran']
ASK WHERE { resource:Ivan_Galamian property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:United_States_of_America ) ( resource:Iran ) } }
[]
common name
SYSTEM
YES
(Q1382535,P27,Q30) (Q1382535,P27,Q794)
action is_in
entity prev_answer
action find
entity Q1382535
relation P27
[ANSWER]
['Q1382535', 'P27', 'Q30'] ['Q1382535', 'P27', 'Q794']
ASK WHERE { resource:Q1382535 property:P27 ?d . VALUES ( ?d ) { ( resource:Q30 ) ( resource:Q794 ) } }
Yes
action is_in
entity prev_answer
action find
entity Ivan Galamian
relation country of citizenship
['Ivan Galamian', 'country of citizenship', 'United States of America'] ['Ivan Galamian', 'country of citizenship', 'Iran']
ASK WHERE { resource:Ivan_Galamian property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:United_States_of_America ) ( resource:Iran ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P30
Q2221906
USER
Where are United States of America situated ?
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2221906 . resource:Q30 property:P30 ?s }
United States of America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:geographic_location . resource:United_States_of_America property:continent ?s }
[]
geographic location
Q49 Q538
SYSTEM
North America, Oceania
Q49 Q538
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
United States of America are situated in [ANSWERS]
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2221906 . resource:Q30 property:P30 ?s }
North America Oceania
United States of America are situated in North America and Oceania
North America Oceania
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:geographic_location . resource:United_States_of_America property:continent ?s }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q49 Q538
P30
Q34763
USER
Which peninsulas are located in North America and Oceania ?
(c(Q34763),P30,Q49) (c(Q34763),P30,Q538)
action union
action filter_type
action find_reverse
entity Q49
relation P30
type Q34763
action filter_type
action find_reverse
entity Q538
relation P30
type Q34763
[{'concept': 'Q34763'}, 'P30', 'Q49'] [{'concept': 'Q34763'}, 'P30', 'Q538']
SELECT DISTINCT ?d WHERE { VALUES ( ?x ) { ( resource:Q538 ) ( resource:Q49 ) } . ?d property:P30 ?x }
North America Oceania
action union
action filter_type
action find_reverse
entity North America
relation continent
type peninsula
action filter_type
action find_reverse
entity Oceania
relation continent
type peninsula
[{'concept': 'peninsula'}, 'continent', 'North America'] [{'concept': 'peninsula'}, 'continent', 'Oceania']
SELECT DISTINCT ?d WHERE { VALUES ( ?x ) { ( resource:Oceania ) ( resource:North_America ) } . ?d property:continent ?x }
[]
peninsula
Q4921478 Q5314679 Q5034961
SYSTEM
Black Point, Duncans Point, Cape Nelson
Q4921478 Q5314679 Q5034961
(c(Q34763),P30,Q49) (c(Q34763),P30,Q538)
action union
action filter_type
action find_reverse
entity Q49
relation P30
type Q34763
action filter_type
action find_reverse
entity Q538
relation P30
type Q34763
[ANSWERS] are located in North America and Oceania
[{'concept': 'Q34763'}, 'P30', 'Q49'] [{'concept': 'Q34763'}, 'P30', 'Q538']
SELECT DISTINCT ?d WHERE { VALUES ( ?x ) { ( resource:Q538 ) ( resource:Q49 ) } . ?d property:P30 ?x }
Black Point Duncans Point Cape Nelson
Black Point, Duncans Point and Cape Nelson are located in North America and Oceania
Black Point Duncans Point Cape Nelson
action union
action filter_type
action find_reverse
entity North America
relation continent
type peninsula
action filter_type
action find_reverse
entity Oceania
relation continent
type peninsula
[{'concept': 'peninsula'}, 'continent', 'North America'] [{'concept': 'peninsula'}, 'continent', 'Oceania']
SELECT DISTINCT ?d WHERE { VALUES ( ?x ) { ( resource:Oceania ) ( resource:North_America ) } . ?d property:continent ?x }
[]