Simple Question (Direct)
Simple Question
Q2069874
P39
Q12737077
USER
Which occupations were the positions occupied by Per-René Seeger ?
(Q2069874,P39,c(Q12737077))
action filter_type
action find
entity Q2069874
relation P39
type Q12737077
['Q2069874', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q2069874 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Per-René Seeger
action filter_type
action find
entity Per-René Seeger
relation position held
type occupation
['Per-René Seeger', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Per-René_Seeger property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q18557729 Q1939555
SYSTEM
member of the Volkskammer, member of the German Bundestag
Q18557729 Q1939555
(Q2069874,P39,c(Q12737077))
action filter_type
action find
entity Q2069874
relation P39
type Q12737077
[ANSWERS] were the positions occupied by Per-René Seeger
['Q2069874', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q2069874 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
member of the Volkskammer member of the German Bundestag
Member of the Volkskammer and member of the German Bundestag were the positions occupied by Per-René Seeger
member of the Volkskammer member of the German Bundestag
action filter_type
action find
entity Per-René Seeger
relation position held
type occupation
['Per-René Seeger', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Per-René_Seeger property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18557729
P17
Q7275
USER
Which state does that occupation belong to ?
(Q18557729,P17,c(Q7275))
action filter_type
action find
entity Q18557729
relation P17
type Q7275
['Q18557729', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q18557729 property:P17 ?h . ?h rdf:type ontology:Q7275 }
member of the Volkskammer
action filter_type
action find
entity member of the Volkskammer
relation country
type state
['member of the Volkskammer', 'country', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:member_of_the_Volkskammer property:country ?h . ?h rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q1939555
SYSTEM
Did you mean member of the German Bundestag ?
Q18557729 Q1939555
(Q18557729,P17,c(Q7275)) (Q1939555,P17,c(Q7275))
[ANSWER]
['Q18557729', 'P17', {'concept': 'Q7275'}] ['Q1939555', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q18557729 property:P17 ?h . ?h rdf:type ontology:Q7275 }
member of the Volkskammer member of the German Bundestag
Did you mean member of the German Bundestag ?
member of the German Bundestag
['member of the Volkskammer', 'country', {'concept': 'state'}] ['member of the German Bundestag', 'country', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:member_of_the_Volkskammer property:country ?h . ?h rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the Volkskammer. Could you tell me the answer for that?
(Q18557729,P17,c(Q7275))
Q18557729
['Q18557729', 'P17', {'concept': 'Q7275'}]
['member of the Volkskammer', 'country', {'concept': 'state'}]
[]
Q16957
SYSTEM
East Germany
Q16957
(Q18557729,P17,c(Q7275))
action filter_type
action find
entity Q18557729
relation P17
type Q7275
That occupation belongs to the [ANSWER]
['Q18557729', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q18557729 property:P17 ?h . ?h rdf:type ontology:Q7275 }
East Germany
That occupation belongs to the East Germany
East Germany
action filter_type
action find
entity member of the Volkskammer
relation country
type state
['member of the Volkskammer', 'country', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:member_of_the_Volkskammer property:country ?h . ?h rdf:type ontology:state }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q178913
P1376
Q7275 Q56061 Q486972
USER
How many states have around the same number of administrative territories and human settlements have their first city as empire of Trebizond ?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q178913
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:P1376 ?d . ?c rdf:type ontology:Q56061 . ?d rdf:type ontology:Q7275 } UNION { ?c property:P1376 ?d . ?d rdf:type ontology:Q7275 . ?c rdf:type ontology:Q486972 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P1376 resource:Q178913 . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } } } . FILTER ( ?x = ?r ) }
empire of Trebizond
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_multi_types
action find_reverse
entity empire of Trebizond
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:capital_of ?d . ?c rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:state } UNION { ?c property:capital_of ?d . ?d rdf:type ontology:state . ?c rdf:type ontology:human_settlement } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:capital_of resource:empire_of_Trebizond . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } } } . FILTER ( ?x = ?r ) }
[]
state administrative territorial entity human settlement
SYSTEM
326
Q230791 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q174193 Q466581 Q110888 Q1471995 Q1295806 Q457167 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q834486 Q186096 Q133356 Q501684 Q164079 Q1649871 Q588672 Q62623 Q282475 Q1789596 Q184536 Q523380 Q980 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q188553 Q536476 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q15864 Q1362278 Q1269234 Q2361927 Q1067513 Q1468426 Q71092 Q15180 Q800236 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q210542 Q223936 Q8735 Q8733 Q156038 Q7405 Q208404 Q467627 Q1796239 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q1771831 Q105313 Q44642 Q38872 Q107299 Q546282 Q11876909 Q541455 Q216173 Q646374 Q241748 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q207272 Q889394 Q151148 Q1796198 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q762943 Q1998866 Q106577 Q473433 Q651377 Q161885 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q157367 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1477220 Q269864 Q199841 Q335088 Q325461 Q583038 Q860407 Q146761 Q200262 Q1296908 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q158725 Q139315 Q26273 Q832554 Q3271735 Q160440 Q797422 Q235030 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q796583 Q1136259 Q28456 Q1183649 Q209065 Q21203 Q631210 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q4948 Q836169 Q234009 Q28208 Q903779 Q55502 Q713750 Q2552742 Q220167 Q147909 Q319881 Q1709185 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q181254 Q2396442 Q142417 Q2428714 Q1406298 Q14934927 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q552157 Q170770 Q30623 Q225890 Q5157575 Q3456373 Q217196 Q154195 Q266923 Q285658 Q150061 Q70972 Q1143164 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q105092 Q178038 Q206279 Q1469100 Q25279 Q1078602 Q2378381 Q747314 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q150058 Q4461035 Q33946 Q762084 Q2579852 Q544630 Q180114 Q431731 Q36704 Q889884 Q698239 Q1142179 Q4453003 Q4453007 Q829356 Q764697 Q853477 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q2712121 Q13426199 Q964024 Q877155 Q487829 Q2365048 Q4274522 Q230407 Q49683 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q93180 Q28573 Q949268 Q1986139 Q151536 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304
(c(Q56061)|c(Q486972),P1376,c(Q7275))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q178913
relation P1376
type Q56061
type Q486972
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:P1376 ?d . ?c rdf:type ontology:Q56061 . ?d rdf:type ontology:Q7275 } UNION { ?c property:P1376 ?d . ?d rdf:type ontology:Q7275 . ?c rdf:type ontology:Q486972 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P1376 resource:Q178913 . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } } } . FILTER ( ?x = ?r ) }
Kingdom of Scotland Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais United Kingdom of Great Britain and Ireland Hoysala Empire Kingdom of Essex Former Qin Lower Yafa West Ukrainian People's Republic British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Federation of South Arabia Tsardom of Russia Ukrainian Soviet Socialist Republic Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Kalmar Union Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Italy Kingdom of Funan Batavian Republic Toucouleur Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Yemen Arab Republic Saar Protectorate United Kingdom of the Netherlands United States of Stellaland Stellaland Duchy of Masovia Injuids Limmu-Ennarea Second French Empire Soviet Union Bahawalpur State Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto Indo-Greek Kingdom Kingdom of Holland Second Brazilian Republic Kingdom of Italy Medes Qing dynasty Duchy of Courland and Semigallia Sui dynasty Kingdom of Armenia Durrani Empire Kingdom of Seville Aerican Empire Powys Wenwynwyn Republic of Salé Federal Republic of Central America Delhi Sultanate Kruševo Republic Kingdom of Wessex Federation of Arab Republics Prussia Kingdom of Northumbria Xia State of Brazil Anglo-Egyptian Sudan Free City of Danzig French India Kingdom of Serbia Astrakhan Khanate East Pakistan Kingdom of Croatia Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Second Polish Republic Portuguese Mozambique Chola dynasty Kingdom of Córdoba Gallic Empire Adiabene Kingdom of Prussia Conch Republic Yamhad Ouaddai Empire First Portuguese Republic Muang Phuan Kingdom of Brycheiniog United Suvadive Republic Finnish Socialist Workers' Republic County of Holland Czech and Slovak Federal Republic Neustria Ammon Shunga Empire Kingdom of Great Britain Kingdom of Yugoslavia Dahomey Republic of Genoa East Germany Kingdom of Jaén Kamarupa Brandenburg-Prussia Jolof Empire Northern Liang Soviet Russia People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Somali Democratic Republic Socialist Republic of Serbia South Yemen Armenian Kingdom of Cilicia Kingdom of Thessalonica Ostrogothic Kingdom Kahlur State Hatay State Kingdom of Navarre Kathiri Kingdom of Powys First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Tanganyika Territory Dʿmt Sint Maarten Argentine Confederation Kingdom of Arles Crimean Khanate Republic of Upper Volta Principality of Antioch Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Western Yan Kara Koyunlu Northern Zhou Kingdom of Kongo Southwestern Somalia Silla Deccan sultanates Kingdom of Greece Aruba Nogai Horde Western Satraps Kingdom of the Hwicce empire of Trebizond Austrian Empire Hatay Union between Sweden and Norway Republic of Venice Qasim Khanate Magadha Goryeo United Kingdom of Portugal, Brazil and the Algarves Kingdom of Jerusalem West Germany Northland State Lydenburg Republic Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Serbia and Montenegro Finnish Democratic Republic Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Empire of Nicea Kingdom of Galicia and Lodomeria Kingdom of Valencia Sena dynasty Serbian Empire Murrawarri Republic Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Nieuwe Republiek Grand Duchy of Moscow Manchukuo Kingdom of Strathclyde Griqualand East Republic of Brescia Crown of Castile Kingdom of Bavaria Kingdom of Mysore First Mexican Empire Republic of Ararat Kingdom of France Western Wei Kingdom of Murcia Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Sovereign Principality of the United Netherlands Kingdom of Mercia Second Spanish Republic Waalo Karamanids Curaçao Kingdom of Nepal State of Aden Bechuanaland Protectorate Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Travancore Akkadian empire Czechoslovakia Bamana Empire Taurida Soviet Socialist Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Kingdom of Rwanda Hubaekje Orange River Colony Tashkent State Tashkent Khanate Kingdom of Makuria Taifa of Orihuela Lan Xang Slovak Socialist Republic Los Altos, Central America Kingdom of Montenegro Khanate of Kokand Guelders Gupta Empire Libyan Arab Jamahiriya Republic of Connaught Republic of China Moldavian Democratic Republic Chera Dynasty Chagatai Khanate Adal Sultanate Tyrconnell Kingdom of Israel Grand Duchy of Lithuania Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic People's Republic of Poland Far Eastern Republic Realm of Stefan Dragutin Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Kara-Khitan Khanate Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic
326
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action count
action filter_multi_types
action find_reverse
entity empire of Trebizond
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?x ) WHERE { { ?c property:capital_of ?d . ?c rdf:type ontology:administrative_territorial_entity . ?d rdf:type ontology:state } UNION { ?c property:capital_of ?d . ?d rdf:type ontology:state . ?c rdf:type ontology:human_settlement } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:capital_of resource:empire_of_Trebizond . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } } } . FILTER ( ?x = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16666
P1376
Q7275 Q515
USER
Which cities are the capital of lesser number of states than Nanjing ?
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q16666
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?l ) WHERE { ?u property:P1376 ?g . ?u rdf:type ontology:Q515 . ?g rdf:type ontology:Q7275 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Q16666 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } . FILTER ( ?l < ?s ) }
Nanjing
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Nanjing
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?l ) WHERE { ?u property:capital_of ?g . ?u rdf:type ontology:city . ?g rdf:type ontology:state } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Nanjing property:capital_of ?j . ?j rdf:type ontology:state } } . FILTER ( ?l < ?s ) }
[]
state city
Q1486 Q1773 Q1731
SYSTEM
Buenos Aires, Riga, Dresden
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 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 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 Q6602 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 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 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 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
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q16666
relation P1376
type Q7275
[ANSWERS] are the capital of lesser number of states than Nanjing
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?l ) WHERE { ?u property:P1376 ?g . ?u rdf:type ontology:Q515 . ?g rdf:type ontology:Q7275 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Q16666 property:P1376 ?j . ?j rdf:type ontology:Q7275 } } . FILTER ( ?l < ?s ) }
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 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 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 Strasbourg 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 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ū 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 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
Buenos Aires, Riga and Dresden are the capital of lesser number of states than Nanjing
Buenos Aires Riga Dresden
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Nanjing
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?g ) AS ?l ) WHERE { ?u property:capital_of ?g . ?u rdf:type ontology:city . ?g rdf:type ontology:state } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { resource:Nanjing property:capital_of ?j . ?j rdf:type ontology:state } } . FILTER ( ?l < ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11194
P1376
Q7275 Q515
USER
And how about Sarajevo?
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q11194
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q11194 property:P1376 ?b . ?b rdf:type ontology:Q7275 } } . FILTER ( ?c < ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?c ) WHERE { ?a property:P1376 ?i . ?a rdf:type ontology:Q515 . ?i rdf:type ontology:Q7275 } GROUP BY ?a } }
Sarajevo
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Sarajevo
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Sarajevo property:capital_of ?b . ?b rdf:type ontology:state } } . FILTER ( ?c < ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?c ) WHERE { ?a property:capital_of ?i . ?a rdf:type ontology:city . ?i rdf:type ontology:state } GROUP BY ?a } }
[]
state city
Q1486 Q1773 Q1731
SYSTEM
Buenos Aires, Riga, Dresden
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 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 Q181276 Q583137 Q3692 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q379160 Q132997 Q478038 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 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 Q270704 Q167109 Q3104 Q734378 Q459787 Q585630 Q855529 Q7248 Q4346 Q1107569 Q1025387 Q6602 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 Q124375 Q933641 Q854940 Q2180 Q714628 Q335427 Q177149 Q9005 Q2337 Q633789 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 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 Q530634 Q4827 Q877227 Q5753 Q429409 Q2749 Q193719 Q170454 Q211243 Q841603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 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 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q107401 Q71159 Q3355306 Q57944 Q189761 Q189769 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 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
(c(Q515),P1376,c(Q7275))
action less
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_type
action find
entity Q11194
relation P1376
type Q7275
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q11194 property:P1376 ?b . ?b rdf:type ontology:Q7275 } } . FILTER ( ?c < ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?c ) WHERE { ?a property:P1376 ?i . ?a rdf:type ontology:Q515 . ?i rdf:type ontology:Q7275 } GROUP BY ?a } }
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 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 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 Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány 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 Třebíč Eger Koblenz Yonezawa Iloilo City Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Maasin Strasbourg 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 Hódmezővásárhely Martonvásár Dabas Malolos Rumoi Kisarazu Obihiro Brussels Smolensk Dombóvár 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 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 Pilisvörösvár Vyritsa Ogi Samarkand Szob Augsburg Cheb Agartala Yinchuan Tiszakécske Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka 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 Bangalore Most Fuchū 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 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 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
Buenos Aires Riga Dresden
action less
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_type
action find
entity Sarajevo
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Sarajevo property:capital_of ?b . ?b rdf:type ontology:state } } . FILTER ( ?c < ?f ) . { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?c ) WHERE { ?a property:capital_of ?i . ?a rdf:type ontology:city . ?i rdf:type ontology:state } GROUP BY ?a } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1773 Q1731
P190
Q56061
USER
Which administrative territories are a sister city of those ones ?
(c(Q56061),P190,Q1486) (c(Q56061),P190,Q1773) (c(Q56061),P190,Q1731)
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1486'] [{'concept': 'Q56061'}, 'P190', 'Q1773'] [{'concept': 'Q56061'}, 'P190', 'Q1731']
SELECT DISTINCT ?o WHERE { ?w property:P190 ?o . ?o rdf:type ontology:Q56061 . VALUES ( ?w ) { ( resource:Q15826 ) ( resource:Q373542 ) ( resource:Q780731 ) } }
Buenos Aires Riga Dresden
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Riga'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden']
SELECT DISTINCT ?o WHERE { ?w property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity . VALUES ( ?w ) { ( resource:Palu ) ( resource:Szigetvár ) ( resource:Szeghalom ) } }
[]
administrative territorial entity
Q1085 Q649 Q649
SYSTEM
Moscow for 2nd, 3rd, Prague for 1st
Q14314 Q10400 Q7880 Q1524 Q1930 Q34370 Q2807 Q8692 Q956 Q2868 Q1492 Q1218 Q1085 Q15695 Q649 Q15682 Q628 Q270 Q13678 Q34820 Q1335 Q2656 Q2634 Q490 Q33935 Q174 Q3766 Q3711 Q5465 Q40269 Q597 Q518431 Q1449 Q1897 Q8717 Q71 Q8745 Q25395 Q64 Q1489 Q3820 Q84 Q85 Q406 Q8678 Q244324 Q1520 Q956 Q13972 Q727 Q35493 Q2861 Q180233 Q649 Q16557 Q216 Q270 Q25410 Q1770 Q1754 Q2044 Q189133 Q2280 Q25724 Q48320 Q211907 Q1867 Q1026270 Q16635 Q11959 Q1479 Q16567 Q34370 Q34713 Q6225 Q182428 Q8385 Q384 Q2044 Q3844
(c(Q56061),P190,Q1486) (c(Q56061),P190,Q1773) (c(Q56061),P190,Q1731)
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P190', 'Q1486'] [{'concept': 'Q56061'}, 'P190', 'Q1773'] [{'concept': 'Q56061'}, 'P190', 'Q1731']
SELECT DISTINCT ?o WHERE { ?w property:P190 ?o . ?o rdf:type ontology:Q56061 . VALUES ( ?w ) { ( resource:Q15826 ) ( resource:Q373542 ) ( resource:Q780731 ) } }
Santiago de Compostela Almería Toulouse Athens Ottawa Rotterdam Madrid Bilbao Beijing Lima Barcelona Jerusalem Prague Salamanca Moscow Cádiz Bergamo Warsaw Agrigento Santo Domingo Montevideo Palermo Naples Milan Tel Aviv São Paulo Damascus Belgrade Cape Town Porto Alegre Lisbon Chimbote Genoa Cagliari Seville Geneva Vigo Newark Berlin Mexico City Beirut London Cairo Istanbul Rio de Janeiro Guadix Astana Beijing Tartu Amsterdam Almaty Rostock Pori Moscow Dallas Vilnius Warsaw Aalborg Tallinn Stockholm Florence Cairns Minsk Norrköping Kōbe Slough Taipei Paita Guam Alicante Bordeaux Columbus Rotterdam Salzburg Coventry Silistra Ostrava Skopje Florence Brazzaville
Prague, Moscow and Moscow are a sister city of those ones
Prague Moscow Moscow
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Riga'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Dresden']
SELECT DISTINCT ?o WHERE { ?w property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity . VALUES ( ?w ) { ( resource:Palu ) ( resource:Szigetvár ) ( resource:Szeghalom ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P112
Q502895
USER
Which person was the founder of that administrative territory ?
(Q649,P112,c(Q502895))
action filter_type
action find
entity Q649
relation P112
type Q502895
['Q649', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q649 property:P112 ?a . ?a rdf:type ontology:Q502895 }
Moscow
action filter_type
action find
entity Moscow
relation founder
type common name
['Moscow', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Moscow property:founder ?a . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q649
SYSTEM
Did you mean Moscow ?
Q1085 Q649 Q649
(Q1085,P112,c(Q502895)) (Q649,P112,c(Q502895)) (Q649,P112,c(Q502895))
[ANSWER]
['Q1085', 'P112', {'concept': 'Q502895'}] ['Q649', 'P112', {'concept': 'Q502895'}] ['Q649', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q649 property:P112 ?a . ?a rdf:type ontology:Q502895 }
Prague Moscow Moscow
Did you mean Moscow ?
Moscow
['Prague', 'founder', {'concept': 'common name'}] ['Moscow', 'founder', {'concept': 'common name'}] ['Moscow', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Moscow property:founder ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q649,P112,c(Q502895))
['Q649', 'P112', {'concept': 'Q502895'}]
['Moscow', 'founder', {'concept': 'common name'}]
[]
Q275106
SYSTEM
Yuri Dolgorukiy
Q275106
(Q649,P112,c(Q502895))
action filter_type
action find
entity Q649
relation P112
type Q502895
[ANSWER] was the founder of that administrative territory
['Q649', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q649 property:P112 ?a . ?a rdf:type ontology:Q502895 }
Yuri Dolgorukiy
Yuri Dolgorukiy was the founder of that administrative territory
Yuri Dolgorukiy
action filter_type
action find
entity Moscow
relation founder
type common name
['Moscow', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Moscow property:founder ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P559
Q83620
USER
Which the thoroughfare for which Moscow is the terminus ?
(c(Q83620),P559,Q649)
action filter_type
action find_reverse
entity Q649
relation P559
type Q83620
[{'concept': 'Q83620'}, 'P559', 'Q649']
SELECT DISTINCT ?l WHERE { ?l property:P559 resource:Q649 . ?l rdf:type ontology:Q83620 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Moscow']
SELECT DISTINCT ?l WHERE { ?l property:terminus resource:Moscow . ?l rdf:type ontology:thoroughfare }
[]
thoroughfare
Q58767
SYSTEM
Trans-Siberian railway
Q58767
(c(Q83620),P559,Q649)
action filter_type
action find_reverse
entity Q649
relation P559
type Q83620
Railway [ANSWER]
[{'concept': 'Q83620'}, 'P559', 'Q649']
SELECT DISTINCT ?l WHERE { ?l property:P559 resource:Q649 . ?l rdf:type ontology:Q83620 }
Trans-Siberian railway
Railway Trans-Siberian railway
Trans-Siberian railway
action filter_type
action find_reverse
entity Moscow
relation terminus
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus', 'Moscow']
SELECT DISTINCT ?l WHERE { ?l property:terminus resource:Moscow . ?l rdf:type ontology:thoroughfare }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P608
Q80071
USER
What was exhibited at that administrative territory ?
(c(Q80071),P608,Q58767)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[{'concept': 'Q80071'}, 'P608', 'Q58767']
SELECT DISTINCT ?n WHERE { ?n property:P608 resource:Q649 . ?n rdf:type ontology:Q80071 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Trans-Siberian railway']
SELECT DISTINCT ?n WHERE { ?n property:exhibition_history resource:Moscow . ?n rdf:type ontology:symbol }
[]
symbol
Q2635667
SYSTEM
Cross of Saint Euphrosyne
Q2635667
(c(Q80071),P608,Q58767)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[ANSWER] was exhibited at that administrative territory
[{'concept': 'Q80071'}, 'P608', 'Q58767']
SELECT DISTINCT ?n WHERE { ?n property:P608 resource:Q649 . ?n rdf:type ontology:Q80071 }
Cross of Saint Euphrosyne
Cross of Saint Euphrosyne was exhibited at that administrative territory
Cross of Saint Euphrosyne
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Trans-Siberian railway']
SELECT DISTINCT ?n WHERE { ?n property:exhibition_history resource:Moscow . ?n rdf:type ontology:symbol }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2635667 Q2073547
P800
Q502895
USER
Is Lazar Bohsha author of that symbol ?
(Q2073547,P800,Q2635667)
action is_in
entity Q2635667
action find
entity Q2073547
relation P800
['Q2073547', 'P800', 'Q2635667']
ASK WHERE { resource:Q2073547 property:P800 resource:Q2635667 }
Cross of Saint Euphrosyne Lazar Bohsha
action is_in
entity Cross of Saint Euphrosyne
action find
entity Lazar Bohsha
relation notable work
['Lazar Bohsha', 'notable work', 'Cross of Saint Euphrosyne']
ASK WHERE { resource:Lazar_Bohsha property:notable_work resource:Cross_of_Saint_Euphrosyne }
[]
common name
SYSTEM
YES
(Q2073547,P800,Q2635667)
action is_in
entity Q2635667
action find
entity Q2073547
relation P800
[ANSWER]
['Q2073547', 'P800', 'Q2635667']
ASK WHERE { resource:Q2073547 property:P800 resource:Q2635667 }
Yes
action is_in
entity Cross of Saint Euphrosyne
action find
entity Lazar Bohsha
relation notable work
['Lazar Bohsha', 'notable work', 'Cross of Saint Euphrosyne']
ASK WHERE { resource:Lazar_Bohsha property:notable_work resource:Cross_of_Saint_Euphrosyne }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q649
P138
Q79007 Q811979
USER
How many streets and architectural structures have Moscow as their namesake ?
(c(Q79007),P138,Q649) (c(Q811979),P138,Q649)
action count
action union
action filter_type
action find_reverse
entity Q649
relation P138
type Q79007
action filter_type
action find_reverse
entity Q649
relation P138
type Q811979
[{'concept': 'Q79007'}, 'P138', 'Q649'] [{'concept': 'Q811979'}, 'P138', 'Q649']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u rdf:type ontology:Q79007 . ?u property:P138 resource:Q649 } UNION { ?u property:P138 resource:Q649 . ?u rdf:type ontology:Q811979 } }
Moscow
action count
action union
action filter_type
action find_reverse
entity Moscow
relation named after
type street
action filter_type
action find_reverse
entity Moscow
relation named after
type architectural structure
[{'concept': 'street'}, 'named after', 'Moscow'] [{'concept': 'architectural structure'}, 'named after', 'Moscow']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u rdf:type ontology:street . ?u property:named_after resource:Moscow } UNION { ?u property:named_after resource:Moscow . ?u rdf:type ontology:architectural_structure } }
[]
street architectural structure
SYSTEM
2 streets and 1 architectural structures
Q767163 Q2632681 Q4304254
(c(Q79007),P138,Q649) (c(Q811979),P138,Q649)
action count
action union
action filter_type
action find_reverse
entity Q649
relation P138
type Q79007
action filter_type
action find_reverse
entity Q649
relation P138
type Q811979
[ANSWER]
[{'concept': 'Q79007'}, 'P138', 'Q649'] [{'concept': 'Q811979'}, 'P138', 'Q649']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u rdf:type ontology:Q79007 . ?u property:P138 resource:Q649 } UNION { ?u property:P138 resource:Q649 . ?u rdf:type ontology:Q811979 } }
Széll Kálmán tér Moskovsky Prospekt Stepana Bandery Avenue
2 streets and 1 architectural structures
action count
action union
action filter_type
action find_reverse
entity Moscow
relation named after
type street
action filter_type
action find_reverse
entity Moscow
relation named after
type architectural structure
[{'concept': 'street'}, 'named after', 'Moscow'] [{'concept': 'architectural structure'}, 'named after', 'Moscow']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u rdf:type ontology:street . ?u property:named_after resource:Moscow } UNION { ?u property:named_after resource:Moscow . ?u rdf:type ontology:architectural_structure } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q275106
P20
Q515
USER
Where did Yuri Dolgorukiy die ?
(Q275106,P20,c(Q515))
action filter_type
action find
entity Q275106
relation P20
type Q515
['Q275106', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q275106 property:P20 ?k . ?k rdf:type ontology:Q515 }
Yuri Dolgorukiy
action filter_type
action find
entity Yuri Dolgorukiy
relation place of death
type city
['Yuri Dolgorukiy', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Yuri_Dolgorukiy property:place_of_death ?k . ?k rdf:type ontology:city }
[]
city
Q1899
SYSTEM
Kyiv
Q1899
(Q275106,P20,c(Q515))
action filter_type
action find
entity Q275106
relation P20
type Q515
Yuri Dolgorukiy died in [ANSWER]
['Q275106', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q275106 property:P20 ?k . ?k rdf:type ontology:Q515 }
Kyiv
Yuri Dolgorukiy died in Kyiv
Kyiv
action filter_type
action find
entity Yuri Dolgorukiy
relation place of death
type city
['Yuri Dolgorukiy', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Yuri_Dolgorukiy property:place_of_death ?k . ?k rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q700903
Q515
USER
And how about Wang Meng?
(Q700903,P20,c(Q515))
action filter_type
action find
entity Q700903
relation P20
type Q515
['Q700903', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q700903 property:P20 ?x . ?x rdf:type ontology:Q515 }
Wang Meng
action filter_type
action find
entity Wang Meng
relation place of death
type city
['Wang Meng', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Wang_Meng property:place_of_death ?x . ?x rdf:type ontology:city }
[]
city
Q16666
SYSTEM
Nanjing
Q16666
(Q700903,P20,c(Q515))
action filter_type
action find
entity Q700903
relation P20
type Q515
[ANSWER]
['Q700903', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { resource:Q700903 property:P20 ?x . ?x rdf:type ontology:Q515 }
Nanjing
Nanjing
action filter_type
action find
entity Wang Meng
relation place of death
type city
['Wang Meng', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { resource:Wang_Meng property:place_of_death ?x . ?x rdf:type ontology:city }
[]