Simple Question (Direct)
Simple Question
Q6137884
P241
Q781132
USER
Which military branch is James Leach associated with ?
(Q6137884,P241,c(Q781132))
action filter_type
action find
entity Q6137884
relation P241
type Q781132
['Q6137884', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?h WHERE { resource:Q6137884 property:P241 ?h . ?h rdf:type ontology:Q781132 }
James Leach
action filter_type
action find
entity James Leach
relation military branch
type military branch
['James Leach', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?h WHERE { resource:James_Leach property:military_branch ?h . ?h rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q6137884,P241,c(Q781132))
action filter_type
action find
entity Q6137884
relation P241
type Q781132
James Leach is associated with [ANSWER]
['Q6137884', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?h WHERE { resource:Q6137884 property:P241 ?h . ?h rdf:type ontology:Q781132 }
British Army
James Leach is associated with British Army
British Army
action filter_type
action find
entity James Leach
relation military branch
type military branch
['James Leach', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?h WHERE { resource:James_Leach property:military_branch ?h . ?h rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6137884
P607
Q198
USER
What battle was James Leach a part of ?
(Q6137884,P607,c(Q198))
action filter_type
action find
entity Q6137884
relation P607
type Q198
['Q6137884', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q6137884 property:P607 ?k . ?k rdf:type ontology:Q198 }
James Leach
action filter_type
action find
entity James Leach
relation conflict
type war
['James Leach', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:James_Leach property:conflict ?k . ?k rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q6137884,P607,c(Q198))
action filter_type
action find
entity Q6137884
relation P607
type Q198
James Leach was in [ANSWER]
['Q6137884', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q6137884 property:P607 ?k . ?k rdf:type ontology:Q198 }
World War I
James Leach was in World War I
World War I
action filter_type
action find
entity James Leach
relation conflict
type war
['James Leach', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:James_Leach property:conflict ?k . ?k rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2936445
Q198
USER
And also tell me about 305mm/45 Modèle 1906 gun?
(Q2936445,P607,c(Q198))
action filter_type
action find
entity Q2936445
relation P607
type Q198
['Q2936445', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q198 . resource:Q2936445 property:P607 ?t }
305mm/45 Modèle 1906 gun
action filter_type
action find
entity 305mm/45 Modèle 1906 gun
relation conflict
type war
['305mm/45 Modèle 1906 gun', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:war . resource:305mm/45_Modèle_1906_gun property:conflict ?t }
[]
war
Q361
SYSTEM
World War I
Q361
(Q2936445,P607,c(Q198))
action filter_type
action find
entity Q2936445
relation P607
type Q198
[ANSWER]
['Q2936445', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q198 . resource:Q2936445 property:P607 ?t }
World War I
World War I
action filter_type
action find
entity 305mm/45 Modèle 1906 gun
relation conflict
type war
['305mm/45 Modèle 1906 gun', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:war . resource:305mm/45_Modèle_1906_gun property:conflict ?t }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q269562 Q222595
P47 P17
Q15617994
USER
Which administrative territories are British Army situated in or are bordered by Pontedassio ?
OR((Q222595,P17,c(Q15617994)), (Q269562,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q222595
relation P17
action find
entity Q269562
relation P47
type Q15617994
{'OR': [['Q222595', 'P17', {'concept': 'Q15617994'}], ['Q269562', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q269562 property:P47 ?c } UNION { resource:Q222595 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Pontedassio British Army
action filter_type
action union
action find
entity British Army
relation country
action find
entity Pontedassio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['British Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pontedassio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Pontedassio property:shares_border_with ?c } UNION { resource:British_Army property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13318 Q268548 Q268525 Q269897 Q145 Q268773 Q269134
SYSTEM
Imperia, Chiusavecchia, Chiusanico, Vasia, United Kingdom, Diano Arentino, Lucinasco
Q13318 Q268548 Q268525 Q269897 Q145 Q268773 Q269134
OR((Q222595,P17,c(Q15617994)), (Q269562,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q222595
relation P17
action find
entity Q269562
relation P47
type Q15617994
British Army are situated in bordered the [ANSWERS]
{'OR': [['Q222595', 'P17', {'concept': 'Q15617994'}], ['Q269562', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q269562 property:P47 ?c } UNION { resource:Q222595 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Imperia Chiusavecchia Chiusanico Vasia United Kingdom Diano Arentino Lucinasco
British Army are situated in bordered the Imperia, Chiusavecchia, Chiusanico, Vasia, United Kingdom, Diano Arentino and Lucinasco
Imperia Chiusavecchia Chiusanico Vasia United Kingdom Diano Arentino Lucinasco
action filter_type
action union
action find
entity British Army
relation country
action find
entity Pontedassio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['British Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pontedassio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Pontedassio property:shares_border_with ?c } UNION { resource:British_Army property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q6137884
P530 P27
Q15617994
USER
Which administrative territories are James Leach a civilian of and have diplomatic relations with Italy ?
AND((Q6137884,P27,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6137884
relation P27
action find
entity Q38
relation P530
type Q15617994
{'AND': [['Q6137884', 'P27', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q6137884 property:P27 ?x . resource:Q38 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
Italy James Leach
action filter_type
action intersection
action find
entity James Leach
relation country of citizenship
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['James Leach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:James_Leach property:country_of_citizenship ?x . resource:Italy property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q6137884,P27,c(Q15617994)), (Q38,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6137884
relation P27
action find
entity Q38
relation P530
type Q15617994
[ANSWER] is James Leach a civilian of and have diplomatic relations with Italy
{'AND': [['Q6137884', 'P27', {'concept': 'Q15617994'}], ['Q38', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q6137884 property:P27 ?x . resource:Q38 property:P530 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is James Leach a civilian of and have diplomatic relations with Italy
United Kingdom
action filter_type
action intersection
action find
entity James Leach
relation country of citizenship
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['James Leach', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:James_Leach property:country_of_citizenship ?x . resource:Italy property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q145 Q21394765
P27
Q502895
USER
Is Qixiong Hu a native of that administrative territory ?
(Q21394765,P27,Q145)
action is_in
entity Q21394765
action find
entity Q145
relation P27
['Q21394765', 'P27', 'Q145']
ASK WHERE { resource:Q145 property:P27 resource:Q21394765 }
United Kingdom Qixiong Hu
action is_in
entity Qixiong Hu
action find
entity United Kingdom
relation country of citizenship
['Qixiong Hu', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:United_Kingdom property:country_of_citizenship resource:Qixiong_Hu }
[]
common name
SYSTEM
NO
(Q21394765,P27,Q145)
action is_in
entity Q21394765
action find
entity Q145
relation P27
[ANSWER]
['Q21394765', 'P27', 'Q145']
ASK WHERE { resource:Q145 property:P27 resource:Q21394765 }
No
action is_in
entity Qixiong Hu
action find
entity United Kingdom
relation country of citizenship
['Qixiong Hu', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:United_Kingdom property:country_of_citizenship resource:Qixiong_Hu }
[]