Simple Question (Direct)
Simple Question
Q10946205
P40
Q502895
USER
Which person is a child of Yuwen Gong ?
(Q10946205,P40,c(Q502895))
action filter_type
action find
entity Q10946205
relation P40
type Q502895
['Q10946205', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q10946205 property:P40 ?m }
Yuwen Gong
action filter_type
action find
entity Yuwen Gong
relation child
type common name
['Yuwen Gong', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Yuwen_Gong property:child ?m }
[]
common name
Q1071587
SYSTEM
Yuwen Tai
Q1071587
(Q10946205,P40,c(Q502895))
action filter_type
action find
entity Q10946205
relation P40
type Q502895
[ANSWER] is a child of Yuwen Gong
['Q10946205', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q10946205 property:P40 ?m }
Yuwen Tai
Yuwen Tai is a child of Yuwen Gong
Yuwen Tai
action filter_type
action find
entity Yuwen Gong
relation child
type common name
['Yuwen Gong', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Yuwen_Gong property:child ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10946205
P734
Q82799
USER
Who has the surname Yuwen Gong ?
(Q10946205,P734,c(Q82799))
action filter_type
action find
entity Q10946205
relation P734
type Q82799
['Q10946205', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q10946205 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Yuwen Gong
action filter_type
action find
entity Yuwen Gong
relation family name
type name
['Yuwen Gong', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Yuwen_Gong property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q10946183
SYSTEM
Yuwen
Q10946183
(Q10946205,P734,c(Q82799))
action filter_type
action find
entity Q10946205
relation P734
type Q82799
Gong [ANSWER] has the surname [ANSWER] Gong
['Q10946205', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q10946205 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Yuwen
Gong Yuwen has the surname Yuwen Gong
Yuwen
action filter_type
action find
entity Yuwen Gong
relation family name
type name
['Yuwen Gong', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Yuwen_Gong property:family_name ?h . ?h rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10946205
P21
Q290
USER
What is the sex of Yuwen Gong ?
(Q10946205,P21,c(Q290))
action filter_type
action find
entity Q10946205
relation P21
type Q290
['Q10946205', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q10946205 property:P21 ?n . ?n rdf:type ontology:Q290 }
Yuwen Gong
action filter_type
action find
entity Yuwen Gong
relation gender
type sex
['Yuwen Gong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Yuwen_Gong property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10946205,P21,c(Q290))
action filter_type
action find
entity Q10946205
relation P21
type Q290
The sex of Yuwen Gong is a [ANSWER]
['Q10946205', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q10946205 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Yuwen Gong is a male
male
action filter_type
action find
entity Yuwen Gong
relation gender
type sex
['Yuwen Gong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Yuwen_Gong property:gender ?n . ?n rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1445160 Q10946205
P21
Q290
USER
Or Franklin Bircher?
OR((Q10946205,P21,c(Q290)), (Q1445160,P21,c(Q290)))
action filter_type
action union
action find
entity Q10946205
relation P21
action find
entity Q1445160
relation P21
type Q290
{'OR': [['Q10946205', 'P21', {'concept': 'Q290'}], ['Q1445160', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . { { resource:Q10946205 property:P21 ?n } UNION { resource:Q1445160 property:P21 ?n } } }
Franklin Bircher Yuwen Gong
action filter_type
action union
action find
entity Yuwen Gong
relation gender
action find
entity Franklin Bircher
relation gender
type sex
{'OR': [['Yuwen Gong', 'gender', {'concept': 'sex'}], ['Franklin Bircher', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . { { resource:Yuwen_Gong property:gender ?n } UNION { resource:Franklin_Bircher property:gender ?n } } }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q10946205,P21,c(Q290)), (Q1445160,P21,c(Q290)))
action filter_type
action union
action find
entity Q10946205
relation P21
action find
entity Q1445160
relation P21
type Q290
[ANSWER]
{'OR': [['Q10946205', 'P21', {'concept': 'Q290'}], ['Q1445160', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . { { resource:Q10946205 property:P21 ?n } UNION { resource:Q1445160 property:P21 ?n } } }
male
male
action filter_type
action union
action find
entity Yuwen Gong
relation gender
action find
entity Franklin Bircher
relation gender
type sex
{'OR': [['Yuwen Gong', 'gender', {'concept': 'sex'}], ['Franklin Bircher', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . { { resource:Yuwen_Gong property:gender ?n } UNION { resource:Franklin_Bircher property:gender ?n } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1071587 Q312849
P26
Q502895
USER
How many people are married to Yuwen Tai or Mongkut ?
(Q1071587,P26,c(Q502895)) (Q312849,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q1071587
relation P26
type Q502895
action filter_type
action find
entity Q312849
relation P26
type Q502895
['Q1071587', 'P26', {'concept': 'Q502895'}] ['Q312849', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { resource:Q1071587 property:P26 ?i . ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q502895 . resource:Q312849 property:P26 ?i } }
Yuwen Tai Mongkut
action count
action union
action filter_type
action find
entity Yuwen Tai
relation spouse
type common name
action filter_type
action find
entity Mongkut
relation spouse
type common name
['Yuwen Tai', 'spouse', {'concept': 'common name'}] ['Mongkut', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { resource:Yuwen_Tai property:spouse ?i . ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:common_name . resource:Mongkut property:spouse ?i } }
[]
common name
SYSTEM
5
Q6636183 Q6581552 Q736829 Q6636216 Q1054237
(Q1071587,P26,c(Q502895)) (Q312849,P26,c(Q502895))
action count
action union
action filter_type
action find
entity Q1071587
relation P26
type Q502895
action filter_type
action find
entity Q312849
relation P26
type Q502895
[ANSWER]
['Q1071587', 'P26', {'concept': 'Q502895'}] ['Q312849', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { resource:Q1071587 property:P26 ?i . ?i rdf:type ontology:Q502895 } UNION { ?i rdf:type ontology:Q502895 . resource:Q312849 property:P26 ?i } }
Soamanas Vadhanavadi Pannarai Debsirindra Piam Empress Dowager Chinu
5
action count
action union
action filter_type
action find
entity Yuwen Tai
relation spouse
type common name
action filter_type
action find
entity Mongkut
relation spouse
type common name
['Yuwen Tai', 'spouse', {'concept': 'common name'}] ['Mongkut', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { resource:Yuwen_Tai property:spouse ?i . ?i rdf:type ontology:common_name } UNION { ?i rdf:type ontology:common_name . resource:Mongkut property:spouse ?i } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1071587
P22
Q502895
USER
Who have Yuwen Tai as a father ?
(c(Q502895),P22,Q1071587)
action filter_type
action find_reverse
entity Q1071587
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q1071587']
SELECT DISTINCT ?d WHERE { ?d property:P22 resource:Q1071587 . ?d rdf:type ontology:Q502895 }
Yuwen Tai
action filter_type
action find_reverse
entity Yuwen Tai
relation father
type common name
[{'concept': 'common name'}, 'father', 'Yuwen Tai']
SELECT DISTINCT ?d WHERE { ?d property:father resource:Yuwen_Tai . ?d rdf:type ontology:common_name }
[]
common name
Q1327591 Q1196041 Q1149222
SYSTEM
Emperor Wu of Northern Zhou, Emperor Ming of Northern Zhou, Emperor Xiaomin of Northern Zhou
Q1196041 Q5374651 Q4308739 Q1149222 Q1327591 Q1017951
(c(Q502895),P22,Q1071587)
action filter_type
action find_reverse
entity Q1071587
relation P22
type Q502895
[ANSWERS] have Yuwen Tai as a father
[{'concept': 'Q502895'}, 'P22', 'Q1071587']
SELECT DISTINCT ?d WHERE { ?d property:P22 resource:Q1071587 . ?d rdf:type ontology:Q502895 }
Emperor Ming of Northern Zhou Empress Yuwen Xiangyang Princess Emperor Xiaomin of Northern Zhou Emperor Wu of Northern Zhou Yuwen Xian
Emperor Wu of Northern Zhou, Emperor Ming of Northern Zhou and Emperor Xiaomin of Northern Zhou have Yuwen Tai as a father
Emperor Wu of Northern Zhou Emperor Ming of Northern Zhou Emperor Xiaomin of Northern Zhou
action filter_type
action find_reverse
entity Yuwen Tai
relation father
type common name
[{'concept': 'common name'}, 'father', 'Yuwen Tai']
SELECT DISTINCT ?d WHERE { ?d property:father resource:Yuwen_Tai . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1327591 Q1196041 Q1149222
P26
Q502895
USER
Which people are the life partner of Emperor Wu of Northern Zhou, Emperor Ming of Northern Zhou and Emperor Xiaomin of Northern Zhou ?
(c(Q502895),P26,Q1327591) (c(Q502895),P26,Q1196041) (c(Q502895),P26,Q1149222)
action union
action filter_type
action find
entity Q1327591
relation P26
type Q502895
action filter_type
action find
entity Q1196041
relation P26
type Q502895
action filter_type
action find
entity Q1149222
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1327591'] [{'concept': 'Q502895'}, 'P26', 'Q1196041'] [{'concept': 'Q502895'}, 'P26', 'Q1149222']
SELECT DISTINCT ?h WHERE { { resource:Q1327591 property:P26 ?h . ?h rdf:type ontology:Q502895 } UNION { resource:Q1196041 property:P26 ?h . ?h rdf:type ontology:Q502895 } }
Emperor Wu of Northern Zhou Emperor Ming of Northern Zhou Emperor Xiaomin of Northern Zhou
action union
action filter_type
action find
entity Emperor Wu of Northern Zhou
relation spouse
type common name
action filter_type
action find
entity Emperor Ming of Northern Zhou
relation spouse
type common name
action filter_type
action find
entity Emperor Xiaomin of Northern Zhou
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Emperor Wu of Northern Zhou'] [{'concept': 'common name'}, 'spouse', 'Emperor Ming of Northern Zhou'] [{'concept': 'common name'}, 'spouse', 'Emperor Xiaomin of Northern Zhou']
SELECT DISTINCT ?h WHERE { { resource:Emperor_Wu_of_Northern_Zhou property:spouse ?h . ?h rdf:type ontology:common_name } UNION { resource:Emperor_Ming_of_Northern_Zhou property:spouse ?h . ?h rdf:type ontology:common_name } }
[]
common name
Q3269762 Q4207224 Q3268509
SYSTEM
Empress Yuan Humo, Empress Dugu, Empress Ashina
Q1017986 Q3268509 Q4207224 Q3269762
(c(Q502895),P26,Q1327591) (c(Q502895),P26,Q1196041) (c(Q502895),P26,Q1149222)
action union
action filter_type
action find
entity Q1327591
relation P26
type Q502895
action filter_type
action find
entity Q1196041
relation P26
type Q502895
action filter_type
action find
entity Q1149222
relation P26
type Q502895
[ANSWERS] are the life partner of Emperor Wu of Northern Zhou, Emperor Ming of Northern Zhou and Emperor Xiaomin of Northern Zhou
[{'concept': 'Q502895'}, 'P26', 'Q1327591'] [{'concept': 'Q502895'}, 'P26', 'Q1196041'] [{'concept': 'Q502895'}, 'P26', 'Q1149222']
SELECT DISTINCT ?h WHERE { { resource:Q1327591 property:P26 ?h . ?h rdf:type ontology:Q502895 } UNION { resource:Q1196041 property:P26 ?h . ?h rdf:type ontology:Q502895 } }
Empress Dowager Li Ezi Empress Ashina Empress Dugu Empress Yuan Humo
Empress Yuan Humo, Empress Dugu and Empress Ashina are the life partner of Emperor Wu of Northern Zhou, Emperor Ming of Northern Zhou and Emperor Xiaomin of Northern Zhou
Empress Yuan Humo Empress Dugu Empress Ashina
action union
action filter_type
action find
entity Emperor Wu of Northern Zhou
relation spouse
type common name
action filter_type
action find
entity Emperor Ming of Northern Zhou
relation spouse
type common name
action filter_type
action find
entity Emperor Xiaomin of Northern Zhou
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Emperor Wu of Northern Zhou'] [{'concept': 'common name'}, 'spouse', 'Emperor Ming of Northern Zhou'] [{'concept': 'common name'}, 'spouse', 'Emperor Xiaomin of Northern Zhou']
SELECT DISTINCT ?h WHERE { { resource:Emperor_Wu_of_Northern_Zhou property:spouse ?h . ?h rdf:type ontology:common_name } UNION { resource:Emperor_Ming_of_Northern_Zhou property:spouse ?h . ?h rdf:type ontology:common_name } }
[]