Simple Question (Direct)
Simple Question
Q3165192
P108
Q3914
USER
Which school employs Jean-Claude Ricci ?
(Q3165192,P108,c(Q3914))
action filter_type
action find
entity Q3165192
relation P108
type Q3914
['Q3165192', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?i WHERE { resource:Q3165192 property:P108 ?i . ?i rdf:type ontology:Q3914 }
Jean-Claude Ricci
action filter_type
action find
entity Jean-Claude Ricci
relation employer
type school
['Jean-Claude Ricci', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?i WHERE { resource:Jean-Claude_Ricci property:employer ?i . ?i rdf:type ontology:school }
[]
school
Q1139065
SYSTEM
Sciences Po Aix
Q1139065
(Q3165192,P108,c(Q3914))
action filter_type
action find
entity Q3165192
relation P108
type Q3914
[ANSWER] employs Jean-Claude Ricci
['Q3165192', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?i WHERE { resource:Q3165192 property:P108 ?i . ?i rdf:type ontology:Q3914 }
Sciences Po Aix
Sciences Po Aix employs Jean-Claude Ricci
Sciences Po Aix
action filter_type
action find
entity Jean-Claude Ricci
relation employer
type school
['Jean-Claude Ricci', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?i WHERE { resource:Jean-Claude_Ricci property:employer ?i . ?i rdf:type ontology:school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3165192
P19
Q515
USER
Which city was that person born at ?
(Q1139065,P19,c(Q515))
action filter_type
action find
entity Q3165192
relation P19
type Q515
['Q1139065', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q3165192 property:P19 ?q . ?q rdf:type ontology:Q515 }
Jean-Claude Ricci
action filter_type
action find
entity Jean-Claude Ricci
relation place of birth
type city
['Sciences Po Aix', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Claude_Ricci property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
city
Q23482
SYSTEM
Marseille
Q23482
(Q1139065,P19,c(Q515))
action filter_type
action find
entity Q3165192
relation P19
type Q515
That person was born in [ANSWER]
['Q1139065', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q3165192 property:P19 ?q . ?q rdf:type ontology:Q515 }
Marseille
That person was born in Marseille
Marseille
action filter_type
action find
entity Jean-Claude Ricci
relation place of birth
type city
['Sciences Po Aix', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Jean-Claude_Ricci property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q15617994 Q1048835
USER
Which cities are twin towns of min number of administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?m ) { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { { ?x rdf:type ontology:Q515 . ?r rdf:type ontology:Q15617994 . ?r property:P190 ?x } UNION { ?r rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q515 . ?r property:P190 ?x } } GROUP BY ?x } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?p ) WHERE { ?c rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?w } . FILTER ( ?p = ?m ) }
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?m ) { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { { ?x rdf:type ontology:city . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:sister_city ?x } UNION { ?r rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:city . ?r property:sister_city ?x } } GROUP BY ?x } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?p ) WHERE { ?c rdf:type ?u . VALUES ( ?u ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?w } . FILTER ( ?p = ?m ) }
[]
city designation for an administrative territorial entity political territorial entity
Q1773 Q23482 Q14960
SYSTEM
Riga, Marseille, Brno
Q386691 Q23430 Q373542 Q39738 Q3572 Q10127 Q823988 Q1017045 Q843006 Q847602 Q830404 Q235746 Q222242 Q362865 Q197379 Q34412 Q849434 Q703158 Q72877 Q205914 Q158239 Q11736 Q83786 Q944051 Q696694 Q1000060 Q460835 Q278877 Q533157 Q217432 Q827041 Q819639 Q385375 Q304848 Q25282 Q10395 Q10397 Q664895 Q858008 Q496667 Q1000467 Q837968 Q27860 Q571808 Q837960 Q3624 Q209785 Q360326 Q612815 Q58273 Q1407742 Q43199 Q1015011 Q695892 Q191120 Q383850 Q58650 Q755686 Q770187 Q392692 Q823874 Q850344 Q205607 Q320943 Q734416 Q193050 Q679428 Q985465 Q217646 Q846335 Q14499 Q873835 Q7473516 Q71266 Q15720 Q1321460 Q1001647 Q638312 Q502196 Q360069 Q602042 Q5779 Q1009095 Q8247 Q425996 Q59100 Q430864 Q1645575 Q501891 Q349983 Q57818 Q349982 Q653372 Q653478 Q911517 Q38968 Q59205 Q843035 Q246723 Q75978 Q198240 Q773312 Q696388 Q373346 Q363166 Q193719 Q935846 Q2973 Q1623 Q147738 Q835227 Q1629 Q43196 Q74957 Q404529 Q653446 Q851001 Q127026 Q912224 Q210493 Q2887 Q3926 Q851419 Q1008686 Q834567 Q714636 Q740800 Q384796 Q23482 Q5690 Q505208 Q1000336 Q937008 Q605256 Q374477 Q860674 Q5838 Q181276 Q819664 Q16520 Q220445 Q3692 Q847546 Q756593 Q368429 Q8131 Q857202 Q192271 Q235004 Q325736 Q92297 Q375651 Q69060 Q71227 Q1632616 Q1019339 Q571033 Q132997 Q120103 Q389515 Q278017 Q216077 Q604625 Q221283 Q461020 Q207408 Q155975 Q569639 Q958157 Q507846 Q3846983 Q503411 Q375097 Q59144 Q386677 Q12062 Q72818 Q630358 Q178878 Q203027 Q2966 Q1482 Q625154 Q179608 Q1467 Q842984 Q817965 Q843018 Q425492 Q68534 Q526335 Q737830 Q5540 Q200500 Q496072 Q645014 Q12245 Q427367 Q107401 Q791458 Q1019335 Q423371 Q16959 Q386635 Q317827 Q1844 Q837154 Q10389 Q650015 Q819629 Q1013843 Q385461 Q291745 Q583620 Q1008983 Q324293 Q986070 Q946893 Q515573 Q8854 Q1362 Q319804 Q838669 Q736276 Q182378 Q858369 Q847577 Q235 Q15379 Q855513 Q104587 Q1019970 Q58401 Q593157 Q161176 Q1725 Q404873 Q683165 Q167668 Q1519 Q8684 Q3838 Q851021 Q459787 Q386026 Q846345 Q837157 Q149097 Q393426 Q316841 Q6602 Q276132 Q517407 Q126995 Q817141 Q753864 Q3866 Q570884 Q325164 Q373101 Q137271 Q158435 Q1008595 Q740810 Q502988 Q193724 Q7003 Q734532 Q911667 Q820760 Q987496 Q7568 Q622594 Q404429 Q978446 Q329775 Q784229 Q657642 Q843028 Q2900 Q76001 Q589880 Q596486 Q851037 Q56759 Q3861 Q1410 Q71108 Q749283 Q642006 Q26837 Q57931 Q426130 Q7786 Q651742 Q606212 Q1852528 Q3919 Q19660 Q496431 Q242108 Q207881 Q3915 Q937688 Q453502 Q75110 Q58324 Q31238 Q42666 Q860669 Q533078 Q58570 Q151958 Q1711 Q487439 Q665097 Q162880 Q174461 Q68614 Q1017806 Q857234 Q17182 Q124375 Q496681 Q3806 Q653402 Q514796 Q416544 Q633983 Q75203 Q57756 Q320939 Q851007 Q335427 Q177149 Q1471150 Q495821 Q208471 Q495802 Q14960 Q495809 Q116417 Q104036 Q368929 Q693237 Q252325 Q250733 Q592497 Q2773 Q781435 Q221214 Q722732 Q740915 Q71284 Q205922 Q840595 Q877266 Q840591 Q632146 Q645567 Q384926 Q647508 Q270806 Q34261 Q198266 Q349976 Q279642 Q756581 Q373564 Q71355 Q643929 Q1473 Q841129 Q1773 Q679249 Q843021 Q954611 Q57970 Q3955 Q6343 Q875070 Q2079 Q933480 Q6829 Q851042 Q844130 Q1575979 Q752838 Q426237 Q850395 Q92324 Q854977 Q1858 Q325555 Q496499 Q252061 Q819613 Q1854 Q166829 Q890122 Q394108 Q497341 Q1013914 Q14169 Q7070 Q655417 Q930396 Q271000 Q58210 Q182852 Q111739 Q16506 Q68481 Q549427 Q335506 Q694370 Q55597 Q374511 Q4174 Q847565 Q377929 Q267708 Q317844 Q1822 Q200077 Q47916 Q846338 Q389495 Q1508 Q385623 Q29003 Q853623 Q3126 Q846351 Q739304 Q1729076 Q75230 Q1430746 Q594275 Q499493 Q372791 Q237683 Q463171 Q246634 Q369628 Q857293 Q1019360 Q5753 Q750587 Q1013850 Q692745 Q158420 Q999916 Q211243 Q210661 Q532560 Q210667 Q911674 Q58178 Q736897 Q185684 Q496080 Q656603 Q217698 Q118213 Q187861 Q207311 Q695911 Q695917 Q7027 Q376233 Q206872 Q390796 Q271917 Q719 Q1720 Q83247 Q851029 Q1645 Q390798 Q3904 Q790370 Q572231 Q7033 Q215755 Q3826 Q2907 Q149108 Q843014 Q591823 Q149105 Q11725 Q1789604 Q349973 Q3768 Q732300 Q789510 Q265555 Q1865 Q2209 Q727143 Q146363 Q532981 Q863739 Q2207 Q1756960 Q2203 Q851056 Q851114 Q180470 Q210365 Q696407 Q76010 Q387211 Q17176 Q349985 Q633996 Q517783 Q571918 Q72778 Q360235 Q1355 Q498060 Q183584 Q3859 Q187136 Q5869 Q144663 Q570427 Q59227 Q1018857 Q75379 Q839796 Q637913 Q75091 Q427769 Q634022 Q837170 Q789261 Q189823 Q496837 Q855086 Q55740 Q226000 Q3075 Q845857 Q825166 Q320798 Q855082 Q59223 Q187821 Q502205 Q203344 Q230843 Q20921 Q319729 Q4175 Q460812 Q189761 Q390156 Q1761 Q373687 Q2795 Q386250 Q378225 Q57866 Q329790 Q263757 Q329797 Q488134 Q2061 Q207222 Q5217 Q890949 Q416669 Q1017247 Q386988 Q854965 Q269634 Q601254 Q161060 Q604385 Q679224 Q158523 Q168648 Q843031 Q843043 Q2833 Q36063 Q3935 Q924085 Q3936 Q146033 Q726993 Q3751 Q3750 Q3616 Q59213 Q3612 Q844852 Q518360 Q171943 Q651322 Q17189 Q386661 Q847557 Q166183 Q158245 Q25475 Q518203 Q523956 Q169064 Q4060 Q652710 Q646766 Q71339 Q1013909 Q950352 Q1530 Q1889017 Q207309 Q66485 Q649214 Q58422 Q40626 Q187812 Q877935 Q954808 Q209983 Q432055 Q240891 Q240489 Q320964 Q23768 Q58584 Q2427155 Q696783 Q170525 Q885482 Q30340 Q92277 Q392429 Q1019371 Q243293 Q59132 Q303478 Q263837 Q275904 Q3852 Q911567 Q1641781 Q104125 Q247387 Q2999 Q16666
(c(Q15617994)|c(Q1048835),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
[ANSWERS] are twin towns of min number of administrative territories or political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?m ) { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { { ?x rdf:type ontology:Q515 . ?r rdf:type ontology:Q15617994 . ?r property:P190 ?x } UNION { ?r rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q515 . ?r property:P190 ?x } } GROUP BY ?x } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?p ) WHERE { ?c rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?w } . FILTER ( ?p = ?m ) }
Niiza City Ulaanbaatar Szigetvár Laoag Tunis Tangerang Kakegawa Protivín Nagykálló Nishinoomote Hajdúszoboszló Kesennuma Kisköre Pingxiang Zhangjiajie Foshan Fuefuki Velké Meziříčí Datong Lijiang Kroměříž Tianjin Shimla Horní Jiřetín Onomichi Humpolec Marugame Český Těšín Tianshui Port Harcourt Beroun Gero Ōmachi Daqing Danang Cirebon Sukabumi Uherský Brod Murayama Muroran Hostinné Băile Tușnad Jayapura Guigang Năvodari Addis Ababa Ichikawa Tongling Garachico Taizhou Horní Bříza Omaha Milevsko Nanao Jēkabpils Litovel Zhangjiakou Nyírbátor Kaminoyama Šumperk Toda Sakado Zirc Matsudo Tsuruoka Érd Tălmaciu Rakovník Mudanjiang Kahoku Samarinda Tomioka Tokyo Yichang Satsumasendai Králíky Budyně nad Ohří Toride Tenri Bengbu Baktalórántháza Banda Aceh Otrokovice Biratnagar Deyang Shantou Nymburk Kostelec nad Orlicí Tahara Heihe Huai'an Hegang Higashihiroshima Mishima Létavértes Liuzhou Heyuan Celldömölk Záhony Calamba Zhumadian Třeboň Toyooka Linyi Ganzhou Cheb Vlăhița Darmstadt Valenzuela Saint Helier Ineu Zamboanga City Cincinnati Anshan Xuchang Tsuchiura Măcin Sakurai Techirghiol Yantai Santiago Pretoria Turnov Ivančice Bonyhád Miyakojima Paks Ōda Marseille Sparta Ouarzazate Tandil Tótkomlós Shimada Ashikaga Tosu Kabul Szolnok Sukagawa Busan Kuching Riyadh Saiki Târgu Neamț Felsőzsolca Palembang Sanuki Guiyang Vigan Ciacova Siping Valašské Meziříčí Xining Shiyan Počátky Město Albrechtice Hulunbuir Florianópolis Kaga Kariya Tiszavasvári Jiujiang Guyuan Cape Coast Imabari Vác Kutná Hora Lahnstein Sezimovo Ústí Sebiș Șimleu Silvaniei Inuyama Tiszaújváros Zhanjiang Kusatsu, Shiga Torgau Haiphong Sedlčany Békéscsaba Tsu Heidelberg Cavite City Komárom Nanning Cebu City Harkány Ikeda Kunszentmiklós Luzhou Nanping Keszthely Mizil Penza Takehara Fujinomiya Túrkeve Stanley Guang'an Sivas Battonya Jílové u Prahy Ștei Ürümqi Hikone Hanamaki Vaduz Simeria Bandung Pannonhalma Toba Dačice Ōmihachiman Ílhavo Dévaványa Vodňany Anyang Chrudim Teiuș Hanzhong Las Piñas Islamabad Sanya Yamatotakada Cernavodă Putrajaya Tōkamachi Susono Monaco Kendari Bük Kyjov Březnice Shijiazhuang Murfatlar Fukushima Lipa Xinyang Poděbrady Liepāja Abu Dhabi Seoul Kinshasa Pâncota Iloilo City Orlová Suzu Covasna Jirkov Žatec Karlovo Strasbourg Pecica Sondershausen Weinan Benešov nad Ploučnicí Kurobe Dodoma Tongliao Kayes Rizhao Kota Kinabalu Vrbno pod Pradědem Vrchlabí Békés Takaoka Slavkov u Brna Dijon Fukaya Elek Mihara Kralupy nad Vltavou Yogyakarta Takayama Jiaozuo Trmice Kiskunhalas Szigethalom Villány Oroszlány Quito San Pablo Pucioasa Fujioka Comarnic Olongapo Doha Gibraltar Frauenstein San Juan Kurayoshi Sorong Taizhou Mianyang Pekanbaru Minamiashigara City Fremantle Třebechovice pod Orebem Gaborone Bucharest Sakaiminato Otaru Ichihara Antananarivo Strmilov Amami Dandong Zhoushan Miki Shaoxing Nichinan Baraolt Handan Yueyang Potsdam Oral Minoh Dezhou Ranchi Sanming Nové Sedlo Shōbara Parañaque Hódmezővásárhely Ebetsu Tübingen Shimoda Baoji Changde Kashiwazaki Liaoyang Lianyungang Mělník Deta Kisarazu Obihiro Fryšták Saku Kaifeng Hekinan Brno Fujimi Sátoraljaújhely Ventspils Jindřichův Hradec Chitose Hajdúdorog Wa Vălenii de Munte Braunschweig Derecske Cugir Litomyšl Fulnek Xiangyang Qiqihar Kamisu Tainai Miyoshi Enying Törökbálint Ōgaki Fujiyoshida Anjō Port-au-Prince Zhuzhou Yichun Myōkō Františkovy Lázně Liaocheng Huanggang Shūnan Davao City Iida Riga Kalocsa Tolna Jeseník Changzhou Weimar Carthage Dagupan Leipzig Luhačovice Speyer Hârlău Nagahama Vratimov Aszód Guangyuan Gōtsu Tonghua Kerekegyháza Hanoi Recaș Kazuno Valea lui Mihai Uozu Ho Chi Minh City Miercurea Nirajului Bolhrad Žirovnice Xianyang Polička Singkawang Eisenach Kenderes Nagakute Bouaké Jinhua Kunming Puerto Princesa České Budějovice Fuzhou Jánoshalma Salto Ayabe Muñoz Oyama Emden Hanyū City Hévíz Sovata Nishio Baguio Morioka Lucknow Suwa Toyokawa Makati Ōmuta, Fukuoka Jiamusi Bátaszék Erlangen Miyazu Hajdúnánás Kardašova Řečice Panjin Košťany General Santos Seto Jining Ōme Handa Zábřeh Sumoto Kamo Dobřany Samarkand Shirakawa Rýmařov Monbetsu Červený Kostelec Vysoké Mýto Yinchuan Musashino Jiayuguan City Chōfu Simontornya Jiaxing Hatsukaichi Hefei Kadoma Jičín Weifang Yamatokōriyama Wollongong Suzuka Kuji Kitakami Straubing Săcueni Ajka Orosháza Kushiro Saginaw Mainz Braga Aleșd Cagayan de Oro Szentendre Mbabane Barcs Chongzuo Nordhausen Xiangtan Muscat Sucre Jablunkov Szarvas Náchod Tanvald Chongqing Krnov Shuangyashan Yamoussoukro Gyomaendrőd Balmazújváros Kitami Kuala Lumpur Roxas Örkény Most Baiyin Kasaoka Naga Poběžovice Arica Cristuru Secuiesc Yasugi Huangshan City Beihai Hakusan Santa Rosa Kamogawa Muntinlupa Suihua Kameoka Pinamar Yulin Taiyuan Ma'anshan Bangalore Mooka Lanzhou Kigali Luoyang Lhasa Hengyang Obernkirchen Chaozhou Nový Bydžov Huludao Borsec Tōgane Benxi Kisbér Kiryū Gura Humorului Balatonboglár Haikou Lincang Sajószentpéter San Fernando Jimbolia Fürth Uwajima Izumo Mohács Csenger Zhongshan Tatabánya Nemuro Baja Zushi Daejeon Urayasu Ibbenbüren Naruto Szekszárd Petrila Dublin Binzhou Chemnitz Ōtake Hagi Yancheng Kamaishi Kadarkút Iwakuni Ontario Yellowknife Zlaté Hory Bacolod Bohumín Yiyang Podbořany Říčany Lenti Tachikawa City Dubí Přibyslav Shizuishan Hajdúböszörmény Ehingen Sopron Vasvár Sárvár Freiburg im Breisgau Vecsés Windhoek Horní Slavkov Bamberg Zamárdi Cotabato City Praia Gera Tehran Qingyuan Antofagasta Ueda Bílina Nanchang Năsăud Pasay Fujisawa Nagai Nabari Písek Batumi Iwanuma Auerbach in der Oberpfalz Sângeorgiu de Pădure Hürth Letovice Tōno Xiaogan Slaný Brtnice Baghdad Mandaue Tokushima Jaipur Csongrád Tangshan Tacloban Dunaújváros Unnan Kaplice Gyöngyös Hamada Higashiōmi Higashimurayama Yonago Las Vegas Baoding Náměšť nad Oslavou Yaizu Agadir Blovice Zhengzhou Jilin City Šternberk Studénka Sekondi-Takoradi Jiangmen Kravaře Ozamiz Flămânzi Worms Nyékládháza Vítkov Lucena Kaba Würzburg Nanjing
Riga, Marseille and Brno are twin towns of min number of administrative territories or political territories
Riga Marseille Brno
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?m ) { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { { ?x rdf:type ontology:city . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:sister_city ?x } UNION { ?r rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:city . ?r property:sister_city ?x } } GROUP BY ?x } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?p ) WHERE { ?c rdf:type ?u . VALUES ( ?u ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?w } . FILTER ( ?p = ?m ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are partner towns of that city ?
(Q1773,P190,c(Q56061))
['Q1773', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19468180 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Riga', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Riga property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1773
SYSTEM
Did you mean Riga ?
(Q1773,P190,c(Q56061)) (Q23482,P190,c(Q56061)) (Q14960,P190,c(Q56061))
[ANSWER]
['Q1773', 'P190', {'concept': 'Q56061'}] ['Q23482', 'P190', {'concept': 'Q56061'}] ['Q14960', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19468180 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Riga ?
Riga
['Riga', 'sister city', {'concept': 'administrative territorial entity'}] ['Marseille', 'sister city', {'concept': 'administrative territorial entity'}] ['Brno', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Riga property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1773,P190,c(Q56061))
['Q1773', 'P190', {'concept': 'Q56061'}]
['Riga', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
25
Q1754 Q727 Q649 Q1867 Q1770 Q11959 Q35493 Q1479 Q16635 Q1520 Q48320 Q211907 Q180233 Q25724 Q2861 Q216 Q189133 Q270 Q25410 Q956 Q2280 Q2044 Q13972 Q1026270 Q16557
(Q1773,P190,c(Q56061))
[ANSWER]
['Q1773', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q19468180 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Stockholm Amsterdam Moscow Taipei Tallinn Alicante Almaty Bordeaux Guam Astana Kōbe Slough Pori Norrköping Rostock Vilnius Cairns Warsaw Aalborg Beijing Minsk Florence Tartu Paita Dallas
25
['Riga', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Riga property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1773
P194
Q1752346
USER
Which assembly is the representative body for Riga ?
(Q1773,P194,c(Q1752346))
action filter_type
action find
entity Q1773
relation P194
type Q1752346
['Q1773', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { resource:Q1773 property:P194 ?i . ?i rdf:type ontology:Q1752346 }
Riga
action filter_type
action find
entity Riga
relation legislative body
type assembly
['Riga', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { resource:Riga property:legislative_body ?i . ?i rdf:type ontology:assembly }
[]
assembly
Q2089528
SYSTEM
Riga City Council
Q2089528
(Q1773,P194,c(Q1752346))
action filter_type
action find
entity Q1773
relation P194
type Q1752346
[ANSWER] is the representative body for Riga
['Q1773', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?i WHERE { resource:Q1773 property:P194 ?i . ?i rdf:type ontology:Q1752346 }
Riga City Council
Riga City Council is the representative body for Riga
Riga City Council
action filter_type
action find
entity Riga
relation legislative body
type assembly
['Riga', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?i WHERE { resource:Riga property:legislative_body ?i . ?i rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1773
P551
Q502895
USER
Who lives in Riga ?
(c(Q502895),P551,Q1773)
action filter_type
action find_reverse
entity Q1773
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q1773']
SELECT DISTINCT ?q WHERE { ?q property:P551 resource:Q1773 . ?q rdf:type ontology:Q502895 }
Riga
action filter_type
action find_reverse
entity Riga
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Riga']
SELECT DISTINCT ?q WHERE { ?q property:residence resource:Riga . ?q rdf:type ontology:common_name }
[]
common name
Q1325975 Q471481 Q2082714
SYSTEM
Herz Frank, Mārtiņš Rubenis, Vsevolods Zeļonijs
Q258892 Q5257842 Q2082714 Q18637882 Q18637880 Q5551564 Q1325975 Q471481 Q6322029 Q492136
(c(Q502895),P551,Q1773)
action filter_type
action find_reverse
entity Q1773
relation P551
type Q502895
[ANSWERS] live in Riga
[{'concept': 'Q502895'}, 'P551', 'Q1773']
SELECT DISTINCT ?q WHERE { ?q property:P551 resource:Q1773 . ?q rdf:type ontology:Q502895 }
Līga Dekmeijere Deniss Pavlovs Vsevolods Zeļonijs Mārtiņš Podžus Jānis Podžus Jeļena Ostapenko Herz Frank Mārtiņš Rubenis Jānis Skroderis Andis Juška
Herz Frank, Mārtiņš Rubenis and Vsevolods Zeļonijs live in Riga
Herz Frank Mārtiņš Rubenis Vsevolods Zeļonijs
action filter_type
action find_reverse
entity Riga
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Riga']
SELECT DISTINCT ?q WHERE { ?q property:residence resource:Riga . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1773
P937
Q502895
USER
Who works at that city ?
(c(Q502895),P937,Q1325975) (c(Q502895),P937,Q471481) (c(Q502895),P937,Q2082714)
action filter_type
action find_reverse
entity Q1773
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q1325975'] [{'concept': 'Q502895'}, 'P937', 'Q471481'] [{'concept': 'Q502895'}, 'P937', 'Q2082714']
SELECT DISTINCT ?q WHERE { ?q property:P937 resource:Q1773 . ?q rdf:type ontology:Q502895 }
Riga
action filter_type
action find_reverse
entity Riga
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Herz Frank'] [{'concept': 'common name'}, 'work location', 'Mārtiņš Rubenis'] [{'concept': 'common name'}, 'work location', 'Vsevolods Zeļonijs']
SELECT DISTINCT ?q WHERE { ?q property:work_location resource:Riga . ?q rdf:type ontology:common_name }
[]
common name
Q298041 Q1359503 Q2537286
SYSTEM
Kārlis Ulmanis, Jānis Ivanovs, Embrik Strand
Q1357888 Q539977 Q5564986 Q18238605 Q16937590 Q1359503 Q16359258 Q564953 Q15451164 Q1297905 Q5548488 Q11238108 Q70337 Q1296891 Q1474692 Q1612101 Q298125 Q106338 Q5729400 Q1462908 Q323916 Q87812 Q16319436 Q620387 Q12128469 Q12361076 Q18018975 Q1694346 Q16362742 Q16362366 Q2537286 Q106356 Q15825786 Q73522 Q16356093 Q16351773 Q2575077 Q21971211 Q5588165 Q71580 Q21517382 Q760785 Q298041 Q1717937 Q645888 Q214557 Q10981088 Q447845 Q13410543 Q1304626 Q16362759 Q13611253 Q78052 Q1341822 Q1539844 Q107014 Q960521 Q215985 Q103120 Q124657 Q3335000 Q825743 Q4525683 Q14623198 Q4532357 Q109429 Q5569619 Q98806 Q16356299
(c(Q502895),P937,Q1325975) (c(Q502895),P937,Q471481) (c(Q502895),P937,Q2082714)
action filter_type
action find_reverse
entity Q1773
relation P937
type Q502895
[ANSWERS] work at that city
[{'concept': 'Q502895'}, 'P937', 'Q1325975'] [{'concept': 'Q502895'}, 'P937', 'Q471481'] [{'concept': 'Q502895'}, 'P937', 'Q2082714']
SELECT DISTINCT ?q WHERE { ?q property:P937 resource:Q1773 . ?q rdf:type ontology:Q502895 }
Ernst Drucker Garlieb Merkel Francis Balodis Tālivaldis Deksnis Bernhard Bielenstein Jānis Ivanovs Jēkabs Bīne Heinrich Dorn Erich Diehl Egon Bönner Georgs Pelēcis Ģederts Eliass Ludwig Bohnstedt Egbert Schwarz Konrad Hentrich Rihards Dubra Vizma Belševica Johann Christoph Berens Arnold Heinrich Feuereisen Friedrich Wilhelm Brederlo Vilhelms Bokslafs Gustav Schmidt Hermann Bergengruen Aleksandrs Čaks Ēriks Ešenvalds Johann Samuel Eduard Haffner Carl Ludwig Paulmann Johann Heinrich Baumann Ludis Bērziņš Liborius von Bergmann Embrik Strand Johann Fischer Liborius Depkin Johann Christoph Brotze Ernests Felsbergs Arnolds Aizsilnieks Wilhelm Schüßler Wolffgang Hartmann Hermann Bruiningk Friedrich Alexander Buhse Alexander Gottschalk von Sengbusch August Albanus Kārlis Ulmanis Jānis Frīdrihs Baumanis Jens Grand Julius von Eckardt Jakob Benjamin Fischer Johann Felsko Augusts Tentelis Martin Fürchtegott Grübler Ludwig Wilhelm Kerkovius Andris Caune Johann Bernhard Fischer Kōrli Stalte Gottlieb Schlegel Johann Gottfried Arndt Pēteris Stučka Johann Friedrich Hartknoch Carl Engel Reinhard Wittram David Hieronymus Grindel Theodor Hermann Pantenius Aleksandrs Šmits Siegfried Bielenstein Zenta Ērgle Heinrich Andreas Contius Johann Below Heinrich Kurt Stever Woldemar Knieriem
Kārlis Ulmanis, Jānis Ivanovs and Embrik Strand work at that city
Kārlis Ulmanis Jānis Ivanovs Embrik Strand
action filter_type
action find_reverse
entity Riga
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Herz Frank'] [{'concept': 'common name'}, 'work location', 'Mārtiņš Rubenis'] [{'concept': 'common name'}, 'work location', 'Vsevolods Zeļonijs']
SELECT DISTINCT ?q WHERE { ?q property:work_location resource:Riga . ?q rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q14087494 Q1359503
P27
Q15617994
USER
Which administrative territories are the native countriesof Jānis Ivanovs or Antoni Casanovas Alís ?
OR((Q1359503,P27,c(Q15617994)), (Q14087494,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1359503
relation P27
action find
entity Q14087494
relation P27
type Q15617994
{'OR': [['Q1359503', 'P27', {'concept': 'Q15617994'}], ['Q14087494', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Q1359503 ) ( resource:Q14087494 ) } . ?f property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Antoni Casanovas Alís Jānis Ivanovs
action filter_type
action union
action find
entity Jānis Ivanovs
relation country of citizenship
action find
entity Antoni Casanovas Alís
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jānis Ivanovs', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Antoni Casanovas Alís', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Jānis_Ivanovs ) ( resource:Antoni_Casanovas_Alís ) } . ?f property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q211
SYSTEM
Spain, Latvia
Q29 Q211
OR((Q1359503,P27,c(Q15617994)), (Q14087494,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1359503
relation P27
action find
entity Q14087494
relation P27
type Q15617994
[ANSWERS] are the native countriesof Jānis Ivanovs or Antoni Casanovas Alís
{'OR': [['Q1359503', 'P27', {'concept': 'Q15617994'}], ['Q14087494', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Q1359503 ) ( resource:Q14087494 ) } . ?f property:P27 ?s } . ?s rdf:type ontology:Q15617994 }
Spain Latvia
Spain and Latvia are the native countriesof Jānis Ivanovs or Antoni Casanovas Alís
Spain Latvia
action filter_type
action union
action find
entity Jānis Ivanovs
relation country of citizenship
action find
entity Antoni Casanovas Alís
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jānis Ivanovs', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Antoni Casanovas Alís', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?f ) { ( resource:Jānis_Ivanovs ) ( resource:Antoni_Casanovas_Alís ) } . ?f property:country_of_citizenship ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14087494
P106
Q12737077
USER
What is the job of Antoni Casanovas Alís ?
(Q29,P106,c(Q12737077)) (Q211,P106,c(Q12737077))
action filter_type
action find
entity Q14087494
relation P106
type Q12737077
['Q29', 'P106', {'concept': 'Q12737077'}] ['Q211', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q14087494 property:P106 ?o }
Antoni Casanovas Alís
action filter_type
action find
entity Antoni Casanovas Alís
relation occupation
type occupation
['Spain', 'occupation', {'concept': 'occupation'}] ['Latvia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:Antoni_Casanovas_Alís property:occupation ?o }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q29,P106,c(Q12737077)) (Q211,P106,c(Q12737077))
action filter_type
action find
entity Q14087494
relation P106
type Q12737077
The job of Antoni Casanovas Alís is a [ANSWER]
['Q29', 'P106', {'concept': 'Q12737077'}] ['Q211', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q14087494 property:P106 ?o }
politician
The job of Antoni Casanovas Alís is a politician
politician
action filter_type
action find
entity Antoni Casanovas Alís
relation occupation
type occupation
['Spain', 'occupation', {'concept': 'occupation'}] ['Latvia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:Antoni_Casanovas_Alís property:occupation ?o }
[]