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