Simple Question (Direct)
Simple Question
Q197453
P102
Q7278
USER
Which political party is Zhao Shiyan a member of ?
(Q197453,P102,c(Q7278))
action filter_type
action find
entity Q197453
relation P102
type Q7278
['Q197453', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7278 . resource:Q197453 property:P102 ?h }
Zhao Shiyan
action filter_type
action find
entity Zhao Shiyan
relation member of political party
type political party
['Zhao Shiyan', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_party . resource:Zhao_Shiyan property:member_of_political_party ?h }
[]
political party
Q17427
SYSTEM
Communist Party of China
Q17427
(Q197453,P102,c(Q7278))
action filter_type
action find
entity Q197453
relation P102
type Q7278
[ANSWER] is Zhao Shiyan a member of
['Q197453', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7278 . resource:Q197453 property:P102 ?h }
Communist Party of China
Communist Party of China is Zhao Shiyan a member of
Communist Party of China
action filter_type
action find
entity Zhao Shiyan
relation member of political party
type political party
['Zhao Shiyan', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_party . resource:Zhao_Shiyan property:member_of_political_party ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q197453
P20
Q56061
USER
Where did Zhao Shiyan die ?
(Q197453,P20,c(Q56061))
action filter_type
action find
entity Q197453
relation P20
type Q56061
['Q197453', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q197453 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Zhao Shiyan
action filter_type
action find
entity Zhao Shiyan
relation place of death
type administrative territorial entity
['Zhao Shiyan', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Zhao_Shiyan property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686
SYSTEM
Shanghai
Q8686
(Q197453,P20,c(Q56061))
action filter_type
action find
entity Q197453
relation P20
type Q56061
Zhao Shiyan died in [ANSWER]
['Q197453', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q197453 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Shanghai
Zhao Shiyan died in Shanghai
Shanghai
action filter_type
action find
entity Zhao Shiyan
relation place of death
type administrative territorial entity
['Zhao Shiyan', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Zhao_Shiyan property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5364562
Q56061
USER
And what about Ella Schuler?
(Q5364562,P20,c(Q56061))
action filter_type
action find
entity Q5364562
relation P20
type Q56061
['Q5364562', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q5364562 property:P20 ?b }
Ella Schuler
action filter_type
action find
entity Ella Schuler
relation place of death
type administrative territorial entity
['Ella Schuler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Ella_Schuler property:place_of_death ?b }
[]
administrative territorial entity
Q41057
SYSTEM
Topeka
Q41057
(Q5364562,P20,c(Q56061))
action filter_type
action find
entity Q5364562
relation P20
type Q56061
[ANSWER]
['Q5364562', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q5364562 property:P20 ?b }
Topeka
Topeka
action filter_type
action find
entity Ella Schuler
relation place of death
type administrative territorial entity
['Ella Schuler', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Ella_Schuler property:place_of_death ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q197453
P734
Q101352
USER
Who is associated with Zhao Shiyan ?
(Q197453,P734,c(Q101352))
action filter_type
action find
entity Q197453
relation P734
type Q101352
['Q197453', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?o WHERE { resource:Q197453 property:P734 ?o . ?o rdf:type ontology:Q101352 }
Zhao Shiyan
action filter_type
action find
entity Zhao Shiyan
relation family name
type family name
['Zhao Shiyan', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?o WHERE { resource:Zhao_Shiyan property:family_name ?o . ?o rdf:type ontology:family_name }
[]
family name
Q804886
SYSTEM
Zhao
Q804886
(Q197453,P734,c(Q101352))
action filter_type
action find
entity Q197453
relation P734
type Q101352
[ANSWER] is associated with [ANSWER] Shiyan
['Q197453', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?o WHERE { resource:Q197453 property:P734 ?o . ?o rdf:type ontology:Q101352 }
Zhao
Zhao is associated with Zhao Shiyan
Zhao
action filter_type
action find
entity Zhao Shiyan
relation family name
type family name
['Zhao Shiyan', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?o WHERE { resource:Zhao_Shiyan property:family_name ?o . ?o rdf:type ontology:family_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q2342494 Q166142
USER
How many administrative territories are exactly 3 collectables and applications set in ?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 3
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } GROUP BY ?a } . FILTER ( ?p = 3 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 3
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:application ) } } GROUP BY ?a } . FILTER ( ?p = 3 ) }
[]
administrative territorial entity collectable application
SYSTEM
5
Q1748 Q134672 Q2634 Q64 Q42448
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
value 3
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } } GROUP BY ?a } . FILTER ( ?p = 3 ) }
Copenhagen Exeter Naples Berlin Sheffield
5
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
value 3
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:application ) } } GROUP BY ?a } . FILTER ( ?p = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q197453
P19
Q515
USER
Where was Zhao Shiyan born ?
(Q197453,P19,c(Q515))
action filter_type
action find
entity Q197453
relation P19
type Q515
['Q197453', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q197453 property:P19 ?l . ?l rdf:type ontology:Q515 }
Zhao Shiyan
action filter_type
action find
entity Zhao Shiyan
relation place of birth
type city
['Zhao Shiyan', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Zhao_Shiyan property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
city
Q11725
SYSTEM
Chongqing
Q11725
(Q197453,P19,c(Q515))
action filter_type
action find
entity Q197453
relation P19
type Q515
Zhao Shiyan was born in [ANSWER]
['Q197453', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q197453 property:P19 ?l . ?l rdf:type ontology:Q515 }
Chongqing
Zhao Shiyan was born in Chongqing
Chongqing
action filter_type
action find
entity Zhao Shiyan
relation place of birth
type city
['Zhao Shiyan', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Zhao_Shiyan property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people have place of birth as that city ?
(c(Q502895),P19,Q11725)
action count
action filter_type
action find_reverse
entity Q11725
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q11725']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P19 resource:Q11725 . ?k rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Chongqing
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Chongqing']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:place_of_birth resource:Chongqing . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
92
Q3142466 Q197317 Q5091004 Q8975545 Q2594678 Q7967512 Q21229304 Q1375817 Q557244 Q531685 Q7853409 Q5975070 Q7342348 Q16923350 Q761142 Q4251261 Q9052997 Q19609839 Q20684307 Q254441 Q17198929 Q19840383 Q20646548 Q21872816 Q2731855 Q197652 Q530484 Q6540122 Q1932124 Q13550869 Q4778621 Q16661579 Q445304 Q6653441 Q8059992 Q708679 Q5619629 Q6519010 Q16752066 Q93135 Q5646599 Q8070525 Q5925658 Q3570137 Q6816947 Q8071028 Q832352 Q1186674 Q365898 Q19845213 Q21642712 Q3991527 Q706092 Q8053645 Q8070394 Q20090689 Q5728977 Q2234845 Q7979776 Q7849493 Q197453 Q14556922 Q4271313 Q7682163 Q438559 Q1866078 Q6704534 Q8461544 Q8967986 Q7809498 Q7395468 Q16076035 Q9092341 Q238635 Q9076737 Q3208638 Q7160771 Q16729167 Q3575429 Q3575425 Q8969290 Q46254 Q8038955 Q3270698 Q6261339 Q8425704 Q197348 Q25190188 Q15849184 Q5443409 Q536617 Q6544158
(c(Q502895),P19,Q11725)
action count
action filter_type
action find_reverse
entity Q11725
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q11725']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P19 resource:Q11725 . ?k rdf:type ontology:Q502895 }
Lucien Bodard Zhang Yawen Chen Zihan Ju Wenpei Wu Yajun Wang Kai Ma Yong Sun Yu Li Yundi Tian Liang Tuo Tong Tang Li Yao Xia Jiao Jiao Hong Ying Xi Murong Tan Li Cao Yongjing Jeffrey Kang Yang Lei Yuan Xinyue Luo Qin Wang Junkai Wang Fan Ma Mingyu Gi Tei Tian Tian Liao Xiaoyi Xu Bing Fu Wenjun Jiang Qinqin Luo Dan Dai Qing Liu Caodong Yu Yongzhe Sanmao Guo Wenjing Lei Han Xia Jin Shi-Kuo Chang Han Hsiang-ning Zhao Hejing Huang Qian Wu Jianmin Meng Fei Zhou Kehua Yang Baibing Gu Li Wang Hongju Newell Morrison Li Siyuan Tina Chen Chen Kun Yin Mingshan Zhang Yibai Feng Jing Henry T. Yang Gao Yu Wei Xin Tsebin Tchen Zhao Shiyan Xing Xin Liu Peng Tan Zhongyi Shi Tingmao Liu Xiaofeng Luo Senwen Qian Liqun Huang Mengfu Tisa Chang Sa Chen Guo Yingshi Zhang Jin Li Xuerui Yin Tao Shaw-Lan Wang Peggy Yu Gan Rui Zhou Chunya Zhong Biao Huang Xiyang Pi Hongyan Wu Qing Zou Rong John Tu Michael Suen Zhang Zhong Gu Xiong Bai Hua Feng Yun Xiao Guodong Lien Fang Yu
92
action count
action filter_type
action find_reverse
entity Chongqing
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Chongqing']
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:place_of_birth resource:Chongqing . ?k rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q1486 Q8686
P190
Q56061
USER
Which administrative territories are twin cities of Shanghai but not Buenos Aires ?
AND((Q8686,P190,c(Q56061)), NOT((Q1486,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q8686
relation P190
action find
entity Q1486
relation P190
type Q56061
{'AND': [['Q8686', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1486', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q8686 property:P190 ?s . MINUS { resource:Q1486 property:P190 ?s } }
Buenos Aires Shanghai
action filter_type
action difference
action find
entity Shanghai
relation sister city
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
{'AND': [['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Shanghai property:sister_city ?s . MINUS { resource:Buenos_Aires property:sister_city ?s } }
[]
administrative territorial entity
Q37806 Q13580 Q34713 Q58976 Q3889 Q12892 Q133073 Q23311 Q1850 Q36647
SYSTEM
Some of them are Port Vila, Metro Manila, Salzburg, Piraeus, Maputo, Antwerp, Dunedin, City of London, Phnom Penh, Cork
Q109356 Q12892 Q3889 Q648 Q1861 Q35381 Q131694 Q52535 Q1297 Q24826 Q47034 Q269 Q3856 Q36433 Q340 Q36647 Q133073 Q78 Q23311 Q49227 Q41621 Q37806 Q597491 Q612 Q585 Q43509 Q87 Q58976 Q1850 Q13580 Q34713 Q33986 Q959 Q62
AND((Q8686,P190,c(Q56061)), NOT((Q1486,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q8686
relation P190
action find
entity Q1486
relation P190
type Q56061
[ANSWERS] are twin cities of Shanghai but not Buenos Aires
{'AND': [['Q8686', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1486', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q8686 property:P190 ?s . MINUS { resource:Q1486 property:P190 ?s } }
Hamhung Antwerp Maputo Lille Bangkok Colombo Aden Rosario Chicago Liverpool Espoo Tashkent Nicosia Porto Montreal Cork Dunedin Basel City of London Winston-Salem Haifa Port Vila Okahandja Dubai Oslo Guayaquil Alexandria Piraeus Phnom Penh Metro Manila Salzburg Valparaíso Vladivostok San Francisco
Port Vila, Metro Manila, Salzburg, Piraeus, Maputo, Antwerp, Dunedin, City of London, Phnom Penh and Cork are twin cities of Shanghai but not Buenos Aires
Port Vila Metro Manila Salzburg Piraeus Maputo Antwerp Dunedin City of London Phnom Penh Cork
action filter_type
action difference
action find
entity Shanghai
relation sister city
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
{'AND': [['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Shanghai property:sister_city ?s . MINUS { resource:Buenos_Aires property:sister_city ?s } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q56061 Q486972 Q515
USER
Which cities are twin city of around 9 administrative territories or human settlements ?
(c(Q515),P190,c(Q56061)|c(Q486972))
action approx
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q486972
value 9
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?k ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?q rdf:type ?k } GROUP BY ?n } . FILTER ( ?m = 9 ) }
action approx
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type human settlement
value 9
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?k ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?q rdf:type ?k } GROUP BY ?n } . FILTER ( ?m = 9 ) }
[]
administrative territorial entity human settlement city
Q1731 Q1794 Q7003
SYSTEM
Dresden, Frankfurt, Dijon
Q23430 Q60037 Q4024 Q3624 Q52607 Q20934 Q14424 Q2135 Q43196 Q3926 Q11462 Q3214 Q57719 Q3104 Q1794 Q2966 Q2865 Q1362 Q2973 Q1519 Q167109 Q207406 Q6602 Q7003 Q3933 Q2900 Q2100 Q1731 Q2844 Q1711 Q42635 Q9005 Q116417 Q3004 Q2079 Q42007 Q1858 Q1854 Q3126 Q5753 Q185684 Q1720 Q1721 Q44244 Q1789604 Q1865 Q2203 Q1761 Q2795 Q2880 Q2706 Q168648 Q2833 Q3935 Q3750 Q18575 Q3042 Q209988 Q187812 Q2999
(c(Q515),P190,c(Q56061)|c(Q486972))
action approx
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q486972
value 9
[ANSWERS] are twin city of around 9 administrative territories or human settlements
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?k ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?q rdf:type ?k } GROUP BY ?n } . FILTER ( ?m = 9 ) }
Ulaanbaatar Zalaegerszeg Frankfurt (Oder) Addis Ababa Mar del Plata Incheon Nagykanizsa Winnipeg Cincinnati Pretoria Surabaya Cottbus Xuzhou Koblenz Frankfurt Heidelberg Kassel Islamabad Darmstadt Abu Dhabi Eger Mosonmagyaróvár Strasbourg Dijon Celle Quito Duisburg Dresden Brasília Potsdam Wenzhou Brussels Sátoraljaújhely Ingolstadt Leipzig Szombathely Hanoi Ho Chi Minh City Erlangen Samarkand Hefei Mainz Wiesbaden Santa Fe Krnov Kuala Lumpur Arica Dublin Chemnitz Hamm Bremerhaven Sopron Freiburg im Breisgau Windhoek Gera Tucson Offenbach am Main Gödöllő Dunaújváros Würzburg
Dresden, Frankfurt and Dijon are twin city of around 9 administrative territories or human settlements
Dresden Frankfurt Dijon
action approx
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type human settlement
value 9
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?m ) WHERE { VALUES ( ?k ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?q rdf:type ?k } GROUP BY ?n } . FILTER ( ?m = 9 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P206
Q337567 Q355304 Q515
USER
Which cities are situated close to more number of still waterss or watercourses than that city ?
(c(Q515),P206,c(Q337567)|c(Q355304))
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P206 ?y } UNION { ?z property:P206 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q337567 . ?x rdf:type ontology:Q355304 }
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:located_next_to_body_of_water ?y } UNION { ?z property:located_next_to_body_of_water ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:still_waters . ?x rdf:type ontology:watercourse }
[]
still waters watercourse city
Comparative|More/Less|Mult. entity type|Clarification
Q1731
SYSTEM
Did you mean Dresden ?
(c(Q515),P206,c(Q337567)|c(Q355304))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P206 ?y } UNION { ?z property:P206 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q337567 . ?x rdf:type ontology:Q355304 }
Did you mean Dresden ?
Dresden
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:located_next_to_body_of_water ?y } UNION { ?z property:located_next_to_body_of_water ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:still_waters . ?x rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q515),P206,c(Q337567)|c(Q355304))
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
[]
SYSTEM
26
Q3075 Q1865 Q19689 Q3004 Q2865 Q1711 Q2978 Q2973 Q14821 Q4007 Q2706 Q7070 Q2749 Q4174 Q4346 Q3931 Q3750 Q3126 Q3042 Q3046 Q3936 Q2936 Q2100 Q1731 Q2119 Q1720
(c(Q515),P206,c(Q337567)|c(Q355304))
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P206 ?y } UNION { ?z property:P206 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q337567 . ?x rdf:type ontology:Q355304 }
Fürth Kuala Lumpur Tirana Ingolstadt Kassel Potsdam Regensburg Darmstadt Coburg Rosenheim Bremerhaven Eisenach Augsburg Emden Waren (Müritz) Brandenburg an der Havel Gera Erlangen Offenbach am Main Pforzheim Bamberg Oldenburg Duisburg Dresden Mannheim Mainz
26
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:located_next_to_body_of_water ?y } UNION { ?z property:located_next_to_body_of_water ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:still_waters . ?x rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
How many cities are sister town of atleast 6 cities ?
(c(Q515),P190,c(Q515))
action count
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 6
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { FILTER ( ?v >= 6 ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?v ) WHERE { ?t property:P190 ?k . ?t rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 } GROUP BY ?t } }
action count
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 6
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { FILTER ( ?v >= 6 ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?v ) WHERE { ?t property:sister_city ?k . ?t rdf:type ontology:city . ?k rdf:type ontology:city } GROUP BY ?t } }
[]
city city
SYSTEM
12
Q19689 Q1899 Q1486 Q1461 Q205922 Q2079 Q166829 Q2207 Q851056 Q42622 Q2887 Q3616
(c(Q515),P190,c(Q515))
action count
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 6
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { FILTER ( ?v >= 6 ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?v ) WHERE { ?t property:P190 ?k . ?t rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 } GROUP BY ?t } }
Tirana Kyiv Buenos Aires Manila Qiqihar Leipzig Miercurea Nirajului Naga Cristuru Secuiesc Suzhou Santiago Tehran
12
action count
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 6
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { FILTER ( ?v >= 6 ) . { SELECT DISTINCT ?t ( COUNT ( ?k ) AS ?v ) WHERE { ?t property:sister_city ?k . ?t rdf:type ontology:city . ?k rdf:type ontology:city } GROUP BY ?t } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1794
P27
Q502895
USER
Which person is a native of Frankfurt ?
(c(Q502895),P27,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q1794']
SELECT DISTINCT ?h WHERE { ?h property:P27 resource:Q1794 . ?h rdf:type ontology:Q502895 }
Frankfurt
action filter_type
action find_reverse
entity Frankfurt
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Frankfurt']
SELECT DISTINCT ?h WHERE { ?h property:country_of_citizenship resource:Frankfurt . ?h rdf:type ontology:common_name }
[]
common name
Q5879
SYSTEM
Johann Wolfgang von Goethe
Q5879
(c(Q502895),P27,Q1794)
action filter_type
action find_reverse
entity Q1794
relation P27
type Q502895
[ANSWER] is a native of Frankfurt
[{'concept': 'Q502895'}, 'P27', 'Q1794']
SELECT DISTINCT ?h WHERE { ?h property:P27 resource:Q1794 . ?h rdf:type ontology:Q502895 }
Johann Wolfgang von Goethe
Johann Wolfgang von Goethe is a native of Frankfurt
Johann Wolfgang von Goethe
action filter_type
action find_reverse
entity Frankfurt
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Frankfurt']
SELECT DISTINCT ?h WHERE { ?h property:country_of_citizenship resource:Frankfurt . ?h rdf:type ontology:common_name }
[]