Simple Question (Direct)
Simple Question
Q899786
P26
Q502895
USER
Which person is married to Princess Pingyang ?
(Q899786,P26,c(Q502895))
action filter_type
action find
entity Q899786
relation P26
type Q502895
['Q899786', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q899786 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Princess Pingyang
action filter_type
action find
entity Princess Pingyang
relation spouse
type common name
['Princess Pingyang', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Princess_Pingyang property:spouse ?o . ?o rdf:type ontology:common_name }
[]
common name
Q701330
SYSTEM
Wei Qing
Q701330
(Q899786,P26,c(Q502895))
action filter_type
action find
entity Q899786
relation P26
type Q502895
In [ANSWER] is married to Princess Pingyang
['Q899786', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q899786 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Wei Qing
In Wei Qing is married to Princess Pingyang
Wei Qing
action filter_type
action find
entity Princess Pingyang
relation spouse
type common name
['Princess Pingyang', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Princess_Pingyang property:spouse ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q899786
P9
Q502895
USER
Who are Princess Pingyang a sister of ?
(c(Q502895),P9,Q899786)
action filter_type
action find_reverse
entity Q899786
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q899786']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P9 resource:Q899786 }
Princess Pingyang
action filter_type
action find_reverse
entity Princess Pingyang
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Pingyang']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:sister resource:Princess_Pingyang }
[]
common name
Q7225 Q10900543 Q10900334
SYSTEM
Emperor Wu of Han, Liu Fei, Prince of Jiangdu, Liu Shun
Q10899668 Q10900433 Q712382 Q7225 Q10900543 Q3241423 Q10900206 Q15938172 Q9469608 Q5975475 Q10897508 Q10899363 Q15956200 Q10900334 Q10900521 Q10899757 Q10907436
(c(Q502895),P9,Q899786)
action filter_type
action find_reverse
entity Q899786
relation P9
type Q502895
[ANSWERS] are Princess Pingyang a sister of
[{'concept': 'Q502895'}, 'P9', 'Q899786']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P9 resource:Q899786 }
Liu Ji Liu Yue Liu Sheng Emperor Wu of Han Liu Fei, Prince of Jiangdu Liu Rong Liu Fa Princess Longlü Liu Duan Liu Yu Liu Pengzu Liu Cheng Jin Su Liu Shun Liu Eyu Liu De Princess Nangong
Emperor Wu of Han, Liu Fei, Prince of Jiangdu and Liu Shun are Princess Pingyang a sister of
Emperor Wu of Han Liu Fei, Prince of Jiangdu Liu Shun
action filter_type
action find_reverse
entity Princess Pingyang
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Pingyang']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:sister resource:Princess_Pingyang }
[]
Clarification
Simple Question|Single Entity|Indirect
Q10900334
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q10900334)
action filter_type
action find_reverse
entity Q10900334
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q10900334']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q10900334 . ?r rdf:type ontology:Q502895 }
Liu Shun
action filter_type
action find_reverse
entity Liu Shun
relation child
type common name
[{'concept': 'common name'}, 'child', 'Liu Shun']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Liu_Shun . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q10900543
SYSTEM
Did you mean Liu Fei, Prince of Jiangdu ?
Q7225 Q10900543 Q10900334
(c(Q502895),P40,Q7225) (c(Q502895),P40,Q10900543) (c(Q502895),P40,Q10900334)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q7225'] [{'concept': 'Q502895'}, 'P40', 'Q10900543'] [{'concept': 'Q502895'}, 'P40', 'Q10900334']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q10900334 . ?r rdf:type ontology:Q502895 }
Emperor Wu of Han Liu Fei, Prince of Jiangdu Liu Shun
Did you mean Liu Fei, Prince of Jiangdu ?
Liu Fei, Prince of Jiangdu
[{'concept': 'common name'}, 'child', 'Emperor Wu of Han'] [{'concept': 'common name'}, 'child', 'Liu Fei, Prince of Jiangdu'] [{'concept': 'common name'}, 'child', 'Liu Shun']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Liu_Shun . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Liu Shun. Could you tell me the answer for that?
(c(Q502895),P40,Q10900334)
Q10900334
[{'concept': 'Q502895'}, 'P40', 'Q10900334']
[{'concept': 'common name'}, 'child', 'Liu Shun']
[]
Q8253153 Q7224
SYSTEM
Wang Erxu, Emperor Jing of Han
Q8253153 Q7224
(c(Q502895),P40,Q10900334)
action filter_type
action find_reverse
entity Q10900334
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q10900334']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q10900334 . ?r rdf:type ontology:Q502895 }
Wang Erxu Emperor Jing of Han
Wang Erxu and Emperor Jing of Han have that one as an offspring
Wang Erxu Emperor Jing of Han
action filter_type
action find_reverse
entity Liu Shun
relation child
type common name
[{'concept': 'common name'}, 'child', 'Liu Shun']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Liu_Shun . ?r rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q80692 Q10900543
P7
Q502895
USER
Which people are the brothers of Liu Fei, Prince of Jiangdu or Richeza of Poland, Queen of Castile ?
OR((Q10900543,P7,c(Q502895)), (Q80692,P7,c(Q502895)))
action filter_type
action union
action find
entity Q10900543
relation P7
action find
entity Q80692
relation P7
type Q502895
{'OR': [['Q10900543', 'P7', {'concept': 'Q502895'}], ['Q80692', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q10900543 property:P7 ?a } UNION { resource:Q80692 property:P7 ?a } } }
Richeza of Poland, Queen of Castile Liu Fei, Prince of Jiangdu
action filter_type
action union
action find
entity Liu Fei, Prince of Jiangdu
relation brother
action find
entity Richeza of Poland, Queen of Castile
relation brother
type common name
{'OR': [['Liu Fei, Prince of Jiangdu', 'brother', {'concept': 'common name'}], ['Richeza of Poland, Queen of Castile', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Liu_Fei,_Prince_of_Jiangdu property:brother ?a } UNION { resource:Richeza_of_Poland,_Queen_of_Castile property:brother ?a } } }
[]
common name
Q10900334 Q5975475 Q10899363 Q10899668 Q10900521 Q712382 Q3241423 Q54010 Q9469608 Q547974
SYSTEM
Some of them are Liu Shun, Liu Yu, Liu Cheng, Liu Ji, Liu Eyu, Liu Sheng, Liu Rong, Mieszko IV Tanglefoot, Liu Duan, Konrad Laskonogi
Q10899668 Q10900433 Q712382 Q7225 Q10900206 Q10899757 Q547974 Q9469608 Q280053 Q5975475 Q54010 Q10899363 Q3241423 Q10900334 Q10900521 Q10897508
OR((Q10900543,P7,c(Q502895)), (Q80692,P7,c(Q502895)))
action filter_type
action union
action find
entity Q10900543
relation P7
action find
entity Q80692
relation P7
type Q502895
[ANSWERS] are the brothers of Liu Fei, Prince of Jiangdu or Richeza of Poland, Queen of Castile
{'OR': [['Q10900543', 'P7', {'concept': 'Q502895'}], ['Q80692', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q10900543 property:P7 ?a } UNION { resource:Q80692 property:P7 ?a } } }
Liu Ji Liu Yue Liu Sheng Emperor Wu of Han Liu Fa Liu De Konrad Laskonogi Liu Duan Bolesław I the Tall Liu Yu Mieszko IV Tanglefoot Liu Cheng Liu Rong Liu Shun Liu Eyu Liu Pengzu
Liu Shun, Liu Yu, Liu Cheng, Liu Ji, Liu Eyu, Liu Sheng, Liu Rong, Mieszko IV Tanglefoot, Liu Duan and Konrad Laskonogi are the brothers of Liu Fei, Prince of Jiangdu or Richeza of Poland, Queen of Castile
Liu Shun Liu Yu Liu Cheng Liu Ji Liu Eyu Liu Sheng Liu Rong Mieszko IV Tanglefoot Liu Duan Konrad Laskonogi
action filter_type
action union
action find
entity Liu Fei, Prince of Jiangdu
relation brother
action find
entity Richeza of Poland, Queen of Castile
relation brother
type common name
{'OR': [['Liu Fei, Prince of Jiangdu', 'brother', {'concept': 'common name'}], ['Richeza of Poland, Queen of Castile', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Liu_Fei,_Prince_of_Jiangdu property:brother ?a } UNION { resource:Richeza_of_Poland,_Queen_of_Castile property:brother ?a } } }
[]