Simple Question (Direct)
Simple Question
Q2580510
P7
Q502895
USER
Who has Paul Haviland as their sibling ?
(Q2580510,P7,c(Q502895))
action filter_type
action find
entity Q2580510
relation P7
type Q502895
['Q2580510', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q2580510 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Paul Haviland
action filter_type
action find
entity Paul Haviland
relation brother
type common name
['Paul Haviland', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Haviland property:brother ?r . ?r rdf:type ontology:common_name }
[]
common name
Q3082529
SYSTEM
Frank Burty Haviland
Q3082529
(Q2580510,P7,c(Q502895))
action filter_type
action find
entity Q2580510
relation P7
type Q502895
[ANSWER] has Paul Haviland as their sibling
['Q2580510', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q2580510 property:P7 ?r . ?r rdf:type ontology:Q502895 }
Frank Burty Haviland
Frank Burty Haviland has Paul Haviland as their sibling
Frank Burty Haviland
action filter_type
action find
entity Paul Haviland
relation brother
type common name
['Paul Haviland', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Paul_Haviland property:brother ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3082529
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q3082529)
action filter_type
action find_reverse
entity Q3082529
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3082529']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P40 resource:Q3082529 }
Frank Burty Haviland
action filter_type
action find_reverse
entity Frank Burty Haviland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Frank Burty Haviland']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:child resource:Frank_Burty_Haviland }
[]
common name
Q17350182
SYSTEM
Charles Edward Haviland
Q17350182
(c(Q502895),P40,Q3082529)
action filter_type
action find_reverse
entity Q3082529
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q3082529']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P40 resource:Q3082529 }
Charles Edward Haviland
Charles Edward Haviland has that one as an offspring
Charles Edward Haviland
action filter_type
action find_reverse
entity Frank Burty Haviland
relation child
type common name
[{'concept': 'common name'}, 'child', 'Frank Burty Haviland']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:child resource:Frank_Burty_Haviland }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17350182
P22
Q502895
USER
Which people have that one as a parent ?
(c(Q502895),P22,Q17350182)
action filter_type
action find_reverse
entity Q17350182
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q17350182']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q17350182 }
Charles Edward Haviland
action filter_type
action find_reverse
entity Charles Edward Haviland
relation father
type common name
[{'concept': 'common name'}, 'father', 'Charles Edward Haviland']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Charles_Edward_Haviland }
[]
common name
Q3082529 Q2580510
SYSTEM
Frank Burty Haviland, Paul Haviland
Q3082529 Q2580510
(c(Q502895),P22,Q17350182)
action filter_type
action find_reverse
entity Q17350182
relation P22
type Q502895
[ANSWERS] have that one as a parent
[{'concept': 'Q502895'}, 'P22', 'Q17350182']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P22 resource:Q17350182 }
Frank Burty Haviland Paul Haviland
Frank Burty Haviland and Paul Haviland have that one as a parent
Frank Burty Haviland Paul Haviland
action filter_type
action find_reverse
entity Charles Edward Haviland
relation father
type common name
[{'concept': 'common name'}, 'father', 'Charles Edward Haviland']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:father resource:Charles_Edward_Haviland }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7345284 Q2580510
P40
Q502895
USER
Which people have Paul Haviland or Robert Harris as a child ?
OR((c(Q502895),P40,Q2580510), (c(Q502895),P40,Q7345284))
action filter_type
action union
action find_reverse
entity Q2580510
relation P40
action find_reverse
entity Q7345284
relation P40
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q2580510'], [{'concept': 'Q502895'}, 'P40', 'Q7345284']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P40 resource:Q2580510 } UNION { ?e property:P40 resource:Q7345284 } } . ?e rdf:type ontology:Q502895 }
Robert Harris Paul Haviland
action filter_type
action union
action find_reverse
entity Paul Haviland
relation child
action find_reverse
entity Robert Harris
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Paul Haviland'], [{'concept': 'common name'}, 'child', 'Robert Harris']]}
SELECT DISTINCT ?e WHERE { { { ?e property:child resource:Paul_Haviland } UNION { ?e property:child resource:Robert_Harris } } . ?e rdf:type ontology:common_name }
[]
common name
Q17350182 Q18672173
SYSTEM
Charles Edward Haviland, Robert Harris
Q17350182 Q18672173
OR((c(Q502895),P40,Q2580510), (c(Q502895),P40,Q7345284))
action filter_type
action union
action find_reverse
entity Q2580510
relation P40
action find_reverse
entity Q7345284
relation P40
type Q502895
[ANSWERS] have Paul Haviland or Robert Harris as a child
{'OR': [[{'concept': 'Q502895'}, 'P40', 'Q2580510'], [{'concept': 'Q502895'}, 'P40', 'Q7345284']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P40 resource:Q2580510 } UNION { ?e property:P40 resource:Q7345284 } } . ?e rdf:type ontology:Q502895 }
Charles Edward Haviland Robert Harris
Charles Edward Haviland and Robert Harris have Paul Haviland or Robert Harris as a child
Charles Edward Haviland Robert Harris
action filter_type
action union
action find_reverse
entity Paul Haviland
relation child
action find_reverse
entity Robert Harris
relation child
type common name
{'OR': [[{'concept': 'common name'}, 'child', 'Paul Haviland'], [{'concept': 'common name'}, 'child', 'Robert Harris']]}
SELECT DISTINCT ?e WHERE { { { ?e property:child resource:Paul_Haviland } UNION { ?e property:child resource:Robert_Harris } } . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18672173
P241
Q781132
USER
Which military branch is that person associated with ?
(Q18672173,P241,c(Q781132))
action filter_type
action find
entity Q18672173
relation P241
type Q781132
['Q18672173', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q18672173 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Robert Harris
action filter_type
action find
entity Robert Harris
relation military branch
type military branch
['Robert Harris', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Robert_Harris property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
military branch
Clarification for simple ques.
Q18672173
SYSTEM
Did you mean Robert Harris ?
Q17350182 Q18672173
(Q17350182,P241,c(Q781132)) (Q18672173,P241,c(Q781132))
[ANSWER]
['Q17350182', 'P241', {'concept': 'Q781132'}] ['Q18672173', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q18672173 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Charles Edward Haviland Robert Harris
Did you mean Robert Harris ?
Robert Harris
['Charles Edward Haviland', 'military branch', {'concept': 'military branch'}] ['Robert Harris', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Robert_Harris property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18672173,P241,c(Q781132))
['Q18672173', 'P241', {'concept': 'Q781132'}]
['Robert Harris', 'military branch', {'concept': 'military branch'}]
[]
Q172771
SYSTEM
Royal Navy
Q172771
(Q18672173,P241,c(Q781132))
action filter_type
action find
entity Q18672173
relation P241
type Q781132
That person is associated with [ANSWER]
['Q18672173', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?n WHERE { resource:Q18672173 property:P241 ?n . ?n rdf:type ontology:Q781132 }
Royal Navy
That person is associated with Royal Navy
Royal Navy
action filter_type
action find
entity Robert Harris
relation military branch
type military branch
['Robert Harris', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?n WHERE { resource:Robert_Harris property:military_branch ?n . ?n rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172771
P1001
Q12737077
USER
Which occupations have jurisdiction over that military branch ?
(c(Q12737077),P1001,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q172771']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . ?k property:P1001 resource:Q172771 }
Royal Navy
action filter_type
action find_reverse
entity Royal Navy
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Royal Navy']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . ?k property:applies_to_jurisdiction resource:Royal_Navy }
[]
occupation
Q7374544 Q21469825
SYSTEM
Royal Navy Chaplaincy Services, Chaplain of the Fleet
Q7374544 Q21469825
(c(Q12737077),P1001,Q172771)
action filter_type
action find_reverse
entity Q172771
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over that military branch
[{'concept': 'Q12737077'}, 'P1001', 'Q172771']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . ?k property:P1001 resource:Q172771 }
Royal Navy Chaplaincy Services Chaplain of the Fleet
Royal Navy Chaplaincy Services and Chaplain of the Fleet have jurisdiction over that military branch
Royal Navy Chaplaincy Services Chaplain of the Fleet
action filter_type
action find_reverse
entity Royal Navy
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Royal Navy']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . ?k property:applies_to_jurisdiction resource:Royal_Navy }
[]