Simple Question (Direct)
Simple Question
Q17155037
P69
Q159334
USER
What is the secondary school where Roberto Repetto was educated ?
(Q17155037,P69,c(Q159334))
action filter_type
action find
entity Q17155037
relation P69
type Q159334
['Q17155037', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?r WHERE { resource:Q17155037 property:P69 ?r . ?r rdf:type ontology:Q159334 }
Roberto Repetto
action filter_type
action find
entity Roberto Repetto
relation educated at
type secondary school
['Roberto Repetto', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?r WHERE { resource:Roberto_Repetto property:educated_at ?r . ?r rdf:type ontology:secondary_school }
[]
secondary school
Q5142861
SYSTEM
Colegio Nacional de Buenos Aires
Q5142861
(Q17155037,P69,c(Q159334))
action filter_type
action find
entity Q17155037
relation P69
type Q159334
The secondary school Roberto Repetto was educated is the [ANSWER]
['Q17155037', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?r WHERE { resource:Q17155037 property:P69 ?r . ?r rdf:type ontology:Q159334 }
Colegio Nacional de Buenos Aires
The secondary school Roberto Repetto was educated is the Colegio Nacional de Buenos Aires
Colegio Nacional de Buenos Aires
action filter_type
action find
entity Roberto Repetto
relation educated at
type secondary school
['Roberto Repetto', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?r WHERE { resource:Roberto_Repetto property:educated_at ?r . ?r rdf:type ontology:secondary_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17155037
P19
Q515
USER
Which city was Roberto Repetto born in ?
(Q17155037,P19,c(Q515))
action filter_type
action find
entity Q17155037
relation P19
type Q515
['Q17155037', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q17155037 property:P19 ?i . ?i rdf:type ontology:Q515 }
Roberto Repetto
action filter_type
action find
entity Roberto Repetto
relation place of birth
type city
['Roberto Repetto', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Roberto_Repetto property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
(Q17155037,P19,c(Q515))
action filter_type
action find
entity Q17155037
relation P19
type Q515
Roberto Repetto was born in [ANSWER]
['Q17155037', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q17155037 property:P19 ?i . ?i rdf:type ontology:Q515 }
Buenos Aires
Roberto Repetto was born in Buenos Aires
Buenos Aires
action filter_type
action find
entity Roberto Repetto
relation place of birth
type city
['Roberto Repetto', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Roberto_Repetto property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1486 Q6700890
P19
Q502895
USER
Does Luis Moglia Barth have birthplace at that city ?
(Q6700890,P19,Q1486)
action is_in
entity Q1486
action find
entity Q6700890
relation P19
['Q6700890', 'P19', 'Q1486']
ASK WHERE { resource:Q6700890 property:P19 resource:Q1486 }
Buenos Aires Luis Moglia Barth
action is_in
entity Buenos Aires
action find
entity Luis Moglia Barth
relation place of birth
['Luis Moglia Barth', 'place of birth', 'Buenos Aires']
ASK WHERE { resource:Luis_Moglia_Barth property:place_of_birth resource:Buenos_Aires }
[]
common name
SYSTEM
YES
(Q6700890,P19,Q1486)
action is_in
entity Q1486
action find
entity Q6700890
relation P19
[ANSWER]
['Q6700890', 'P19', 'Q1486']
ASK WHERE { resource:Q6700890 property:P19 resource:Q1486 }
Yes
action is_in
entity Buenos Aires
action find
entity Luis Moglia Barth
relation place of birth
['Luis Moglia Barth', 'place of birth', 'Buenos Aires']
ASK WHERE { resource:Luis_Moglia_Barth property:place_of_birth resource:Buenos_Aires }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5142861 Q666297 Q165501
P17
Q15617994
USER
Is Colegio Nacional de Buenos Aires located in Schülp bei Rendsburg and Dießen am Ammersee ?
(Q5142861,P17,Q666297) (Q5142861,P17,Q165501)
action is_in
entity Q5142861
action intersection
action find_reverse
entity Q666297
relation P17
action find_reverse
entity Q165501
relation P17
['Q5142861', 'P17', 'Q666297'] ['Q5142861', 'P17', 'Q165501']
ASK WHERE { resource:Q5142861 property:P17 resource:Q165501 . resource:Q5142861 property:P17 resource:Q666297 }
Colegio Nacional de Buenos Aires Schülp bei Rendsburg Dießen am Ammersee
action is_in
entity Colegio Nacional de Buenos Aires
action intersection
action find_reverse
entity Schülp bei Rendsburg
relation country
action find_reverse
entity Dießen am Ammersee
relation country
['Colegio Nacional de Buenos Aires', 'country', 'Schülp bei Rendsburg'] ['Colegio Nacional de Buenos Aires', 'country', 'Dießen am Ammersee']
ASK WHERE { resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Dießen_am_Ammersee . resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Schülp_bei_Rendsburg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5142861,P17,Q666297) (Q5142861,P17,Q165501)
action is_in
entity Q5142861
action intersection
action find_reverse
entity Q666297
relation P17
action find_reverse
entity Q165501
relation P17
[ANSWER]
['Q5142861', 'P17', 'Q666297'] ['Q5142861', 'P17', 'Q165501']
ASK WHERE { resource:Q5142861 property:P17 resource:Q165501 . resource:Q5142861 property:P17 resource:Q666297 }
No
action is_in
entity Colegio Nacional de Buenos Aires
action intersection
action find_reverse
entity Schülp bei Rendsburg
relation country
action find_reverse
entity Dießen am Ammersee
relation country
['Colegio Nacional de Buenos Aires', 'country', 'Schülp bei Rendsburg'] ['Colegio Nacional de Buenos Aires', 'country', 'Dießen am Ammersee']
ASK WHERE { resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Dießen_am_Ammersee . resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Schülp_bei_Rendsburg }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q486972 Q515
USER
Which cities are twin city of min number of cities and human settlements ?
(c(Q515),P190,c(Q515)|c(Q486972))
action argmin
action union
action find_tuple_counts
relation P190
type Q515
type Q515
action find_tuple_counts
relation P190
type Q515
type Q486972
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?d } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?i ) WHERE { { ?j property:P190 ?u . ?j rdf:type ontology:Q515 . ?u rdf:type ontology:Q486972 } UNION { ?j property:P190 ?u . ?u rdf:type ontology:Q515 . ?j rdf:type ontology:Q515 } } GROUP BY ?j } } }
action argmin
action union
action find_tuple_counts
relation sister city
type city
type city
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'city'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?d } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?i ) WHERE { { ?j property:sister_city ?u . ?j rdf:type ontology:city . ?u rdf:type ontology:human_settlement } UNION { ?j property:sister_city ?u . ?u rdf:type ontology:city . ?j rdf:type ontology:city } } GROUP BY ?j } } }
[]
city human settlement city
Q3126 Q2865 Q2100
SYSTEM
Erlangen, Kassel, Duisburg
Q386691 Q384403 Q373542 Q39738 Q823988 Q843001 Q1017045 Q843006 Q847602 Q847607 Q222242 Q1000086 Q197379 Q34412 Q849434 Q703158 Q205914 Q259498 Q83786 Q944051 Q696925 Q1000060 Q278877 Q533157 Q217432 Q827041 Q2936 Q850969 Q819639 Q385375 Q304848 Q270814 Q57921 Q10395 Q10397 Q664895 Q858008 Q496667 Q1000467 Q281371 Q837960 Q42651 Q612815 Q58273 Q1088716 Q1407742 Q1015011 Q695892 Q191120 Q385982 Q766168 Q837173 Q383850 Q58650 Q214938 Q770187 Q392692 Q830394 Q850344 Q734416 Q679428 Q985465 Q1009003 Q217646 Q846335 Q14499 Q789256 Q416669 Q7473516 Q946743 Q1321460 Q1001647 Q638312 Q502196 Q360069 Q1009095 Q377834 Q8247 Q295367 Q283023 Q166255 Q917888 Q59100 Q430864 Q1645575 Q349983 Q1010131 Q57818 Q349982 Q548097 Q783255 Q166282 Q246723 Q198240 Q773312 Q696388 Q363166 Q193719 Q1000029 Q1623 Q147738 Q835227 Q373023 Q1629 Q1008750 Q74957 Q404529 Q954569 Q158423 Q851001 Q127026 Q912224 Q849439 Q851419 Q1008686 Q714636 Q740800 Q5690 Q505208 Q852018 Q1000336 Q937008 Q605256 Q841603 Q1018795 Q1236048 Q860674 Q181276 Q3692 Q756593 Q368429 Q8131 Q192271 Q854956 Q235004 Q933641 Q1018700 Q325736 Q92297 Q375651 Q69060 Q71227 Q1632616 Q1019339 Q68534 Q132997 Q3104 Q120103 Q389515 Q394453 Q278017 Q216077 Q646847 Q68695 Q330409 Q221283 Q207408 Q155975 Q57997 Q913754 Q569639 Q958157 Q602976 Q793405 Q59144 Q386677 Q1818241 Q630358 Q583910 Q1482 Q34217 Q144988 Q154540 Q1467 Q855073 Q753731 Q623549 Q2865 Q379160 Q526335 Q737830 Q200500 Q496072 Q755691 Q854906 Q12245 Q427367 Q107401 Q1019335 Q16959 Q317827 Q1844 Q837154 Q650015 Q819629 Q1015409 Q1013843 Q385461 Q291745 Q755698 Q324293 Q986070 Q946893 Q75150 Q8854 Q838669 Q736276 Q858369 Q847577 Q235 Q15379 Q1019970 Q593157 Q1725 Q79535 Q683165 Q1723 Q167109 Q6582 Q851021 Q478038 Q911610 Q386026 Q846345 Q1025213 Q517407 Q126995 Q23661 Q817141 Q753864 Q570884 Q325164 Q373101 Q158435 Q1008595 Q740810 Q498545 Q502988 Q193724 Q734532 Q820760 Q842971 Q1475 Q3933 Q622594 Q978446 Q843028 Q341056 Q1017261 Q1000033 Q2100 Q589880 Q596486 Q851037 Q1410 Q71108 Q749283 Q57931 Q426130 Q651742 Q1852528 Q674311 Q242108 Q207881 Q178382 Q937688 Q453502 Q31238 Q1017769 Q1676870 Q860669 Q151958 Q487439 Q665097 Q162880 Q174461 Q68614 Q496681 Q3806 Q653402 Q854949 Q75203 Q404362 Q57756 Q320939 Q239597 Q158432 Q851007 Q335427 Q327764 Q1471150 Q495821 Q2337 Q633789 Q495802 Q1019844 Q373813 Q495809 Q104036 Q368929 Q693237 Q250733 Q592497 Q221214 Q722732 Q488869 Q71284 Q740853 Q840595 Q877266 Q840591 Q632146 Q207876 Q384926 Q842976 Q647508 Q1676863 Q941061 Q349976 Q279642 Q756581 Q373564 Q203929 Q273880 Q855060 Q643929 Q1473 Q841129 Q843021 Q14821 Q1020874 Q338616 Q954596 Q954611 Q57970 Q6343 Q6829 Q851042 Q1575979 Q850395 Q92324 Q854977 Q325555 Q819613 Q941032 Q890122 Q854987 Q394108 Q541550 Q855011 Q1258284 Q497341 Q4007 Q1013914 Q7070 Q655417 Q930396 Q271000 Q335506 Q55597 Q374511 Q4174 Q317844 Q200077 Q47916 Q846338 Q667208 Q191097 Q57885 Q29003 Q853623 Q946769 Q3126 Q1729076 Q360374 Q1430746 Q523489 Q499493 Q372791 Q237683 Q369628 Q1019360 Q1394252 Q750587 Q523469 Q1013850 Q692745 Q158420 Q999916 Q211243 Q210661 Q532560 Q210667 Q58178 Q158257 Q750573 Q736897 Q496080 Q656603 Q987487 Q217698 Q118213 Q629471 Q187861 Q207311 Q695911 Q695917 Q1641829 Q271917 Q57936 Q83247 Q3904 Q790370 Q572231 Q7033 Q57906 Q44244 Q855052 Q75026 Q3826 Q2907 Q492366 Q591823 Q1789604 Q349973 Q3768 Q732300 Q265555 Q470369 Q1863 Q1865 Q2209 Q532981 Q2203 Q359990 Q851114 Q108037 Q180470 Q210365 Q696407 Q430207 Q387211 Q17176 Q517783 Q571918 Q360235 Q1355 Q498060 Q3167 Q183584 Q3859 Q5869 Q144663 Q508591 Q570427 Q59227 Q789282 Q502993 Q75091 Q427769 Q634022 Q837170 Q789261 Q189823 Q496837 Q226000 Q3075 Q845857 Q851492 Q911634 Q494627 Q59223 Q187821 Q502205 Q230843 Q319729 Q460812 Q57944 Q986082 Q57947 Q1761 Q349985 Q236197 Q386250 Q750224 Q653446 Q329790 Q804395 Q329797 Q2706 Q2061 Q184998 Q890949 Q1017247 Q386988 Q269634 Q489147 Q601254 Q161060 Q158523 Q629849 Q843043 Q990988 Q20073 Q36063 Q924085 Q3931 Q248959 Q3751 Q3200 Q42666 Q844852 Q518360 Q742160 Q171943 Q651322 Q17189 Q819672 Q847557 Q518203 Q523956 Q4060 Q652710 Q646766 Q71339 Q1013909 Q57948 Q950352 Q933374 Q649214 Q58422 Q40626 Q187812 Q582209 Q877935 Q209983 Q2427155 Q696783 Q1756960 Q936145 Q842929 Q30340 Q842925 Q92277 Q225100 Q303478 Q304803 Q217681 Q263837 Q721163 Q275904 Q284480 Q496431 Q1641781 Q213296 Q1737652
(c(Q515),P190,c(Q515)|c(Q486972))
action argmin
action union
action find_tuple_counts
relation P190
type Q515
type Q515
action find_tuple_counts
relation P190
type Q515
type Q486972
[ANSWERS] are twin city of min number of cities and human settlements
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?d } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?i ) WHERE { { ?j property:P190 ?u . ?j rdf:type ontology:Q515 . ?u rdf:type ontology:Q486972 } UNION { ?j property:P190 ?u . ?u rdf:type ontology:Q515 . ?j rdf:type ontology:Q515 } } GROUP BY ?j } } }
Niiza City Litoměřice Szigetvár Laoag Kakegawa Csorna Protivín Nagykálló Nishinoomote Sanda Kisköre Nový Bor Zhangjiajie Foshan Fuefuki Velké Meziříčí Lijiang Rafaela Shimla Horní Jiřetín Iruma Humpolec Český Těšín Tianshui Port Harcourt Beroun Oldenburg Victoria Gero Ōmachi Daqing Ishinomaki Lößnitz Cirebon Sukabumi Uherský Brod Murayama Muroran Hostinné Jászberény Năvodari Wuxi Garachico Taizhou Lőrinci Horní Bříza Milevsko Nanao Jēkabpils Herend Nagykáta Cisnădie Litovel Zhangjiakou Gyula Kaminoyama Šumperk Nagykőrös Sakado Tsuruoka Tălmaciu Rakovník Staré Město Mudanjiang Kahoku Samarinda Balatonalmádi Yiyang Tokyo Skalná Králíky Budyně nad Ohří Toride Tenri Bengbu Otrokovice Szentes Biratnagar Nagyatád Maglód Horšovský Týn Vinaròs Shantou Nymburk Kostelec nad Orlicí Heihe Frýdlant nad Ostravicí Huai'an Hegang Visegrád Kapuvár Alghero Záhony Zhumadian Třeboň Toyooka Ganzhou Cheb Kraslice Valenzuela Saint Helier Ineu Weihai Zamboanga City Stříbro Anshan Xuchang Vyškov Buštěhrad Măcin Sakurai Techirghiol Kopřivnice Turnov Ivančice Miyakojima Paks Sparta Ouarzazate Izumisano Tandil Tótkomlós Shimada Tiszakécske Bzenec Dolní Benešov Tosu Szolnok Riyadh Târgu Neamț Felsőzsolca Palembang Guiyang Ibrány Vigan Martonvásár Bystřice nad Pernštejnem Ciacova Siping Valašské Meziříčí Xining Shiyan Počátky Město Albrechtice Nanping Florianópolis Koblenz Kaga Kariya Žďár nad Sázavou Tiszavasvári Jiujiang Sodegaura Quanzhou Ústí nad Orlicí Cape Coast Vác Kutná Hora Wolkenstein Zalalövő Lahnstein Sezimovo Ústí Klatovy Berettyóújfalu Zhanjiang Kusatsu, Shiga Rousínov Sedlčany Aš Cavite City Oxford Zalakaros Sásd Cebu City Solt Masuda Puerto de la Cruz Kassel Kunszentmárton Keszthely Mizil Takehara Fujinomiya Budaörs Gyömrő Stanley Guang'an Sivas Jílové u Prahy Ürümqi Hanamaki Vaduz Simeria Pannonhalma Toba Bílovec Dačice Ōmihachiman Ílhavo Svitavy Anyang Chrudim Teiuș Yingkou Las Piñas Yamatotakada Cernavodă Tōkamachi Susono Monaco Kendari Březnice Murfatlar Lipa Fort Smith Poděbrady Batangas City Eger Carcassonne Pâncota Kiskunfélegyháza Lengyeltóti Orlová Suzu Rosice Sondershausen Weinan Wellington Benešov nad Ploučnicí Kurobe Tongliao Kayes Rizhao Vrbno pod Pradědem Vrchlabí Békés Meldorf Takaoka Slavkov u Brna Fukaya Mihara Sellye Quezon City Celle Takayama Trmice Oroszlány Česká Třebová Rotava Lanškroun Duisburg Pucioasa Fujioka Comarnic Gibraltar Frauenstein San Juan Taizhou Mianyang Minamiashigara City Třebechovice pod Orebem Kisvárda Otaru Ichihara Jūrmala Strmilov Amami Miki Mnichovo Hradiště Jablonné nad Orlicí Nichinan Yueyang Oral Minoh Dezhou Ranchi Sanming Ebetsu Tübingen Shimoda Nyergesújfalu Liaoyang Xinxiang Lianyungang Mělník Neratovice Stochov Deta Kisarazu Prachatice Fryšták Saku Smolensk Dombóvár Hekinan Přimda Albufeira Fujimi Ventspils Jindřichův Hradec Chitose Wa Vălenii de Munte Cugir Litomyšl Benalmádena Xiangyang Szigetszentmiklós Kamisu Tainai Miyoshi Enying Yamaguchi Ōgaki Mátészalka Fujiyoshida Jablonec nad Jizerou Bystřice pod Hostýnem Yichun Myōkō Františkovy Lázně Liaocheng Zimnicea Beppu Encs Shūnan Davao City Iida Tolna Coburg Přeštice Čelákovice Havlíčkův Brod Jeseník Changzhou Carthage Speyer Hârlău Vratimov Gōtsu Tonghua Kerekegyháza Recaș Uozu Kozármisleny Bolhrad Soltvadkert Žirovnice Tiszaföldvár Heves Raspenava Xianyang Rosenheim Polička Eisenach Kenderes Nagakute Bouaké Salto Muñoz Oyama Emden Nishio Morioka Lucknow Suwa Fertőd Tachov Elterlein Jiamusi Bátaszék Mórahalom Erlangen Kardašova Řečice Anqing Košťany Terezín Seto Jining Ōme Sumoto Dobřany Kosmonosy Shirakawa Mariánské Lázně Rýmařov Monbetsu Červený Kostelec Vysoké Mýto Yinchuan Musashino Jiayuguan City Chōfu Jiaxing Hlučín Maizuru Hatsukaichi Kadoma Jičín Ostrov Weifang Yamatokōriyama Kiskunmajsa Wollongong Suzuka Kuji Kitakami Jiříkov Kushiro Scheibenberg Braga Mbabane Barcs Chongzuo Nordhausen Yangzhou Santa Fe Mezőtúr Fushun Muscat Sucre Norden Náchod Krnov Shuangyashan Yamoussoukro Gyomaendrőd Kitami Kolín Andorra la Vella Kuala Lumpur Roxas Baiyin Arica Wuhu Yasugi Valmiera Huangshan City Beihai Hakusan Komló Kamogawa Muntinlupa Pinamar Yulin Ma'anshan Bangalore Mooka Siegen Lanzhou Kigali Lhasa Hengyang Police nad Metují Obernkirchen Chaozhou Balatonföldvár Uherské Hradiště Benxi Kisbér Kiryū Gura Humorului Balatonboglár Haikou Lincang Jimbolia Fürth Uwajima Shibukawa Kisújszállás Ruhla Zhongshan Tatabánya Nemuro Zushi Urayasu Naruto Annaberg-Buchholz Litvínov Nantong Dublin Suihua Hino City Ōtake Strakonice Tsuchiura Kamaishi Blatná Iwakuni Bremerhaven Yellowknife Kaposvár Bohumín Podbořany Říčany Tachikawa City Schmalkalden Dubí Přibyslav Ehingen Hatvan Sárvár Broumov Hohenstein-Ernstthal Vecsés Horní Slavkov Brandenburg an der Havel Zărnești Praia Salzgitter Shaoxing Ueda Bílina Shijōnawate Nanchang Năsăud Pasay Kumano Nagai Iwanuma Auerbach in der Oberpfalz Hürth Letovice Tōno Xiaogan Slaný Aue Brtnice Nagybajom Csongrád Tangshan Tacloban Dunaújváros Tokaj Unnan Gyöngyös Náměšť nad Oslavou Yaizu Poběžovice Loket Nepomuk Zhengzhou Edelény Jilin City Bicaz Kravaře Mezőcsát Tai'an Ozamiz Itō Flămânzi Bóly Sakaiminato Vítkov Sinaia Kdyně
Erlangen, Kassel and Duisburg are twin city of min number of cities and human settlements
Erlangen Kassel Duisburg
action argmin
action union
action find_tuple_counts
relation sister city
type city
type city
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'city'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?s ) WHERE { ?k rdf:type ?l . VALUES ( ?l ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?d } . FILTER ( ?s = ?z ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?i ) WHERE { { ?j property:sister_city ?u . ?j rdf:type ontology:city . ?u rdf:type ontology:human_settlement } UNION { ?j property:sister_city ?u . ?u rdf:type ontology:city . ?j rdf:type ontology:city } } GROUP BY ?j } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q1048835
USER
Which political territories are a sister city of around 1 city ?
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?t ) WHERE { ?x property:P190 ?p . ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q515 } GROUP BY ?x } }
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?t ) WHERE { ?x property:sister_city ?p . ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:city } GROUP BY ?x } }
[]
city political territorial entity
Q5826 Q615722 Q240
SYSTEM
Xi'an, Santa Fe, Brussels
Q926713 Q433632 Q164867 Q4970 Q193780 Q478818 Q180981 Q15174 Q489839 Q840373 Q170322 Q42956 Q189848 Q1917834 Q572800 Q615722 Q696797 Q488555 Q5978 Q825883 Q11720 Q12534 Q353618 Q42780 Q5783 Q77433 Q318314 Q5826 Q240 Q201149 Q68744 Q714613 Q47593
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[ANSWERS] are a sister city of around 1 city
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?t ) WHERE { ?x property:P190 ?p . ?x rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q515 } GROUP BY ?x } }
Parintins Santa Cruz de La Palma Rügen Hangzhou Almuñécar São José dos Pinhais Kirovohrad Oblast Shenzhen Torrejón de Ardoz Valdemoro Qingdao Harbin Guernica Albaida Alcañiz Santa Fe Balaguer Baeza Hildesheim Valls Shenyang Sant Pol de Mar Adeje Ningbo Andalusia Leganés Ipatinga Xi'an Brussels Fife Xiamen Serne Belém
Xi'an, Santa Fe and Brussels are a sister city of around 1 city
Xi'an Santa Fe Brussels
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?t ) WHERE { ?x property:sister_city ?p . ?x rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:city } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2100
P190
Q20667921 Q1048835
USER
How many french administrative divisions or political territories are sister towns of Duisburg ?
(Q2100,P190,c(Q20667921)) (Q2100,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2100
relation P190
type Q20667921
action filter_type
action find
entity Q2100
relation P190
type Q1048835
['Q2100', 'P190', {'concept': 'Q20667921'}] ['Q2100', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { resource:Q2100 property:P190 ?d . ?d rdf:type ontology:Q1048835 } UNION { resource:Q2100 property:P190 ?d . ?d rdf:type ontology:Q20667921 } }
Duisburg
action count
action union
action filter_type
action find
entity Duisburg
relation sister city
type type of french administrative division
action filter_type
action find
entity Duisburg
relation sister city
type political territorial entity
['Duisburg', 'sister city', {'concept': 'type of french administrative division'}] ['Duisburg', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { resource:Duisburg property:sister_city ?d . ?d rdf:type ontology:political_territorial_entity } UNION { resource:Duisburg property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division } }
[]
type of french administrative division political territorial entity
SYSTEM
2
Q6454 Q11746
(Q2100,P190,c(Q20667921)) (Q2100,P190,c(Q1048835))
action count
action union
action filter_type
action find
entity Q2100
relation P190
type Q20667921
action filter_type
action find
entity Q2100
relation P190
type Q1048835
[ANSWER]
['Q2100', 'P190', {'concept': 'Q20667921'}] ['Q2100', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { resource:Q2100 property:P190 ?d . ?d rdf:type ontology:Q1048835 } UNION { resource:Q2100 property:P190 ?d . ?d rdf:type ontology:Q20667921 } }
Calais Wuhan
2
action count
action union
action filter_type
action find
entity Duisburg
relation sister city
type type of french administrative division
action filter_type
action find
entity Duisburg
relation sister city
type political territorial entity
['Duisburg', 'sister city', {'concept': 'type of french administrative division'}] ['Duisburg', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { resource:Duisburg property:sister_city ?d . ?d rdf:type ontology:political_territorial_entity } UNION { resource:Duisburg property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2100
P47
Q15617994 Q56061
USER
How many administrative territories or administrative territories are bordered by Duisburg ?
(Q2100,P47,c(Q15617994)) (Q2100,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q2100
relation P47
type Q15617994
action filter_type
action find
entity Q2100
relation P47
type Q56061
['Q2100', 'P47', {'concept': 'Q15617994'}] ['Q2100', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { resource:Q2100 property:P47 ?h . ?h rdf:type ontology:Q15617994 } UNION { resource:Q2100 property:P47 ?h . ?h rdf:type ontology:Q56061 } }
Duisburg
action count
action union
action filter_type
action find
entity Duisburg
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Duisburg
relation shares border with
type administrative territorial entity
['Duisburg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Duisburg', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { resource:Duisburg property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Duisburg property:shares_border_with ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
5
Q1718 Q2899 Q2805 Q4105 Q2838
(Q2100,P47,c(Q15617994)) (Q2100,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q2100
relation P47
type Q15617994
action filter_type
action find
entity Q2100
relation P47
type Q56061
[ANSWER]
['Q2100', 'P47', {'concept': 'Q15617994'}] ['Q2100', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { resource:Q2100 property:P47 ?h . ?h rdf:type ontology:Q15617994 } UNION { resource:Q2100 property:P47 ?h . ?h rdf:type ontology:Q56061 } }
Düsseldorf Mülheim an der Ruhr Krefeld Meerbusch Oberhausen
5
action count
action union
action filter_type
action find
entity Duisburg
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Duisburg
relation shares border with
type administrative territorial entity
['Duisburg', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Duisburg', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { { resource:Duisburg property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Duisburg property:shares_border_with ?h . ?h rdf:type ontology:administrative_territorial_entity } }
[]