Simple Question (Direct)
Simple Question
Q11064905
P734
Q101352
USER
Who has the surname Luling ?
(Q11064905,P734,c(Q101352))
action filter_type
action find
entity Q11064905
relation P734
type Q101352
['Q11064905', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?f WHERE { resource:Q11064905 property:P734 ?f . ?f rdf:type ontology:Q101352 }
Luling
action filter_type
action find
entity Luling
relation family name
type family name
['Luling', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?f WHERE { resource:Luling property:family_name ?f . ?f rdf:type ontology:family_name }
[]
family name
Q686223
SYSTEM
Li
Q686223
(Q11064905,P734,c(Q101352))
action filter_type
action find
entity Q11064905
relation P734
type Q101352
[ANSWER] has the surname Luling
['Q11064905', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?f WHERE { resource:Q11064905 property:P734 ?f . ?f rdf:type ontology:Q101352 }
Li
Li has the surname Luling
Li
action filter_type
action find
entity Luling
relation family name
type family name
['Luling', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?f WHERE { resource:Luling property:family_name ?f . ?f rdf:type ontology:family_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q686223
P53
Q502895
USER
Which person is a member of that family name ?
(c(Q502895),P53,Q686223)
action filter_type
action find_reverse
entity Q686223
relation P53
type Q502895
[{'concept': 'Q502895'}, 'P53', 'Q686223']
SELECT DISTINCT ?q WHERE { ?q property:P53 resource:Q686223 . ?q rdf:type ontology:Q502895 }
Li
action filter_type
action find_reverse
entity Li
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'Li']
SELECT DISTINCT ?q WHERE { ?q property:noble_family resource:Li . ?q rdf:type ontology:common_name }
[]
common name
Q5163356
SYSTEM
Consort Qi
Q5163356
(c(Q502895),P53,Q686223)
action filter_type
action find_reverse
entity Q686223
relation P53
type Q502895
[ANSWER] is a member of that family name
[{'concept': 'Q502895'}, 'P53', 'Q686223']
SELECT DISTINCT ?q WHERE { ?q property:P53 resource:Q686223 . ?q rdf:type ontology:Q502895 }
Consort Qi
Consort Qi is a member of that family name
Consort Qi
action filter_type
action find_reverse
entity Li
relation noble family
type common name
[{'concept': 'common name'}, 'noble family', 'Li']
SELECT DISTINCT ?q WHERE { ?q property:noble_family resource:Li . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q686223
P21 P53
Q502895
USER
Which people are a member of Li and are a female ?
AND((c(Q502895),P53,Q686223), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q686223
relation P53
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q686223'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?q WHERE { ?q property:P53 resource:Q686223 . ?q property:P21 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
female Li
action filter_type
action intersection
action find_reverse
entity Li
relation noble family
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Li'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?q WHERE { ?q property:noble_family resource:Li . ?q property:gender resource:female . ?q rdf:type ontology:common_name }
[]
common name
Q5163356
SYSTEM
Consort Qi
Q5163356
AND((c(Q502895),P53,Q686223), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q686223
relation P53
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] is a member of Li and is a female
{'AND': [[{'concept': 'Q502895'}, 'P53', 'Q686223'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?q WHERE { ?q property:P53 resource:Q686223 . ?q property:P21 resource:Q6581072 . ?q rdf:type ontology:Q502895 }
Consort Qi
Consort Qi is a member of Li and is a female
Consort Qi
action filter_type
action intersection
action find_reverse
entity Li
relation noble family
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'noble family', 'Li'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?q WHERE { ?q property:noble_family resource:Li . ?q property:gender resource:female . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5163356
P25
Q502895
USER
Which people have that one as mother ?
(c(Q502895),P25,Q5163356)
action filter_type
action find_reverse
entity Q5163356
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q5163356']
SELECT DISTINCT ?k WHERE { ?k property:P25 resource:Q5163356 . ?k rdf:type ontology:Q502895 }
Consort Qi
action filter_type
action find_reverse
entity Consort Qi
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Consort Qi']
SELECT DISTINCT ?k WHERE { ?k property:mother resource:Consort_Qi . ?k rdf:type ontology:common_name }
[]
common name
Q5896018 Q7733546 Q7720330
SYSTEM
Hongshi, Heshuo Princess Huaike, Hongpan
Q7733546 Q7720330 Q7720407 Q5896018
(c(Q502895),P25,Q5163356)
action filter_type
action find_reverse
entity Q5163356
relation P25
type Q502895
[ANSWERS] have that one as mother
[{'concept': 'Q502895'}, 'P25', 'Q5163356']
SELECT DISTINCT ?k WHERE { ?k property:P25 resource:Q5163356 . ?k rdf:type ontology:Q502895 }
Heshuo Princess Huaike Hongpan Hongyun Hongshi
Hongshi, Heshuo Princess Huaike and Hongpan have that one as mother
Hongshi Heshuo Princess Huaike Hongpan
action filter_type
action find_reverse
entity Consort Qi
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Consort Qi']
SELECT DISTINCT ?k WHERE { ?k property:mother resource:Consort_Qi . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5163356
P26
Q502895
USER
Who is married to Consort Qi ?
(c(Q502895),P26,Q5163356)
action filter_type
action find
entity Q5163356
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q5163356']
SELECT DISTINCT ?e WHERE { resource:Q5163356 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Consort Qi
action filter_type
action find
entity Consort Qi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Consort Qi']
SELECT DISTINCT ?e WHERE { resource:Consort_Qi property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Q317839
SYSTEM
Yongzheng Emperor
Q317839
(c(Q502895),P26,Q5163356)
action filter_type
action find
entity Q5163356
relation P26
type Q502895
Emperor [ANSWER] is married to Consort Qi
[{'concept': 'Q502895'}, 'P26', 'Q5163356']
SELECT DISTINCT ?e WHERE { resource:Q5163356 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Yongzheng Emperor
Emperor Yongzheng Emperor is married to Consort Qi
Yongzheng Emperor
action filter_type
action find
entity Consort Qi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Consort Qi']
SELECT DISTINCT ?e WHERE { resource:Consort_Qi property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q317839
P9
Q502895
USER
Which people are the sisters of that one ?
(Q317839,P9,c(Q502895))
action filter_type
action find
entity Q317839
relation P9
type Q502895
['Q317839', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q317839 property:P9 ?i . ?i rdf:type ontology:Q502895 }
Yongzheng Emperor
action filter_type
action find
entity Yongzheng Emperor
relation sister
type common name
['Yongzheng Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Yongzheng_Emperor property:sister ?i . ?i rdf:type ontology:common_name }
[]
common name
Q7362690 Q7362099 Q7367744
SYSTEM
State Princess Kejing, State Princess Rongxian, Kurun Princess Wenxian
Q7368398 Q7362690 Q7369212 Q15940598 Q7369135 Q7362099 Q7362335 Q7368998 Q7367744
(Q317839,P9,c(Q502895))
action filter_type
action find
entity Q317839
relation P9
type Q502895
[ANSWERS] are the sisters of that one
['Q317839', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q317839 property:P9 ?i . ?i rdf:type ontology:Q502895 }
State Princess Chunque State Princess Kejing Princess Dunke of the Second Rank eighth daughter of Kangxi Princess Quejing of the Second Rank State Princess Rongxian Princess Duanjing of the Second Rank Princess Wenke of the Second Rank Kurun Princess Wenxian
State Princess Kejing, State Princess Rongxian and Kurun Princess Wenxian are the sisters of that one
State Princess Kejing State Princess Rongxian Kurun Princess Wenxian
action filter_type
action find
entity Yongzheng Emperor
relation sister
type common name
['Yongzheng Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Yongzheng_Emperor property:sister ?i . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7362690
P40
Q502895
USER
Whose child is that one ?
(c(Q502895),P40,Q7362690)
action filter_type
action find_reverse
entity Q7362690
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q7362690']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q7362690 . ?c rdf:type ontology:Q502895 }
State Princess Kejing
action filter_type
action find_reverse
entity State Princess Kejing
relation child
type common name
[{'concept': 'common name'}, 'child', 'State Princess Kejing']
SELECT DISTINCT ?c WHERE { ?c property:child resource:State_Princess_Kejing . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q7362099
SYSTEM
Did you mean State Princess Rongxian ?
Q7362690 Q7362099 Q7367744
(c(Q502895),P40,Q7362690) (c(Q502895),P40,Q7362099) (c(Q502895),P40,Q7367744)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q7362690'] [{'concept': 'Q502895'}, 'P40', 'Q7362099'] [{'concept': 'Q502895'}, 'P40', 'Q7367744']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q7362690 . ?c rdf:type ontology:Q502895 }
State Princess Kejing State Princess Rongxian Kurun Princess Wenxian
Did you mean State Princess Rongxian ?
State Princess Rongxian
[{'concept': 'common name'}, 'child', 'State Princess Kejing'] [{'concept': 'common name'}, 'child', 'State Princess Rongxian'] [{'concept': 'common name'}, 'child', 'Kurun Princess Wenxian']
SELECT DISTINCT ?c WHERE { ?c property:child resource:State_Princess_Kejing . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant State Princess Kejing. Could you tell me the answer for that?
(c(Q502895),P40,Q7362690)
Q7362690
[{'concept': 'Q502895'}, 'P40', 'Q7362690']
[{'concept': 'common name'}, 'child', 'State Princess Kejing']
[]
Q17790
SYSTEM
Kangxi Emperor
Q17790
(c(Q502895),P40,Q7362690)
action filter_type
action find_reverse
entity Q7362690
relation P40
type Q502895
[ANSWER] is that one
[{'concept': 'Q502895'}, 'P40', 'Q7362690']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q7362690 . ?c rdf:type ontology:Q502895 }
Kangxi Emperor
Kangxi Emperor is that one
Kangxi Emperor
action filter_type
action find_reverse
entity State Princess Kejing
relation child
type common name
[{'concept': 'common name'}, 'child', 'State Princess Kejing']
SELECT DISTINCT ?c WHERE { ?c property:child resource:State_Princess_Kejing . ?c rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q17790 Q813365
P40
Q502895
USER
Is Beauford H. Jester a successor of that one ?
(Q17790,P40,Q813365)
action is_in
entity Q813365
action find
entity Q17790
relation P40
['Q17790', 'P40', 'Q813365']
ASK WHERE { resource:Q17790 property:P40 resource:Q813365 }
Kangxi Emperor Beauford H. Jester
action is_in
entity Beauford H. Jester
action find
entity Kangxi Emperor
relation child
['Kangxi Emperor', 'child', 'Beauford H. Jester']
ASK WHERE { resource:Kangxi_Emperor property:child resource:Beauford_H._Jester }
[]
common name
SYSTEM
NO
(Q17790,P40,Q813365)
action is_in
entity Q813365
action find
entity Q17790
relation P40
[ANSWER]
['Q17790', 'P40', 'Q813365']
ASK WHERE { resource:Q17790 property:P40 resource:Q813365 }
No
action is_in
entity Beauford H. Jester
action find
entity Kangxi Emperor
relation child
['Kangxi Emperor', 'child', 'Beauford H. Jester']
ASK WHERE { resource:Kangxi_Emperor property:child resource:Beauford_H._Jester }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17790
P7
Q502895
USER
Which people are the brothers of Kangxi Emperor ?
(Q17790,P7,c(Q502895))
action filter_type
action find
entity Q17790
relation P7
type Q502895
['Q17790', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q17790 property:P7 ?o . ?o 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 ?o WHERE { resource:Kangxi_Emperor property:brother ?o . ?o 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] are the brothers of Kangxi Emperor
['Q17790', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q17790 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Niuniu Prince Rong Fuquan Changning
Changning, Fuquan and Prince Rong are the brothers of Kangxi Emperor
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 ?o WHERE { resource:Kangxi_Emperor property:brother ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q694351
Q502895
USER
And also tell me about Frederick, Duke of Bavaria?
(Q694351,P7,c(Q502895))
action filter_type
action find
entity Q694351
relation P7
type Q502895
['Q694351', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q694351 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Frederick, Duke of Bavaria
action filter_type
action find
entity Frederick, Duke of Bavaria
relation brother
type common name
['Frederick, Duke of Bavaria', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Frederick,_Duke_of_Bavaria property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q63291 Q63171
SYSTEM
John II, Duke of Bavaria, Stephen III, Duke of Bavaria
Q63291 Q63171
(Q694351,P7,c(Q502895))
action filter_type
action find
entity Q694351
relation P7
type Q502895
[ANSWERS]
['Q694351', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q694351 property:P7 ?i . ?i rdf:type ontology:Q502895 }
John II, Duke of Bavaria Stephen III, Duke of Bavaria
John II, Duke of Bavaria Stephen III, Duke of Bavaria
action filter_type
action find
entity Frederick, Duke of Bavaria
relation brother
type common name
['Frederick, Duke of Bavaria', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Frederick,_Duke_of_Bavaria property:brother ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5969238
P40
Q502895
USER
Do Sven Låftman have those ones as a child ?
(Q5969238,P40,Q63291) (Q5969238,P40,Q63171)
action is_in
entity prev_answer
action find
entity Q5969238
relation P40
['Q5969238', 'P40', 'Q63291'] ['Q5969238', 'P40', 'Q63171']
ASK WHERE { resource:Q5969238 property:P40 ?s . VALUES ( ?s ) { ( resource:Q63291 ) ( resource:Q63171 ) } }
Sven Låftman
action is_in
entity prev_answer
action find
entity Sven Låftman
relation child
['Sven Låftman', 'child', 'John II, Duke of Bavaria'] ['Sven Låftman', 'child', 'Stephen III, Duke of Bavaria']
ASK WHERE { resource:Sven_Låftman property:child ?s . VALUES ( ?s ) { ( resource:John_II,_Duke_of_Bavaria ) ( resource:Stephen_III,_Duke_of_Bavaria ) } }
[]
common name
SYSTEM
NO
(Q5969238,P40,Q63291) (Q5969238,P40,Q63171)
action is_in
entity prev_answer
action find
entity Q5969238
relation P40
[ANSWER]
['Q5969238', 'P40', 'Q63291'] ['Q5969238', 'P40', 'Q63171']
ASK WHERE { resource:Q5969238 property:P40 ?s . VALUES ( ?s ) { ( resource:Q63291 ) ( resource:Q63171 ) } }
No
action is_in
entity prev_answer
action find
entity Sven Låftman
relation child
['Sven Låftman', 'child', 'John II, Duke of Bavaria'] ['Sven Låftman', 'child', 'Stephen III, Duke of Bavaria']
ASK WHERE { resource:Sven_Låftman property:child ?s . VALUES ( ?s ) { ( resource:John_II,_Duke_of_Bavaria ) ( resource:Stephen_III,_Duke_of_Bavaria ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16523211 Q11064905
P9
Q502895
USER
Which people have Luling or Esclarmonde of Taranto as thier sibling ?
OR((Q11064905,P9,c(Q502895)), (Q16523211,P9,c(Q502895)))
action filter_type
action union
action find
entity Q11064905
relation P9
action find
entity Q16523211
relation P9
type Q502895
{'OR': [['Q11064905', 'P9', {'concept': 'Q502895'}], ['Q16523211', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q11064905 property:P9 ?i } UNION { resource:Q16523211 property:P9 ?i } } . ?i rdf:type ontology:Q502895 }
Esclarmonde of Taranto Luling
action filter_type
action union
action find
entity Luling
relation sister
action find
entity Esclarmonde of Taranto
relation sister
type common name
{'OR': [['Luling', 'sister', {'concept': 'common name'}], ['Esclarmonde of Taranto', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Luling property:sister ?i } UNION { resource:Esclarmonde_of_Taranto property:sister ?i } } . ?i rdf:type ontology:common_name }
[]
common name
Q15951700 Q10878912 Q770382 Q11111831 Q11152626 Q711427 Q11496708 Q11669188 Q16603582 Q16603624
SYSTEM
Some of them are Wanchun, Jiu​jiang, Frances of Naples, Gui​yang, Li Chengxia​, Princess Pingyang, Fangling, Gaomi, Linhai, Xiang​yang
Q11152626 Q10905008 Q16603543 Q16603624 Q11496708 Q10878912 Q16603582 Q770396 Q15951700 Q770382 Q11111831 Q711427 Q11669188 Q10877398 Q16603689 Q11060429 Q10946662 Q15955551 Q10908057 Q16603735
OR((Q11064905,P9,c(Q502895)), (Q16523211,P9,c(Q502895)))
action filter_type
action union
action find
entity Q11064905
relation P9
action find
entity Q16523211
relation P9
type Q502895
[ANSWERS] have Luling or Esclarmonde of Taranto as thier sibling
{'OR': [['Q11064905', 'P9', {'concept': 'Q502895'}], ['Q16523211', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q11064905 property:P9 ?i } UNION { resource:Q16523211 property:P9 ?i } } . ?i rdf:type ontology:Q502895 }
Li Chengxia​ Qian​jin Zhending Xiang​yang Fangling Jiu​jiang Linhai Catherine of Naples Wanchun Frances of Naples Gui​yang Princess Pingyang Gaomi Danyang Changsha Changle Anping Hengyang Nanchang Guantao
Wanchun, Jiu​jiang, Frances of Naples, Gui​yang, Li Chengxia​, Princess Pingyang, Fangling, Gaomi, Linhai and Xiang​yang have Luling or Esclarmonde of Taranto as thier sibling
Wanchun Jiu​jiang Frances of Naples Gui​yang Li Chengxia​ Princess Pingyang Fangling Gaomi Linhai Xiang​yang
action filter_type
action union
action find
entity Luling
relation sister
action find
entity Esclarmonde of Taranto
relation sister
type common name
{'OR': [['Luling', 'sister', {'concept': 'common name'}], ['Esclarmonde of Taranto', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Luling property:sister ?i } UNION { resource:Esclarmonde_of_Taranto property:sister ?i } } . ?i rdf:type ontology:common_name }
[]