Simple Question (Direct)
Simple Question
Q52964
P22
Q502895
USER
Which male person has a child named Gustaf Åkerhielm ?
(Q52964,P22,c(Q502895))
action filter_type
action find
entity Q52964
relation P22
type Q502895
['Q52964', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q52964 property:P22 ?l }
Gustaf Åkerhielm
action filter_type
action find
entity Gustaf Åkerhielm
relation father
type common name
['Gustaf Åkerhielm', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Gustaf_Åkerhielm property:father ?l }
[]
common name
Q6255155
SYSTEM
Gustaf Fredrik Åkerhielm
Q6255155
(Q52964,P22,c(Q502895))
action filter_type
action find
entity Q52964
relation P22
type Q502895
Och [ANSWER] has a child named Gustaf Åkerhielm
['Q52964', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q52964 property:P22 ?l }
Gustaf Fredrik Åkerhielm
Och Gustaf Fredrik Åkerhielm has a child named Gustaf Åkerhielm
Gustaf Fredrik Åkerhielm
action filter_type
action find
entity Gustaf Åkerhielm
relation father
type common name
['Gustaf Åkerhielm', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Gustaf_Åkerhielm property:father ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6255155
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q6255155)
action filter_type
action find
entity Q6255155
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6255155']
SELECT DISTINCT ?m WHERE { resource:Q6255155 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Gustaf Fredrik Åkerhielm
action filter_type
action find
entity Gustaf Fredrik Åkerhielm
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gustaf Fredrik Åkerhielm']
SELECT DISTINCT ?m WHERE { resource:Gustaf_Fredrik_Åkerhielm property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q4991042
SYSTEM
Helena Charlotta Åkerhielm
Q4991042
(c(Q502895),P26,Q6255155)
action filter_type
action find
entity Q6255155
relation P26
type Q502895
The spouse of that one is Lady [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6255155']
SELECT DISTINCT ?m WHERE { resource:Q6255155 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Helena Charlotta Åkerhielm
The spouse of that one is Lady Helena Charlotta Åkerhielm
Helena Charlotta Åkerhielm
action filter_type
action find
entity Gustaf Fredrik Åkerhielm
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gustaf Fredrik Åkerhielm']
SELECT DISTINCT ?m WHERE { resource:Gustaf_Fredrik_Åkerhielm property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q6255155
P26 P21
Q502895
USER
Which people have Gustaf Fredrik Åkerhielm as spouse and have female as the sex ?
AND((c(Q502895),P26,Q6255155), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6255155
relation P26
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q6255155'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?c WHERE { ?c property:P26 resource:Q6255155 . ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q502895 }
female Gustaf Fredrik Åkerhielm
action filter_type
action intersection
action find_reverse
entity Gustaf Fredrik Åkerhielm
relation spouse
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Gustaf Fredrik Åkerhielm'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?c WHERE { ?c property:spouse resource:Gustaf_Fredrik_Åkerhielm . ?c property:gender resource:female . ?c rdf:type ontology:common_name }
[]
common name
Q4991042
SYSTEM
Helena Charlotta Åkerhielm
Q4991042
AND((c(Q502895),P26,Q6255155), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6255155
relation P26
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] have Gustaf Fredrik Åkerhielm as spouse and have female as the sex
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q6255155'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?c WHERE { ?c property:P26 resource:Q6255155 . ?c property:P21 resource:Q6581072 . ?c rdf:type ontology:Q502895 }
Helena Charlotta Åkerhielm
Helena Charlotta Åkerhielm have Gustaf Fredrik Åkerhielm as spouse and have female as the sex
Helena Charlotta Åkerhielm
action filter_type
action intersection
action find_reverse
entity Gustaf Fredrik Åkerhielm
relation spouse
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Gustaf Fredrik Åkerhielm'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?c WHERE { ?c property:spouse resource:Gustaf_Fredrik_Åkerhielm . ?c property:gender resource:female . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4991042 Q242942
P27
Q15617994
USER
Is that person a civilian of Mentana ?
(Q4991042,P27,Q242942)
action is_in
entity Q242942
action find
entity Q4991042
relation P27
['Q4991042', 'P27', 'Q242942']
ASK WHERE { resource:Q4991042 property:P27 resource:Q242942 }
Helena Charlotta Åkerhielm Mentana
action is_in
entity Mentana
action find
entity Helena Charlotta Åkerhielm
relation country of citizenship
['Helena Charlotta Åkerhielm', 'country of citizenship', 'Mentana']
ASK WHERE { resource:Helena_Charlotta_Åkerhielm property:country_of_citizenship resource:Mentana }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4991042,P27,Q242942)
action is_in
entity Q242942
action find
entity Q4991042
relation P27
[ANSWER]
['Q4991042', 'P27', 'Q242942']
ASK WHERE { resource:Q4991042 property:P27 resource:Q242942 }
No
action is_in
entity Mentana
action find
entity Helena Charlotta Åkerhielm
relation country of citizenship
['Helena Charlotta Åkerhielm', 'country of citizenship', 'Mentana']
ASK WHERE { resource:Helena_Charlotta_Åkerhielm property:country_of_citizenship resource:Mentana }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q52964 Q11216398 Q1754
P20
Q56061
USER
Did Gustaf Åkerhielm expire at Nərimanlı, Shamkir and Stockholm ?
(Q52964,P20,Q11216398) (Q52964,P20,Q1754)
action is_in
entity Q52964
action intersection
action find_reverse
entity Q11216398
relation P20
action find_reverse
entity Q1754
relation P20
['Q52964', 'P20', 'Q11216398'] ['Q52964', 'P20', 'Q1754']
ASK WHERE { resource:Q52964 property:P20 resource:Q11216398 . resource:Q52964 property:P20 resource:Q1754 }
Gustaf Åkerhielm Nərimanlı, Shamkir Stockholm
action is_in
entity Gustaf Åkerhielm
action intersection
action find_reverse
entity Nərimanlı, Shamkir
relation place of death
action find_reverse
entity Stockholm
relation place of death
['Gustaf Åkerhielm', 'place of death', 'Nərimanlı, Shamkir'] ['Gustaf Åkerhielm', 'place of death', 'Stockholm']
ASK WHERE { resource:Gustaf_Åkerhielm property:place_of_death resource:Nərimanlı,_Shamkir . resource:Gustaf_Åkerhielm property:place_of_death resource:Stockholm }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q52964,P20,Q11216398) (Q52964,P20,Q1754)
action is_in
entity Q52964
action intersection
action find_reverse
entity Q11216398
relation P20
action find_reverse
entity Q1754
relation P20
[ANSWER]
['Q52964', 'P20', 'Q11216398'] ['Q52964', 'P20', 'Q1754']
ASK WHERE { resource:Q52964 property:P20 resource:Q11216398 . resource:Q52964 property:P20 resource:Q1754 }
NO and YES respectively
action is_in
entity Gustaf Åkerhielm
action intersection
action find_reverse
entity Nərimanlı, Shamkir
relation place of death
action find_reverse
entity Stockholm
relation place of death
['Gustaf Åkerhielm', 'place of death', 'Nərimanlı, Shamkir'] ['Gustaf Åkerhielm', 'place of death', 'Stockholm']
ASK WHERE { resource:Gustaf_Åkerhielm property:place_of_death resource:Nərimanlı,_Shamkir . resource:Gustaf_Åkerhielm property:place_of_death resource:Stockholm }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4991042 Q34
P27
Q15617994
USER
Is Sweden the country of citizenship of Helena Charlotta Åkerhielm ?
(Q4991042,P27,Q34)
action is_in
entity Q34
action find
entity Q4991042
relation P27
['Q4991042', 'P27', 'Q34']
ASK WHERE { resource:Q4991042 property:P27 resource:Q34 }
Helena Charlotta Åkerhielm Sweden
action is_in
entity Sweden
action find
entity Helena Charlotta Åkerhielm
relation country of citizenship
['Helena Charlotta Åkerhielm', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Helena_Charlotta_Åkerhielm property:country_of_citizenship resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q4991042,P27,Q34)
action is_in
entity Q34
action find
entity Q4991042
relation P27
[ANSWER]
['Q4991042', 'P27', 'Q34']
ASK WHERE { resource:Q4991042 property:P27 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Helena Charlotta Åkerhielm
relation country of citizenship
['Helena Charlotta Åkerhielm', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Helena_Charlotta_Åkerhielm property:country_of_citizenship resource:Sweden }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6255155 Q34
P27
Q15617994
USER
Does Gustaf Fredrik Åkerhielm belong to Sweden ?
(Q6255155,P27,Q34)
action is_in
entity Q34
action find
entity Q6255155
relation P27
['Q6255155', 'P27', 'Q34']
ASK WHERE { resource:Q6255155 property:P27 resource:Q34 }
Gustaf Fredrik Åkerhielm Sweden
action is_in
entity Sweden
action find
entity Gustaf Fredrik Åkerhielm
relation country of citizenship
['Gustaf Fredrik Åkerhielm', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Gustaf_Fredrik_Åkerhielm property:country_of_citizenship resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q6255155,P27,Q34)
action is_in
entity Q34
action find
entity Q6255155
relation P27
[ANSWER]
['Q6255155', 'P27', 'Q34']
ASK WHERE { resource:Q6255155 property:P27 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Gustaf Fredrik Åkerhielm
relation country of citizenship
['Gustaf Fredrik Åkerhielm', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Gustaf_Fredrik_Åkerhielm property:country_of_citizenship resource:Sweden }
[]