Simple Question (Direct)
Simple Question
Q10860048
P40
Q502895
USER
Who are the children of Kaishun'in ?
(Q10860048,P40,c(Q502895))
action filter_type
action find
entity Q10860048
relation P40
type Q502895
['Q10860048', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q10860048 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Kaishun'in
action filter_type
action find
entity Kaishun'in
relation child
type common name
["Kaishun'in", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Kaishun'in property:child ?b . ?b rdf:type ontology:common_name }
[]
common name
Q3125466 Q11551950 Q11530462
SYSTEM
Hachisuka Narihiro, Ikeda Narihiro, Matsudaira Naritami
Q11071637 Q3125466 Q11551950 Q11490284 Q11530462 Q11530463
(Q10860048,P40,c(Q502895))
action filter_type
action find
entity Q10860048
relation P40
type Q502895
The children of Kaishu n'in are named [ANSWERS]
['Q10860048', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q10860048 property:P40 ?b . ?b rdf:type ontology:Q502895 }
Kiyo-hime Hachisuka Narihiro Ikeda Narihiro Tokugawa Narinori Matsudaira Naritami Matsudaira Nariyoshi
The children of Kaishu n'in are named Hachisuka Narihiro, Ikeda Narihiro and Matsudaira Naritami
Hachisuka Narihiro Ikeda Narihiro Matsudaira Naritami
action filter_type
action find
entity Kaishun'in
relation child
type common name
["Kaishun'in", 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Kaishun'in property:child ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10860048
P21
Q290
USER
Which sex does Kaishun'in have ?
(Q10860048,P21,c(Q290))
action filter_type
action find
entity Q10860048
relation P21
type Q290
['Q10860048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q10860048 property:P21 ?u . ?u rdf:type ontology:Q290 }
Kaishun'in
action filter_type
action find
entity Kaishun'in
relation gender
type sex
["Kaishun'in", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kaishun'in property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q10860048,P21,c(Q290))
action filter_type
action find
entity Q10860048
relation P21
type Q290
Kaishu n'in has a [ANSWER]
['Q10860048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q10860048 property:P21 ?u . ?u rdf:type ontology:Q290 }
female
Kaishu n'in has a female
female
action filter_type
action find
entity Kaishun'in
relation gender
type sex
["Kaishun'in", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kaishun'in property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5957966
Q290
USER
And how about Mohammad Ebrahim Amini?
(Q5957966,P21,c(Q290))
action filter_type
action find
entity Q5957966
relation P21
type Q290
['Q5957966', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q5957966 property:P21 ?z . ?z rdf:type ontology:Q290 }
Mohammad Ebrahim Amini
action filter_type
action find
entity Mohammad Ebrahim Amini
relation gender
type sex
['Mohammad Ebrahim Amini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Mohammad_Ebrahim_Amini property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5957966,P21,c(Q290))
action filter_type
action find
entity Q5957966
relation P21
type Q290
[ANSWER]
['Q5957966', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q5957966 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Mohammad Ebrahim Amini
relation gender
type sex
['Mohammad Ebrahim Amini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Mohammad_Ebrahim_Amini property:gender ?z . ?z rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3125466
P7
Q502895
USER
How many people had Hachisuka Narihiro as brother ?
(c(Q502895),P7,Q3125466)
action count
action filter_type
action find_reverse
entity Q3125466
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3125466']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P7 resource:Q3125466 }
Hachisuka Narihiro
action count
action filter_type
action find_reverse
entity Hachisuka Narihiro
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Hachisuka Narihiro']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:common_name . ?d property:brother resource:Hachisuka_Narihiro }
[]
common name
SYSTEM
18
Q11564521 Q11071637 Q18002854 Q11530459 Q11530462 Q11530463 Q11530464 Q6998305 Q11490284 Q3530492 Q6993203 Q11519670 Q11551950 Q439675 Q6993155 Q3336095 Q6992886 Q6788045
(c(Q502895),P7,Q3125466)
action count
action filter_type
action find_reverse
entity Q3125466
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q3125466']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P7 resource:Q3125466 }
Yasu-hime Kiyo-hime Tokugawa Atsunosuke Matsudaira Narikoto Matsudaira Naritami Matsudaira Nariyoshi Matsudaira Narisada Mine-hime Tokugawa Narinori Tokugawa Naritaka Tokugawa Nariyuki Sue-hime Ikeda Narihiro Tokugawa Ieyoshi Tokugawa Narikatsu Tokugawa Nariharu Tokugawa Torachiyo Matsudaira Narisawa
18
action count
action filter_type
action find_reverse
entity Hachisuka Narihiro
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Hachisuka Narihiro']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { ?d rdf:type ontology:common_name . ?d property:brother resource:Hachisuka_Narihiro }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3125466
P7
Q502895
USER
How many people are Hachisuka Narihiro a brother of ?
(c(Q502895),P7,Q3125466)
action count
action filter_type
action find_reverse
entity Q3125466
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q3125466']
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P7 resource:Q3125466 }
Hachisuka Narihiro
action count
action filter_type
action find_reverse
entity Hachisuka Narihiro
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Hachisuka Narihiro']
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h rdf:type ontology:common_name . ?h property:brother resource:Hachisuka_Narihiro }
[]
common name
SYSTEM
18
Q11564521 Q11071637 Q18002854 Q11530459 Q11530462 Q11530463 Q11530464 Q6998305 Q11490284 Q3530492 Q6993203 Q11519670 Q11551950 Q439675 Q6993155 Q3336095 Q6992886 Q6788045
(c(Q502895),P7,Q3125466)
action count
action filter_type
action find_reverse
entity Q3125466
relation P7
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q3125466']
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h rdf:type ontology:Q502895 . ?h property:P7 resource:Q3125466 }
Yasu-hime Kiyo-hime Tokugawa Atsunosuke Matsudaira Narikoto Matsudaira Naritami Matsudaira Nariyoshi Matsudaira Narisada Mine-hime Tokugawa Narinori Tokugawa Naritaka Tokugawa Nariyuki Sue-hime Ikeda Narihiro Tokugawa Ieyoshi Tokugawa Narikatsu Tokugawa Nariharu Tokugawa Torachiyo Matsudaira Narisawa
18
action count
action filter_type
action find_reverse
entity Hachisuka Narihiro
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Hachisuka Narihiro']
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { ?h rdf:type ontology:common_name . ?h property:brother resource:Hachisuka_Narihiro }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3125466
P26
Q502895
USER
Which person has Hachisuka Narihiro as spouse ?
(c(Q502895),P26,Q3125466)
action filter_type
action find
entity Q3125466
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q3125466']
SELECT DISTINCT ?k WHERE { resource:Q3125466 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Hachisuka Narihiro
action filter_type
action find
entity Hachisuka Narihiro
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hachisuka Narihiro']
SELECT DISTINCT ?k WHERE { resource:Hachisuka_Narihiro property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q7140507
SYSTEM
Takatsukasa Shinako
Q7140507
(c(Q502895),P26,Q3125466)
action filter_type
action find
entity Q3125466
relation P26
type Q502895
To [ANSWER] has Hachisuka Narihiro as spouse
[{'concept': 'Q502895'}, 'P26', 'Q3125466']
SELECT DISTINCT ?k WHERE { resource:Q3125466 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Takatsukasa Shinako
To Takatsukasa Shinako has Hachisuka Narihiro as spouse
Takatsukasa Shinako
action filter_type
action find
entity Hachisuka Narihiro
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hachisuka Narihiro']
SELECT DISTINCT ?k WHERE { resource:Hachisuka_Narihiro property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3125466
P22
Q502895
USER
Who was the dad of Hachisuka Narihiro ?
(Q3125466,P22,c(Q502895))
action filter_type
action find
entity Q3125466
relation P22
type Q502895
['Q3125466', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q3125466 property:P22 ?n . ?n rdf:type ontology:Q502895 }
Hachisuka Narihiro
action filter_type
action find
entity Hachisuka Narihiro
relation father
type common name
['Hachisuka Narihiro', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Hachisuka_Narihiro property:father ?n . ?n rdf:type ontology:common_name }
[]
common name
Q439717
SYSTEM
Tokugawa Ienari
Q439717
(Q3125466,P22,c(Q502895))
action filter_type
action find
entity Q3125466
relation P22
type Q502895
The dad of Hachisuka Narihiro was Emperor [ANSWER]
['Q3125466', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q3125466 property:P22 ?n . ?n rdf:type ontology:Q502895 }
Tokugawa Ienari
The dad of Hachisuka Narihiro was Emperor Tokugawa Ienari
Tokugawa Ienari
action filter_type
action find
entity Hachisuka Narihiro
relation father
type common name
['Hachisuka Narihiro', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Hachisuka_Narihiro property:father ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q439717
P106
Q4164871
USER
What does that person do for a living ?
(Q439717,P106,c(Q4164871))
action filter_type
action find
entity Q439717
relation P106
type Q4164871
['Q439717', 'P106', {'concept': 'Q4164871'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q4164871 . resource:Q439717 property:P106 ?t }
Tokugawa Ienari
action filter_type
action find
entity Tokugawa Ienari
relation occupation
type position
['Tokugawa Ienari', 'occupation', {'concept': 'position'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:position . resource:Tokugawa_Ienari property:occupation ?t }
[]
position
Q38142
SYSTEM
samurai
Q38142
(Q439717,P106,c(Q4164871))
action filter_type
action find
entity Q439717
relation P106
type Q4164871
That person does a [ANSWER] for a living
['Q439717', 'P106', {'concept': 'Q4164871'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q4164871 . resource:Q439717 property:P106 ?t }
samurai
That person does a samurai for a living
samurai
action filter_type
action find
entity Tokugawa Ienari
relation occupation
type position
['Tokugawa Ienari', 'occupation', {'concept': 'position'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:position . resource:Tokugawa_Ienari property:occupation ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q439717
P119
Q44539
USER
Which temple is the place of burial of that person ?
(Q38142,P119,c(Q44539))
action filter_type
action find
entity Q439717
relation P119
type Q44539
['Q38142', 'P119', {'concept': 'Q44539'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q44539 . resource:Q439717 property:P119 ?j }
Tokugawa Ienari
action filter_type
action find
entity Tokugawa Ienari
relation place of burial
type temple
['samurai', 'place of burial', {'concept': 'temple'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:temple . resource:Tokugawa_Ienari property:place_of_burial ?j }
[]
temple
Q3120766
SYSTEM
Kan'ei-ji
Q3120766
(Q38142,P119,c(Q44539))
action filter_type
action find
entity Q439717
relation P119
type Q44539
[ANSWER] is the place of burial of that person
['Q38142', 'P119', {'concept': 'Q44539'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q44539 . resource:Q439717 property:P119 ?j }
Kan'ei-ji
Kan'ei-ji is the place of burial of that person
Kan'ei-ji
action filter_type
action find
entity Tokugawa Ienari
relation place of burial
type temple
['samurai', 'place of burial', {'concept': 'temple'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:temple . resource:Tokugawa_Ienari property:place_of_burial ?j }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15927686 Q3125466
P9 P7
Q502895
USER
Which people are the brother of Hachisuka Narihiro or are the sisters of Fukang ?
OR((Q3125466,P7,c(Q502895)), (Q15927686,P9,c(Q502895)))
action filter_type
action union
action find
entity Q3125466
relation P7
action find
entity Q15927686
relation P9
type Q502895
{'OR': [['Q3125466', 'P7', {'concept': 'Q502895'}], ['Q15927686', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q3125466 property:P7 ?g } UNION { resource:Q15927686 property:P9 ?g } } . ?g rdf:type ontology:Q502895 }
Fukang Hachisuka Narihiro
action filter_type
action union
action find
entity Hachisuka Narihiro
relation brother
action find
entity Fukang
relation sister
type common name
{'OR': [['Hachisuka Narihiro', 'brother', {'concept': 'common name'}], ['Fukang', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Hachisuka_Narihiro property:brother ?g } UNION { resource:Fukang property:sister ?g } } . ?g rdf:type ontology:common_name }
[]
common name
Q11173023 Q11530463 Q10923139 Q16603655 Q16603393 Q10922610 Q18002854 Q15913576 Q15915544 Q11490284
SYSTEM
Some of them are Luguo, Matsudaira Nariyoshi, Shang, Deng, Baoshou, Tang, Tokugawa Atsunosuke, Luqin, Chen, Tokugawa Narinori
Q11530459 Q15933110 Q15950282 Q16603655 Q6788045 Q10923139 Q6993203 Q11119775 Q6993155 Q10922610 Q11070388 Q11530463 Q11530464 Q3336095 Q15913576 Q11551950 Q16603393 Q11490284 Q11173023 Q11530462 Q6992886 Q439675 Q15938920 Q18002854 Q15915544 Q3530492
OR((Q3125466,P7,c(Q502895)), (Q15927686,P9,c(Q502895)))
action filter_type
action union
action find
entity Q3125466
relation P7
action find
entity Q15927686
relation P9
type Q502895
[ANSWERS] are the brother of Hachisuka Narihiro or are the sisters of Fukang
{'OR': [['Q3125466', 'P7', {'concept': 'Q502895'}], ['Q15927686', 'P9', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q3125466 property:P7 ?g } UNION { resource:Q15927686 property:P9 ?g } } . ?g rdf:type ontology:Q502895 }
Matsudaira Narikoto Zhen Yu Deng Matsudaira Narisawa Shang Tokugawa Nariyuki Chu Tokugawa Narikatsu Tang Xu Matsudaira Nariyoshi Matsudaira Narisada Tokugawa Nariharu Luqin Ikeda Narihiro Baoshou Tokugawa Narinori Luguo Matsudaira Naritami Tokugawa Torachiyo Tokugawa Ieyoshi Gun Tokugawa Atsunosuke Chen Tokugawa Naritaka
Luguo, Matsudaira Nariyoshi, Shang, Deng, Baoshou, Tang, Tokugawa Atsunosuke, Luqin, Chen and Tokugawa Narinori are the brother of Hachisuka Narihiro or are the sisters of Fukang
Luguo Matsudaira Nariyoshi Shang Deng Baoshou Tang Tokugawa Atsunosuke Luqin Chen Tokugawa Narinori
action filter_type
action union
action find
entity Hachisuka Narihiro
relation brother
action find
entity Fukang
relation sister
type common name
{'OR': [['Hachisuka Narihiro', 'brother', {'concept': 'common name'}], ['Fukang', 'sister', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Hachisuka_Narihiro property:brother ?g } UNION { resource:Fukang property:sister ?g } } . ?g rdf:type ontology:common_name }
[]