Simple Question (Direct)
Simple Question
Q5507516
P25
Q502895
USER
Who was the mom of Fujiwara no Ishi ?
(Q5507516,P25,c(Q502895))
action filter_type
action find
entity Q5507516
relation P25
type Q502895
['Q5507516', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q5507516 property:P25 ?q }
Fujiwara no Ishi
action filter_type
action find
entity Fujiwara no Ishi
relation mother
type common name
['Fujiwara no Ishi', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Fujiwara_no_Ishi property:mother ?q }
[]
common name
Q11563997
SYSTEM
Minamoto no Rinshi
Q11563997
(Q5507516,P25,c(Q502895))
action filter_type
action find
entity Q5507516
relation P25
type Q502895
The mom of Fujiwara no Ishi was the [ANSWER]
['Q5507516', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q5507516 property:P25 ?q }
Minamoto no Rinshi
The mom of Fujiwara no Ishi was the Minamoto no Rinshi
Minamoto no Rinshi
action filter_type
action find
entity Fujiwara no Ishi
relation mother
type common name
['Fujiwara no Ishi', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Fujiwara_no_Ishi property:mother ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11563997
P40
Q502895
USER
Which people have that one as a child ?
(c(Q502895),P40,Q11563997)
action filter_type
action find_reverse
entity Q11563997
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q11563997']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P40 resource:Q11563997 }
Minamoto no Rinshi
action filter_type
action find_reverse
entity Minamoto no Rinshi
relation child
type common name
[{'concept': 'common name'}, 'child', 'Minamoto no Rinshi']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:child resource:Minamoto_no_Rinshi }
[]
common name
Q3314711 Q11623441
SYSTEM
Minamoto no Masanobu, Fujiwara no Bokushi
Q3314711 Q11623441
(c(Q502895),P40,Q11563997)
action filter_type
action find_reverse
entity Q11563997
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q11563997']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P40 resource:Q11563997 }
Minamoto no Masanobu Fujiwara no Bokushi
Minamoto no Masanobu and Fujiwara no Bokushi have that one as a child
Minamoto no Masanobu Fujiwara no Bokushi
action filter_type
action find_reverse
entity Minamoto no Rinshi
relation child
type common name
[{'concept': 'common name'}, 'child', 'Minamoto no Rinshi']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:child resource:Minamoto_no_Rinshi }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3314711
P21 P22
Q502895
USER
Which people have Minamoto no Masanobu as father and have male as the sex ?
AND((c(Q502895),P22,Q3314711), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3314711
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3314711'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q3314711 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Minamoto no Masanobu
action filter_type
action intersection
action find_reverse
entity Minamoto no Masanobu
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Minamoto no Masanobu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Minamoto_no_Masanobu . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q11564103
SYSTEM
Minamoto no Sukenori
Q11564103
AND((c(Q502895),P22,Q3314711), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3314711
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Minamoto no Masanobu as father and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3314711'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P22 resource:Q3314711 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Minamoto no Sukenori
Minamoto no Sukenori have Minamoto no Masanobu as father and have male as the sex
Minamoto no Sukenori
action filter_type
action intersection
action find_reverse
entity Minamoto no Masanobu
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Minamoto no Masanobu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:father resource:Minamoto_no_Masanobu . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5507516
P1196
Q1931388
USER
What situation did Fujiwara no Ishi die in ?
(Q5507516,P1196,c(Q1931388))
action filter_type
action find
entity Q5507516
relation P1196
type Q1931388
['Q5507516', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?s WHERE { resource:Q5507516 property:P1196 ?s . ?s rdf:type ontology:Q1931388 }
Fujiwara no Ishi
action filter_type
action find
entity Fujiwara no Ishi
relation manner of death
type cause of death
['Fujiwara no Ishi', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?s WHERE { resource:Fujiwara_no_Ishi property:manner_of_death ?s . ?s rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q5507516,P1196,c(Q1931388))
action filter_type
action find
entity Q5507516
relation P1196
type Q1931388
Fujiwara no Ishi died of [ANSWER]
['Q5507516', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?s WHERE { resource:Q5507516 property:P1196 ?s . ?s rdf:type ontology:Q1931388 }
natural causes
Fujiwara no Ishi died of natural causes
natural causes
action filter_type
action find
entity Fujiwara no Ishi
relation manner of death
type cause of death
['Fujiwara no Ishi', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?s WHERE { resource:Fujiwara_no_Ishi property:manner_of_death ?s . ?s rdf:type ontology:cause_of_death }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17410
Q1931388
USER
And how about Zhou Enlai?
(Q17410,P1196,c(Q1931388))
action filter_type
action find
entity Q17410
relation P1196
type Q1931388
['Q17410', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1931388 . resource:Q17410 property:P1196 ?j }
Zhou Enlai
action filter_type
action find
entity Zhou Enlai
relation manner of death
type cause of death
['Zhou Enlai', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:cause_of_death . resource:Zhou_Enlai property:manner_of_death ?j }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q17410,P1196,c(Q1931388))
action filter_type
action find
entity Q17410
relation P1196
type Q1931388
[ANSWER]
['Q17410', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1931388 . resource:Q17410 property:P1196 ?j }
natural causes
natural causes
action filter_type
action find
entity Zhou Enlai
relation manner of death
type cause of death
['Zhou Enlai', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:cause_of_death . resource:Zhou_Enlai property:manner_of_death ?j }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q440753 Q11623441
P175 P22
Q502895
USER
Which people were the father of Fujiwara no Bokushi or were staged by Haitian ?
OR((Q11623441,P22,c(Q502895)), (Q440753,P175,c(Q502895)))
action filter_type
action union
action find
entity Q11623441
relation P22
action find
entity Q440753
relation P175
type Q502895
{'OR': [['Q11623441', 'P22', {'concept': 'Q502895'}], ['Q440753', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { resource:Q11623441 property:P22 ?k } UNION { resource:Q440753 property:P175 ?k } } }
Haitian Fujiwara no Bokushi
action filter_type
action union
action find
entity Fujiwara no Bokushi
relation father
action find
entity Haitian
relation performer
type common name
{'OR': [['Fujiwara no Bokushi', 'father', {'concept': 'common name'}], ['Haitian', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { resource:Fujiwara_no_Bokushi property:father ?k } UNION { resource:Haitian property:performer ?k } } }
[]
common name
Q931325 Q2598268
SYSTEM
Jimmy Jean-Louis, Fujiwara no Asatada
Q931325 Q2598268
OR((Q11623441,P22,c(Q502895)), (Q440753,P175,c(Q502895)))
action filter_type
action union
action find
entity Q11623441
relation P22
action find
entity Q440753
relation P175
type Q502895
[ANSWERS] were the father of Fujiwara no Bokushi or were staged by Haitian
{'OR': [['Q11623441', 'P22', {'concept': 'Q502895'}], ['Q440753', 'P175', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . { { resource:Q11623441 property:P22 ?k } UNION { resource:Q440753 property:P175 ?k } } }
Jimmy Jean-Louis Fujiwara no Asatada
Jimmy Jean-Louis and Fujiwara no Asatada were the father of Fujiwara no Bokushi or were staged by Haitian
Jimmy Jean-Louis Fujiwara no Asatada
action filter_type
action union
action find
entity Fujiwara no Bokushi
relation father
action find
entity Haitian
relation performer
type common name
{'OR': [['Fujiwara no Bokushi', 'father', {'concept': 'common name'}], ['Haitian', 'performer', {'concept': 'common name'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . { { resource:Fujiwara_no_Bokushi property:father ?k } UNION { resource:Haitian property:performer ?k } } }
[]