Simple Question (Direct)
Simple Question
Q16724923
P161
Q502895
USER
Who starred in Love Is... ?
(Q16724923,P161,c(Q502895))
action filter_type
action find
entity Q16724923
relation P161
type Q502895
['Q16724923', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q16724923 property:P161 ?q }
Love Is...
action filter_type
action find
entity Love Is...
relation cast member
type common name
['Love Is...', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Love_Is... property:cast_member ?q }
[]
common name
Q7497236 Q7137607 Q6617244
SYSTEM
Shin Young-kyun, Park Am, Nam Jin
Q7137607 Q6617244 Q7497236 Q6907481
(Q16724923,P161,c(Q502895))
action filter_type
action find
entity Q16724923
relation P161
type Q502895
[ANSWERS] starred in Love Is...
['Q16724923', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q16724923 property:P161 ?q }
Park Am Nam Jin Shin Young-kyun Moon Hee
Shin Young-kyun, Park Am and Nam Jin starred in Love Is...
Shin Young-kyun Park Am Nam Jin
action filter_type
action find
entity Love Is...
relation cast member
type common name
['Love Is...', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Love_Is... property:cast_member ?q }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q7497236 Q7137607 Q6617244
P161
Q838948
USER
Which works of art have Shin Young-kyun, Park Am and Nam Jin as actor ?
(c(Q838948),P161,Q7497236) (c(Q838948),P161,Q7137607) (c(Q838948),P161,Q6617244)
action union
action filter_type
action find_reverse
entity Q7497236
relation P161
type Q838948
action filter_type
action find_reverse
entity Q7137607
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6617244
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q7497236'] [{'concept': 'Q838948'}, 'P161', 'Q7137607'] [{'concept': 'Q838948'}, 'P161', 'Q6617244']
SELECT DISTINCT ?o WHERE { { ?o rdf:type ontology:Q838948 . ?o property:P161 resource:Q7497236 } UNION { ?o property:P161 resource:Q7137607 . ?o rdf:type ontology:Q838948 } }
Shin Young-kyun Park Am Nam Jin
action union
action filter_type
action find_reverse
entity Shin Young-kyun
relation cast member
type work of art
action filter_type
action find_reverse
entity Park Am
relation cast member
type work of art
action filter_type
action find_reverse
entity Nam Jin
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Shin Young-kyun'] [{'concept': 'work of art'}, 'cast member', 'Park Am'] [{'concept': 'work of art'}, 'cast member', 'Nam Jin']
SELECT DISTINCT ?o WHERE { { ?o rdf:type ontology:work_of_art . ?o property:cast_member resource:Shin_Young-kyun } UNION { ?o property:cast_member resource:Park_Am . ?o rdf:type ontology:work_of_art } }
[]
work of art
Q12613797 Q7214492 Q7214492
SYSTEM
Red Scarf for 2nd, 3rd, Im Kkeok-jeong for 1st
Q16724833 Q695179 Q16724945 Q16724624 Q16724923 Q5457162 Q16724936 Q16724550 Q7762779 Q16725043 Q7740722 Q6514995 Q16724605 Q16724601 Q12613797 Q7768930 Q7243874 Q16725142 Q6770654 Q5455999 Q7214492 Q7397449 Q4927683 Q7322982 Q16724710 Q16724588 Q16725296 Q16724838 Q16724923 Q16724769 Q16724540 Q16725443 Q7243874 Q7858009 Q7214492 Q7747193 Q16725086 Q16725346 Q16724923 Q16724506 Q16724586
(c(Q838948),P161,Q7497236) (c(Q838948),P161,Q7137607) (c(Q838948),P161,Q6617244)
action union
action filter_type
action find_reverse
entity Q7497236
relation P161
type Q838948
action filter_type
action find_reverse
entity Q7137607
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6617244
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q7497236'] [{'concept': 'Q838948'}, 'P161', 'Q7137607'] [{'concept': 'Q838948'}, 'P161', 'Q6617244']
SELECT DISTINCT ?o WHERE { { ?o rdf:type ontology:Q838948 . ?o property:P161 resource:Q7497236 } UNION { ?o property:P161 resource:Q7137607 . ?o rdf:type ontology:Q838948 } }
Ondal the Fool and Princess Pyeong-gang The Coachman Evergreen Tree General Nami Love Is... Flame in the Valley A Wife from a Mountain Village The Widow The Sea Village Opium Wars The Houseguest and My Mother Lee Seong-gye King Taejo I Have Been Cheated Dream Im Kkeok-jeong The Three-Day Reign Prince Daewon The Memorial Gate for Virtuous Women Market Five Marines Red Scarf Sad Story of Self Supporting Child Blood Relation Rice The Man from Tokyo Lonely Father Conqueror Night Love Is... Meetings and Partings A Plateau Wind and Clouds Prince Daewon Twilight Train Red Scarf The Life of Na Woon-gyu Mother, Why Me? Conditions of a Virgin Love Is... Brokenhearted Way to Love
Im Kkeok-jeong, Red Scarf and Red Scarf have Shin Young-kyun, Park Am and Nam Jin as actor
Im Kkeok-jeong Red Scarf Red Scarf
action union
action filter_type
action find_reverse
entity Shin Young-kyun
relation cast member
type work of art
action filter_type
action find_reverse
entity Park Am
relation cast member
type work of art
action filter_type
action find_reverse
entity Nam Jin
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Shin Young-kyun'] [{'concept': 'work of art'}, 'cast member', 'Park Am'] [{'concept': 'work of art'}, 'cast member', 'Nam Jin']
SELECT DISTINCT ?o WHERE { { ?o rdf:type ontology:work_of_art . ?o property:cast_member resource:Shin_Young-kyun } UNION { ?o property:cast_member resource:Park_Am . ?o rdf:type ontology:work_of_art } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7137607
P19
Q515
USER
Which city is the birthplace of Park Am ?
(Q7137607,P19,c(Q515))
action filter_type
action find
entity Q7137607
relation P19
type Q515
['Q7137607', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q7137607 property:P19 ?p }
Park Am
action filter_type
action find
entity Park Am
relation place of birth
type city
['Park Am', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Park_Am property:place_of_birth ?p }
[]
city
Q8684
SYSTEM
Seoul
Q8684
(Q7137607,P19,c(Q515))
action filter_type
action find
entity Q7137607
relation P19
type Q515
[ANSWER] the birthplace of Park Am
['Q7137607', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q7137607 property:P19 ?p }
Seoul
Seoul the birthplace of Park Am
Seoul
action filter_type
action find
entity Park Am
relation place of birth
type city
['Park Am', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Park_Am property:place_of_birth ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q391429
Q515
USER
And how about Han Geng?
(Q391429,P19,c(Q515))
action filter_type
action find
entity Q391429
relation P19
type Q515
['Q391429', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q391429 property:P19 ?y . ?y rdf:type ontology:Q515 }
Han Geng
action filter_type
action find
entity Han Geng
relation place of birth
type city
['Han Geng', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Han_Geng property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
city
Q217646
SYSTEM
Mudanjiang
Q217646
(Q391429,P19,c(Q515))
action filter_type
action find
entity Q391429
relation P19
type Q515
[ANSWER]
['Q391429', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q391429 property:P19 ?y . ?y rdf:type ontology:Q515 }
Mudanjiang
Mudanjiang
action filter_type
action find
entity Han Geng
relation place of birth
type city
['Han Geng', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Han_Geng property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q13220204 Q515
USER
How many cities are the capital of atmost 3 administrative territories and administrative country subdivisions ?
(c(Q515),P1376,c(Q15617994)|c(Q13220204))
action count
action atmost
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q13220204
value 3
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?k WHERE { VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?l rdf:type ?m } GROUP BY ?k } . FILTER ( ?o <= 3 ) }
action count
action atmost
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?k WHERE { VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?l rdf:type ?m } GROUP BY ?k } . FILTER ( ?o <= 3 ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision city
SYSTEM
525
Q15826 Q373542 Q780731 Q39738 Q3572 Q10126 Q843001 Q1710 Q843006 Q843009 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q19689 Q873377 Q853746 Q8131 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q3624 Q592338 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 Q57953 Q917888 Q1070920 Q174096 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q3926 Q11462 Q834567 Q851675 Q3214 Q842908 Q23482 Q505208 Q1000336 Q911530 Q5838 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q1899 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q1794 Q793405 Q665 Q375097 Q911558 Q59144 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q1461 Q843018 Q14499 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q12245 Q117676 Q16959 Q1844 Q10389 Q650015 Q30340 Q23430 Q225257 Q35925 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q1519 Q8684 Q270704 Q3838 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q602042 Q237699 Q207406 Q517407 Q23661 Q191651 Q7856199 Q3904 Q325164 Q305640 Q14819 Q5285 Q14182 Q740810 Q1069007 Q861221 Q911667 Q6807568 Q7568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q3852 Q846652 Q7786 Q10104 Q3859 Q155975 Q19660 Q1020939 Q674311 Q3915 Q155674 Q863747 Q841125 Q314686 Q487439 Q385591 Q1953 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 Q1330294 Q14960 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q2978 Q2973 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q14821 Q680743 Q564234 Q3958 Q488990 Q3955 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q1854 Q1856 Q855016 Q3787 Q855011 Q308657 Q4007 Q480421 Q14168 Q823907 Q7070 Q3826 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q542154 Q2526233 Q946769 Q846351 Q739304 Q789233 Q7253 Q2936 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q63145 Q2119 Q390796 Q271917 Q5972 Q1720 Q1721 Q83247 Q1645 Q7578 Q390798 Q11443 Q7033 Q14126 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q183584 Q2907 Q15847 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q20073 Q1863 Q1865 Q2209 Q2200 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q206872 Q72778 Q1355 Q146363 Q208818 Q187136 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 Q1761 Q57948 Q2795 Q378225 Q954569 Q2887 Q738275 Q69060 Q8179 Q727383 Q2061 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3935 Q7003 Q3931 Q726993 Q3919 Q3751 Q3750 Q3616 Q42666 Q738013 Q894059 Q933638 Q183111 Q40584 Q1067897 Q25475 Q11506 Q613813 Q375862 Q107624 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q187284 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515),P1376,c(Q15617994)|c(Q13220204))
action count
action atmost
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q13220204
value 3
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?k WHERE { VALUES ( ?m ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?l rdf:type ?m } GROUP BY ?k } . FILTER ( ?o <= 3 ) }
Palu Szigetvár Szeghalom Laoag Tunis Serang Csorna Isabela City Nagykálló Marcali Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Tirana Dumaguete Bátonyterenye Palembang Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Addis Ababa Marawi 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 Schwarzenberg Vinaròs Mamuju Sorsogon City Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Toyooka Pétervására Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Pretoria Surabaya Bonyhád Takahashi Cottbus Gyál Marseille Ouarzazate Tandil Hajdúhadház Kabul Szolnok Kidapawan Riyadh Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Kunszentmárton Florianópolis Kiskunfélegyháza 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 Berettyóújfalu Lugdunum Tiszaújváros Putnok Zhanjiang 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 Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Stanley Viseu Ürümqi Vaduz Bandung Pannonhalma Zhengzhou Ulaanbaatar Rupea Tabuk Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Abu Dhabi Seoul Třebíč Kinshasa Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Wellington Masbate City Turquoise Mountain Mbabane Kayes Abashiri Freiberg Tarlac Banjarmasin Békés Washukanni Nakatsu Elek Emmen Yogyakarta Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Worms Cigánd Pekanbaru Tanjung Pinang Kigali Kutná Hora Bucharest Digos Kisvárda Antananarivo Tandag Uda Tsuyama Mati Oral Ōmura Yerevan Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár Jiankang Brno Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Regensburg Darmstadt Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Coburg Balatonfüred Annaka Neubrandenburg Kostanay Weimar Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Ho Chi Minh City Malaybalay Csurgó Abuja Heves Minas Tirith Rosenheim Abony Pontianak HigashiMatsuyama Eisenach Muscat Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Caracas Morioka Lucknow Patna Ungaran Hirado Koronadal Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Padang Oldenburg Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Imus Mannheim Orosháza Kushiro Medan Mainz Wiesbaden Braga Cagayan de Oro Jambi Szentendre Kediri Nordhausen Mataram Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Lanzhou Sucre Manado Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Kuala Lumpur Roxas Tuguegarao Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Ajka Taiyuan Bangalore Most Fuchū Luoyang Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Sivas Brand-Erbisdorf Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Dublin Aue Chemnitz Hagi Vyškov Santiago Karatsu Xining Pangkal Pinang Sokolov Yellowknife Edoras Kaposvár Bacolod Lenti Catbalogan Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Windhoek Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Gera Tehran Shaoxing Xàtiva Borongan Mezőkövesd Jihlava San Fernando Oroquieta Batumi Denpasar Kőszeg Nyíradony Calapan Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito 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
525
action count
action atmost
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) ?k WHERE { VALUES ( ?m ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?l rdf:type ?m } GROUP BY ?k } . FILTER ( ?o <= 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q8684
P190
Q56061 Q515
USER
How many administrative territories and cities are partner towns of Seoul ?
(Q8684,P190,c(Q56061)) (Q8684,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q8684
relation P190
type Q56061
action filter_type
action find
entity Q8684
relation P190
type Q515
['Q8684', 'P190', {'concept': 'Q56061'}] ['Q8684', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Q8684 property:P190 ?n . ?n rdf:type ontology:Q56061 } UNION { resource:Q8684 property:P190 ?n . ?n rdf:type ontology:Q515 } }
Seoul
action count
action union
action filter_type
action find
entity Seoul
relation sister city
type administrative territorial entity
action filter_type
action find
entity Seoul
relation sister city
type city
['Seoul', 'sister city', {'concept': 'administrative territorial entity'}] ['Seoul', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Seoul property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { resource:Seoul property:sister_city ?n . ?n rdf:type ontology:city } }
[]
administrative territorial entity city
SYSTEM
23 administrative territories and 5 cities
Q987 Q23430 Q3630 Q1353 Q3616 Q649 Q1861 Q3130 Q1867 Q85 Q1858 Q19689 Q16635 Q174 Q220 Q270 Q8678 Q90 Q1524 Q956 Q1520 Q1489 Q3640 Q1490 Q1486 Q60 Q61 Q62
(Q8684,P190,c(Q56061)) (Q8684,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q8684
relation P190
type Q56061
action filter_type
action find
entity Q8684
relation P190
type Q515
[ANSWER]
['Q8684', 'P190', {'concept': 'Q56061'}] ['Q8684', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Q8684 property:P190 ?n . ?n rdf:type ontology:Q56061 } UNION { resource:Q8684 property:P190 ?n . ?n rdf:type ontology:Q515 } }
New Delhi Ulaanbaatar Jakarta Delhi Tehran Moscow Bangkok Sydney Taipei Cairo Hanoi Tirana Guam São Paulo Rome Warsaw Rio de Janeiro Paris Athens Beijing Astana Mexico City Ankara Tokyo Buenos Aires New York City Washington, D.C. San Francisco
23 administrative territories and 5 cities
action count
action union
action filter_type
action find
entity Seoul
relation sister city
type administrative territorial entity
action filter_type
action find
entity Seoul
relation sister city
type city
['Seoul', 'sister city', {'concept': 'administrative territorial entity'}] ['Seoul', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Seoul property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { resource:Seoul property:sister_city ?n . ?n rdf:type ontology:city } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8684
P190
Q56061
USER
How many administrative territories are sister towns of Seoul ?
(Q8684,P190,c(Q56061))
action count
action filter_type
action find
entity Q8684
relation P190
type Q56061
['Q8684', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q8684 property:P190 ?i . ?i rdf:type ontology:Q56061 }
Seoul
action count
action filter_type
action find
entity Seoul
relation sister city
type administrative territorial entity
['Seoul', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Seoul property:sister_city ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
23
Q1353 Q649 Q1861 Q3130 Q1867 Q16635 Q220 Q90 Q1524 Q1520 Q1489 Q987 Q3630 Q85 Q174 Q270 Q60 Q8678 Q956 Q3640 Q1490 Q61 Q62
(Q8684,P190,c(Q56061))
action count
action filter_type
action find
entity Q8684
relation P190
type Q56061
[ANSWER]
['Q8684', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q8684 property:P190 ?i . ?i rdf:type ontology:Q56061 }
Delhi Moscow Bangkok Sydney Taipei Guam Rome Paris Athens Astana Mexico City New Delhi Jakarta Cairo São Paulo Warsaw New York City Rio de Janeiro Beijing Ankara Tokyo Washington, D.C. San Francisco
23
action count
action filter_type
action find
entity Seoul
relation sister city
type administrative territorial entity
['Seoul', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Seoul property:sister_city ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q771546
Q56061
USER
And how about Ourém Municipality?
(Q771546,P190,c(Q56061))
action count
action filter_type
action find
entity Q771546
relation P190
type Q56061
['Q771546', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q771546 property:P190 ?s . ?s rdf:type ontology:Q56061 }
Ourém Municipality
action count
action filter_type
action find
entity Ourém Municipality
relation sister city
type administrative territorial entity
['Ourém Municipality', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Ourém_Municipality property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q771546,P190,c(Q56061))
action count
action filter_type
action find
entity Q771546
relation P190
type Q56061
[ANSWER]
['Q771546', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q771546 property:P190 ?s . ?s rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Ourém Municipality
relation sister city
type administrative territorial entity
['Ourém Municipality', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Ourém_Municipality property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8684
P6
Q502895
USER
Which person does Seoul serve as the head of government for ?
(Q8684,P6,c(Q502895))
action filter_type
action find
entity Q8684
relation P6
type Q502895
['Q8684', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q8684 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Seoul
action filter_type
action find
entity Seoul
relation head of government
type common name
['Seoul', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Seoul property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q22803
SYSTEM
Park Won-soon
Q22803
(Q8684,P6,c(Q502895))
action filter_type
action find
entity Q8684
relation P6
type Q502895
In [ANSWER] Seoul serves as the head of government
['Q8684', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q8684 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Park Won-soon
In Park Won-soon Seoul serves as the head of government
Park Won-soon
action filter_type
action find
entity Seoul
relation head of government
type common name
['Seoul', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Seoul property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8684
P47
Q1048835
USER
Who shares the border with Seoul ?
(Q8684,P47,c(Q1048835))
action filter_type
action find
entity Q8684
relation P47
type Q1048835
['Q8684', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q8684 property:P47 ?h . ?h rdf:type ontology:Q1048835 }
Seoul
action filter_type
action find
entity Seoul
relation shares border with
type political territorial entity
['Seoul', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Seoul property:shares_border_with ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q20937
SYSTEM
Gyeonggi Province
Q20937
(Q8684,P47,c(Q1048835))
action filter_type
action find
entity Q8684
relation P47
type Q1048835
[ANSWER] shares the border with Seoul
['Q8684', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q8684 property:P47 ?h . ?h rdf:type ontology:Q1048835 }
Gyeonggi Province
Gyeonggi Province shares the border with Seoul
Gyeonggi Province
action filter_type
action find
entity Seoul
relation shares border with
type political territorial entity
['Seoul', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Seoul property:shares_border_with ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8684
P127
Q55488
USER
Which railway station is owned by Seoul ?
(c(Q55488),P127,Q8684)
action filter_type
action find_reverse
entity Q8684
relation P127
type Q55488
[{'concept': 'Q55488'}, 'P127', 'Q8684']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q8684 . ?g rdf:type ontology:Q55488 }
Seoul
action filter_type
action find_reverse
entity Seoul
relation owned by
type railway station
[{'concept': 'railway station'}, 'owned by', 'Seoul']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Seoul . ?g rdf:type ontology:railway_station }
[]
railway station
Q17469
SYSTEM
Gangnam Station
Q17469
(c(Q55488),P127,Q8684)
action filter_type
action find_reverse
entity Q8684
relation P127
type Q55488
[ANSWER] is owned by Seoul
[{'concept': 'Q55488'}, 'P127', 'Q8684']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q8684 . ?g rdf:type ontology:Q55488 }
Gangnam Station
Gangnam Station is owned by Seoul
Gangnam Station
action filter_type
action find_reverse
entity Seoul
relation owned by
type railway station
[{'concept': 'railway station'}, 'owned by', 'Seoul']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Seoul . ?g rdf:type ontology:railway_station }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8684
P138
Q811979
USER
Which architectural structure comes from Seoul ?
(c(Q811979),P138,Q8684)
action filter_type
action find_reverse
entity Q8684
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q8684']
SELECT DISTINCT ?l WHERE { ?l property:P138 resource:Q8684 . ?l rdf:type ontology:Q811979 }
Seoul
action filter_type
action find_reverse
entity Seoul
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Seoul']
SELECT DISTINCT ?l WHERE { ?l property:named_after resource:Seoul . ?l rdf:type ontology:architectural_structure }
[]
architectural structure
Q3390269
SYSTEM
place de Séoul
Q3390269
(c(Q811979),P138,Q8684)
action filter_type
action find_reverse
entity Q8684
relation P138
type Q811979
[ANSWER] comes from Seoul
[{'concept': 'Q811979'}, 'P138', 'Q8684']
SELECT DISTINCT ?l WHERE { ?l property:P138 resource:Q8684 . ?l rdf:type ontology:Q811979 }
place de Séoul
Place de Séoul comes from Seoul
place de Séoul
action filter_type
action find_reverse
entity Seoul
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Seoul']
SELECT DISTINCT ?l WHERE { ?l property:named_after resource:Seoul . ?l rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3390269
P17
Q15617994
USER
Which administrative territory is that architectural structure situated in ?
(Q3390269,P17,c(Q15617994))
action filter_type
action find
entity Q3390269
relation P17
type Q15617994
['Q3390269', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q3390269 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
place de Séoul
action filter_type
action find
entity place de Séoul
relation country
type designation for an administrative territorial entity
['place de Séoul', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:place_de_Séoul property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3390269,P17,c(Q15617994))
action filter_type
action find
entity Q3390269
relation P17
type Q15617994
That architectural structure is situated in [ANSWER]
['Q3390269', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q3390269 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
France
That architectural structure is situated in France
France
action filter_type
action find
entity place de Séoul
relation country
type designation for an administrative territorial entity
['place de Séoul', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:place_de_Séoul property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]