Simple Question (Direct)
Simple Question
Q1561232
P19
Q515
USER
Where was Günter Wolf born ?
(Q1561232,P19,c(Q515))
action filter_type
action find
entity Q1561232
relation P19
type Q515
['Q1561232', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q1561232 property:P19 ?j }
Günter Wolf
action filter_type
action find
entity Günter Wolf
relation place of birth
type city
['Günter Wolf', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Günter_Wolf property:place_of_birth ?j }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q1561232,P19,c(Q515))
action filter_type
action find
entity Q1561232
relation P19
type Q515
Günter Wolf was born in [ANSWER]
['Q1561232', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . resource:Q1561232 property:P19 ?j }
Dresden
Günter Wolf was born in Dresden
Dresden
action filter_type
action find
entity Günter Wolf
relation place of birth
type city
['Günter Wolf', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . resource:Günter_Wolf property:place_of_birth ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1731
P361
Q515
USER
What is that one a part of ?
(Q1731,P361,c(Q515))
action filter_type
action find
entity Q1731
relation P361
type Q515
['Q1731', 'P361', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q1731 property:P361 ?w . ?w rdf:type ontology:Q515 }
Dresden
action filter_type
action find
entity Dresden
relation part of
type city
['Dresden', 'part of', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Dresden property:part_of ?w . ?w rdf:type ontology:city }
[]
city
Q805366
SYSTEM
conurbation Dresden
Q805366
(Q1731,P361,c(Q515))
action filter_type
action find
entity Q1731
relation P361
type Q515
That one a part of is the [ANSWER]
['Q1731', 'P361', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q1731 property:P361 ?w . ?w rdf:type ontology:Q515 }
conurbation Dresden
That one a part of is the conurbation Dresden
conurbation Dresden
action filter_type
action find
entity Dresden
relation part of
type city
['Dresden', 'part of', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Dresden property:part_of ?w . ?w rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q13220204 Q486972
USER
Which cities are called the capital of min number of administrative country subdivisions and human settlements ?
(c(Q13220204)|c(Q486972),P36,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
[[{'concept': 'Q13220204'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q13220204 ) ( ontology:Q486972 ) } } GROUP BY ?t } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?o ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?f ) WHERE { { ?w property:P36 ?j . ?j rdf:type ontology:Q515 . ?w rdf:type ontology:Q13220204 } UNION { ?w property:P36 ?j . ?j rdf:type ontology:Q515 . ?w rdf:type ontology:Q486972 } } GROUP BY ?j } } }
action argmin
action union
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation capital
type city
type human settlement
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:human_settlement ) } } GROUP BY ?t } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?o ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?f ) WHERE { { ?w property:capital ?j . ?j rdf:type ontology:city . ?w rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?w property:capital ?j . ?j rdf:type ontology:city . ?w rdf:type ontology:human_settlement } } GROUP BY ?j } } }
[]
city second-level administrative country subdivision human settlement
Q1486 Q1899 Q1731
SYSTEM
Buenos Aires, Kyiv, Dresden
Q15826 Q384403 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q259498 Q158239 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q320950 Q8254 Q592338 Q43199 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q917888 Q1070920 Q174096 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q3926 Q11462 Q834567 Q851675 Q3214 Q842908 Q1000336 Q911530 Q5838 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q3104 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q1362 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q8684 Q270704 Q3838 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q7248 Q207408 Q1107569 Q1025387 Q316841 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q7568 Q8652 Q842971 Q842976 Q3866 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q1953 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q335427 Q327764 Q2569148 Q9005 Q208471 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q4905 Q207876 Q2978 Q188082 Q2973 Q34261 Q137271 Q855060 Q1473 Q842996 Q679249 Q843021 Q14821 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q1858 Q2096 Q329775 Q1854 Q890122 Q855016 Q3787 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 Q1533 Q200077 Q47916 Q1856 Q3183016 Q328601 Q2410422 Q191097 Q542154 Q2526233 Q946769 Q3126 Q846351 Q739304 Q789233 Q7253 Q157835 Q819103 Q3046 Q368929 Q2936 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q2749 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42751 Q185684 Q187861 Q207311 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q1008737 Q79535 Q5972 Q1720 Q1721 Q1645 Q7578 Q390798 Q3904 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q732300 Q789510 Q470369 Q1863 Q1865 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q517783 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q40626 Q55740 Q250733 Q146317 Q5781 Q187821 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q1761 Q2795 Q750224 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q755701 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q3936 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q13220204)|c(Q486972),P36,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action find_reverse_tuple_counts
relation P36
type Q515
type Q486972
[ANSWERS] are called the capital of min number of administrative country subdivisions and human settlements
[[{'concept': 'Q13220204'}, {'concept': 'Q486972'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q13220204 ) ( ontology:Q486972 ) } } GROUP BY ?t } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?o ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?f ) WHERE { { ?w property:P36 ?j . ?j rdf:type ontology:Q515 . ?w rdf:type ontology:Q13220204 } UNION { ?w property:P36 ?j . ?j rdf:type ontology:Q515 . ?w rdf:type ontology:Q486972 } } GROUP BY ?j } } }
Palu Litoměřice Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Rafaela Kroměříž Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Frankfurt (Oder) Zalaszentgrót Potsdam Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Trutnov Dharan Marawi Omaha Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Vinaròs Mamuju Sorsogon City Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Pretoria Surabaya Bonyhád Takahashi Cottbus Gyál Tandil Hajdúhadház Kabul Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Koblenz Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Kyiv Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Manila Kunszentmiklós Samarinda Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Islamabad Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Seoul Třebíč Kinshasa Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Vác Kerma Maasin Karlovo Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Wellington Masbate City Turquoise Mountain Kediri San Ignacio Kayes Freiberg Tarlac Mianwali City Banjarmasin Békés Tábor Nakatsu Elek Yogyakarta Miami Sellye Mátészalka Dodoma Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Yerevan Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Kisarazu Prachatice Escazú District Brussels Kaifeng Dombóvár Jiankang Brno Metro, Indonesia Hildesheim Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Druzhnaya Gorka Yamaguchi Regensburg Český Krumlov Darmstadt Port-au-Prince Kota Kinabalu Encs Davao City Pécsvárad Kalocsa Tolna Coburg Balatonfüred Worms Annaka Neubrandenburg Kostanay Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Hanoi Edmonton Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Abuja Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Baguio Caracas Morioka Lucknow Malaybalay Ungaran Hirado San Marcos, Costa Rica Tachov Koronadal Carn Dûm Mórahalom Erlangen Miyazu Hajdúnánás Balassagyarmat Padang Zaporizhzhya Berezivka Pforzheim Jindřichův Hradec Oldenburg Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Augsburg Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Palikir Hefei Wollongong Suzuka Khost Imus Aveiro Svitavy Mannheim Orosháza Semily Fort Smith Medan Mainz Wiesbaden Cagayan de Oro Jambi Szentendre Mbabane Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Kolín Andorra la Vella Kuala Lumpur Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Pinamar Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Tacloban San Fernando Wa Veszprém Langsa Tatabánya Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Chemnitz Strakonice Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Ráckeve Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Bamberg Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Hurghada Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
Buenos Aires, Kyiv and Dresden are called the capital of min number of administrative country subdivisions and human settlements
Buenos Aires Kyiv Dresden
action argmin
action union
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation capital
type city
type human settlement
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?l ) AS ?z ) WHERE { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:human_settlement ) } } GROUP BY ?t } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?o ) { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?f ) WHERE { { ?w property:capital ?j . ?j rdf:type ontology:city . ?w rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?w property:capital ?j . ?j rdf:type ontology:city . ?w rdf:type ontology:human_settlement } } GROUP BY ?j } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1899 Q1731
P138
Q17444909
USER
Which astronomical object types have those cities as their toponym ?
(c(Q17444909),P138,Q1486) (c(Q17444909),P138,Q1899) (c(Q17444909),P138,Q1731)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q1486'] [{'concept': 'Q17444909'}, 'P138', 'Q1899'] [{'concept': 'Q17444909'}, 'P138', 'Q1731']
SELECT DISTINCT ?q WHERE { ?q property:P138 ?c . VALUES ( ?c ) { ( resource:Q15826 ) ( resource:Q384403 ) ( resource:Q373542 ) } . ?q rdf:type ontology:Q17444909 }
Buenos Aires Kyiv Dresden
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Buenos Aires'] [{'concept': 'astronomical object type'}, 'named after', 'Kyiv'] [{'concept': 'astronomical object type'}, 'named after', 'Dresden']
SELECT DISTINCT ?q WHERE { ?q property:named_after ?c . VALUES ( ?c ) { ( resource:Palu ) ( resource:Litoměřice ) ( resource:Szigetvár ) } . ?q rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q372831 Q149754 Q735487
SYSTEM
2171 Kiev, 263 Dresda, 3053 Dresden
Q1181355 Q372831 Q149754 Q735487
(c(Q17444909),P138,Q1486) (c(Q17444909),P138,Q1899) (c(Q17444909),P138,Q1731)
action filter_type
action find_reverse
entity prev_answer
relation P138
type Q17444909
[ANSWERS] have those cities as their toponym
[{'concept': 'Q17444909'}, 'P138', 'Q1486'] [{'concept': 'Q17444909'}, 'P138', 'Q1899'] [{'concept': 'Q17444909'}, 'P138', 'Q1731']
SELECT DISTINCT ?q WHERE { ?q property:P138 ?c . VALUES ( ?c ) { ( resource:Q15826 ) ( resource:Q384403 ) ( resource:Q373542 ) } . ?q rdf:type ontology:Q17444909 }
7850 Buenos Aires 2171 Kiev 263 Dresda 3053 Dresden
2171 Kiev, 263 Dresda and 3053 Dresden have those cities as their toponym
2171 Kiev 263 Dresda 3053 Dresden
action filter_type
action find_reverse
entity prev_answer
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Buenos Aires'] [{'concept': 'astronomical object type'}, 'named after', 'Kyiv'] [{'concept': 'astronomical object type'}, 'named after', 'Dresden']
SELECT DISTINCT ?q WHERE { ?q property:named_after ?c . VALUES ( ?c ) { ( resource:Palu ) ( resource:Litoměřice ) ( resource:Szigetvár ) } . ?q rdf:type ontology:astronomical_object_type }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q372831 Q149754 Q735487
P61
Q502895
USER
Which people discovered or invented those astronomical object types ?
(Q372831,P61,c(Q502895)) (Q149754,P61,c(Q502895)) (Q735487,P61,c(Q502895))
action filter_type
action find
entity prev_answer
relation P61
type Q502895
['Q372831', 'P61', {'concept': 'Q502895'}] ['Q149754', 'P61', {'concept': 'Q502895'}] ['Q735487', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?z property:P61 ?f . VALUES ( ?z ) { ( resource:Q1181355 ) ( resource:Q372831 ) ( resource:Q149754 ) } . ?f rdf:type ontology:Q502895 }
2171 Kiev 263 Dresda 3053 Dresden
action filter_type
action find
entity prev_answer
relation discoverer or inventor
type common name
['2171 Kiev', 'discoverer or inventor', {'concept': 'common name'}] ['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}] ['3053 Dresden', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?z property:discoverer_or_inventor ?f . VALUES ( ?z ) { ( resource:7850_Buenos_Aires ) ( resource:2171_Kiev ) ( resource:263_Dresda ) } . ?f rdf:type ontology:common_name }
[]
common name
Q235708 Q78486 Q318611
SYSTEM
Tamara Mikhaylovna Smirnova, Johann Palisa, Nikolai Chernykh
Q235708 Q78486 Q318611
(Q372831,P61,c(Q502895)) (Q149754,P61,c(Q502895)) (Q735487,P61,c(Q502895))
action filter_type
action find
entity prev_answer
relation P61
type Q502895
[ANSWERS] discovered or invented those astronomical object types
['Q372831', 'P61', {'concept': 'Q502895'}] ['Q149754', 'P61', {'concept': 'Q502895'}] ['Q735487', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?z property:P61 ?f . VALUES ( ?z ) { ( resource:Q1181355 ) ( resource:Q372831 ) ( resource:Q149754 ) } . ?f rdf:type ontology:Q502895 }
Tamara Mikhaylovna Smirnova Johann Palisa Nikolai Chernykh
Tamara Mikhaylovna Smirnova, Johann Palisa and Nikolai Chernykh discovered or invented those astronomical object types
Tamara Mikhaylovna Smirnova Johann Palisa Nikolai Chernykh
action filter_type
action find
entity prev_answer
relation discoverer or inventor
type common name
['2171 Kiev', 'discoverer or inventor', {'concept': 'common name'}] ['263 Dresda', 'discoverer or inventor', {'concept': 'common name'}] ['3053 Dresden', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?z property:discoverer_or_inventor ?f . VALUES ( ?z ) { ( resource:7850_Buenos_Aires ) ( resource:2171_Kiev ) ( resource:263_Dresda ) } . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q235708 Q78486 Q318611
P21
Q290
USER
What are the sex of those people ?
(Q235708,P21,c(Q290)) (Q78486,P21,c(Q290)) (Q318611,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q235708', 'P21', {'concept': 'Q290'}] ['Q78486', 'P21', {'concept': 'Q290'}] ['Q318611', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . ?q property:P21 ?t . VALUES ( ?q ) { ( resource:Q235708 ) ( resource:Q78486 ) ( resource:Q318611 ) } }
Tamara Mikhaylovna Smirnova Johann Palisa Nikolai Chernykh
action filter_type
action find
entity prev_answer
relation gender
type sex
['Tamara Mikhaylovna Smirnova', 'gender', {'concept': 'sex'}] ['Johann Palisa', 'gender', {'concept': 'sex'}] ['Nikolai Chernykh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . ?q property:gender ?t . VALUES ( ?q ) { ( resource:Tamara_Mikhaylovna_Smirnova ) ( resource:Johann_Palisa ) ( resource:Nikolai_Chernykh ) } }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q235708,P21,c(Q290)) (Q78486,P21,c(Q290)) (Q318611,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q235708', 'P21', {'concept': 'Q290'}] ['Q78486', 'P21', {'concept': 'Q290'}] ['Q318611', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . ?q property:P21 ?t . VALUES ( ?q ) { ( resource:Q235708 ) ( resource:Q78486 ) ( resource:Q318611 ) } }
female male male
The sex of those people are female, male and male
female male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Tamara Mikhaylovna Smirnova', 'gender', {'concept': 'sex'}] ['Johann Palisa', 'gender', {'concept': 'sex'}] ['Nikolai Chernykh', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . ?q property:gender ?t . VALUES ( ?q ) { ( resource:Tamara_Mikhaylovna_Smirnova ) ( resource:Johann_Palisa ) ( resource:Nikolai_Chernykh ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1731
P108
Q502895
USER
Which person is working for Dresden ?
(c(Q502895),P108,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q1731']
SELECT DISTINCT ?y WHERE { ?y property:P108 resource:Q1731 . ?y rdf:type ontology:Q502895 }
Dresden
action filter_type
action find_reverse
entity Dresden
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Dresden']
SELECT DISTINCT ?y WHERE { ?y property:employer resource:Dresden . ?y rdf:type ontology:common_name }
[]
common name
Q2087955
SYSTEM
Vasily Engelhardt
Q2087955
(c(Q502895),P108,Q1731)
action filter_type
action find_reverse
entity Q1731
relation P108
type Q502895
[ANSWER] is working for Dresden
[{'concept': 'Q502895'}, 'P108', 'Q1731']
SELECT DISTINCT ?y WHERE { ?y property:P108 resource:Q1731 . ?y rdf:type ontology:Q502895 }
Vasily Engelhardt
Vasily Engelhardt is working for Dresden
Vasily Engelhardt
action filter_type
action find_reverse
entity Dresden
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Dresden']
SELECT DISTINCT ?y WHERE { ?y property:employer resource:Dresden . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1731
P190
Q56061
USER
Which administrative territories are twin city of that one ?
(c(Q56061),P190,Q2087955)
action filter_type
action find
entity Q1731
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q2087955']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q1731 property:P190 ?d }
Dresden
action filter_type
action find
entity Dresden
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Vasily Engelhardt']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Dresden property:sister_city ?d }
[]
administrative territorial entity
Q2044 Q34370 Q384
SYSTEM
Florence, Rotterdam, Skopje
Q8385 Q34713 Q3844 Q384 Q2044 Q34370 Q16567 Q182428 Q6225
(c(Q56061),P190,Q2087955)
action filter_type
action find
entity Q1731
relation P190
type Q56061
[ANSWERS] are twin city of that one
[{'concept': 'Q56061'}, 'P190', 'Q2087955']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q1731 property:P190 ?d }
Ostrava Salzburg Brazzaville Skopje Florence Rotterdam Columbus Silistra Coventry
Florence, Rotterdam and Skopje are twin city of that one
Florence Rotterdam Skopje
action filter_type
action find
entity Dresden
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Vasily Engelhardt']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Dresden property:sister_city ?d }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q13220204 Q20667921
USER
How many cities are the sister cities of approximately 3 administrative country subdivisions or french administrative divisions ?
(c(Q13220204)|c(Q20667921),P190,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
value 3
[[{'concept': 'Q13220204'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:P190 ?i . ?q rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q515 } UNION { ?q property:P190 ?i . ?i rdf:type ontology:Q515 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?i } . FILTER ( ?m = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
value 3
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:sister_city ?i . ?q rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:city } UNION { ?q property:sister_city ?i . ?i rdf:type ontology:city . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?i } . FILTER ( ?m = 3 ) }
[]
city second-level administrative country subdivision type of french administrative division
SYSTEM
6
Q2973 Q3104 Q8652 Q1773 Q42007 Q11194
(c(Q13220204)|c(Q20667921),P190,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
value 3
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:P190 ?i . ?q rdf:type ontology:Q13220204 . ?i rdf:type ontology:Q515 } UNION { ?q property:P190 ?i . ?i rdf:type ontology:Q515 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?i } . FILTER ( ?m = 3 ) }
Darmstadt Koblenz Miami Riga Szombathely Sarajevo
6
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
value 3
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?m ) WHERE { { ?q property:sister_city ?i . ?q rdf:type ontology:second-level_administrative_country_subdivision . ?i rdf:type ontology:city } UNION { ?q property:sister_city ?i . ?i rdf:type ontology:city . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?i } . FILTER ( ?m = 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1168511 Q2087955
P20
Q515
USER
Which cities are the places of death of Vasily Engelhardt or Julius Reiber ?
OR((Q2087955,P20,c(Q515)), (Q1168511,P20,c(Q515)))
action filter_type
action union
action find
entity Q2087955
relation P20
action find
entity Q1168511
relation P20
type Q515
{'OR': [['Q2087955', 'P20', {'concept': 'Q515'}], ['Q1168511', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?o WHERE { { ?t property:P20 ?o . VALUES ( ?t ) { ( resource:Q1168511 ) ( resource:Q2087955 ) } } . ?o rdf:type ontology:Q515 }
Julius Reiber Vasily Engelhardt
action filter_type
action union
action find
entity Vasily Engelhardt
relation place of death
action find
entity Julius Reiber
relation place of death
type city
{'OR': [['Vasily Engelhardt', 'place of death', {'concept': 'city'}], ['Julius Reiber', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?o WHERE { { ?t property:place_of_death ?o . VALUES ( ?t ) { ( resource:Julius_Reiber ) ( resource:Vasily_Engelhardt ) } } . ?o rdf:type ontology:city }
[]
city
Q1731 Q2973
SYSTEM
Dresden, Darmstadt
Q1731 Q2973
OR((Q2087955,P20,c(Q515)), (Q1168511,P20,c(Q515)))
action filter_type
action union
action find
entity Q2087955
relation P20
action find
entity Q1168511
relation P20
type Q515
[ANSWERS] are the places of death of Vasily Engelhardt or Julius Reiber
{'OR': [['Q2087955', 'P20', {'concept': 'Q515'}], ['Q1168511', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?o WHERE { { ?t property:P20 ?o . VALUES ( ?t ) { ( resource:Q1168511 ) ( resource:Q2087955 ) } } . ?o rdf:type ontology:Q515 }
Dresden Darmstadt
Dresden and Darmstadt are the places of death of Vasily Engelhardt or Julius Reiber
Dresden Darmstadt
action filter_type
action union
action find
entity Vasily Engelhardt
relation place of death
action find
entity Julius Reiber
relation place of death
type city
{'OR': [['Vasily Engelhardt', 'place of death', {'concept': 'city'}], ['Julius Reiber', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?o WHERE { { ?t property:place_of_death ?o . VALUES ( ?t ) { ( resource:Julius_Reiber ) ( resource:Vasily_Engelhardt ) } } . ?o rdf:type ontology:city }
[]