Simple Question (Direct)
Simple Question
Q6021211
P106
Q12737077
USER
What does Frode Nør Christensen do for a living ?
(Q6021211,P106,c(Q12737077))
action filter_type
action find
entity Q6021211
relation P106
type Q12737077
['Q6021211', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q6021211 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Frode Nør Christensen
action filter_type
action find
entity Frode Nør Christensen
relation occupation
type occupation
['Frode Nør Christensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Frode_Nør_Christensen property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6021211,P106,c(Q12737077))
action filter_type
action find
entity Q6021211
relation P106
type Q12737077
Frode Nør Christensen does a [ANSWER] for a living
['Q6021211', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q6021211 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
Frode Nør Christensen does a politician for a living
politician
action filter_type
action find
entity Frode Nør Christensen
relation occupation
type occupation
['Frode Nør Christensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Frode_Nør_Christensen property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6021211
P937
Q515
USER
Where did that person work ?
(Q82955,P937,c(Q515))
action filter_type
action find
entity Q6021211
relation P937
type Q515
['Q82955', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q6021211 property:P937 ?z . ?z rdf:type ontology:Q515 }
Frode Nør Christensen
action filter_type
action find
entity Frode Nør Christensen
relation work location
type city
['politician', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Frode_Nør_Christensen property:work_location ?z . ?z rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q82955,P937,c(Q515))
action filter_type
action find
entity Q6021211
relation P937
type Q515
That person worked at [ANSWER]
['Q82955', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q6021211 property:P937 ?z . ?z rdf:type ontology:Q515 }
Strasbourg
That person worked at Strasbourg
Strasbourg
action filter_type
action find
entity Frode Nør Christensen
relation work location
type city
['politician', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Frode_Nør_Christensen property:work_location ?z . ?z rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q6602 Q491818 Q2150573
P1376
Q15617994
USER
Is that city the county seat of Wiesent and Unterelsaß ?
(Q6602,P1376,Q491818) (Q6602,P1376,Q2150573)
action is_in
entity Q6602
action intersection
action find_reverse
entity Q491818
relation P1376
action find_reverse
entity Q2150573
relation P1376
['Q6602', 'P1376', 'Q491818'] ['Q6602', 'P1376', 'Q2150573']
ASK WHERE { resource:Q6602 property:P1376 resource:Q491818 . resource:Q6602 property:P1376 resource:Q2150573 }
Strasbourg Wiesent Unterelsaß
action is_in
entity Strasbourg
action intersection
action find_reverse
entity Wiesent
relation capital of
action find_reverse
entity Unterelsaß
relation capital of
['Strasbourg', 'capital of', 'Wiesent'] ['Strasbourg', 'capital of', 'Unterelsaß']
ASK WHERE { resource:Strasbourg property:capital_of resource:Wiesent . resource:Strasbourg property:capital_of resource:Unterelsaß }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q6602,P1376,Q491818) (Q6602,P1376,Q2150573)
action is_in
entity Q6602
action intersection
action find_reverse
entity Q491818
relation P1376
action find_reverse
entity Q2150573
relation P1376
[ANSWER]
['Q6602', 'P1376', 'Q491818'] ['Q6602', 'P1376', 'Q2150573']
ASK WHERE { resource:Q6602 property:P1376 resource:Q491818 . resource:Q6602 property:P1376 resource:Q2150573 }
NO and YES respectively
action is_in
entity Strasbourg
action intersection
action find_reverse
entity Wiesent
relation capital of
action find_reverse
entity Unterelsaß
relation capital of
['Strasbourg', 'capital of', 'Wiesent'] ['Strasbourg', 'capital of', 'Unterelsaß']
ASK WHERE { resource:Strasbourg property:capital_of resource:Wiesent . resource:Strasbourg property:capital_of resource:Unterelsaß }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6021211 Q35
P27
Q1048835
USER
Is that person an inhabitant of Denmark ?
(Q6021211,P27,Q35)
action is_in
entity Q35
action find
entity Q6021211
relation P27
['Q6021211', 'P27', 'Q35']
ASK WHERE { resource:Q6021211 property:P27 resource:Q35 }
Frode Nør Christensen Denmark
action is_in
entity Denmark
action find
entity Frode Nør Christensen
relation country of citizenship
['Frode Nør Christensen', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Frode_Nør_Christensen property:country_of_citizenship resource:Denmark }
[]
political territorial entity
SYSTEM
YES
(Q6021211,P27,Q35)
action is_in
entity Q35
action find
entity Q6021211
relation P27
[ANSWER]
['Q6021211', 'P27', 'Q35']
ASK WHERE { resource:Q6021211 property:P27 resource:Q35 }
Yes
action is_in
entity Denmark
action find
entity Frode Nør Christensen
relation country of citizenship
['Frode Nør Christensen', 'country of citizenship', 'Denmark']
ASK WHERE { resource:Frode_Nør_Christensen property:country_of_citizenship resource:Denmark }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q755698
P190
Q515 Q515
USER
How many cities are a sister city of greater number of cities than Svitavy ?
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q755698
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Q755698 property:P190 ?q . ?q rdf:type ontology:Q515 } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?j ) WHERE { ?d rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 . ?d property:P190 ?t } GROUP BY ?d } }
Svitavy
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Svitavy
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Svitavy property:sister_city ?q . ?q rdf:type ontology:city } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?j ) WHERE { ?d rdf:type ontology:city . ?t rdf:type ontology:city . ?d property:sister_city ?t } GROUP BY ?d } }
[]
city city
SYSTEM
322
Q41283 Q23430 Q1021103 Q3572 Q10127 Q830404 Q235746 Q841296 Q7253 Q3870 Q362865 Q72877 Q11736 Q854913 Q696694 Q460835 Q25282 Q837968 Q27860 Q240504 Q854996 Q58401 Q3624 Q209785 Q360326 Q320950 Q43199 Q52607 Q755686 Q823874 Q205607 Q320943 Q193050 Q71266 Q15720 Q602042 Q843039 Q5779 Q425996 Q20934 Q57953 Q174091 Q916679 Q57958 Q501891 Q653372 Q653478 Q911517 Q38968 Q59205 Q842961 Q329768 Q41278 Q843035 Q75978 Q935846 Q14424 Q2135 Q43196 Q210493 Q3926 Q11462 Q834567 Q384796 Q23482 Q5838 Q819664 Q16520 Q220445 Q847546 Q57719 Q3069 Q19689 Q2910 Q1899 Q461020 Q57996 Q26600 Q507846 Q1794 Q3846983 Q375097 Q12062 Q72818 Q178878 Q203027 Q1486 Q2966 Q17042 Q1461 Q842984 Q817965 Q843018 Q5540 Q645014 Q198370 Q10393 Q791458 Q423371 Q386635 Q10389 Q583620 Q1008983 Q214945 Q515573 Q214956 Q1362 Q182378 Q117604 Q588606 Q855513 Q2973 Q404873 Q288413 Q167668 Q1519 Q8684 Q3838 Q459787 Q837157 Q149097 Q393426 Q6602 Q898468 Q276132 Q58560 Q3866 Q14819 Q137271 Q7003 Q911667 Q7568 Q8652 Q404429 Q329775 Q657642 Q2900 Q76001 Q3599 Q56759 Q1731 Q3861 Q642006 Q587746 Q26837 Q7786 Q606212 Q3919 Q19660 Q200267 Q2844 Q3915 Q75110 Q58324 Q533078 Q58570 Q1017806 Q857234 Q17182 Q124375 Q854940 Q416544 Q633983 Q604516 Q177149 Q42635 Q9005 Q208471 Q14960 Q3185 Q252325 Q2773 Q781435 Q740915 Q837161 Q205922 Q645567 Q1889017 Q14440 Q34261 Q198266 Q1773 Q679249 Q3958 Q2079 Q933480 Q260522 Q844130 Q752838 Q426237 Q1858 Q496499 Q252061 Q1854 Q166829 Q14169 Q214948 Q182852 Q111739 Q214942 Q68481 Q549427 Q694370 Q847565 Q377929 Q386651 Q267708 Q1822 Q389495 Q75336 Q680656 Q1508 Q385623 Q846351 Q739304 Q157835 Q75230 Q594275 Q463171 Q851048 Q857293 Q5753 Q2749 Q911674 Q11194 Q485581 Q646850 Q376233 Q2119 Q206872 Q390796 Q719 Q5972 Q1720 Q1721 Q851029 Q1645 Q215755 Q547479 Q509923 Q773203 Q843014 Q11725 Q789510 Q727143 Q146363 Q863739 Q2207 Q851056 Q76010 Q756273 Q42622 Q633996 Q188247 Q59095 Q72778 Q187136 Q75379 Q839796 Q3014 Q55740 Q146317 Q825166 Q57941 Q855082 Q203344 Q530634 Q20921 Q71151 Q71159 Q189761 Q390156 Q2795 Q378225 Q2887 Q207222 Q653364 Q5217 Q1000056 Q456 Q755701 Q604385 Q679224 Q168648 Q843031 Q2833 Q485176 Q3935 Q146033 Q726993 Q3616 Q3612 Q158272 Q166183 Q25475 Q680743 Q169064 Q117676 Q613813 Q1533 Q1530 Q3042 Q1953 Q680963 Q66485 Q209988 Q3994 Q432055 Q240891 Q240489 Q320964 Q23768 Q58584 Q170525 Q302526 Q243293 Q59132 Q207309 Q104125 Q247387 Q2999 Q16666
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q755698
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Q755698 property:P190 ?q . ?q rdf:type ontology:Q515 } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?j ) WHERE { ?d rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 . ?d property:P190 ?t } GROUP BY ?d } }
Gwangju Ulaanbaatar Meziboří Tunis Tangerang Hajdúszoboszló Kesennuma Příbram Padang Nairobi Pingxiang Datong Tianjin Szikszó Onomichi Marugame Danang Băile Tușnad Jayapura Makó Szerencs Shijiazhuang Addis Ababa Ichikawa Tongling Trutnov Omaha Mar del Plata Nyírbátor Toda Zirc Matsudo Érd Yichang Satsumasendai Baktalórántháza Veresegyház Banda Aceh Deyang Incheon Schwarzenberg Changsha Téglás Zhenjiang Tahara Higashihiroshima Mishima Létavértes Liuzhou Heyuan Mezőberény Tata Ulsan Celldömölk Calamba Vlăhița Nagykanizsa Winnipeg Cincinnati Yantai Pretoria Surabaya Bonyhád Ōda Marseille Kabul Sukagawa Busan Kuching Saiki Xuzhou Bottrop Tirana Ludwigshafen Kyiv Imabari Thum Fukuoka Sebiș Frankfurt Șimleu Silvaniei Tiszaújváros Torgau Haiphong Békéscsaba Tsu Buenos Aires Heidelberg Oakland Manila Harkány Ikeda Kunszentmiklós Penza Túrkeve Zibo Bogor Battonya Ștei Hikone Bandung Dévaványa Vodňany Pápa Hanzhong Znojmo Islamabad Putrajaya Nago Fonyód Bük Darmstadt Xinyang Tapolca Liepāja Abu Dhabi Seoul Kinshasa Iloilo City Covasna Jirkov Žatec Strasbourg Brandýs nad Labem-Stará Boleslav Pecica Qinhuangdao Dodoma Freiberg Kota Kinabalu Dijon Elek Yogyakarta Miami Jiaozuo Kiskunhalas Villány Quito San Pablo Bicske Olongapo Dresden Doha Kurayoshi Siret Sorong Pekanbaru Fremantle Gaborone Bucharest Kamakura Brasília Antananarivo Dandong Zhoushan Baraolt Handan Nové Sedlo Shōbara Parañaque Hódmezővásárhely Dabas Changde Kashiwazaki Szentgotthárd Obihiro Wenzhou Brussels Kaifeng Brno Hildesheim Hajdúdorog Braunschweig Derecske Fulnek Sânnicolau Mare Qiqihar Törökbálint Mandaue Iquique Port-au-Prince Zhuzhou Riga Kalocsa Neubrandenburg Leipzig Luhačovice Bácsalmás Nagahama Aszód Guangyuan Hanoi Kazuno Valea lui Mihai Ho Chi Minh City Miercurea Nirajului Singkawang Cegléd Kunming Puerto Princesa Kazincbarcika Fuzhou Jánoshalma Ayabe Hanyū City Hévíz Iwata Sovata Baguio Toyokawa Chaoyang Sümeg Makati Ōmuta, Fukuoka Miyazu Hajdúnánás Zaporizhzhya Panjin General Santos Handa Făget Kamo Samarkand Augsburg Simontornya Sarajevo Aveiro Kiskőrös Săcueni Mannheim Ajka Orosháza Saginaw Medan Mainz Wiesbaden Aleșd Cagayan de Oro Xiangtan Dunakeszi Mezőhegyes Százhalombatta Szarvas Chongqing Balmazújváros Örkény Most Kasaoka Naga Cristuru Secuiesc Santa Rosa Karcag Suzhou Kameoka Sarkad Zhuhai Taiyuan Luoyang Huludao Borsec Wolfsburg San Fernando Veszprém Izumo Schneeberg, Saxony Csenger Baja Pilisvörösvár Daejeon Sayda Brand-Erbisdorf Szekszárd Petrila Chemnitz Hagi Santiago Zlaté Hory Atami Bacolod Sušice Lyon Ráckeve Shizuishan Hajdúböszörmény Sopron Vasvár Freiburg im Breisgau Pasadena Windhoek Zamárdi Cotabato City Tehran Antofagasta Žamberk Nabari Batumi Balatonfüred Sângeorgiu de Pădure Viseu Kőszeg Caracas Baghdad Offenbach am Main Yerevan Mór Jaipur Gödöllő Kempten Hamada Higashiōmi Higashimurayama Yonago Las Vegas Baoding Agadir Tab Sekondi-Takoradi Jiangmen Tokushima Lucena Kaba Würzburg Nanjing
322
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Svitavy
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Svitavy property:sister_city ?q . ?q rdf:type ontology:city } } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?j ) WHERE { ?d rdf:type ontology:city . ?t rdf:type ontology:city . ?d property:sister_city ?t } GROUP BY ?d } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q208471
P190
Q515 Q515
USER
And how about Kaifeng?
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q208471
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?r ) WHERE { ?o property:P190 ?t . ?o rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q208471 property:P190 ?i . ?i rdf:type ontology:Q515 } } . FILTER ( ?r > ?a ) }
Kaifeng
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Kaifeng
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?r ) WHERE { ?o property:sister_city ?t . ?o rdf:type ontology:city . ?t rdf:type ontology:city } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Kaifeng property:sister_city ?i . ?i rdf:type ontology:city } } . FILTER ( ?r > ?a ) }
[]
city city
SYSTEM
95
Q23430 Q3572 Q3870 Q11736 Q696694 Q837968 Q240504 Q3624 Q43199 Q20934 Q57958 Q14424 Q3926 Q11462 Q384796 Q23482 Q16520 Q19689 Q2910 Q1899 Q26600 Q1794 Q3846983 Q72818 Q1486 Q17042 Q1461 Q842984 Q198370 Q2973 Q1519 Q8684 Q3838 Q837157 Q14819 Q137271 Q8652 Q3861 Q587746 Q3919 Q19660 Q200267 Q2844 Q3915 Q533078 Q124375 Q42635 Q9005 Q252325 Q2773 Q837161 Q205922 Q14440 Q1773 Q2079 Q252061 Q166829 Q214948 Q68481 Q267708 Q680656 Q1508 Q2749 Q11194 Q485581 Q390796 Q5972 Q843014 Q11725 Q2207 Q851056 Q76010 Q42622 Q59095 Q839796 Q146317 Q203344 Q20921 Q2887 Q1000056 Q456 Q679224 Q168648 Q485176 Q3616 Q169064 Q613813 Q1533 Q3042 Q1953 Q209988 Q240489 Q170525 Q207309 Q16666
(c(Q515),P190,c(Q515))
action count
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q208471
relation P190
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?r ) WHERE { ?o property:P190 ?t . ?o rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q208471 property:P190 ?i . ?i rdf:type ontology:Q515 } } . FILTER ( ?r > ?a ) }
Ulaanbaatar Tunis Nairobi Tianjin Onomichi Băile Tușnad Makó Addis Ababa Omaha Incheon Zhenjiang Nagykanizsa Pretoria Surabaya Ōda Marseille Busan Tirana Ludwigshafen Kyiv Fukuoka Frankfurt Șimleu Silvaniei Haiphong Buenos Aires Oakland Manila Harkány Zibo Darmstadt Abu Dhabi Seoul Kinshasa Covasna Freiberg Kota Kinabalu Miami Doha Siret Gaborone Bucharest Kamakura Brasília Antananarivo Baraolt Hódmezővásárhely Wenzhou Brussels Hajdúdorog Braunschweig Sânnicolau Mare Qiqihar Iquique Riga Leipzig Valea lui Mihai Miercurea Nirajului Cegléd Fuzhou Sovata Sümeg Makati Augsburg Sarajevo Aveiro Orosháza Medan Szarvas Chongqing Naga Cristuru Secuiesc Santa Rosa Suzhou Zhuhai Borsec Veszprém Baja Daejeon Santiago Sušice Lyon Hajdúböszörmény Sopron Pasadena Tehran Sângeorgiu de Pădure Kőszeg Caracas Offenbach am Main Yerevan Gödöllő Higashimurayama Agadir Tokushima Nanjing
95
action count
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Kaifeng
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?t ) AS ?r ) WHERE { ?o property:sister_city ?t . ?o rdf:type ontology:city . ?t rdf:type ontology:city } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Kaifeng property:sister_city ?i . ?i rdf:type ontology:city } } . FILTER ( ?r > ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q13220204 Q515
USER
Which cities are a sister city of min number of cities or administrative country subdivisions ?
(c(Q515),P190,c(Q515)|c(Q13220204))
action argmin
action union
action find_tuple_counts
relation P190
type Q515
type Q515
action find_tuple_counts
relation P190
type Q515
type Q13220204
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?h WHERE { VALUES ( ?m ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?i rdf:type ?m } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?a WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } } GROUP BY ?a } . FILTER ( ?k = ?r ) }
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 second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', [{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?h WHERE { VALUES ( ?m ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?i rdf:type ?m } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?a WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?a } . FILTER ( ?k = ?r ) }
[]
city second-level administrative country subdivision city
Q16506 Q270704 Q3126
SYSTEM
České Budějovice, Třebíč, Erlangen
Q386691 Q384403 Q373542 Q39738 Q823988 Q843006 Q847602 Q847607 Q222242 Q1000086 Q3974 Q197379 Q34412 Q849434 Q703158 Q205914 Q259498 Q158239 Q83786 Q944051 Q696925 Q278877 Q533157 Q217432 Q827041 Q2936 Q819639 Q385375 Q304848 Q270814 Q57921 Q10395 Q10397 Q858008 Q496667 Q1000467 Q281371 Q837960 Q42651 Q612815 Q58273 Q1088716 Q1407742 Q695892 Q191120 Q385982 Q766168 Q383850 Q58650 Q214938 Q770187 Q392692 Q830394 Q850344 Q734416 Q679428 Q1009003 Q217646 Q846335 Q14499 Q789256 Q416669 Q7473516 Q946743 Q1321460 Q1001647 Q638312 Q502196 Q360069 Q1009095 Q377834 Q8247 Q295367 Q283023 Q917888 Q59100 Q430864 Q1645575 Q349983 Q1010131 Q57818 Q349982 Q548097 Q783255 Q166282 Q198240 Q773312 Q696388 Q363166 Q193719 Q1000029 Q1623 Q835227 Q373023 Q1629 Q1008750 Q74957 Q404529 Q954569 Q158423 Q851001 Q127026 Q912224 Q849439 Q851419 Q1008686 Q714636 Q740800 Q3214 Q5690 Q505208 Q852018 Q1000336 Q937008 Q841603 Q1018795 Q1236048 Q860674 Q181276 Q3692 Q756593 Q368429 Q8131 Q857202 Q192271 Q854956 Q235004 Q933641 Q1018700 Q325736 Q92297 Q375651 Q69060 Q71227 Q1019339 Q68534 Q132997 Q120103 Q389515 Q394453 Q278017 Q216077 Q646847 Q321778 Q68695 Q330409 Q221283 Q207408 Q155975 Q57997 Q913754 Q569639 Q793405 Q503411 Q59144 Q386677 Q1818241 Q630358 Q583910 Q1482 Q34217 Q625154 Q179608 Q144988 Q1467 Q855073 Q753731 Q623549 Q2865 Q379160 Q607625 Q526335 Q200500 Q496072 Q755691 Q854906 Q12245 Q427367 Q107401 Q1019335 Q16959 Q317827 Q1844 Q837154 Q650015 Q819629 Q1015409 Q385461 Q755698 Q324293 Q986070 Q946893 Q75150 Q8854 Q319804 Q838669 Q736276 Q858369 Q847577 Q235 Q15379 Q104587 Q1019970 Q593157 Q1725 Q79535 Q683165 Q1723 Q270704 Q167109 Q6582 Q851021 Q478038 Q911610 Q846345 Q207406 Q4346 Q316841 Q517407 Q126995 Q23661 Q817141 Q753864 Q570884 Q325164 Q373101 Q158435 Q1008595 Q740810 Q498545 Q193721 Q502988 Q193724 Q734532 Q820760 Q987496 Q842971 Q1475 Q3933 Q622594 Q978446 Q784229 Q843028 Q341056 Q755681 Q1017261 Q1000033 Q2100 Q589880 Q596486 Q851037 Q71108 Q749283 Q57931 Q3857 Q426130 Q651742 Q1852528 Q674311 Q242108 Q207881 Q453502 Q31238 Q1017769 Q860669 Q42664 Q151958 Q487439 Q665097 Q162880 Q174461 Q68614 Q496681 Q653402 Q514796 Q854949 Q75203 Q404362 Q57756 Q239597 Q158432 Q851007 Q335427 Q327764 Q1471150 Q495821 Q2337 Q633789 Q495802 Q1019844 Q373813 Q495809 Q104036 Q693237 Q250733 Q592497 Q221214 Q722732 Q3004 Q488869 Q71284 Q740853 Q840595 Q877266 Q840591 Q632146 Q207876 Q384926 Q2978 Q647508 Q1676863 Q188082 Q941061 Q349976 Q756581 Q373564 Q203929 Q273880 Q855060 Q643929 Q1473 Q841129 Q842996 Q3852 Q843021 Q14821 Q1020874 Q338616 Q954596 Q954611 Q57970 Q3955 Q6343 Q875070 Q668318 Q189633 Q851042 Q1575979 Q850395 Q92324 Q854977 Q325555 Q819613 Q941032 Q890122 Q854987 Q541550 Q1258284 Q497341 Q513417 Q4007 Q2096 Q7070 Q655417 Q642031 Q930396 Q271000 Q58210 Q16506 Q55597 Q374511 Q245126 Q317844 Q200077 Q47916 Q846338 Q667208 Q191097 Q57885 Q29003 Q853623 Q3126 Q789233 Q360374 Q1430746 Q523489 Q499493 Q372791 Q237683 Q246634 Q369628 Q1019360 Q1394252 Q750587 Q523469 Q1013850 Q692745 Q158420 Q999916 Q211243 Q210661 Q210667 Q58178 Q158257 Q750573 Q736897 Q185684 Q496080 Q987487 Q217698 Q118213 Q629471 Q187861 Q207311 Q695911 Q695917 Q7027 Q1641829 Q271917 Q57936 Q83247 Q390798 Q3904 Q790370 Q572231 Q7033 Q57906 Q855052 Q75026 Q3826 Q2907 Q149108 Q492366 Q591823 Q149105 Q63855 Q1789604 Q349973 Q3768 Q732300 Q265555 Q1863 Q2209 Q532981 Q2203 Q359990 Q851114 Q108037 Q180470 Q210365 Q696407 Q430207 Q387211 Q17176 Q517783 Q571918 Q360235 Q498060 Q183584 Q3859 Q5869 Q144663 Q508591 Q570427 Q59227 Q789282 Q502993 Q637913 Q75091 Q728438 Q427769 Q634022 Q837170 Q789261 Q189823 Q496837 Q855086 Q226000 Q3075 Q845857 Q851492 Q911634 Q320798 Q494627 Q59223 Q187821 Q502205 Q230843 Q319729 Q4175 Q460812 Q57944 Q986082 Q57947 Q189769 Q1761 Q349985 Q236197 Q386250 Q653446 Q2880 Q329790 Q263757 Q329797 Q488134 Q2706 Q2061 Q184998 Q890949 Q1017247 Q386988 Q854965 Q269634 Q489147 Q601254 Q158523 Q629849 Q843043 Q850676 Q990988 Q20073 Q36063 Q924085 Q3936 Q3931 Q248959 Q3750 Q3200 Q42666 Q518360 Q742160 Q933638 Q171943 Q651322 Q17189 Q386661 Q819672 Q847557 Q158245 Q518203 Q523956 Q18575 Q4060 Q652710 Q646766 Q71339 Q1013909 Q57948 Q933374 Q649214 Q58422 Q40626 Q187812 Q582209 Q877935 Q954808 Q209983 Q2427155 Q696783 Q936145 Q842929 Q30340 Q92277 Q392429 Q1019371 Q225100 Q303478 Q304803 Q217681 Q263837 Q721163 Q275904 Q284480 Q496431 Q1641781 Q213296 Q1737652
(c(Q515),P190,c(Q515)|c(Q13220204))
action argmin
action union
action find_tuple_counts
relation P190
type Q515
type Q515
action find_tuple_counts
relation P190
type Q515
type Q13220204
[ANSWERS] are a sister city of min number of cities or administrative country subdivisions
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q515'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?h WHERE { VALUES ( ?m ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } . ?i rdf:type ?m } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?a WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q515 ) ( ontology:Q13220204 ) } } GROUP BY ?a } . FILTER ( ?k = ?r ) }
Niiza City Litoměřice Szigetvár Laoag Kakegawa Nagykálló Nishinoomote Sanda Kisköre Nový Bor Landshut Zhangjiajie Foshan Fuefuki Velké Meziříčí Lijiang Rafaela Kroměříž Shimla Horní Jiřetín Iruma Český Těšín Tianshui Port Harcourt Beroun Oldenburg Gero Ōmachi Daqing Ishinomaki Lößnitz Cirebon Sukabumi Murayama Muroran Hostinné Jászberény Năvodari Wuxi Garachico Taizhou Lőrinci Horní Bříza Nanao Jēkabpils Herend Nagykáta Litovel Zhangjiakou Gyula Kaminoyama Šumperk Nagykőrös Sakado Tsuruoka Tălmaciu 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 Vinaròs Shantou Nymburk Kostelec nad Orlicí Heihe Frýdlant nad Ostravicí Huai'an Hegang Visegrád Kapuvár Alghero Zhumadian Třeboň Toyooka Ganzhou Cheb Kraslice Valenzuela Ineu Weihai Zamboanga City Stříbro Anshan Xuchang Vyškov Buštěhrad Măcin Sakurai Techirghiol Kopřivnice Turnov Ivančice Miyakojima Paks Cottbus Sparta Ouarzazate Izumisano Tandil Tótkomlós Tiszakécske Bzenec Dolní Benešov Tosu Szolnok Riyadh Târgu Neamț Felsőzsolca Palembang Sanuki Guiyang Ibrány Vigan Martonvásár Bystřice nad Pernštejnem Ciacova Siping Valašské Meziříčí Xining Shiyan Město Albrechtice Nanping Florianópolis Kaga Kariya Žďár nad Sázavou Tiszavasvári Jiujiang Sodegaura Hodonín Quanzhou Ústí nad Orlicí Cape Coast Vác Kutná Hora Wolkenstein Zalalövő Lahnstein Berettyóújfalu Inuyama Zhanjiang Kusatsu, Shiga Rousínov Sedlčany Aš Cavite City Oxford Komárom Nanning Zalakaros Cebu City Solt Masuda Puerto de la Cruz Kassel Kunszentmárton Tamási Keszthely Takehara Fujinomiya Budaörs Gyömrő Stanley Guang'an Sivas Jílové u Prahy Ürümqi Hanamaki Vaduz Simeria Pannonhalma Toba Bílovec Ōmihachiman Svitavy Anyang Chrudim Teiuș Yingkou Las Piñas Sanya Yamatotakada Cernavodă Tōkamachi Susono Monaco Kendari Kyjov Březnice Murfatlar Lipa Fort Smith Poděbrady Batangas City Třebíč Eger Carcassonne Pâncota Kiskunfélegyháza Lengyeltóti Suzu Mosonmagyaróvár Waren (Müritz) Karlovo Sondershausen Weinan Wellington Benešov nad Ploučnicí Kurobe Tongliao Kayes Rizhao Vrbno pod Pradědem Vrchlabí Békés Meldorf Tábor Takaoka Slavkov u Brna Fukaya Mihara Kralupy nad Vltavou Sellye Quezon City Celle Takayama Trmice Szigethalom Oroszlány Česká Třebová Várpalota Rotava Lanškroun Duisburg Pucioasa Fujioka Comarnic Frauenstein San Juan Taizhou Wilhelmshaven Mianyang Minamiashigara City Třebechovice pod Orebem Kisvárda Otaru Ichihara Amami Miki Mnichovo Hradiště Nichinan Huzhou Yueyang Oral Minoh Dezhou Ranchi Sanming Ebetsu Shimoda Baoji Nyergesújfalu Liaoyang Xinxiang Lianyungang Neratovice Stochov Deta Kisarazu Prachatice Fryšták Saku Smolensk Dombóvár Hekinan Přimda Albufeira Fujimi Ventspils Chitose Wa Vălenii de Munte Cugir Litomyšl Ingolstadt Benalmádena Xiangyang Szigetszentmiklós Kamisu Tainai Miyoshi Enying Yamaguchi Ōgaki Regensburg Fujiyoshida Jablonec nad Jizerou Český Krumlov Bystřice pod Hostýnem Yichun Františkovy Lázně Liaocheng Zimnicea Beppu Encs Shūnan Davao City Iida Pécsvárad Worms Tolna Coburg Přeštice Čelákovice Havlíčkův Brod Jeseník Changzhou Weimar Carthage Dagupan Sárospatak Guilin Hârlău Vratimov Gōtsu Tonghua Kerekegyháza Recaș Uozu Kozármisleny Bolhrad Soltvadkert Tiszaföldvár Raspenava Xianyang Vsetín Rosenheim Edmonton Eisenach Kenderes Gárdony Nagakute Bouaké Jinhua České Budějovice Muñoz Oyama Siófok Nishio Morioka Lucknow Suwa Fertőd Tachov Elterlein Jiamusi Bátaszék Erlangen Balassagyarmat Anqing Košťany Terezín Seto Jining Ōme Zábřeh Sumoto Dobřany Kosmonosy Shirakawa Mariánské Lázně Rýmařov Monbetsu Červený Kostelec Vysoké Mýto Yinchuan Musashino Chōfu Jiaxing Hlučín Maizuru Hatsukaichi Hefei Kadoma Ostrov Weifang Yamatokōriyama Kiskunmajsa Wollongong Suzuka Kuji Kitakami Straubing Jiříkov Kushiro Scheibenberg Braga Szentendre Mbabane Barcs Chongzuo Nordhausen Yangzhou Mezőtúr Fushun Muscat Sucre Jablunkov Norden Náchod Tanvald Roudnice nad Labem Krnov Shuangyashan Yamoussoukro Gyomaendrőd Kitami Andorra la Vella Roxas Baiyin Arica Wuhu Yasugi Valmiera Huangshan City Beihai Hakusan Komló Kamogawa Muntinlupa Pinamar Yulin Ma'anshan Mooka Lanzhou Kigali Lhasa Hengyang Police nad Metují Obernkirchen Chaozhou Balatonföldvár Uherské Hradiště Tōgane Benxi Siklós Kisbér Kiryū Gura Humorului Balatonboglár Haikou Lincang Sajószentpéter Jimbolia Fürth Uwajima Shibukawa Kisújszállás Mohács Ruhla Zhongshan Tatabánya Nemuro Zushi Urayasu Ibbenbüren Naruto Annaberg-Buchholz Litvínov Nantong Salgótarján Dublin Suihua Hino City Ōtake Tsuchiura Hamm Kamaishi Kadarkút Iwakuni Ontario Bremerhaven Yellowknife Kaposvár Bohumín Podbořany Říčany Lenti Tachikawa City Schmalkalden Dubí Ehingen Hatvan Sárvár Blansko Broumov Hohenstein-Ernstthal Vecsés Horní Slavkov Bamberg Brandenburg an der Havel Zărnești Gera Salzgitter Shaoxing Bílina Shijōnawate Mezőkövesd Nanchang Năsăud Pasay Fujisawa Kumano Nagai Písek Iwanuma Auerbach in der Oberpfalz Tucson Hürth Letovice Tōno Xiaogan Slaný Aue Nagybajom Csongrád Tangshan Tacloban Dunaújváros Tokaj Unnan Kaplice Gyöngyös Náměšť nad Oslavou Yaizu Loket Nepomuk Zhengzhou Jilin City Šternberk Studénka Bicaz Kravaře Mezőcsát Tai'an Ozamiz Itō Flămânzi Bóly Sakaiminato Vítkov Sinaia Kdyně
České Budějovice, Třebíč and Erlangen are a sister city of min number of cities or administrative country subdivisions
České Budějovice Třebíč Erlangen
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 second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', [{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?h WHERE { VALUES ( ?m ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } . ?i rdf:type ?m } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) ?a WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:city ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?a } . FILTER ( ?k = ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2772
P36
Q515
USER
Which city is the capital of West Sumatra ?
(Q2772,P36,c(Q515))
action filter_type
action find
entity Q2772
relation P36
type Q515
['Q2772', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q2772 property:P36 ?g . ?g rdf:type ontology:Q515 }
West Sumatra
action filter_type
action find
entity West Sumatra
relation capital
type city
['West Sumatra', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:West_Sumatra property:capital ?g . ?g rdf:type ontology:city }
[]
city
Q7253
SYSTEM
Padang
Q7253
(Q2772,P36,c(Q515))
action filter_type
action find
entity Q2772
relation P36
type Q515
The capital of West Sumatra is [ANSWER]
['Q2772', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q2772 property:P36 ?g . ?g rdf:type ontology:Q515 }
Padang
The capital of West Sumatra is Padang
Padang
action filter_type
action find
entity West Sumatra
relation capital
type city
['West Sumatra', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:West_Sumatra property:capital ?g . ?g rdf:type ontology:city }
[]