Simple Question (Direct)
Simple Question
Q17790
P7
Q502895
USER
Who have Kangxi Emperor as their sibling ?
(Q17790,P7,c(Q502895))
action filter_type
action find
entity Q17790
relation P7
type Q502895
['Q17790', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q17790 property:P7 ?e . ?e rdf:type ontology:Q502895 }
Kangxi Emperor
action filter_type
action find
entity Kangxi Emperor
relation brother
type common name
['Kangxi Emperor', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Kangxi_Emperor property:brother ?e . ?e rdf:type ontology:common_name }
[]
common name
Q5072084 Q5509441 Q7334946
SYSTEM
Changning, Fuquan, Prince Rong
Q7334622 Q7334946 Q5509441 Q5072084
(Q17790,P7,c(Q502895))
action filter_type
action find
entity Q17790
relation P7
type Q502895
[ANSWERS] have Kangxi Emperor as their sibling
['Q17790', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q17790 property:P7 ?e . ?e rdf:type ontology:Q502895 }
Niuniu Prince Rong Fuquan Changning
Changning, Fuquan and Prince Rong have Kangxi Emperor as their sibling
Changning Fuquan Prince Rong
action filter_type
action find
entity Kangxi Emperor
relation brother
type common name
['Kangxi Emperor', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Kangxi_Emperor property:brother ?e . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5072084
P40
Q502895
USER
Which people have that one as a child ?
(c(Q502895),P40,Q5072084)
action filter_type
action find_reverse
entity Q5072084
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q5072084']
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q5072084 . ?v rdf:type ontology:Q502895 }
Changning
action filter_type
action find_reverse
entity Changning
relation child
type common name
[{'concept': 'common name'}, 'child', 'Changning']
SELECT DISTINCT ?v WHERE { ?v property:child resource:Changning . ?v rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5509441
SYSTEM
Did you mean Fuquan ?
Q5072084 Q5509441 Q7334946
(c(Q502895),P40,Q5072084) (c(Q502895),P40,Q5509441) (c(Q502895),P40,Q7334946)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q5072084'] [{'concept': 'Q502895'}, 'P40', 'Q5509441'] [{'concept': 'Q502895'}, 'P40', 'Q7334946']
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q5072084 . ?v rdf:type ontology:Q502895 }
Changning Fuquan Prince Rong
Did you mean Fuquan ?
Fuquan
[{'concept': 'common name'}, 'child', 'Changning'] [{'concept': 'common name'}, 'child', 'Fuquan'] [{'concept': 'common name'}, 'child', 'Prince Rong']
SELECT DISTINCT ?v WHERE { ?v property:child resource:Changning . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Changning. Could you tell me the answer for that?
(c(Q502895),P40,Q5072084)
Q5072084
[{'concept': 'Q502895'}, 'P40', 'Q5072084']
[{'concept': 'common name'}, 'child', 'Changning']
[]
Q7334568 Q310453
SYSTEM
Consort Shu, Shunzhi Emperor
Q7334568 Q310453
(c(Q502895),P40,Q5072084)
action filter_type
action find_reverse
entity Q5072084
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q5072084']
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q5072084 . ?v rdf:type ontology:Q502895 }
Consort Shu Shunzhi Emperor
Consort Shu and Shunzhi Emperor have that one as a child
Consort Shu Shunzhi Emperor
action filter_type
action find_reverse
entity Changning
relation child
type common name
[{'concept': 'common name'}, 'child', 'Changning']
SELECT DISTINCT ?v WHERE { ?v property:child resource:Changning . ?v rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q310453
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q310453)
action filter_type
action find_reverse
entity Q310453
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q310453']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q310453 . ?a rdf:type ontology:Q502895 }
Shunzhi Emperor
action filter_type
action find_reverse
entity Shunzhi Emperor
relation child
type common name
[{'concept': 'common name'}, 'child', 'Shunzhi Emperor']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Shunzhi_Emperor . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q7334568
SYSTEM
Did you mean Consort Shu ?
Q7334568 Q310453
(c(Q502895),P40,Q7334568) (c(Q502895),P40,Q310453)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q7334568'] [{'concept': 'Q502895'}, 'P40', 'Q310453']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q310453 . ?a rdf:type ontology:Q502895 }
Consort Shu Shunzhi Emperor
Did you mean Consort Shu ?
Consort Shu
[{'concept': 'common name'}, 'child', 'Consort Shu'] [{'concept': 'common name'}, 'child', 'Shunzhi Emperor']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Shunzhi_Emperor . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Shunzhi Emperor. Could you tell me the answer for that?
(c(Q502895),P40,Q310453)
Q310453
[{'concept': 'Q502895'}, 'P40', 'Q310453']
[{'concept': 'common name'}, 'child', 'Shunzhi Emperor']
[]
Q296367 Q1373915
SYSTEM
Huang Taiji, Empress Dowager Xiaozhuang
Q296367 Q1373915
(c(Q502895),P40,Q310453)
action filter_type
action find_reverse
entity Q310453
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q310453']
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q310453 . ?a rdf:type ontology:Q502895 }
Huang Taiji Empress Dowager Xiaozhuang
Huang Taiji and Empress Dowager Xiaozhuang have that one as an offspring
Huang Taiji Empress Dowager Xiaozhuang
action filter_type
action find_reverse
entity Shunzhi Emperor
relation child
type common name
[{'concept': 'common name'}, 'child', 'Shunzhi Emperor']
SELECT DISTINCT ?a WHERE { ?a property:child resource:Shunzhi_Emperor . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7334568
P25 P21
Q502895
USER
Which people have Consort Shu as a mother and have the gender as male ?
AND((c(Q502895),P25,Q7334568), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7334568
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q7334568'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P25 resource:Q7334568 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
male Consort Shu
action filter_type
action intersection
action find_reverse
entity Consort Shu
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Consort Shu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:mother resource:Consort_Shu . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
common name
Q5072084
SYSTEM
Changning
Q5072084
AND((c(Q502895),P25,Q7334568), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7334568
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Consort Shu as a mother and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q7334568'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?z WHERE { ?z property:P25 resource:Q7334568 . ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 }
Changning
Changning have Consort Shu as a mother and have the gender as male
Changning
action filter_type
action intersection
action find_reverse
entity Consort Shu
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Consort Shu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?z WHERE { ?z property:mother resource:Consort_Shu . ?z property:gender resource:male . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5072084 Q11376717 Q493874
P7
Q502895
USER
Does that person have Yōko Imai and Injong as their brother ?
(Q5072084,P7,Q11376717) (Q5072084,P7,Q493874)
action is_in
entity Q5072084
action intersection
action find_reverse
entity Q11376717
relation P7
action find_reverse
entity Q493874
relation P7
['Q5072084', 'P7', 'Q11376717'] ['Q5072084', 'P7', 'Q493874']
ASK WHERE { resource:Q5072084 property:P7 resource:Q493874 . resource:Q5072084 property:P7 resource:Q11376717 }
Changning Yōko Imai Injong
action is_in
entity Changning
action intersection
action find_reverse
entity Yōko Imai
relation brother
action find_reverse
entity Injong
relation brother
['Changning', 'brother', 'Yōko Imai'] ['Changning', 'brother', 'Injong']
ASK WHERE { resource:Changning property:brother resource:Injong . resource:Changning property:brother resource:Yōko_Imai }
[]
common name
SYSTEM
NO
(Q5072084,P7,Q11376717) (Q5072084,P7,Q493874)
action is_in
entity Q5072084
action intersection
action find_reverse
entity Q11376717
relation P7
action find_reverse
entity Q493874
relation P7
[ANSWER]
['Q5072084', 'P7', 'Q11376717'] ['Q5072084', 'P7', 'Q493874']
ASK WHERE { resource:Q5072084 property:P7 resource:Q493874 . resource:Q5072084 property:P7 resource:Q11376717 }
No
action is_in
entity Changning
action intersection
action find_reverse
entity Yōko Imai
relation brother
action find_reverse
entity Injong
relation brother
['Changning', 'brother', 'Yōko Imai'] ['Changning', 'brother', 'Injong']
ASK WHERE { resource:Changning property:brother resource:Injong . resource:Changning property:brother resource:Yōko_Imai }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5072084
P22
Q502895
USER
Which male person has a child named Changning ?
(Q5072084,P22,c(Q502895))
action filter_type
action find
entity Q5072084
relation P22
type Q502895
['Q5072084', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q5072084 property:P22 ?v }
Changning
action filter_type
action find
entity Changning
relation father
type common name
['Changning', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Changning property:father ?v }
[]
common name
Q310453
SYSTEM
Shunzhi Emperor
Q310453
(Q5072084,P22,c(Q502895))
action filter_type
action find
entity Q5072084
relation P22
type Q502895
Emperor [ANSWER] has a child named Changning
['Q5072084', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q5072084 property:P22 ?v }
Shunzhi Emperor
Emperor Shunzhi Emperor has a child named Changning
Shunzhi Emperor
action filter_type
action find
entity Changning
relation father
type common name
['Changning', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Changning property:father ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q310453
P26
Q502895
USER
Which people are the life partner of that one ?
(c(Q502895),P26,Q310453)
action filter_type
action find
entity Q310453
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q310453']
SELECT DISTINCT ?i WHERE { resource:Q310453 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Shunzhi Emperor
action filter_type
action find
entity Shunzhi Emperor
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Shunzhi Emperor']
SELECT DISTINCT ?i WHERE { resource:Shunzhi_Emperor property:spouse ?i . ?i rdf:type ontology:common_name }
[]
common name
Q1036431 Q855768 Q835445
SYSTEM
Empress Xiaokangzhang, Empress Xiaohuizhang, Consort Donggo
Q7334568 Q7334407 Q855768 Q7334538 Q4940139 Q7334354 Q835445 Q1036431
(c(Q502895),P26,Q310453)
action filter_type
action find
entity Q310453
relation P26
type Q502895
[ANSWERS] are the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q310453']
SELECT DISTINCT ?i WHERE { resource:Q310453 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Consort Shu Consort Shuhui Empress Xiaohuizhang Consort Dao Borjigit, Demoted Empress Consort Zhen Consort Donggo Empress Xiaokangzhang
Empress Xiaokangzhang, Empress Xiaohuizhang and Consort Donggo are the life partner of that one
Empress Xiaokangzhang Empress Xiaohuizhang Consort Donggo
action filter_type
action find
entity Shunzhi Emperor
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Shunzhi Emperor']
SELECT DISTINCT ?i WHERE { resource:Shunzhi_Emperor property:spouse ?i . ?i rdf:type ontology:common_name }
[]