Simple Question (Direct)
Simple Question
Q6706856
P937
Q515
USER
What is the location where Luís Queiró worked ?
(Q6706856,P937,c(Q515))
action filter_type
action find
entity Q6706856
relation P937
type Q515
['Q6706856', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q6706856 property:P937 ?p }
Luís Queiró
action filter_type
action find
entity Luís Queiró
relation work location
type city
['Luís Queiró', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Luís_Queiró property:work_location ?p }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q6706856,P937,c(Q515))
action filter_type
action find
entity Q6706856
relation P937
type Q515
The location Luís Queiró worked is in [ANSWER]
['Q6706856', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q6706856 property:P937 ?p }
Strasbourg
The location Luís Queiró worked is in Strasbourg
Strasbourg
action filter_type
action find
entity Luís Queiró
relation work location
type city
['Luís Queiró', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Luís_Queiró property:work_location ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6706856
P39
Q12737077
USER
What was the position for which Luís Queiró was appointed ?
(Q6706856,P39,c(Q12737077))
action filter_type
action find
entity Q6706856
relation P39
type Q12737077
['Q6706856', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q6706856 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Luís Queiró
action filter_type
action find
entity Luís Queiró
relation position held
type occupation
['Luís Queiró', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Luís_Queiró property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q27169
SYSTEM
member of the European Parliament
Q27169
(Q6706856,P39,c(Q12737077))
action filter_type
action find
entity Q6706856
relation P39
type Q12737077
[ANSWER]
['Q6706856', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q6706856 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
member of the European Parliament
Member of the European Parliament
member of the European Parliament
action filter_type
action find
entity Luís Queiró
relation position held
type occupation
['Luís Queiró', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Luís_Queiró property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1241061
Q12737077
USER
And what about György Prónay?
(Q1241061,P39,c(Q12737077))
action filter_type
action find
entity Q1241061
relation P39
type Q12737077
['Q1241061', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1241061 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
György Prónay
action filter_type
action find
entity György Prónay
relation position held
type occupation
['György Prónay', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:György_Prónay property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q17590876
SYSTEM
member of the National Assembly of Hungary
Q17590876
(Q1241061,P39,c(Q12737077))
action filter_type
action find
entity Q1241061
relation P39
type Q12737077
[ANSWER]
['Q1241061', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1241061 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of the National Assembly of Hungary
member of the National Assembly of Hungary
action filter_type
action find
entity György Prónay
relation position held
type occupation
['György Prónay', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:György_Prónay property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3568274 Q17590876
P17
Q15617994
USER
Which administrative territories are member of the National Assembly of Hungary or Wilków Pierwszy located in ?
OR((Q17590876,P17,c(Q15617994)), (Q3568274,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17590876
relation P17
action find
entity Q3568274
relation P17
type Q15617994
{'OR': [['Q17590876', 'P17', {'concept': 'Q15617994'}], ['Q3568274', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q3568274 property:P17 ?h } UNION { resource:Q17590876 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Wilków Pierwszy member of the National Assembly of Hungary
action filter_type
action union
action find
entity member of the National Assembly of Hungary
relation country
action find
entity Wilków Pierwszy
relation country
type designation for an administrative territorial entity
{'OR': [['member of the National Assembly of Hungary', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wilków Pierwszy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Wilków_Pierwszy property:country ?h } UNION { resource:member_of_the_National_Assembly_of_Hungary property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q36
SYSTEM
Hungary, Poland
Q28 Q36
OR((Q17590876,P17,c(Q15617994)), (Q3568274,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17590876
relation P17
action find
entity Q3568274
relation P17
type Q15617994
[ANSWERS] are member of the National Assembly of Hungary or Wilków Pierwszy located in
{'OR': [['Q17590876', 'P17', {'concept': 'Q15617994'}], ['Q3568274', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q3568274 property:P17 ?h } UNION { resource:Q17590876 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Hungary Poland
Hungary and Poland are member of the National Assembly of Hungary or Wilków Pierwszy located in
Hungary Poland
action filter_type
action union
action find
entity member of the National Assembly of Hungary
relation country
action find
entity Wilków Pierwszy
relation country
type designation for an administrative territorial entity
{'OR': [['member of the National Assembly of Hungary', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wilków Pierwszy', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Wilków_Pierwszy property:country ?h } UNION { resource:member_of_the_National_Assembly_of_Hungary property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with atmost 78 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?j <= 78 ) . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?j ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?j <= 78 ) . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?j ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?j <= 78 ) . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?j ) WHERE { ?e property:P530 ?f . ?e rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?e } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { FILTER ( ?j <= 78 ) . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?j ) WHERE { ?e property:diplomatic_relation ?f . ?e rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q515 Q43229 Q28640
USER
Which cities are the headquarter locations of atmost 8 organizations and professions ?
(c(Q43229)|c(Q28640),P159,c(Q515))
action atmost
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q28640
value 8
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?p <= 8 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?k WHERE { VALUES ( ?d ) { ( ontology:Q43229 ) ( ontology:Q28640 ) } . ?x rdf:type ?d } GROUP BY ?k } }
action atmost
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type profession
value 8
[[{'concept': 'organization'}, {'concept': 'profession'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?p <= 8 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?k WHERE { VALUES ( ?d ) { ( ontology:organization ) ( ontology:profession ) } . ?x rdf:type ?d } GROUP BY ?k } }
[]
city organization profession
Q42622 Q16506 Q270704
SYSTEM
Suzhou, České Budějovice, Třebíč
Q386691 Q944051 Q496702 Q10127 Q643878 Q1711 Q10124 Q213278 Q841296 Q873835 Q3974 Q34412 Q703158 Q835227 Q849439 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q10393 Q25282 Q609350 Q664895 Q41283 Q27860 Q3806 Q58401 Q3624 Q42651 Q209785 Q360326 Q58273 Q838652 Q68862 Q695895 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q2427117 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q14932 Q71266 Q846338 Q816728 Q696777 Q58570 Q1009095 Q653389 Q1019083 Q20934 Q41474 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q3994 Q1000029 Q1017251 Q373023 Q1629 Q74957 Q653446 Q8131 Q362959 Q210493 Q11462 Q3214 Q83786 Q505208 Q605256 Q374477 Q181276 Q16520 Q220445 Q330409 Q317834 Q192271 Q58710 Q719 Q375651 Q69060 Q75961 Q3069 Q592065 Q3104 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q507846 Q375097 Q695930 Q5088 Q178878 Q390413 Q203027 Q2966 Q331577 Q4348183 Q179608 Q213263 Q425492 Q2865 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q386635 Q194087 Q10389 Q30340 Q291745 Q629849 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q8247 Q694308 Q646805 Q182378 Q235 Q188082 Q1889017 Q161176 Q79535 Q460829 Q167668 Q270704 Q167109 Q2509609 Q459787 Q15734 Q209683 Q163888 Q207030 Q207408 Q877941 Q316841 Q6602 Q873583 Q237699 Q1757191 Q1209 Q3904 Q330007 Q1936067 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q72990 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q502486 Q56759 Q43433 Q641491 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q3915 Q75110 Q460812 Q665097 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q3075 Q239597 Q850332 Q861621 Q177149 Q389562 Q850344 Q62723 Q496319 Q820496 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q3004 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q2973 Q518992 Q34261 Q373564 Q137271 Q1010158 Q1473 Q658058 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q6829 Q8156 Q14440 Q404599 Q42007 Q1379299 Q1856 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q7070 Q492366 Q696407 Q58210 Q182852 Q214942 Q68481 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q47916 Q80484 Q58576 Q328605 Q71247 Q75336 Q326956 Q243293 Q3126 Q571051 Q3042 Q3046 Q594275 Q368929 Q2936 Q372791 Q463171 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q3852 Q485581 Q485583 Q869027 Q206872 Q390792 Q5972 Q1720 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q3866 Q34405 Q496405 Q1723 Q11725 Q208863 Q427265 Q470369 Q1863 Q2209 Q2200 Q533241 Q359990 Q16506 Q1013864 Q76010 Q999916 Q42622 Q633996 Q185684 Q59095 Q72778 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q830411 Q1019675 Q851680 Q740863 Q75091 Q3014 Q634022 Q189823 Q242882 Q40626 Q242885 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q189761 Q189769 Q57948 Q2795 Q236197 Q72877 Q954569 Q57866 Q2880 Q2706 Q132997 Q184998 Q5217 Q696643 Q269634 Q285488 Q819603 Q851155 Q210628 Q158523 Q168648 Q3838 Q850676 Q551658 Q20073 Q990352 Q7003 Q3936 Q3931 Q3933 Q3751 Q59218 Q3200 Q696412 Q844852 Q41278 Q171943 Q1205932 Q823927 Q386661 Q1019956 Q386668 Q25475 Q523956 Q328619 Q786762 Q4060 Q71339 Q542154 Q733979 Q508670 Q66485 Q58422 Q1844 Q2900 Q857285 Q58584 Q1000101 Q842923 Q92277 Q80989 Q59132 Q873596 Q329754 Q721163 Q390817 Q187812 Q125604 Q2999 Q1088790
(c(Q43229)|c(Q28640),P159,c(Q515))
action atmost
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q28640
value 8
[ANSWERS] are the headquarter locations of atmost 8 organizations and professions
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?p <= 8 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?k WHERE { VALUES ( ?d ) { ( ontology:Q43229 ) ( ontology:Q28640 ) } . ?x rdf:type ?d } GROUP BY ?k } }
Niiza City Horní Jiřetín Goshogawara Tangerang Settsu Potsdam Cilegon Kodaira Příbram Tomioka Landshut Foshan Velké Meziříčí Ineu Kopřivnice Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Bogor Danang Kawanishi Uherský Brod Gwangju Jayapura Tübingen Shijiazhuang Addis Ababa Wuxi Ichikawa Tongling Taizhou Nakano Longyan Urasoe Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Mníšek pod Brdy Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Langen (Hessen) Yichang Suwa Kyōtanabe Nisshin Handan Otrokovice Nobeoka Napajedla Incheon Kingstown Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kempten Kraslice Nová Paka Weihai Zamboanga City Anshan Tsuchiura Palembang Xinyu Yantai Surabaya Cottbus Shimla Ouarzazate Shimada Ashikaga Szolnok Busan Kuching Ústí nad Orlicí Kokubunji City Guiyang Langfang Saginaw Valašské Meziříčí Xining Biñan Bottrop Ginowan Koblenz Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Sebiș Tiszaújváros Hirakawa Durgapur Békéscsaba Tomakomai Tsu Heidelberg Abrud Athkatla Nanning Tama City Luzhou Kassel Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hikone Hirosaki Bandung Zhengzhou Ílhavo Hatvan Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Biratnagar Habikino Nanto Putrajaya Monaco Český Krumlov Mandaue Fukushima Fort Smith Matsusaka Liepāja Třebíč Eger Sunchales Iloilo City Izumi Tokoname Ageo Ziyang Vác Echizen Karlovo Strasbourg Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Mbabane Kunitachi City Smržovka Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Jincheng Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Mobara Olongapo Chandigarh Kakamigahara Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Antananarivo Dandong Naruto Minoh Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Fürth Neratovice Tagawa Nankoku Obihiro Inazawa Sakado General Trias Kashihara Kōnan Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Ingolstadt Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Darmstadt Călan Port-au-Prince Liaocheng Kota Kinabalu Letohrad Davao City Wakō City Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Speyer Bandar Lampung Iquique Luohe Szombathely Smyrna Malaybalay Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Eisenach Norden Hakusan Jinhua Kunming Kazincbarcika Fuzhou Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Lucknow Patna Xingtai Iizuka Jingzhou Chaoyang Uji Sekondi-Takoradi Erlangen Tsubame Offenbach am Main Pforzheim General Santos Jindřichův Hradec Oldenburg Jining Handa Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Worms Aveiro Anan Tsurugashima Ajka Kanuma Medan Mainz Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Dodoma Jingdezhen Qujing Batangas City Chongqing Hachiōji City Yibin Kolín Andorra la Vella Roxas Tuguegarao Shimotsuma Wuhu České Budějovice Hluk Santa Rosa Vysoké Mýto Suzhou Kameoka Hefei Zhuhai Taiyuan Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Körmend Nové Město nad Metují Kazo Česká Lípa Benxi Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Mitaka City Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Szekszárd Salgótarján Aue Chemnitz Hino City Datong Vyškov Yancheng Hamm Bremerhaven Florianópolis Kaposvár Bacolod Kashiba Tachikawa City Iligan Munakata Kasai Machida City Ehingen Sopron Kinshasa Blansko Vila Nova de Famalicão Hohenstein-Ernstthal Kizugawa Dijon Bamberg Brandenburg an der Havel Celle Praia Dongguan Salzgitter Izumi Ueda Ulsan Nanchang Takizawa Higashine Fujisawa Moravské Budějovice Daitō Batumi Auerbach in der Oberpfalz Noda Hroznětín Hürth Xiaogan Koronadal Eniwa Chișineu-Criș Jaipur Tangshan Vaduz Quito Kitamoto Baoding Vlašim Pomáz Jilin City Bhopal Jiangmen Niimi Kiyose City Itō Ichinoseki Dunaújváros Găești Würzburg Zsámbék
Suzhou, České Budějovice and Třebíč are the headquarter locations of atmost 8 organizations and professions
Suzhou České Budějovice Třebíč
action atmost
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type profession
value 8
[[{'concept': 'organization'}, {'concept': 'profession'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?p <= 8 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) ?k WHERE { VALUES ( ?d ) { ( ontology:organization ) ( ontology:profession ) } . ?x rdf:type ?d } GROUP BY ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q56061 Q13220204 Q515
USER
Which cities are sister town of max number of administrative territories or administrative country subdivisions ?
(c(Q515),P190,c(Q56061)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q13220204
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?l WHERE { { ?l property:P190 ?f . ?l rdf:type ontology:Q515 . ?f rdf:type ontology:Q56061 } UNION { ?l property:P190 ?f . ?l rdf:type ontology:Q515 . ?f rdf:type ontology:Q13220204 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?m WHERE { { ?m property:P190 ?v . ?v rdf:type ontology:Q13220204 . ?m rdf:type ontology:Q515 } UNION { ?v rdf:type ontology:Q56061 . ?m rdf:type ontology:Q515 . ?m property:P190 ?v } } GROUP BY ?m } . FILTER ( ?a = ?n ) }
action argmax
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
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?l WHERE { { ?l property:sister_city ?f . ?l rdf:type ontology:city . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?l property:sister_city ?f . ?l rdf:type ontology:city . ?f rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?m WHERE { { ?m property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision . ?m rdf:type ontology:city } UNION { ?v rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:city . ?m property:sister_city ?v } } GROUP BY ?m } . FILTER ( ?a = ?n ) }
[]
administrative territorial entity second-level administrative country subdivision city
Q1486
SYSTEM
Buenos Aires
Q1486
(c(Q515),P190,c(Q56061)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q13220204
[ANSWER] is sister town of max number of administrative territories or administrative country subdivisions
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?l WHERE { { ?l property:P190 ?f . ?l rdf:type ontology:Q515 . ?f rdf:type ontology:Q56061 } UNION { ?l property:P190 ?f . ?l rdf:type ontology:Q515 . ?f rdf:type ontology:Q13220204 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?m WHERE { { ?m property:P190 ?v . ?v rdf:type ontology:Q13220204 . ?m rdf:type ontology:Q515 } UNION { ?v rdf:type ontology:Q56061 . ?m rdf:type ontology:Q515 . ?m property:P190 ?v } } GROUP BY ?m } . FILTER ( ?a = ?n ) }
Buenos Aires
Buenos Aires is sister town of max number of administrative territories or administrative country subdivisions
Buenos Aires
action argmax
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
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?l WHERE { { ?l property:sister_city ?f . ?l rdf:type ontology:city . ?f rdf:type ontology:administrative_territorial_entity } UNION { ?l property:sister_city ?f . ?l rdf:type ontology:city . ?f rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?m WHERE { { ?m property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision . ?m rdf:type ontology:city } UNION { ?v rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:city . ?m property:sister_city ?v } } GROUP BY ?m } . FILTER ( ?a = ?n ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1486 Q3766 Q244324
P190
Q56061
USER
Is that city twin town of Damascus and Guadix ?
(Q1486,P190,Q3766) (Q1486,P190,Q244324)
action is_in
entity Q1486
action intersection
action find_reverse
entity Q3766
relation P190
action find_reverse
entity Q244324
relation P190
['Q1486', 'P190', 'Q3766'] ['Q1486', 'P190', 'Q244324']
ASK WHERE { resource:Q1486 property:P190 resource:Q3766 . resource:Q1486 property:P190 resource:Q244324 }
Buenos Aires Damascus Guadix
action is_in
entity Buenos Aires
action intersection
action find_reverse
entity Damascus
relation sister city
action find_reverse
entity Guadix
relation sister city
['Buenos Aires', 'sister city', 'Damascus'] ['Buenos Aires', 'sister city', 'Guadix']
ASK WHERE { resource:Buenos_Aires property:sister_city resource:Damascus . resource:Buenos_Aires property:sister_city resource:Guadix }
[]
administrative territorial entity
SYSTEM
YES
(Q1486,P190,Q3766) (Q1486,P190,Q244324)
action is_in
entity Q1486
action intersection
action find_reverse
entity Q3766
relation P190
action find_reverse
entity Q244324
relation P190
[ANSWER]
['Q1486', 'P190', 'Q3766'] ['Q1486', 'P190', 'Q244324']
ASK WHERE { resource:Q1486 property:P190 resource:Q3766 . resource:Q1486 property:P190 resource:Q244324 }
Yes
action is_in
entity Buenos Aires
action intersection
action find_reverse
entity Damascus
relation sister city
action find_reverse
entity Guadix
relation sister city
['Buenos Aires', 'sister city', 'Damascus'] ['Buenos Aires', 'sister city', 'Guadix']
ASK WHERE { resource:Buenos_Aires property:sister_city resource:Damascus . resource:Buenos_Aires property:sister_city resource:Guadix }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q42622 Q802 Q5619802
P190
Q56061
USER
Is Suzhou partner town of Nowy Sącz and Gurahan-e Cham Shahivand ?
(Q42622,P190,Q802) (Q42622,P190,Q5619802)
action is_in
entity Q42622
action intersection
action find_reverse
entity Q802
relation P190
action find_reverse
entity Q5619802
relation P190
['Q42622', 'P190', 'Q802'] ['Q42622', 'P190', 'Q5619802']
ASK WHERE { resource:Q42622 property:P190 resource:Q802 . resource:Q42622 property:P190 resource:Q5619802 }
Suzhou Nowy Sącz Gurahan-e Cham Shahivand
action is_in
entity Suzhou
action intersection
action find_reverse
entity Nowy Sącz
relation sister city
action find_reverse
entity Gurahan-e Cham Shahivand
relation sister city
['Suzhou', 'sister city', 'Nowy Sącz'] ['Suzhou', 'sister city', 'Gurahan-e Cham Shahivand']
ASK WHERE { resource:Suzhou property:sister_city resource:Nowy_Sącz . resource:Suzhou property:sister_city resource:Gurahan-e_Cham_Shahivand }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q42622,P190,Q802) (Q42622,P190,Q5619802)
action is_in
entity Q42622
action intersection
action find_reverse
entity Q802
relation P190
action find_reverse
entity Q5619802
relation P190
[ANSWER]
['Q42622', 'P190', 'Q802'] ['Q42622', 'P190', 'Q5619802']
ASK WHERE { resource:Q42622 property:P190 resource:Q802 . resource:Q42622 property:P190 resource:Q5619802 }
YES and NO respectively
action is_in
entity Suzhou
action intersection
action find_reverse
entity Nowy Sącz
relation sister city
action find_reverse
entity Gurahan-e Cham Shahivand
relation sister city
['Suzhou', 'sister city', 'Nowy Sącz'] ['Suzhou', 'sister city', 'Gurahan-e Cham Shahivand']
ASK WHERE { resource:Suzhou property:sister_city resource:Nowy_Sącz . resource:Suzhou property:sister_city resource:Gurahan-e_Cham_Shahivand }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q27169 Q5590013
P1001
Q56061
USER
Does Gowd-e Asia belong to jurisdiction of member of the European Parliament ?
(Q27169,P1001,Q5590013)
action is_in
entity Q5590013
action find
entity Q27169
relation P1001
['Q27169', 'P1001', 'Q5590013']
ASK WHERE { resource:Q27169 property:P1001 resource:Q5590013 }
member of the European Parliament Gowd-e Asia
action is_in
entity Gowd-e Asia
action find
entity member of the European Parliament
relation applies to jurisdiction
['member of the European Parliament', 'applies to jurisdiction', 'Gowd-e Asia']
ASK WHERE { resource:member_of_the_European_Parliament property:applies_to_jurisdiction resource:Gowd-e_Asia }
[]
administrative territorial entity
SYSTEM
NO
(Q27169,P1001,Q5590013)
action is_in
entity Q5590013
action find
entity Q27169
relation P1001
[ANSWER]
['Q27169', 'P1001', 'Q5590013']
ASK WHERE { resource:Q27169 property:P1001 resource:Q5590013 }
No
action is_in
entity Gowd-e Asia
action find
entity member of the European Parliament
relation applies to jurisdiction
['member of the European Parliament', 'applies to jurisdiction', 'Gowd-e Asia']
ASK WHERE { resource:member_of_the_European_Parliament property:applies_to_jurisdiction resource:Gowd-e_Asia }
[]