Simple Question (Direct)
Simple Question
Q2364568
P106
Q12737077
USER
What are the professions of Ivan Yelagin ?
(Q2364568,P106,c(Q12737077))
action filter_type
action find
entity Q2364568
relation P106
type Q12737077
['Q2364568', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q2364568 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Ivan Yelagin
action filter_type
action find
entity Ivan Yelagin
relation occupation
type occupation
['Ivan Yelagin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ivan_Yelagin property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q201788 Q14467526 Q49757
SYSTEM
historian, linguist, poet
Q201788 Q14467526 Q49757
(Q2364568,P106,c(Q12737077))
action filter_type
action find
entity Q2364568
relation P106
type Q12737077
The professions of Ivan Yelagin are [ANSWERS]
['Q2364568', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q2364568 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
historian linguist poet
The professions of Ivan Yelagin are historian, linguist and poet
historian linguist poet
action filter_type
action find
entity Ivan Yelagin
relation occupation
type occupation
['Ivan Yelagin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ivan_Yelagin property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2364568
P112
Q41176
USER
Which building was founded by Ivan Yelagin ?
(c(Q41176),P112,Q2364568)
action filter_type
action find_reverse
entity Q2364568
relation P112
type Q41176
[{'concept': 'Q41176'}, 'P112', 'Q2364568']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q41176 . ?s property:P112 resource:Q2364568 }
Ivan Yelagin
action filter_type
action find_reverse
entity Ivan Yelagin
relation founder
type building
[{'concept': 'building'}, 'founder', 'Ivan Yelagin']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:building . ?s property:founder resource:Ivan_Yelagin }
[]
building
Q2568720
SYSTEM
Yelagin Palace
Q2568720
(c(Q41176),P112,Q2364568)
action filter_type
action find_reverse
entity Q2364568
relation P112
type Q41176
[ANSWER] was founded by Ivan Yelagin
[{'concept': 'Q41176'}, 'P112', 'Q2364568']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q41176 . ?s property:P112 resource:Q2364568 }
Yelagin Palace
Yelagin Palace was founded by Ivan Yelagin
Yelagin Palace
action filter_type
action find_reverse
entity Ivan Yelagin
relation founder
type building
[{'concept': 'building'}, 'founder', 'Ivan Yelagin']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:building . ?s property:founder resource:Ivan_Yelagin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2364568
P21
Q290
USER
Which sex does Ivan Yelagin possess ?
(Q2364568,P21,c(Q290))
action filter_type
action find
entity Q2364568
relation P21
type Q290
['Q2364568', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2364568 property:P21 ?j . ?j rdf:type ontology:Q290 }
Ivan Yelagin
action filter_type
action find
entity Ivan Yelagin
relation gender
type sex
['Ivan Yelagin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ivan_Yelagin property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2364568,P21,c(Q290))
action filter_type
action find
entity Q2364568
relation P21
type Q290
Ivan Yelagin possesses a [ANSWER]
['Q2364568', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q2364568 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
Ivan Yelagin possesses a male
male
action filter_type
action find
entity Ivan Yelagin
relation gender
type sex
['Ivan Yelagin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ivan_Yelagin property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2568720
P800
Q502895
USER
Who has Yelagin Palace as their notable work ?
(c(Q502895),P800,Q2568720)
action filter_type
action find_reverse
entity Q2568720
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q2568720']
SELECT DISTINCT ?k WHERE { ?k property:P800 resource:Q2568720 . ?k rdf:type ontology:Q502895 }
Yelagin Palace
action filter_type
action find_reverse
entity Yelagin Palace
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Yelagin Palace']
SELECT DISTINCT ?k WHERE { ?k property:notable_work resource:Yelagin_Palace . ?k rdf:type ontology:common_name }
[]
common name
Q619584
SYSTEM
Carlo Rossi
Q619584
(c(Q502895),P800,Q2568720)
action filter_type
action find_reverse
entity Q2568720
relation P800
type Q502895
[ANSWER] has Yelagin Palace as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q2568720']
SELECT DISTINCT ?k WHERE { ?k property:P800 resource:Q2568720 . ?k rdf:type ontology:Q502895 }
Carlo Rossi
Carlo Rossi has Yelagin Palace as their notable work
Carlo Rossi
action filter_type
action find_reverse
entity Yelagin Palace
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Yelagin Palace']
SELECT DISTINCT ?k WHERE { ?k property:notable_work resource:Yelagin_Palace . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2568720
P84
Q502895
USER
Who is the architect of that building ?
(Q619584,P84,c(Q502895))
action filter_type
action find
entity Q2568720
relation P84
type Q502895
['Q619584', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2568720 property:P84 ?j . ?j rdf:type ontology:Q502895 }
Yelagin Palace
action filter_type
action find
entity Yelagin Palace
relation architect
type common name
['Carlo Rossi', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Yelagin_Palace property:architect ?j . ?j rdf:type ontology:common_name }
[]
common name
Q619584
SYSTEM
Carlo Rossi
Q619584
(Q619584,P84,c(Q502895))
action filter_type
action find
entity Q2568720
relation P84
type Q502895
The architect of that building is Giuseppe [ANSWER]
['Q619584', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2568720 property:P84 ?j . ?j rdf:type ontology:Q502895 }
Carlo Rossi
The architect of that building is Giuseppe Carlo Rossi
Carlo Rossi
action filter_type
action find
entity Yelagin Palace
relation architect
type common name
['Carlo Rossi', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Yelagin_Palace property:architect ?j . ?j rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4260394 Q2568720
P7 P84
Q502895
USER
Which people designed the architecture of Yelagin Palace or are the brother of Yunzhi, Prince Cheng ?
OR((Q2568720,P84,c(Q502895)), (Q4260394,P7,c(Q502895)))
action filter_type
action union
action find
entity Q2568720
relation P84
action find
entity Q4260394
relation P7
type Q502895
{'OR': [['Q2568720', 'P84', {'concept': 'Q502895'}], ['Q4260394', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { { resource:Q2568720 property:P84 ?y } UNION { resource:Q4260394 property:P7 ?y } } }
Yunzhi, Prince Cheng Yelagin Palace
action filter_type
action union
action find
entity Yelagin Palace
relation architect
action find
entity Yunzhi, Prince Cheng
relation brother
type common name
{'OR': [['Yelagin Palace', 'architect', {'concept': 'common name'}], ['Yunzhi, Prince Cheng', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { { resource:Yelagin_Palace property:architect ?y } UNION { resource:Yunzhi,_Prince_Cheng property:brother ?y } } }
[]
common name
Q619584 Q7361552 Q7361708 Q6853955 Q317839 Q3375172 Q7355911 Q7355554 Q7359299 Q1076775
SYSTEM
Some of them are Carlo Rossi, Yunli, Yinji, Yinzhuo, Yongzheng Emperor, Yunti, Changhua, Sayinchahun, Yuntang, Yunreng
Q7360943 Q7361819 Q7361731 Q7357341 Q7359943 Q619584 Q7361777 Q7359757 Q7355099 Q7358635 Q7359299 Q831169 Q7358028 Q7355425 Q3375172 Q7361377 Q7361681 Q7355646 Q7359492 Q6853955 Q317839 Q7361552 Q7356509 Q7355911 Q7361708 Q7359660 Q1076775 Q4260294 Q7361115 Q7361874 Q7361717 Q7357918 Q7361796 Q7355310 Q7355554
OR((Q2568720,P84,c(Q502895)), (Q4260394,P7,c(Q502895)))
action filter_type
action union
action find
entity Q2568720
relation P84
action find
entity Q4260394
relation P7
type Q502895
[ANSWERS] designed the architecture of Yelagin Palace or are the brother of Yunzhi, Prince Cheng
{'OR': [['Q2568720', 'P84', {'concept': 'Q502895'}], ['Q4260394', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { { resource:Q2568720 property:P84 ?y } UNION { resource:Q4260394 property:P7 ?y } } }
Yinji Yinmi Yinxi Wanpu Yintao Carlo Rossi Yinhu Yinzi Chengrui Yinyou Yuntang Yinxiang Yinqi Chengqing Yunti Yinlu Yinxie Yunzhi, Prince Zhi Yin’e Yinzhuo Yongzheng Emperor Yunli Changsheng Changhua Yinji Yinju Yunreng Yunsi Yinwu Yinyuan Yinyi Yinzan Yinqi Chenghu Sayinchahun
Carlo Rossi, Yunli, Yinji, Yinzhuo, Yongzheng Emperor, Yunti, Changhua, Sayinchahun, Yuntang and Yunreng designed the architecture of Yelagin Palace or are the brother of Yunzhi, Prince Cheng
Carlo Rossi Yunli Yinji Yinzhuo Yongzheng Emperor Yunti Changhua Sayinchahun Yuntang Yunreng
action filter_type
action union
action find
entity Yelagin Palace
relation architect
action find
entity Yunzhi, Prince Cheng
relation brother
type common name
{'OR': [['Yelagin Palace', 'architect', {'concept': 'common name'}], ['Yunzhi, Prince Cheng', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { { resource:Yelagin_Palace property:architect ?y } UNION { resource:Yunzhi,_Prince_Cheng property:brother ?y } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q43229 Q2424752
USER
How many people are the chief executives of exactly 3 organizations and products ?
(c(Q43229)|c(Q2424752),P169,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
value 3
[[{'concept': 'Q43229'}, {'concept': 'Q2424752'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:Q43229 ) ( ontology:Q2424752 ) } . ?q rdf:type ?c } GROUP BY ?a } . FILTER ( ?t = 3 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
value 3
[[{'concept': 'organization'}, {'concept': 'product'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:organization ) ( ontology:product ) } . ?q rdf:type ?c } GROUP BY ?a } . FILTER ( ?t = 3 ) }
[]
common name organization product
SYSTEM
2
Q4934 Q5558291
(c(Q43229)|c(Q2424752),P169,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q43229
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
value 3
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q2424752'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:Q43229 ) ( ontology:Q2424752 ) } . ?q rdf:type ?c } GROUP BY ?a } . FILTER ( ?t = 3 ) }
Larry Page Giannis Vardinogiannis
2
action count
action equal
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type organization
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
value 3
[[{'concept': 'organization'}, {'concept': 'product'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?t ) WHERE { VALUES ( ?c ) { ( ontology:organization ) ( ontology:product ) } . ?q rdf:type ?c } GROUP BY ?a } . FILTER ( ?t = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q317839
P40
Q502895
USER
Who have Yongzheng Emperor as an offspring ?
(c(Q502895),P40,Q317839)
action filter_type
action find_reverse
entity Q317839
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q317839']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q317839 . ?d rdf:type ontology:Q502895 }
Yongzheng Emperor
action filter_type
action find_reverse
entity Yongzheng Emperor
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yongzheng Emperor']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Yongzheng_Emperor . ?d rdf:type ontology:common_name }
[]
common name
Q17790 Q1205144
SYSTEM
Kangxi Emperor, Empress Xiaogongren
Q17790 Q1205144
(c(Q502895),P40,Q317839)
action filter_type
action find_reverse
entity Q317839
relation P40
type Q502895
[ANSWERS] have Yongzheng Emperor as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q317839']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q317839 . ?d rdf:type ontology:Q502895 }
Kangxi Emperor Empress Xiaogongren
Kangxi Emperor and Empress Xiaogongren have Yongzheng Emperor as an offspring
Kangxi Emperor Empress Xiaogongren
action filter_type
action find_reverse
entity Yongzheng Emperor
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yongzheng Emperor']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Yongzheng_Emperor . ?d rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17790
P25
Q502895
USER
Who was the mother of that one ?
(Q17790,P25,c(Q502895))
action filter_type
action find
entity Q17790
relation P25
type Q502895
['Q17790', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q17790 property:P25 ?i . ?i rdf:type ontology:Q502895 }
Kangxi Emperor
action filter_type
action find
entity Kangxi Emperor
relation mother
type common name
['Kangxi Emperor', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Kangxi_Emperor property:mother ?i . ?i rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1205144
SYSTEM
Did you mean Empress Xiaogongren ?
Q17790 Q1205144
(Q17790,P25,c(Q502895)) (Q1205144,P25,c(Q502895))
[ANSWER]
['Q17790', 'P25', {'concept': 'Q502895'}] ['Q1205144', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q17790 property:P25 ?i . ?i rdf:type ontology:Q502895 }
Kangxi Emperor Empress Xiaogongren
Did you mean Empress Xiaogongren ?
Empress Xiaogongren
['Kangxi Emperor', 'mother', {'concept': 'common name'}] ['Empress Xiaogongren', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Kangxi_Emperor property:mother ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Kangxi Emperor. Could you tell me the answer for that?
(Q17790,P25,c(Q502895))
Q17790
['Q17790', 'P25', {'concept': 'Q502895'}]
['Kangxi Emperor', 'mother', {'concept': 'common name'}]
[]
Q1036431
SYSTEM
Empress Xiaokangzhang
Q1036431
(Q17790,P25,c(Q502895))
action filter_type
action find
entity Q17790
relation P25
type Q502895
The mother of that one was the [ANSWER]
['Q17790', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q17790 property:P25 ?i . ?i rdf:type ontology:Q502895 }
Empress Xiaokangzhang
The mother of that one was the Empress Xiaokangzhang
Empress Xiaokangzhang
action filter_type
action find
entity Kangxi Emperor
relation mother
type common name
['Kangxi Emperor', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Kangxi_Emperor property:mother ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036431
P9
Q502895
USER
Who is that one a sister of ?
(c(Q502895),P9,Q1036431)
action filter_type
action find_reverse
entity Q1036431
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q1036431']
SELECT DISTINCT ?q WHERE { ?q property:P9 resource:Q1036431 . ?q rdf:type ontology:Q502895 }
Empress Xiaokangzhang
action filter_type
action find_reverse
entity Empress Xiaokangzhang
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Empress Xiaokangzhang']
SELECT DISTINCT ?q WHERE { ?q property:sister resource:Empress_Xiaokangzhang . ?q rdf:type ontology:common_name }
[]
common name
Q6854377
SYSTEM
Tong Guowei
Q6854377
(c(Q502895),P9,Q1036431)
action filter_type
action find_reverse
entity Q1036431
relation P9
type Q502895
That one a sister of is [ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q1036431']
SELECT DISTINCT ?q WHERE { ?q property:P9 resource:Q1036431 . ?q rdf:type ontology:Q502895 }
Tong Guowei
That one a sister of is Tong Guowei
Tong Guowei
action filter_type
action find_reverse
entity Empress Xiaokangzhang
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Empress Xiaokangzhang']
SELECT DISTINCT ?q WHERE { ?q property:sister resource:Empress_Xiaokangzhang . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6854377 Q1036431
P9
Q502895
USER
Is Empress Xiaokangzhang the sister of Tong Guowei ?
(Q6854377,P9,Q1036431)
action is_in
entity Q1036431
action find
entity Q6854377
relation P9
['Q6854377', 'P9', 'Q1036431']
ASK WHERE { resource:Q6854377 property:P9 resource:Q1036431 }
Tong Guowei Empress Xiaokangzhang
action is_in
entity Empress Xiaokangzhang
action find
entity Tong Guowei
relation sister
['Tong Guowei', 'sister', 'Empress Xiaokangzhang']
ASK WHERE { resource:Tong_Guowei property:sister resource:Empress_Xiaokangzhang }
[]
common name
SYSTEM
YES
(Q6854377,P9,Q1036431)
action is_in
entity Q1036431
action find
entity Q6854377
relation P9
[ANSWER]
['Q6854377', 'P9', 'Q1036431']
ASK WHERE { resource:Q6854377 property:P9 resource:Q1036431 }
Yes
action is_in
entity Empress Xiaokangzhang
action find
entity Tong Guowei
relation sister
['Tong Guowei', 'sister', 'Empress Xiaokangzhang']
ASK WHERE { resource:Tong_Guowei property:sister resource:Empress_Xiaokangzhang }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6854377
P22
Q502895
USER
Who have Tong Guowei as a father ?
action filter_type
action find_reverse
entity Q6854377
relation P22
type Q502895
SELECT DISTINCT ?v WHERE { ?v property:P22 resource:Q6854377 . ?v rdf:type ontology:Q502895 }
Tong Guowei
action filter_type
action find_reverse
entity Tong Guowei
relation father
type common name
SELECT DISTINCT ?v WHERE { ?v property:father resource:Tong_Guowei . ?v rdf:type ontology:common_name }
[]
common name
Q848858 Q7333970 Q6674050
SYSTEM
Empress Xiaoyiren, Imperial Noble Consort Quehui, Longkodo
Q848858 Q7333970 Q7333841 Q6674050
action filter_type
action find_reverse
entity Q6854377
relation P22
type Q502895
[ANSWERS] have Tong Guowei as a father
SELECT DISTINCT ?v WHERE { ?v property:P22 resource:Q6854377 . ?v rdf:type ontology:Q502895 }
Empress Xiaoyiren Imperial Noble Consort Quehui Qing Fu Longkodo
Empress Xiaoyiren, Imperial Noble Consort Quehui and Longkodo have Tong Guowei as a father
Empress Xiaoyiren Imperial Noble Consort Quehui Longkodo
action filter_type
action find_reverse
entity Tong Guowei
relation father
type common name
SELECT DISTINCT ?v WHERE { ?v property:father resource:Tong_Guowei . ?v rdf:type ontology:common_name }
[]