Simple Question (Direct)
Simple Question
Q1870912
P166
Q618779
USER
Which award was received by Lothar Loeffler ?
(Q1870912,P166,c(Q618779))
action filter_type
action find
entity Q1870912
relation P166
type Q618779
['Q1870912', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q1870912 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Lothar Loeffler
action filter_type
action find
entity Lothar Loeffler
relation award received
type award
['Lothar Loeffler', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Lothar_Loeffler property:award_received ?i . ?i rdf:type ontology:award }
[]
award
Q10905334
SYSTEM
Officer's Cross of the Order of Merit of the Federal Republic of Germany
Q10905334
(Q1870912,P166,c(Q618779))
action filter_type
action find
entity Q1870912
relation P166
type Q618779
Germany [ANSWER] was received by Lothar Loeffler
['Q1870912', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?i WHERE { resource:Q1870912 property:P166 ?i . ?i rdf:type ontology:Q618779 }
Officer's Cross of the Order of Merit of the Federal Republic of Germany
Germany Officer's Cross of the Order of Merit of the Federal Republic of Germany was received by Lothar Loeffler
Officer's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Lothar Loeffler
relation award received
type award
['Lothar Loeffler', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?i WHERE { resource:Lothar_Loeffler property:award_received ?i . ?i rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1870912
P19
Q56061
USER
Where was that person born ?
(Q10905334,P19,c(Q56061))
action filter_type
action find
entity Q1870912
relation P19
type Q56061
['Q10905334', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1870912 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Lothar Loeffler
action filter_type
action find
entity Lothar Loeffler
relation place of birth
type administrative territorial entity
["Officer's Cross of the Order of Merit of the Federal Republic of Germany", 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Lothar_Loeffler property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1729
SYSTEM
Erfurt
Q1729
(Q10905334,P19,c(Q56061))
action filter_type
action find
entity Q1870912
relation P19
type Q56061
That person was born in [ANSWER]
['Q10905334', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1870912 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Erfurt
That person was born in Erfurt
Erfurt
action filter_type
action find
entity Lothar Loeffler
relation place of birth
type administrative territorial entity
["Officer's Cross of the Order of Merit of the Federal Republic of Germany", 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Lothar_Loeffler property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729
P17
Q1048835
USER
Which political territory is that administrative territory a part of ?
(Q1729,P17,c(Q1048835))
action filter_type
action find
entity Q1729
relation P17
type Q1048835
['Q1729', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q1729 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Erfurt
action filter_type
action find
entity Erfurt
relation country
type political territorial entity
['Erfurt', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Erfurt property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1729,P17,c(Q1048835))
action filter_type
action find
entity Q1729
relation P17
type Q1048835
[ANSWER] is that administrative territory a part of
['Q1729', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { resource:Q1729 property:P17 ?o . ?o rdf:type ontology:Q1048835 }
Germany
Germany is that administrative territory a part of
Germany
action filter_type
action find
entity Erfurt
relation country
type political territorial entity
['Erfurt', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Erfurt property:country ?o . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729
P190
Q515
USER
Which cities are the sister cities of that administrative territory ?
(Q183,P190,c(Q515))
action filter_type
action find
entity Q1729
relation P190
type Q515
['Q183', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q1729 property:P190 ?l . ?l rdf:type ontology:Q515 }
Erfurt
action filter_type
action find
entity Erfurt
relation sister city
type city
['Germany', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Erfurt property:sister_city ?l . ?l rdf:type ontology:city }
[]
city
Q57719 Q1720
SYSTEM
Xuzhou, Mainz
Q57719 Q1720
(Q183,P190,c(Q515))
action filter_type
action find
entity Q1729
relation P190
type Q515
[ANSWERS] are the sister cities of that administrative territory
['Q183', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q1729 property:P190 ?l . ?l rdf:type ontology:Q515 }
Xuzhou Mainz
Xuzhou and Mainz are the sister cities of that administrative territory
Xuzhou Mainz
action filter_type
action find
entity Erfurt
relation sister city
type city
['Germany', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Erfurt property:sister_city ?l . ?l rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q57719 Q1720
P190
Q515
USER
Which cities are partner towns of Xuzhou and Mainz ?
(Q57719,P190,c(Q515)) (Q1720,P190,c(Q515))
action union
action filter_type
action find
entity Q57719
relation P190
type Q515
action filter_type
action find
entity Q1720
relation P190
type Q515
['Q57719', 'P190', {'concept': 'Q515'}] ['Q1720', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { resource:Q1720 property:P190 ?p . ?p rdf:type ontology:Q515 } UNION { resource:Q57719 property:P190 ?p . ?p rdf:type ontology:Q515 } }
Xuzhou Mainz
action union
action filter_type
action find
entity Xuzhou
relation sister city
type city
action filter_type
action find
entity Mainz
relation sister city
type city
['Xuzhou', 'sister city', {'concept': 'city'}] ['Mainz', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { resource:Mainz property:sister_city ?p . ?p rdf:type ontology:city } UNION { resource:Xuzhou property:sister_city ?p . ?p rdf:type ontology:city } }
[]
city
Q463171 Q7003
SYSTEM
Handa, Dijon
Q463171 Q7003
(Q57719,P190,c(Q515)) (Q1720,P190,c(Q515))
action union
action filter_type
action find
entity Q57719
relation P190
type Q515
action filter_type
action find
entity Q1720
relation P190
type Q515
[ANSWERS] are partner towns of Xuzhou and Mainz
['Q57719', 'P190', {'concept': 'Q515'}] ['Q1720', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { { resource:Q1720 property:P190 ?p . ?p rdf:type ontology:Q515 } UNION { resource:Q57719 property:P190 ?p . ?p rdf:type ontology:Q515 } }
Handa Dijon
Handa and Dijon are partner towns of Xuzhou and Mainz
Handa Dijon
action union
action filter_type
action find
entity Xuzhou
relation sister city
type city
action filter_type
action find
entity Mainz
relation sister city
type city
['Xuzhou', 'sister city', {'concept': 'city'}] ['Mainz', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { { resource:Mainz property:sister_city ?p . ?p rdf:type ontology:city } UNION { resource:Xuzhou property:sister_city ?p . ?p rdf:type ontology:city } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q463171
P159
Q43229
USER
Which organizations have HQ at that city ?
(c(Q43229),P159,Q463171)
action filter_type
action find_reverse
entity Q463171
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q463171']
SELECT DISTINCT ?t WHERE { ?t property:P159 resource:Q463171 . ?t rdf:type ontology:Q43229 }
Handa
action filter_type
action find_reverse
entity Handa
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Handa']
SELECT DISTINCT ?t WHERE { ?t property:headquarters_location resource:Handa . ?t rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q463171
SYSTEM
Did you mean Handa ?
Q463171 Q7003
(c(Q43229),P159,Q463171) (c(Q43229),P159,Q7003)
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q463171'] [{'concept': 'Q43229'}, 'P159', 'Q7003']
SELECT DISTINCT ?t WHERE { ?t property:P159 resource:Q463171 . ?t rdf:type ontology:Q43229 }
Handa Dijon
Did you mean Handa ?
Handa
[{'concept': 'organization'}, 'headquarters location', 'Handa'] [{'concept': 'organization'}, 'headquarters location', 'Dijon']
SELECT DISTINCT ?t WHERE { ?t property:headquarters_location resource:Handa . ?t rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P159,Q463171)
[{'concept': 'Q43229'}, 'P159', 'Q463171']
[{'concept': 'organization'}, 'headquarters location', 'Handa']
[]
Q11342276 Q11584534
SYSTEM
Mizkan, Chita Noriai
Q11342276 Q11584534
(c(Q43229),P159,Q463171)
action filter_type
action find_reverse
entity Q463171
relation P159
type Q43229
[ANSWERS] have HQ at that city
[{'concept': 'Q43229'}, 'P159', 'Q463171']
SELECT DISTINCT ?t WHERE { ?t property:P159 resource:Q463171 . ?t rdf:type ontology:Q43229 }
Mizkan Chita Noriai
Mizkan and Chita Noriai have HQ at that city
Mizkan Chita Noriai
action filter_type
action find_reverse
entity Handa
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Handa']
SELECT DISTINCT ?t WHERE { ?t property:headquarters_location resource:Handa . ?t rdf:type ontology:organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q515 Q4830453 Q874405
USER
Which cities are the head offices of min number of business enterprises or social groups ?
(c(Q4830453)|c(Q874405),P159,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?n WHERE { VALUES ( ?y ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } . ?p rdf:type ?y } GROUP BY ?n } . { SELECT DISTINCT ( MIN ( ?m ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?x WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?x } } }
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?n WHERE { VALUES ( ?y ) { ( ontology:business_enterprise ) ( ontology:social_group ) } . ?p rdf:type ?y } GROUP BY ?n } . { SELECT DISTINCT ( MIN ( ?m ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?x WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?x } } }
[]
city business enterprise social group
Q16506 Q270704 Q7003
SYSTEM
České Budějovice, Třebíč, Dijon
Q386691 Q944051 Q496702 Q10127 Q643878 Q10124 Q213278 Q873835 Q3974 Q34412 Q703158 Q835227 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q25282 Q609350 Q664895 Q27860 Q3806 Q58401 Q42651 Q209785 Q360326 Q58273 Q838652 Q68862 Q695895 Q43199 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q2427117 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q14932 Q71266 Q846338 Q816728 Q696777 Q58570 Q653389 Q1019083 Q20934 Q41474 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q1000029 Q1624 Q373023 Q1629 Q74957 Q653446 Q8131 Q362959 Q210493 Q11462 Q3214 Q83786 Q505208 Q605256 Q374477 Q16520 Q220445 Q330409 Q317834 Q192271 Q58710 Q375651 Q69060 Q75961 Q3069 Q592065 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q507846 Q375097 Q695930 Q9085 Q390413 Q203027 Q331577 Q4348183 Q213263 Q425492 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q194087 Q291745 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q694308 Q646805 Q235 Q1889017 Q161176 Q79535 Q460829 Q167668 Q270704 Q2509609 Q459787 Q15734 Q209683 Q163888 Q207030 Q207408 Q877941 Q316841 Q873583 Q237699 Q1757191 Q1209 Q3904 Q330007 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q502486 Q56759 Q641491 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q75110 Q460812 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q3075 Q239597 Q850332 Q861621 Q177149 Q850344 Q496319 Q820496 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q518992 Q373564 Q137271 Q1010158 Q1473 Q658058 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q8156 Q14440 Q404599 Q42007 Q1379299 Q1856 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q3826 Q492366 Q696407 Q58210 Q214942 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q58576 Q328605 Q71247 Q75336 Q326956 Q243293 Q3126 Q571051 Q3046 Q594275 Q2936 Q372791 Q463171 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q3852 Q485581 Q485583 Q869027 Q206872 Q390792 Q5972 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q3866 Q34405 Q1723 Q208863 Q427265 Q470369 Q2209 Q2200 Q533241 Q16506 Q1013864 Q76010 Q633996 Q185684 Q59095 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q17189 Q830411 Q1019675 Q851680 Q740863 Q3014 Q634022 Q189823 Q242882 Q40626 Q242885 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q57948 Q236197 Q72877 Q954569 Q2880 Q488134 Q132997 Q5217 Q696643 Q269634 Q285488 Q819603 Q851155 Q210628 Q3838 Q850676 Q551658 Q20073 Q990352 Q7003 Q3933 Q3919 Q3751 Q59218 Q3200 Q696412 Q844852 Q41278 Q1205932 Q823927 Q386661 Q1019956 Q386668 Q25475 Q523956 Q328619 Q786762 Q4060 Q71339 Q542154 Q733979 Q508670 Q66485 Q58422 Q2900 Q857285 Q23768 Q58584 Q1000101 Q842923 Q92277 Q80989 Q873596 Q329754 Q721163 Q390817 Q207309 Q187812 Q125604 Q2999 Q1088790
(c(Q4830453)|c(Q874405),P159,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
[ANSWERS] are the head offices of min number of business enterprises or social groups
[[{'concept': 'Q4830453'}, {'concept': 'Q874405'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?n WHERE { VALUES ( ?y ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } . ?p rdf:type ?y } GROUP BY ?n } . { SELECT DISTINCT ( MIN ( ?m ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?x WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:Q4830453 ) ( ontology:Q874405 ) } } GROUP BY ?x } } }
Niiza City Horní Jiřetín Goshogawara Tangerang Settsu Cilegon Kodaira Tomioka Landshut Foshan Velké Meziříčí Ineu Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Danang Kawanishi Uherský Brod Jayapura Tübingen Shijiazhuang Wuxi Ichikawa Tongling Taizhou Nakano Longyan Urasoe Omaha Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Mníšek pod Brdy Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Langen (Hessen) Yichang Suwa Kyōtanabe Nisshin Handan Nobeoka Napajedla Incheon Kingstown Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kraslice Pasig Weihai Zamboanga City Anshan Tsuchiura Palembang Xinyu Yantai Surabaya Cottbus Shimla Ouarzazate Shimada Ashikaga Busan Kuching Ústí nad Orlicí Kokubunji City Guiyang Langfang Valašské Meziříčí Xining Biñan Bottrop Ginowan Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Sebiș Tiszaújváros Hirakawa Mandaluyong Tomakomai Tsu Abrud Athkatla Tama City Luzhou Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hirosaki Ílhavo Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Habikino Nanto Monaco Mandaue Fukushima Fort Smith Matsusaka Liepāja Třebíč Sunchales Iloilo City Izumi Tokoname Ageo Ziyang Vác Echizen Karlovo Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Mbabane Kunitachi City Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Mobara Olongapo Kakamigahara Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Dandong Naruto Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Fürth Neratovice Tagawa Nankoku Obihiro Sakado Kashihara Kōnan Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Călan Liaocheng Kota Kinabalu Letohrad Davao City Wakō City Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Bandar Lampung Iquique Luohe Szombathely Smyrna Malaybalay Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Muscat Norden Hakusan Jinhua Kazincbarcika Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Xingtai Iizuka Jingzhou Chaoyang Uji Sekondi-Takoradi Erlangen Tsubame Pforzheim General Santos Oldenburg Jining Handa Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Worms Aveiro Anan Tsurugashima Ajka Kanuma Medan Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Dodoma Jingdezhen Batangas City Hachiōji City Yibin Kolín Roxas Tuguegarao Shimotsuma České Budějovice Hluk Santa Rosa Kameoka Hefei Zhuhai Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Pasay Körmend Nové Město nad Metují Kazo Česká Lípa Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Mitaka City Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Aue Hino City Datong Vyškov Hamm Ontario Florianópolis Bacolod Kashiba Tachikawa City Iligan Munakata Kasai Machida City Kinshasa Blansko Vila Nova de Famalicão Hohenstein-Ernstthal Kizugawa Dijon Celle Gaborone Praia Dongguan Salzgitter Izumi Ueda Ulsan Takizawa Higashine Fujisawa Moravské Budějovice Daitō Batumi Auerbach in der Oberpfalz Noda Hroznětín Hürth Xiaogan Koronadal Eniwa Chișineu-Criș Jaipur Tangshan Quito Kitamoto Las Vegas Baoding Vlašim Pomáz Jilin City Bhopal Niimi Kiyose City Itō Ichinoseki Tokushima Dunaújváros Găești Würzburg Zsámbék
České Budějovice, Třebíč and Dijon are the head offices of min number of business enterprises or social groups
České Budějovice Třebíč Dijon
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
[[{'concept': 'business enterprise'}, {'concept': 'social group'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?l = ?j ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) ?n WHERE { VALUES ( ?y ) { ( ontology:business_enterprise ) ( ontology:social_group ) } . ?p rdf:type ?y } GROUP BY ?n } . { SELECT DISTINCT ( MIN ( ?m ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?x WHERE { ?q rdf:type ?h . VALUES ( ?h ) { ( ontology:business_enterprise ) ( ontology:social_group ) } } GROUP BY ?x } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7003
P551
Q502895
USER
Which people live in that city ?
(c(Q502895),P551,Q7003)
action filter_type
action find_reverse
entity Q7003
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q7003']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q7003 . ?f rdf:type ontology:Q502895 }
Dijon
action filter_type
action find_reverse
entity Dijon
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Dijon']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Dijon . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q270704
SYSTEM
Did you mean Třebíč ?
Q16506 Q270704 Q7003
(c(Q502895),P551,Q16506) (c(Q502895),P551,Q270704) (c(Q502895),P551,Q7003)
[ANSWER]
[{'concept': 'Q502895'}, 'P551', 'Q16506'] [{'concept': 'Q502895'}, 'P551', 'Q270704'] [{'concept': 'Q502895'}, 'P551', 'Q7003']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q7003 . ?f rdf:type ontology:Q502895 }
České Budějovice Třebíč Dijon
Did you mean Třebíč ?
Třebíč
[{'concept': 'common name'}, 'residence', 'České Budějovice'] [{'concept': 'common name'}, 'residence', 'Třebíč'] [{'concept': 'common name'}, 'residence', 'Dijon']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Dijon . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Dijon. Could you tell me the answer for that?
(c(Q502895),P551,Q7003)
Q7003
[{'concept': 'Q502895'}, 'P551', 'Q7003']
[{'concept': 'common name'}, 'residence', 'Dijon']
[]
Q3379225 Q5040893 Q3570582
SYSTEM
Philippe Anginot, Carl Ulysses von Salis-Marschlins, Xavier-Laurent Petit
Q3379225 Q3570582 Q507351 Q3018244 Q5040893 Q16664723
(c(Q502895),P551,Q7003)
action filter_type
action find_reverse
entity Q7003
relation P551
type Q502895
[ANSWERS] live in that city
[{'concept': 'Q502895'}, 'P551', 'Q7003']
SELECT DISTINCT ?f WHERE { ?f property:P551 resource:Q7003 . ?f rdf:type ontology:Q502895 }
Philippe Anginot Xavier-Laurent Petit Vincent Millot David Lagon Carl Ulysses von Salis-Marschlins Michel  Ferracci
Philippe Anginot, Carl Ulysses von Salis-Marschlins and Xavier-Laurent Petit live in that city
Philippe Anginot Carl Ulysses von Salis-Marschlins Xavier-Laurent Petit
action filter_type
action find_reverse
entity Dijon
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Dijon']
SELECT DISTINCT ?f WHERE { ?f property:residence resource:Dijon . ?f rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q843009
P36
Q515 Q20667921 Q486972
USER
Which cities are associated to greater number of french administrative divisions and human settlements as the capital than Marcali ?
(c(Q20667921)|c(Q486972),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q843009
relation P36
type Q20667921
type Q486972
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P36 resource:Q843009 . { { ?l rdf:type ontology:Q486972 } UNION { ?l rdf:type ontology:Q20667921 } } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P36 ?g . ?g rdf:type ontology:Q515 . ?v rdf:type ontology:Q20667921 } UNION { ?v property:P36 ?g . ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q515 } } GROUP BY ?g } }
Marcali
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action count
action filter_multi_types
action find_reverse
entity Marcali
relation capital
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:capital resource:Marcali . { { ?l rdf:type ontology:human_settlement } UNION { ?l rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:capital ?g . ?g rdf:type ontology:city . ?v rdf:type ontology:type_of_french_administrative_division } UNION { ?v property:capital ?g . ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:city } } GROUP BY ?g } }
[]
city type of french administrative division human settlement
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q23482 Q6602 Q52564 Q42750 Q6582 Q456 Q7003 Q25475
(c(Q20667921)|c(Q486972),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q843009
relation P36
type Q20667921
type Q486972
[ANSWERS] are associated to greater number of french administrative divisions and human settlements as the capital than Marcali
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:P36 resource:Q843009 . { { ?l rdf:type ontology:Q486972 } UNION { ?l rdf:type ontology:Q20667921 } } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P36 ?g . ?g rdf:type ontology:Q515 . ?v rdf:type ontology:Q20667921 } UNION { ?v property:P36 ?g . ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q515 } } GROUP BY ?g } }
Marseille Strasbourg Maloe Verevo Vojskovitsy Carcassonne Lyon Dijon Batumi
Marseille, Lyon and Dijon are associated to greater number of french administrative divisions and human settlements as the capital than Marcali
Marseille Lyon Dijon
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action count
action filter_multi_types
action find_reverse
entity Marcali
relation capital
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { ?l property:capital resource:Marcali . { { ?l rdf:type ontology:human_settlement } UNION { ?l rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:capital ?g . ?g rdf:type ontology:city . ?v rdf:type ontology:type_of_french_administrative_division } UNION { ?v property:capital ?g . ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:city } } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q178878
P36
Q515 Q20667921 Q486972
USER
And what about Békéscsaba?
(c(Q20667921)|c(Q486972),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q178878
relation P36
type Q20667921
type Q486972
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?s WHERE { { ?b property:P36 ?s . ?b rdf:type ontology:Q486972 . ?s rdf:type ontology:Q515 } UNION { ?b property:P36 ?s . ?s rdf:type ontology:Q515 . ?b rdf:type ontology:Q20667921 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:P36 resource:Q178878 . { { ?a rdf:type ontology:Q20667921 } UNION { ?a rdf:type ontology:Q486972 } } } } . FILTER ( ?i > ?n ) }
Békéscsaba
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action count
action filter_multi_types
action find_reverse
entity Békéscsaba
relation capital
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?s WHERE { { ?b property:capital ?s . ?b rdf:type ontology:human_settlement . ?s rdf:type ontology:city } UNION { ?b property:capital ?s . ?s rdf:type ontology:city . ?b rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:capital resource:Békéscsaba . { { ?a rdf:type ontology:type_of_french_administrative_division } UNION { ?a rdf:type ontology:human_settlement } } } } . FILTER ( ?i > ?n ) }
[]
city type of french administrative division human settlement
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q23482 Q6602 Q52564 Q42750 Q6582 Q456 Q7003 Q25475
(c(Q20667921)|c(Q486972),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q20667921
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q178878
relation P36
type Q20667921
type Q486972
[ANSWERS]
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?s WHERE { { ?b property:P36 ?s . ?b rdf:type ontology:Q486972 . ?s rdf:type ontology:Q515 } UNION { ?b property:P36 ?s . ?s rdf:type ontology:Q515 . ?b rdf:type ontology:Q20667921 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:P36 resource:Q178878 . { { ?a rdf:type ontology:Q20667921 } UNION { ?a rdf:type ontology:Q486972 } } } } . FILTER ( ?i > ?n ) }
Marseille Strasbourg Maloe Verevo Vojskovitsy Carcassonne Lyon Dijon Batumi
Marseille Lyon Dijon
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type type of french administrative division
action find_reverse_tuple_counts
relation capital
type city
type human settlement
action count
action filter_multi_types
action find_reverse
entity Békéscsaba
relation capital
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?s WHERE { { ?b property:capital ?s . ?b rdf:type ontology:human_settlement . ?s rdf:type ontology:city } UNION { ?b property:capital ?s . ?s rdf:type ontology:city . ?b rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { ?a property:capital resource:Békéscsaba . { { ?a rdf:type ontology:type_of_french_administrative_division } UNION { ?a rdf:type ontology:human_settlement } } } } . FILTER ( ?i > ?n ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7003
P138
Q17444909
USER
Which astronomical object type is the eponym of that city ?
(c(Q17444909),P138,Q7003)
action filter_type
action find_reverse
entity Q7003
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q7003']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q7003 . ?i rdf:type ontology:Q17444909 }
Dijon
action filter_type
action find_reverse
entity Dijon
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Dijon']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Dijon . ?i rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Clarification for simple ques.
Q7003
SYSTEM
Did you mean Dijon ?
Q23482 Q456 Q7003
(c(Q17444909),P138,Q23482) (c(Q17444909),P138,Q456) (c(Q17444909),P138,Q7003)
[ANSWER]
[{'concept': 'Q17444909'}, 'P138', 'Q23482'] [{'concept': 'Q17444909'}, 'P138', 'Q456'] [{'concept': 'Q17444909'}, 'P138', 'Q7003']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q7003 . ?i rdf:type ontology:Q17444909 }
Marseille Lyon Dijon
Did you mean Dijon ?
Dijon
[{'concept': 'astronomical object type'}, 'named after', 'Marseille'] [{'concept': 'astronomical object type'}, 'named after', 'Lyon'] [{'concept': 'astronomical object type'}, 'named after', 'Dijon']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Dijon . ?i rdf:type ontology:astronomical_object_type }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q17444909),P138,Q7003)
[{'concept': 'Q17444909'}, 'P138', 'Q7003']
[{'concept': 'astronomical object type'}, 'named after', 'Dijon']
[]
Q302271
SYSTEM
9379 Dijon
Q302271
(c(Q17444909),P138,Q7003)
action filter_type
action find_reverse
entity Q7003
relation P138
type Q17444909
[ANSWER] is the eponym of that city
[{'concept': 'Q17444909'}, 'P138', 'Q7003']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q7003 . ?i rdf:type ontology:Q17444909 }
9379 Dijon
9379 Dijon is the eponym of that city
9379 Dijon
action filter_type
action find_reverse
entity Dijon
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Dijon']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Dijon . ?i rdf:type ontology:astronomical_object_type }
[]