Simple Question (Direct)
Simple Question
Q540994
P20
Q13220204
USER
Which administrative country subdivision is the place of death of Thiệu Trị ?
(Q540994,P20,c(Q13220204))
action filter_type
action find
entity Q540994
relation P20
type Q13220204
['Q540994', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q13220204 . resource:Q540994 property:P20 ?d }
Thiệu Trị
action filter_type
action find
entity Thiệu Trị
relation place of death
type second-level administrative country subdivision
['Thiệu Trị', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:second-level_administrative_country_subdivision . resource:Thiệu_Trị property:place_of_death ?d }
[]
second-level administrative country subdivision
Q36167
SYSTEM
Huế
Q36167
(Q540994,P20,c(Q13220204))
action filter_type
action find
entity Q540994
relation P20
type Q13220204
[ANSWER] is the place of death of Thiệu Trị
['Q540994', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q13220204 . resource:Q540994 property:P20 ?d }
Huế
Huế is the place of death of Thiệu Trị
Huế
action filter_type
action find
entity Thiệu Trị
relation place of death
type second-level administrative country subdivision
['Thiệu Trị', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:second-level_administrative_country_subdivision . resource:Thiệu_Trị property:place_of_death ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q540994
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q36167)
action filter_type
action find_reverse
entity Q540994
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q36167']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q540994 . ?k rdf:type ontology:Q502895 }
Thiệu Trị
action filter_type
action find_reverse
entity Thiệu Trị
relation child
type common name
[{'concept': 'common name'}, 'child', 'Huế']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Thiệu_Trị . ?k rdf:type ontology:common_name }
[]
common name
Q434419
SYSTEM
Minh Mạng
Q434419
(c(Q502895),P40,Q36167)
action filter_type
action find_reverse
entity Q540994
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q36167']
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q540994 . ?k rdf:type ontology:Q502895 }
Minh Mạng
Minh Mạng has that one as an offspring
Minh Mạng
action filter_type
action find_reverse
entity Thiệu Trị
relation child
type common name
[{'concept': 'common name'}, 'child', 'Huế']
SELECT DISTINCT ?k WHERE { ?k property:child resource:Thiệu_Trị . ?k rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q540994
P21 P22
Q502895
USER
Which people have Thiệu Trị as a parent and have male as the sex ?
AND((c(Q502895),P22,Q540994), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q540994
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q540994'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P22 resource:Q540994 . ?k property:P21 resource:Q6581097 }
male Thiệu Trị
action filter_type
action intersection
action find_reverse
entity Thiệu Trị
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Thiệu Trị'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:father resource:Thiệu_Trị . ?k property:gender resource:male }
[]
common name
Q466976
SYSTEM
Tự Đức
Q466976
AND((c(Q502895),P22,Q540994), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q540994
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Thiệu Trị as a parent and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q540994'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . ?k property:P22 resource:Q540994 . ?k property:P21 resource:Q6581097 }
Tự Đức
Tự Đức have Thiệu Trị as a parent and have male as the sex
Tự Đức
action filter_type
action intersection
action find_reverse
entity Thiệu Trị
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Thiệu Trị'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . ?k property:father resource:Thiệu_Trị . ?k property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q434419
P40
Q502895
USER
How many people have Minh Mạng as a child ?
(c(Q502895),P40,Q434419)
action count
action filter_type
action find_reverse
entity Q434419
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q434419']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w property:P40 resource:Q434419 . ?w rdf:type ontology:Q502895 }
Minh Mạng
action count
action filter_type
action find_reverse
entity Minh Mạng
relation child
type common name
[{'concept': 'common name'}, 'child', 'Minh Mạng']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w property:child resource:Minh_Mạng . ?w rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q4204307 Q210417
(c(Q502895),P40,Q434419)
action count
action filter_type
action find_reverse
entity Q434419
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q434419']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w property:P40 resource:Q434419 . ?w rdf:type ontology:Q502895 }
Thuan Thien Gia Long
2
action count
action filter_type
action find_reverse
entity Minh Mạng
relation child
type common name
[{'concept': 'common name'}, 'child', 'Minh Mạng']
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { ?w property:child resource:Minh_Mạng . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q434419
P140
Q5389993
USER
Which philosophical theory does that person relate to ?
action filter_type
action find
entity Q434419
relation P140
type Q5389993
SELECT DISTINCT ?i WHERE { resource:Q434419 property:P140 ?i . ?i rdf:type ontology:Q5389993 }
Minh Mạng
action filter_type
action find
entity Minh Mạng
relation religion
type philosophical theory
SELECT DISTINCT ?i WHERE { resource:Minh_Mạng property:religion ?i . ?i rdf:type ontology:philosophical_theory }
[]
philosophical theory
Q9581
SYSTEM
Confucianism
Q9581
action filter_type
action find
entity Q434419
relation P140
type Q5389993
That person relates to [ANSWER]
SELECT DISTINCT ?i WHERE { resource:Q434419 property:P140 ?i . ?i rdf:type ontology:Q5389993 }
Confucianism
That person relates to Confucianism
Confucianism
action filter_type
action find
entity Minh Mạng
relation religion
type philosophical theory
SELECT DISTINCT ?i WHERE { resource:Minh_Mạng property:religion ?i . ?i rdf:type ontology:philosophical_theory }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q9581 Q2164156
P140
Q502895
USER
Does Hans Schadenbauer have that philosophical theory as religious affiliation ?
(Q2164156,P140,Q9581)
action is_in
entity Q2164156
action find
entity Q9581
relation P140
['Q2164156', 'P140', 'Q9581']
ASK WHERE { resource:Q9581 property:P140 resource:Q2164156 }
Confucianism Hans Schadenbauer
action is_in
entity Hans Schadenbauer
action find
entity Confucianism
relation religion
['Hans Schadenbauer', 'religion', 'Confucianism']
ASK WHERE { resource:Confucianism property:religion resource:Hans_Schadenbauer }
[]
common name
SYSTEM
NO
(Q2164156,P140,Q9581)
action is_in
entity Q2164156
action find
entity Q9581
relation P140
[ANSWER]
['Q2164156', 'P140', 'Q9581']
ASK WHERE { resource:Q9581 property:P140 resource:Q2164156 }
No
action is_in
entity Hans Schadenbauer
action find
entity Confucianism
relation religion
['Hans Schadenbauer', 'religion', 'Confucianism']
ASK WHERE { resource:Confucianism property:religion resource:Hans_Schadenbauer }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q540994 Q434419 Q1116571
P22
Q502895
USER
Is Thiệu Trị the offspring of Minh Mạng and William G. Hardwick ?
(Q540994,P22,Q434419) (Q540994,P22,Q1116571)
action is_in
entity Q540994
action intersection
action find_reverse
entity Q434419
relation P22
action find_reverse
entity Q1116571
relation P22
['Q540994', 'P22', 'Q434419'] ['Q540994', 'P22', 'Q1116571']
ASK WHERE { resource:Q540994 property:P22 resource:Q434419 . resource:Q540994 property:P22 resource:Q1116571 }
Thiệu Trị Minh Mạng William G. Hardwick
action is_in
entity Thiệu Trị
action intersection
action find_reverse
entity Minh Mạng
relation father
action find_reverse
entity William G. Hardwick
relation father
['Thiệu Trị', 'father', 'Minh Mạng'] ['Thiệu Trị', 'father', 'William G. Hardwick']
ASK WHERE { resource:Thiệu_Trị property:father resource:Minh_Mạng . resource:Thiệu_Trị property:father resource:William_G._Hardwick }
[]
common name
SYSTEM
YES and NO respectively
(Q540994,P22,Q434419) (Q540994,P22,Q1116571)
action is_in
entity Q540994
action intersection
action find_reverse
entity Q434419
relation P22
action find_reverse
entity Q1116571
relation P22
[ANSWER]
['Q540994', 'P22', 'Q434419'] ['Q540994', 'P22', 'Q1116571']
ASK WHERE { resource:Q540994 property:P22 resource:Q434419 . resource:Q540994 property:P22 resource:Q1116571 }
YES and NO respectively
action is_in
entity Thiệu Trị
action intersection
action find_reverse
entity Minh Mạng
relation father
action find_reverse
entity William G. Hardwick
relation father
['Thiệu Trị', 'father', 'Minh Mạng'] ['Thiệu Trị', 'father', 'William G. Hardwick']
ASK WHERE { resource:Thiệu_Trị property:father resource:Minh_Mạng . resource:Thiệu_Trị property:father resource:William_G._Hardwick }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9581 Q7661082 Q4604
P138
Q502895
USER
Does Confucianism come from Sylwester Patejuk and Confucius ?
(Q9581,P138,Q7661082) (Q9581,P138,Q4604)
action is_in
entity Q9581
action intersection
action find_reverse
entity Q7661082
relation P138
action find_reverse
entity Q4604
relation P138
['Q9581', 'P138', 'Q7661082'] ['Q9581', 'P138', 'Q4604']
ASK WHERE { resource:Q9581 property:P138 resource:Q7661082 . resource:Q9581 property:P138 resource:Q4604 }
Confucianism Sylwester Patejuk Confucius
action is_in
entity Confucianism
action intersection
action find_reverse
entity Sylwester Patejuk
relation named after
action find_reverse
entity Confucius
relation named after
['Confucianism', 'named after', 'Sylwester Patejuk'] ['Confucianism', 'named after', 'Confucius']
ASK WHERE { resource:Confucianism property:named_after resource:Sylwester_Patejuk . resource:Confucianism property:named_after resource:Confucius }
[]
common name
SYSTEM
NO and YES respectively
(Q9581,P138,Q7661082) (Q9581,P138,Q4604)
action is_in
entity Q9581
action intersection
action find_reverse
entity Q7661082
relation P138
action find_reverse
entity Q4604
relation P138
[ANSWER]
['Q9581', 'P138', 'Q7661082'] ['Q9581', 'P138', 'Q4604']
ASK WHERE { resource:Q9581 property:P138 resource:Q7661082 . resource:Q9581 property:P138 resource:Q4604 }
NO and YES respectively
action is_in
entity Confucianism
action intersection
action find_reverse
entity Sylwester Patejuk
relation named after
action find_reverse
entity Confucius
relation named after
['Confucianism', 'named after', 'Sylwester Patejuk'] ['Confucianism', 'named after', 'Confucius']
ASK WHERE { resource:Confucianism property:named_after resource:Sylwester_Patejuk . resource:Confucianism property:named_after resource:Confucius }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9581
P101
Q502895
USER
Which people have his/her area as that philosophical theory ?
action filter_type
action find_reverse
entity Q9581
relation P101
type Q502895
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q9581 . ?f rdf:type ontology:Q502895 }
Confucianism
action filter_type
action find_reverse
entity Confucianism
relation field of work
type common name
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:Confucianism . ?f rdf:type ontology:common_name }
[]
common name
Q6562432 Q6562825
SYSTEM
Kinoshita Jun'an, Sakakibara Kōshū
Q6562432 Q6562825
action filter_type
action find_reverse
entity Q9581
relation P101
type Q502895
[ANSWERS] have his/her area as that philosophical theory
SELECT DISTINCT ?f WHERE { ?f property:P101 resource:Q9581 . ?f rdf:type ontology:Q502895 }
Kinoshita Jun'an Sakakibara Kōshū
Kinoshita Jun'an and Sakakibara Kōshū have his/her area as that philosophical theory
Kinoshita Jun'an Sakakibara Kōshū
action filter_type
action find_reverse
entity Confucianism
relation field of work
type common name
SELECT DISTINCT ?f WHERE { ?f property:field_of_work resource:Confucianism . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9581
P140
Q502895
USER
How many people belong to Confucianism religion ?
(c(Q502895),P140,Q9581)
action count
action filter_type
action find_reverse
entity Q9581
relation P140
type Q502895
[{'concept': 'Q502895'}, 'P140', 'Q9581']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P140 resource:Q9581 . ?h rdf:type ontology:Q502895 }
Confucianism
action count
action filter_type
action find_reverse
entity Confucianism
relation religion
type common name
[{'concept': 'common name'}, 'religion', 'Confucianism']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:religion resource:Confucianism . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
5
Q831180 Q434419 Q37682 Q8540 Q625753
(c(Q502895),P140,Q9581)
action count
action filter_type
action find_reverse
entity Q9581
relation P140
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P140', 'Q9581']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P140 resource:Q9581 . ?h rdf:type ontology:Q502895 }
Disciples of Confucius Minh Mạng Sejong the Great Ayurbarwada Buyantu Khan Kim Hong-jip
5
action count
action filter_type
action find_reverse
entity Confucianism
relation religion
type common name
[{'concept': 'common name'}, 'religion', 'Confucianism']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:religion resource:Confucianism . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9581
P425
Q12737077
USER
Which occupation does that philosophical theory belong to ?
action filter_type
action find_reverse
entity Q9581
relation P425
type Q12737077
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . ?x property:P425 resource:Q9581 }
Confucianism
action filter_type
action find_reverse
entity Confucianism
relation field of this occupation
type occupation
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . ?x property:field_of_this_occupation resource:Confucianism }
[]
occupation
Q9397505
SYSTEM
Confucian scholar
Q9397505
action filter_type
action find_reverse
entity Q9581
relation P425
type Q12737077
That philosophical theory belongs to the [ANSWER]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . ?x property:P425 resource:Q9581 }
Confucian scholar
That philosophical theory belongs to the Confucian scholar
Confucian scholar
action filter_type
action find_reverse
entity Confucianism
relation field of this occupation
type occupation
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . ?x property:field_of_this_occupation resource:Confucianism }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9581 Q857708
P138
Q502895
USER
How many people are Confucianism or Cameron named after ?
(Q9581,P138,c(Q502895)) (Q857708,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q9581
relation P138
type Q502895
action filter_type
action find
entity Q857708
relation P138
type Q502895
['Q9581', 'P138', {'concept': 'Q502895'}] ['Q857708', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?x ) { ( resource:Q9581 ) ( resource:Q857708 ) } . ?x property:P138 ?w }
Confucianism Cameron
action count
action union
action filter_type
action find
entity Confucianism
relation named after
type common name
action filter_type
action find
entity Cameron
relation named after
type common name
['Confucianism', 'named after', {'concept': 'common name'}] ['Cameron', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?x ) { ( resource:Confucianism ) ( resource:Cameron ) } . ?x property:named_after ?w }
[]
common name
SYSTEM
2
Q4604 Q42574
(Q9581,P138,c(Q502895)) (Q857708,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q9581
relation P138
type Q502895
action filter_type
action find
entity Q857708
relation P138
type Q502895
[ANSWER]
['Q9581', 'P138', {'concept': 'Q502895'}] ['Q857708', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?x ) { ( resource:Q9581 ) ( resource:Q857708 ) } . ?x property:P138 ?w }
Confucius James Cameron
2
action count
action union
action filter_type
action find
entity Confucianism
relation named after
type common name
action filter_type
action find
entity Cameron
relation named after
type common name
['Confucianism', 'named after', {'concept': 'common name'}] ['Cameron', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?x ) { ( resource:Confucianism ) ( resource:Cameron ) } . ?x property:named_after ?w }
[]