Simple Question (Direct)
Simple Question
Q18654337
P25
Q502895
USER
Which female person has a child named Hunhu ?
(Q18654337,P25,c(Q502895))
action filter_type
action find
entity Q18654337
relation P25
type Q502895
['Q18654337', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q18654337 property:P25 ?g }
Hunhu
action filter_type
action find
entity Hunhu
relation mother
type common name
['Hunhu', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Hunhu property:mother ?g }
[]
common name
Q8254233
SYSTEM
Juerbiesu
Q8254233
(Q18654337,P25,c(Q502895))
action filter_type
action find
entity Q18654337
relation P25
type Q502895
[ANSWER] has a child named Hunhu
['Q18654337', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q18654337 property:P25 ?g }
Juerbiesu
Juerbiesu has a child named Hunhu
Juerbiesu
action filter_type
action find
entity Hunhu
relation mother
type common name
['Hunhu', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Hunhu property:mother ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18654337
P21
Q290
USER
What is the sex of Hunhu ?
(Q18654337,P21,c(Q290))
action filter_type
action find
entity Q18654337
relation P21
type Q290
['Q18654337', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q18654337 property:P21 ?p }
Hunhu
action filter_type
action find
entity Hunhu
relation gender
type sex
['Hunhu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Hunhu property:gender ?p }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q18654337,P21,c(Q290))
action filter_type
action find
entity Q18654337
relation P21
type Q290
The sex of Hunhu is the [ANSWER]
['Q18654337', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q18654337 property:P21 ?p }
female
The sex of Hunhu is the female
female
action filter_type
action find
entity Hunhu
relation gender
type sex
['Hunhu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Hunhu property:gender ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8254233
P26
Q502895
USER
Which person is married to Juerbiesu ?
(Q8254233,P26,c(Q502895))
action filter_type
action find
entity Q8254233
relation P26
type Q502895
['Q8254233', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q8254233 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Juerbiesu
action filter_type
action find
entity Juerbiesu
relation spouse
type common name
['Juerbiesu', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Juerbiesu property:spouse ?b . ?b rdf:type ontology:common_name }
[]
common name
Q860152
SYSTEM
Yelü Zhilugu
Q860152
(Q8254233,P26,c(Q502895))
action filter_type
action find
entity Q8254233
relation P26
type Q502895
U [ANSWER] is married to Juerbiesu
['Q8254233', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q8254233 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Yelü Zhilugu
U Yelü Zhilugu is married to Juerbiesu
Yelü Zhilugu
action filter_type
action find
entity Juerbiesu
relation spouse
type common name
['Juerbiesu', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Juerbiesu property:spouse ?b . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q860152 Q8254233 Q12472440
P26
Q502895
USER
Is that person the life partner of Juerbiesu and Arie Jeffry Kumaat ?
(Q860152,P26,Q8254233) (Q860152,P26,Q12472440)
action is_in
entity Q860152
action intersection
action find_reverse
entity Q8254233
relation P26
action find_reverse
entity Q12472440
relation P26
['Q860152', 'P26', 'Q8254233'] ['Q860152', 'P26', 'Q12472440']
ASK WHERE { resource:Q860152 property:P26 resource:Q8254233 . resource:Q860152 property:P26 resource:Q12472440 }
Yelü Zhilugu Juerbiesu Arie Jeffry Kumaat
action is_in
entity Yelü Zhilugu
action intersection
action find_reverse
entity Juerbiesu
relation spouse
action find_reverse
entity Arie Jeffry Kumaat
relation spouse
['Yelü Zhilugu', 'spouse', 'Juerbiesu'] ['Yelü Zhilugu', 'spouse', 'Arie Jeffry Kumaat']
ASK WHERE { resource:Yelü_Zhilugu property:spouse resource:Juerbiesu . resource:Yelü_Zhilugu property:spouse resource:Arie_Jeffry_Kumaat }
[]
common name
SYSTEM
YES and NO respectively
(Q860152,P26,Q8254233) (Q860152,P26,Q12472440)
action is_in
entity Q860152
action intersection
action find_reverse
entity Q8254233
relation P26
action find_reverse
entity Q12472440
relation P26
[ANSWER]
['Q860152', 'P26', 'Q8254233'] ['Q860152', 'P26', 'Q12472440']
ASK WHERE { resource:Q860152 property:P26 resource:Q8254233 . resource:Q860152 property:P26 resource:Q12472440 }
YES and NO respectively
action is_in
entity Yelü Zhilugu
action intersection
action find_reverse
entity Juerbiesu
relation spouse
action find_reverse
entity Arie Jeffry Kumaat
relation spouse
['Yelü Zhilugu', 'spouse', 'Juerbiesu'] ['Yelü Zhilugu', 'spouse', 'Arie Jeffry Kumaat']
ASK WHERE { resource:Yelü_Zhilugu property:spouse resource:Juerbiesu . resource:Yelü_Zhilugu property:spouse resource:Arie_Jeffry_Kumaat }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8254233 Q18654337
P40
Q502895
USER
Is Hunhu an offspring of Juerbiesu ?
(Q8254233,P40,Q18654337)
action is_in
entity Q18654337
action find
entity Q8254233
relation P40
['Q8254233', 'P40', 'Q18654337']
ASK WHERE { resource:Q8254233 property:P40 resource:Q18654337 }
Juerbiesu Hunhu
action is_in
entity Hunhu
action find
entity Juerbiesu
relation child
['Juerbiesu', 'child', 'Hunhu']
ASK WHERE { resource:Juerbiesu property:child resource:Hunhu }
[]
common name
SYSTEM
YES
(Q8254233,P40,Q18654337)
action is_in
entity Q18654337
action find
entity Q8254233
relation P40
[ANSWER]
['Q8254233', 'P40', 'Q18654337']
ASK WHERE { resource:Q8254233 property:P40 resource:Q18654337 }
Yes
action is_in
entity Hunhu
action find
entity Juerbiesu
relation child
['Juerbiesu', 'child', 'Hunhu']
ASK WHERE { resource:Juerbiesu property:child resource:Hunhu }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q18654337 Q7052282 Q4992
P7
Q502895
USER
Did Hunhu have Norman Goodhead and Emperor Shizong of Liao as brother ?
(Q18654337,P7,Q7052282) (Q18654337,P7,Q4992)
action is_in
entity Q18654337
action intersection
action find_reverse
entity Q7052282
relation P7
action find_reverse
entity Q4992
relation P7
['Q18654337', 'P7', 'Q7052282'] ['Q18654337', 'P7', 'Q4992']
ASK WHERE { resource:Q18654337 property:P7 resource:Q4992 . resource:Q18654337 property:P7 resource:Q7052282 }
Hunhu Norman Goodhead Emperor Shizong of Liao
action is_in
entity Hunhu
action intersection
action find_reverse
entity Norman Goodhead
relation brother
action find_reverse
entity Emperor Shizong of Liao
relation brother
['Hunhu', 'brother', 'Norman Goodhead'] ['Hunhu', 'brother', 'Emperor Shizong of Liao']
ASK WHERE { resource:Hunhu property:brother resource:Emperor_Shizong_of_Liao . resource:Hunhu property:brother resource:Norman_Goodhead }
[]
common name
SYSTEM
NO and YES respectively
(Q18654337,P7,Q7052282) (Q18654337,P7,Q4992)
action is_in
entity Q18654337
action intersection
action find_reverse
entity Q7052282
relation P7
action find_reverse
entity Q4992
relation P7
[ANSWER]
['Q18654337', 'P7', 'Q7052282'] ['Q18654337', 'P7', 'Q4992']
ASK WHERE { resource:Q18654337 property:P7 resource:Q4992 . resource:Q18654337 property:P7 resource:Q7052282 }
NO and YES respectively
action is_in
entity Hunhu
action intersection
action find_reverse
entity Norman Goodhead
relation brother
action find_reverse
entity Emperor Shizong of Liao
relation brother
['Hunhu', 'brother', 'Norman Goodhead'] ['Hunhu', 'brother', 'Emperor Shizong of Liao']
ASK WHERE { resource:Hunhu property:brother resource:Emperor_Shizong_of_Liao . resource:Hunhu property:brother resource:Norman_Goodhead }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q558536 Q4992
P40
Q502895
USER
Which people are a successors of Emperor Shizong of Liao or Sæberht of Essex ?
OR((Q4992,P40,c(Q502895)), (Q558536,P40,c(Q502895)))
action filter_type
action union
action find
entity Q4992
relation P40
action find
entity Q558536
relation P40
type Q502895
{'OR': [['Q4992', 'P40', {'concept': 'Q502895'}], ['Q558536', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Q4992 ) ( resource:Q558536 ) } . ?b property:P40 ?g } . ?g rdf:type ontology:Q502895 }
Sæberht of Essex Emperor Shizong of Liao
action filter_type
action union
action find
entity Emperor Shizong of Liao
relation child
action find
entity Sæberht of Essex
relation child
type common name
{'OR': [['Emperor Shizong of Liao', 'child', {'concept': 'common name'}], ['Sæberht of Essex', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Emperor_Shizong_of_Liao ) ( resource:Sæberht_of_Essex ) } . ?b property:child ?g } . ?g rdf:type ontology:common_name }
[]
common name
Q888995 Q4997 Q886977
SYSTEM
Sæward of Essex, Emperor Jingzong of Liao, Sexred
Q888995 Q4997 Q886977
OR((Q4992,P40,c(Q502895)), (Q558536,P40,c(Q502895)))
action filter_type
action union
action find
entity Q4992
relation P40
action find
entity Q558536
relation P40
type Q502895
[ANSWERS] are a successors of Emperor Shizong of Liao or Sæberht of Essex
{'OR': [['Q4992', 'P40', {'concept': 'Q502895'}], ['Q558536', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Q4992 ) ( resource:Q558536 ) } . ?b property:P40 ?g } . ?g rdf:type ontology:Q502895 }
Sæward of Essex Emperor Jingzong of Liao Sexred
Sæward of Essex, Emperor Jingzong of Liao and Sexred are a successors of Emperor Shizong of Liao or Sæberht of Essex
Sæward of Essex Emperor Jingzong of Liao Sexred
action filter_type
action union
action find
entity Emperor Shizong of Liao
relation child
action find
entity Sæberht of Essex
relation child
type common name
{'OR': [['Emperor Shizong of Liao', 'child', {'concept': 'common name'}], ['Sæberht of Essex', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?b ) { ( resource:Emperor_Shizong_of_Liao ) ( resource:Sæberht_of_Essex ) } . ?b property:child ?g } . ?g rdf:type ontology:common_name }
[]