Simple Question (Direct)
Simple Question
Q15910043
P7
Q502895
USER
Which people are the brothers of princess Eyi ?
(Q15910043,P7,c(Q502895))
action filter_type
action find
entity Q15910043
relation P7
type Q502895
['Q15910043', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q15910043 property:P7 ?b . ?b rdf:type ontology:Q502895 }
princess Eyi
action filter_type
action find
entity princess Eyi
relation brother
type common name
['princess Eyi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:princess_Eyi property:brother ?b . ?b rdf:type ontology:common_name }
[]
common name
Q7227 Q718024 Q10900319
SYSTEM
Emperor Zhao of Han, Liu Ju, Liu Xu
Q10899897 Q7227 Q6500351 Q10900520 Q718024 Q10900319
(Q15910043,P7,c(Q502895))
action filter_type
action find
entity Q15910043
relation P7
type Q502895
[ANSWERS] are the brothers of princess Eyi
['Q15910043', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q15910043 property:P7 ?b . ?b rdf:type ontology:Q502895 }
Liu Dan Emperor Zhao of Han Liu Bo Liu Hong Liu Ju Liu Xu
Emperor Zhao of Han, Liu Ju and Liu Xu are the brothers of princess Eyi
Emperor Zhao of Han Liu Ju Liu Xu
action filter_type
action find
entity princess Eyi
relation brother
type common name
['princess Eyi', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:princess_Eyi property:brother ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7227
P40
Q502895
USER
Who have Emperor Zhao of Han as an offspring ?
(c(Q502895),P40,Q7227)
action filter_type
action find_reverse
entity Q7227
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q7227']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q7227 . ?r rdf:type ontology:Q502895 }
Emperor Zhao of Han
action filter_type
action find_reverse
entity Emperor Zhao of Han
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emperor Zhao of Han']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Emperor_Zhao_of_Han . ?r rdf:type ontology:common_name }
[]
common name
Q7225 Q6695165
SYSTEM
Emperor Wu of Han, Consort Zhao
Q7225 Q6695165
(c(Q502895),P40,Q7227)
action filter_type
action find_reverse
entity Q7227
relation P40
type Q502895
[ANSWERS] have Emperor Zhao of Han as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q7227']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q7227 . ?r rdf:type ontology:Q502895 }
Emperor Wu of Han Consort Zhao
Emperor Wu of Han and Consort Zhao have Emperor Zhao of Han as an offspring
Emperor Wu of Han Consort Zhao
action filter_type
action find_reverse
entity Emperor Zhao of Han
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emperor Zhao of Han']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Emperor_Zhao_of_Han . ?r rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6695165
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q6695165)
action filter_type
action find
entity Q6695165
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6695165']
SELECT DISTINCT ?e WHERE { resource:Q6695165 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Consort Zhao
action filter_type
action find
entity Consort Zhao
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Consort Zhao']
SELECT DISTINCT ?e WHERE { resource:Consort_Zhao property:spouse ?e . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q7225
SYSTEM
Did you mean Emperor Wu of Han ?
Q7225 Q6695165
(c(Q502895),P26,Q7225) (c(Q502895),P26,Q6695165)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q7225'] [{'concept': 'Q502895'}, 'P26', 'Q6695165']
SELECT DISTINCT ?e WHERE { resource:Q6695165 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Emperor Wu of Han Consort Zhao
Did you mean Emperor Wu of Han ?
Emperor Wu of Han
[{'concept': 'common name'}, 'spouse', 'Emperor Wu of Han'] [{'concept': 'common name'}, 'spouse', 'Consort Zhao']
SELECT DISTINCT ?e WHERE { resource:Consort_Zhao property:spouse ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Consort Zhao. Could you tell me the answer for that?
(c(Q502895),P26,Q6695165)
Q6695165
[{'concept': 'Q502895'}, 'P26', 'Q6695165']
[{'concept': 'common name'}, 'spouse', 'Consort Zhao']
[]
Q7225
SYSTEM
Emperor Wu of Han
Q7225
(c(Q502895),P26,Q6695165)
action filter_type
action find
entity Q6695165
relation P26
type Q502895
The spouse of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6695165']
SELECT DISTINCT ?e WHERE { resource:Q6695165 property:P26 ?e . ?e rdf:type ontology:Q502895 }
Emperor Wu of Han
The spouse of that one is the Emperor Wu of Han
Emperor Wu of Han
action filter_type
action find
entity Consort Zhao
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Consort Zhao']
SELECT DISTINCT ?e WHERE { resource:Consort_Zhao property:spouse ?e . ?e rdf:type ontology:common_name }
[]