Simple Question (Direct)
Simple Question
Q1598704
P102
Q7278
USER
Which political party is Heinrich Schachtebeck a member of ?
(Q1598704,P102,c(Q7278))
action filter_type
action find
entity Q1598704
relation P102
type Q7278
['Q1598704', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?z WHERE { resource:Q1598704 property:P102 ?z . ?z rdf:type ontology:Q7278 }
Heinrich Schachtebeck
action filter_type
action find
entity Heinrich Schachtebeck
relation member of political party
type political party
['Heinrich Schachtebeck', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?z WHERE { resource:Heinrich_Schachtebeck property:member_of_political_party ?z . ?z rdf:type ontology:political_party }
[]
political party
Q49750
SYSTEM
Socialist Unity Party of Germany
Q49750
(Q1598704,P102,c(Q7278))
action filter_type
action find
entity Q1598704
relation P102
type Q7278
Party [ANSWER] is Heinrich Schachtebeck a member of
['Q1598704', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?z WHERE { resource:Q1598704 property:P102 ?z . ?z rdf:type ontology:Q7278 }
Socialist Unity Party of Germany
Party Socialist Unity Party of Germany is Heinrich Schachtebeck a member of
Socialist Unity Party of Germany
action filter_type
action find
entity Heinrich Schachtebeck
relation member of political party
type political party
['Heinrich Schachtebeck', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?z WHERE { resource:Heinrich_Schachtebeck property:member_of_political_party ?z . ?z rdf:type ontology:political_party }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1598704
P20
Q515
USER
Where did Heinrich Schachtebeck die ?
(Q1598704,P20,c(Q515))
action filter_type
action find
entity Q1598704
relation P20
type Q515
['Q1598704', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q515 . resource:Q1598704 property:P20 ?u }
Heinrich Schachtebeck
action filter_type
action find
entity Heinrich Schachtebeck
relation place of death
type city
['Heinrich Schachtebeck', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:city . resource:Heinrich_Schachtebeck property:place_of_death ?u }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
(Q1598704,P20,c(Q515))
action filter_type
action find
entity Q1598704
relation P20
type Q515
Heinrich Schachtebeck died in [ANSWER]
['Q1598704', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q515 . resource:Q1598704 property:P20 ?u }
Leipzig
Heinrich Schachtebeck died in Leipzig
Leipzig
action filter_type
action find
entity Heinrich Schachtebeck
relation place of death
type city
['Heinrich Schachtebeck', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:city . resource:Heinrich_Schachtebeck property:place_of_death ?u }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q561524
Q515
USER
And also tell me about Raymond Roger Trencavel?
(Q561524,P20,c(Q515))
action filter_type
action find
entity Q561524
relation P20
type Q515
['Q561524', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q561524 property:P20 ?h . ?h rdf:type ontology:Q515 }
Raymond Roger Trencavel
action filter_type
action find
entity Raymond Roger Trencavel
relation place of death
type city
['Raymond Roger Trencavel', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Raymond_Roger_Trencavel property:place_of_death ?h . ?h rdf:type ontology:city }
[]
city
Q6582
SYSTEM
Carcassonne
Q6582
(Q561524,P20,c(Q515))
action filter_type
action find
entity Q561524
relation P20
type Q515
[ANSWER]
['Q561524', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q561524 property:P20 ?h . ?h rdf:type ontology:Q515 }
Carcassonne
Carcassonne
action filter_type
action find
entity Raymond Roger Trencavel
relation place of death
type city
['Raymond Roger Trencavel', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Raymond_Roger_Trencavel property:place_of_death ?h . ?h rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P190
Q515 Q515
USER
Which cities are a sister city of max number of cities ?
(c(Q515),P190,c(Q515))
action argmax
action find_tuple_counts
relation P190
type Q515
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?m ) WHERE { ?l property:P190 ?i . ?l rdf:type ontology:Q515 . ?i rdf:type ontology:Q515 } GROUP BY ?l } } . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?k ) WHERE { ?y property:P190 ?p . ?p rdf:type ontology:Q515 . ?y rdf:type ontology:Q515 } GROUP BY ?y } . FILTER ( ?k = ?z ) }
action argmax
action find_tuple_counts
relation sister city
type city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?m ) WHERE { ?l property:sister_city ?i . ?l rdf:type ontology:city . ?i rdf:type ontology:city } GROUP BY ?l } } . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?k ) WHERE { ?y property:sister_city ?p . ?p rdf:type ontology:city . ?y rdf:type ontology:city } GROUP BY ?y } . FILTER ( ?k = ?z ) }
[]
city city
Q42622
SYSTEM
Suzhou
Q42622
(c(Q515),P190,c(Q515))
action argmax
action find_tuple_counts
relation P190
type Q515
type Q515
[ANSWER] is a sister city of max number of cities
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?m ) WHERE { ?l property:P190 ?i . ?l rdf:type ontology:Q515 . ?i rdf:type ontology:Q515 } GROUP BY ?l } } . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?k ) WHERE { ?y property:P190 ?p . ?p rdf:type ontology:Q515 . ?y rdf:type ontology:Q515 } GROUP BY ?y } . FILTER ( ?k = ?z ) }
Suzhou
Suzhou is a sister city of max number of cities
Suzhou
action argmax
action find_tuple_counts
relation sister city
type city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?m ) WHERE { ?l property:sister_city ?i . ?l rdf:type ontology:city . ?i rdf:type ontology:city } GROUP BY ?l } } . { SELECT DISTINCT ?y ( COUNT ( ?p ) AS ?k ) WHERE { ?y property:sister_city ?p . ?p rdf:type ontology:city . ?y rdf:type ontology:city } GROUP BY ?y } . FILTER ( ?k = ?z ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q42622 Q217156
P190
Q56061
USER
Is Ismaïlia partner town of that city ?
(Q42622,P190,Q217156)
action is_in
entity Q217156
action find
entity Q42622
relation P190
['Q42622', 'P190', 'Q217156']
ASK WHERE { resource:Q42622 property:P190 resource:Q217156 }
Suzhou Ismaïlia
action is_in
entity Ismaïlia
action find
entity Suzhou
relation sister city
['Suzhou', 'sister city', 'Ismaïlia']
ASK WHERE { resource:Suzhou property:sister_city resource:Ismaïlia }
[]
administrative territorial entity
SYSTEM
YES
(Q42622,P190,Q217156)
action is_in
entity Q217156
action find
entity Q42622
relation P190
[ANSWER]
['Q42622', 'P190', 'Q217156']
ASK WHERE { resource:Q42622 property:P190 resource:Q217156 }
Yes
action is_in
entity Ismaïlia
action find
entity Suzhou
relation sister city
['Suzhou', 'sister city', 'Ismaïlia']
ASK WHERE { resource:Suzhou property:sister_city resource:Ismaïlia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42622
P19
Q502895
USER
Who have location of birth at that city ?
action filter_type
action find_reverse
entity Q42622
relation P19
type Q502895
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q42622 . ?w rdf:type ontology:Q502895 }
Suzhou
action filter_type
action find_reverse
entity Suzhou
relation place of birth
type common name
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Suzhou . ?w rdf:type ontology:common_name }
[]
common name
Q197225 Q551379 Q443201
SYSTEM
Zhang Jun, Cai Yun, Wang Shixian
Q306673 Q2191949 Q15725560 Q5310070 Q2365891 Q778276 Q3571072 Q4024380 Q344892 Q3575430 Q282412 Q3234222 Q1592204 Q626733 Q3576149 Q5950051 Q3065894 Q3031742 Q589406 Q2962599 Q19754000 Q1552700 Q3084865 Q15910613 Q551379 Q3567210 Q16185846 Q3376662 Q6539070 Q2536277 Q3570976 Q335219 Q8964883 Q15699089 Q5443379 Q709067 Q197196 Q716041 Q558863 Q15969689 Q19825511 Q709927 Q1297081 Q197225 Q15926029 Q181380 Q7499182 Q7267612 Q3256852 Q734914 Q706219 Q4858773 Q2248916 Q241706 Q11138373 Q716405 Q838069 Q4762529 Q2106901 Q379462 Q1365182 Q1822543 Q443201 Q18653038 Q1532779 Q3504763 Q7494136 Q865938 Q3566068 Q1069890 Q11068000 Q3566095 Q1291844 Q15632621 Q558251 Q710109 Q1777502 Q381822 Q8263391 Q16965564 Q3461565 Q8340924 Q2585778 Q3412377 Q9370882 Q7967446
action filter_type
action find_reverse
entity Q42622
relation P19
type Q502895
[ANSWERS] have location of birth at that city
SELECT DISTINCT ?w WHERE { ?w property:P19 resource:Q42622 . ?w rdf:type ontology:Q502895 }
Wen Zhengming Xu Jun Jiang Shi Du Qiong Sun Zhian Su Tong Xue Susu Zhìxù Fei Junlong Zhou Chen Ye Shengtao Zhou Suhong He Zehui Fan Chengda Zou Zhe Huston Smith Jiang Lan Lu Bin Empress Xiaoquancheng Chen Ruyan Kneeland McNulty Guan Pinghu François Houang Chen Bai Cai Yun Wen Shu Ke Song Wu Zuoren Li Shida Shen Fu Xie Shichen Yen Chia-kan Gong Zheng Ru Long Feng Guifen Gu Jiegang Zhang Hong Sha-Fei Ouyang Shen Zhou Francis Tien Liu Chi-chun Josephine Siao Hsu Mo Zhang Jun MA De Li Rui Shiu-Ying Hu Qian Gu Liu Jue Wang Yang Carina Lau Barbara Brooks Wallace Tang Yin Chen Yanqing Shen Jiji Luo Zhenyu Lin Zhao Angela Pan Zhang Lu Li Ruofan Meng Jianzhu Li Desheng Wang Shixian Zhang Ling Xu Yinsheng Xu Li Shen Wansan Wen Jia Wang Guxiang Cheng Kaijia Chang I-lin Wang Wu Edward C. T. Chao Hu Sheng Chen Chun Chen Qian Shi Nai'an Fan Zhongyan Xin Fengxia Gao Baoshu Sai Jinhua Cheng Weigao Lu Zhi Qu Lan Wang Chunyu Wang Han
Zhang Jun, Cai Yun and Wang Shixian have location of birth at that city
Zhang Jun Cai Yun Wang Shixian
action filter_type
action find_reverse
entity Suzhou
relation place of birth
type common name
SELECT DISTINCT ?w WHERE { ?w property:place_of_birth resource:Suzhou . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1288593 Q42622
P19 P190
Q56061
USER
Which administrative territories are partner towns of Suzhou or are the birthplace of Hans-Dieter Haas ?
OR((Q42622,P190,c(Q56061)), (Q1288593,P19,c(Q56061)))
action filter_type
action union
action find
entity Q42622
relation P190
action find
entity Q1288593
relation P19
type Q56061
{'OR': [['Q42622', 'P190', {'concept': 'Q56061'}], ['Q1288593', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . { { resource:Q1288593 property:P19 ?b } UNION { resource:Q42622 property:P190 ?b } } }
Hans-Dieter Haas Suzhou
action filter_type
action union
action find
entity Suzhou
relation sister city
action find
entity Hans-Dieter Haas
relation place of birth
type administrative territorial entity
{'OR': [['Suzhou', 'sister city', {'concept': 'administrative territorial entity'}], ['Hans-Dieter Haas', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . { { resource:Hans-Dieter_Haas property:place_of_birth ?b } UNION { resource:Suzhou property:sister_city ?b } } }
[]
administrative territorial entity
Q42126 Q986336 Q26234 Q1289 Q2132 Q16568 Q184345 Q6106 Q40269 Q1663450
SYSTEM
Some of them are Yeongju, Grootfontein, Esbjerg, Grenoble, Victoria, Jacksonville, Viña del Mar, Portland, Porto Alegre, Portland
Q641 Q802 Q47887 Q986336 Q42150 Q3834 Q189128 Q200731 Q16568 Q217156 Q983845 Q1663450 Q42126 Q208893 Q184345 Q1289 Q988588 Q429864 Q2132 Q2397257 Q40269 Q42140 Q6106 Q26234 Q838791
OR((Q42622,P190,c(Q56061)), (Q1288593,P19,c(Q56061)))
action filter_type
action union
action find
entity Q42622
relation P190
action find
entity Q1288593
relation P19
type Q56061
[ANSWERS] are partner towns of Suzhou or are the birthplace of Hans-Dieter Haas
{'OR': [['Q42622', 'P190', {'concept': 'Q56061'}], ['Q1288593', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . { { resource:Q1288593 property:P19 ?b } UNION { resource:Q42622 property:P190 ?b } } }
Venice Nowy Sącz Nijmegen Grootfontein Taebaek Konstanz León Tottori Jacksonville Ismaïlia South El Monte Portland Yeongju Bourgoin-Jallieu Viña del Mar Grenoble Wyrzysk Riihimäki Victoria Taupo Porto Alegre Jeonju Portland Esbjerg Whittier
Yeongju, Grootfontein, Esbjerg, Grenoble, Victoria, Jacksonville, Viña del Mar, Portland, Porto Alegre and Portland are partner towns of Suzhou or are the birthplace of Hans-Dieter Haas
Yeongju Grootfontein Esbjerg Grenoble Victoria Jacksonville Viña del Mar Portland Porto Alegre Portland
action filter_type
action union
action find
entity Suzhou
relation sister city
action find
entity Hans-Dieter Haas
relation place of birth
type administrative territorial entity
{'OR': [['Suzhou', 'sister city', {'concept': 'administrative territorial entity'}], ['Hans-Dieter Haas', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . { { resource:Hans-Dieter_Haas property:place_of_birth ?b } UNION { resource:Suzhou property:sister_city ?b } } }
[]