Simple Question (Direct)
Simple Question
Q3948206
P20
Q56061
USER
Where did Sandro Curzi expire ?
(Q3948206,P20,c(Q56061))
action filter_type
action find
entity Q3948206
relation P20
type Q56061
['Q3948206', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3948206 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Sandro Curzi
action filter_type
action find
entity Sandro Curzi
relation place of death
type administrative territorial entity
['Sandro Curzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Sandro_Curzi property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3948206,P20,c(Q56061))
action filter_type
action find
entity Q3948206
relation P20
type Q56061
Sandro Curzi expired in [ANSWER]
['Q3948206', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q3948206 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Rome
Sandro Curzi expired in Rome
Rome
action filter_type
action find
entity Sandro Curzi
relation place of death
type administrative territorial entity
['Sandro Curzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Sandro_Curzi property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3948206
P106
Q12737077
USER
What do Sandro Curzi do for a living ?
(Q3948206,P106,c(Q12737077))
action filter_type
action find
entity Q3948206
relation P106
type Q12737077
['Q3948206', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3948206 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Sandro Curzi
action filter_type
action find
entity Sandro Curzi
relation occupation
type occupation
['Sandro Curzi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Sandro_Curzi property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1930187 Q82955
SYSTEM
journalist, politician
Q1930187 Q82955
(Q3948206,P106,c(Q12737077))
action filter_type
action find
entity Q3948206
relation P106
type Q12737077
Sandro Curzi do for a living [ANSWERS]
['Q3948206', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3948206 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
journalist politician
Sandro Curzi do for a living journalist and politician
journalist politician
action filter_type
action find
entity Sandro Curzi
relation occupation
type occupation
['Sandro Curzi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Sandro_Curzi property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q239870 Q220
P190
Q515
USER
Which cities are partner towns of Rome or Columbus ?
OR((Q220,P190,c(Q515)), (Q239870,P190,c(Q515)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q239870
relation P190
type Q515
{'OR': [['Q220', 'P190', {'concept': 'Q515'}], ['Q239870', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q515 . { VALUES ( ?l ) { ( resource:Q239870 ) ( resource:Q220 ) } . ?l property:P190 ?z } }
Columbus Rome
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity Columbus
relation sister city
type city
{'OR': [['Rome', 'sister city', {'concept': 'city'}], ['Columbus', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:city . { VALUES ( ?l ) { ( resource:Columbus ) ( resource:Rome ) } . ?l property:sister_city ?z } }
[]
city
Q43196 Q634022
SYSTEM
Cincinnati, Kiryū
Q43196 Q634022
OR((Q220,P190,c(Q515)), (Q239870,P190,c(Q515)))
action filter_type
action union
action find
entity Q220
relation P190
action find
entity Q239870
relation P190
type Q515
[ANSWERS] are partner towns of Rome or Columbus
{'OR': [['Q220', 'P190', {'concept': 'Q515'}], ['Q239870', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q515 . { VALUES ( ?l ) { ( resource:Q239870 ) ( resource:Q220 ) } . ?l property:P190 ?z } }
Cincinnati Kiryū
Cincinnati and Kiryū are partner towns of Rome or Columbus
Cincinnati Kiryū
action filter_type
action union
action find
entity Rome
relation sister city
action find
entity Columbus
relation sister city
type city
{'OR': [['Rome', 'sister city', {'concept': 'city'}], ['Columbus', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:city . { VALUES ( ?l ) { ( resource:Columbus ) ( resource:Rome ) } . ?l property:sister_city ?z } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q43196
P190
Q56061
USER
How many administrative territories are the sister cities of Cincinnati ?
(Q43196,P190,c(Q56061))
action count
action filter_type
action find
entity Q43196
relation P190
type Q56061
['Q43196', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Q43196 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Cincinnati
action count
action filter_type
action find
entity Cincinnati
relation sister city
type administrative territorial entity
['Cincinnati', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Cincinnati property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
8
Q124739 Q220 Q1726 Q1867 Q42308 Q10086 Q3921 Q192225
(Q43196,P190,c(Q56061))
action count
action filter_type
action find
entity Q43196
relation P190
type Q56061
[ANSWER]
['Q43196', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Q43196 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Tijuana Rome Munich Taipei Kharkiv Mysore Harare Netanya
8
action count
action filter_type
action find
entity Cincinnati
relation sister city
type administrative territorial entity
['Cincinnati', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { resource:Cincinnati property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q23482
Q56061
USER
And what about Marseille?
(Q23482,P190,c(Q56061))
action count
action filter_type
action find
entity Q23482
relation P190
type Q56061
['Q23482', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x rdf:type ontology:Q56061 . resource:Q23482 property:P190 ?x }
Marseille
action count
action filter_type
action find
entity Marseille
relation sister city
type administrative territorial entity
['Marseille', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Marseille property:sister_city ?x }
[]
administrative territorial entity
SYSTEM
17
(Q23482,P190,c(Q56061))
action count
action filter_type
action find
entity Q23482
relation P190
type Q56061
[ANSWER]
['Q23482', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x rdf:type ontology:Q56061 . resource:Q23482 property:P190 ?x }
17
action count
action filter_type
action find
entity Marseille
relation sister city
type administrative territorial entity
['Marseille', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Marseille property:sister_city ?x }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q15617994 Q20667921 Q515
USER
Which cities are the capital of max number of administrative territories and french administrative divisions ?
(c(Q515),P1376,c(Q15617994)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q20667921
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?t WHERE { { ?t property:P1376 ?i . ?t rdf:type ontology:Q515 . ?i rdf:type ontology:Q15617994 } UNION { ?t rdf:type ontology:Q515 . ?i rdf:type ontology:Q20667921 . ?t property:P1376 ?i } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q15617994 } UNION { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q20667921 } } GROUP BY ?y } . FILTER ( ?q = ?h ) }
action argmax
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?t WHERE { { ?t property:capital_of ?i . ?t rdf:type ontology:city . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t rdf:type ontology:city . ?i rdf:type ontology:type_of_french_administrative_division . ?t property:capital_of ?i } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?y } . FILTER ( ?q = ?h ) }
[]
designation for an administrative territorial entity type of french administrative division city
Q23482
SYSTEM
Marseille
Q23482
(c(Q515),P1376,c(Q15617994)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q20667921
[ANSWER] is the capital of max number of administrative territories and french administrative divisions
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?t WHERE { { ?t property:P1376 ?i . ?t rdf:type ontology:Q515 . ?i rdf:type ontology:Q15617994 } UNION { ?t rdf:type ontology:Q515 . ?i rdf:type ontology:Q20667921 . ?t property:P1376 ?i } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q15617994 } UNION { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q20667921 } } GROUP BY ?y } . FILTER ( ?q = ?h ) }
Marseille
Marseille is the capital of max number of administrative territories and french administrative divisions
Marseille
action argmax
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) ?t WHERE { { ?t property:capital_of ?i . ?t rdf:type ontology:city . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t rdf:type ontology:city . ?i rdf:type ontology:type_of_french_administrative_division . ?t property:capital_of ?i } } GROUP BY ?t } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?y } . FILTER ( ?q = ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P190
Q486972 Q15617994 Q515
USER
Which cities are twin city of greater number of human settlements and administrative territories than that city ?
(c(Q515),P190,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P190
type Q515
type Q486972
action find_tuple_counts
relation P190
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q23482
relation P190
type Q486972
type Q15617994
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?n ) WHERE { { ?a property:P190 ?s . ?a rdf:type ontology:Q515 . ?s rdf:type ontology:Q486972 } UNION { ?a property:P190 ?s . ?a rdf:type ontology:Q515 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q486972 } } . resource:Q23482 property:P190 ?d } } }
action greater
action union
action find_tuple_counts
relation sister city
type city
type human settlement
action find_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Marseille
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'city'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?n ) WHERE { { ?a property:sister_city ?s . ?a rdf:type ontology:city . ?s rdf:type ontology:human_settlement } UNION { ?a property:sister_city ?s . ?a rdf:type ontology:city . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:human_settlement } } . resource:Marseille property:sister_city ?d } } }
[]
human settlement designation for an administrative territorial entity city
SYSTEM
337
Q384403 Q1021103 Q843001 Q847607 Q841296 Q1000086 Q3974 Q259498 Q158239 Q854913 Q696925 Q60037 Q850969 Q4024 Q270814 Q57921 Q240504 Q854996 Q281371 Q42651 Q320950 Q1088716 Q43199 Q385982 Q52607 Q766168 Q837173 Q214938 Q830394 Q1009003 Q789256 Q946743 Q843039 Q377834 Q295367 Q283023 Q20934 Q166255 Q57953 Q174091 Q916679 Q1010131 Q548097 Q783255 Q842961 Q329768 Q843035 Q1000029 Q14424 Q373023 Q1008750 Q2135 Q954569 Q158423 Q849439 Q11462 Q3214 Q23482 Q852018 Q841603 Q1018795 Q1236048 Q857202 Q854956 Q57719 Q933641 Q1018700 Q3069 Q19689 Q394453 Q2910 Q321778 Q68695 Q1899 Q330409 Q57997 Q57996 Q913754 Q1794 Q602976 Q793405 Q503411 Q375097 Q1818241 Q583910 Q1486 Q2966 Q34217 Q625154 Q179608 Q144988 Q154540 Q855073 Q1010144 Q623549 Q2865 Q379160 Q607625 Q755691 Q854906 Q1015409 Q755698 Q214945 Q75150 Q214956 Q319804 Q588606 Q855513 Q104587 Q2973 Q79535 Q1723 Q288413 Q270704 Q167109 Q6582 Q478038 Q911610 Q207406 Q4346 Q316841 Q898468 Q1025213 Q58560 Q14819 Q498545 Q193721 Q7003 Q987496 Q8652 Q180379 Q842971 Q3933 Q404429 Q784229 Q341056 Q755681 Q1017261 Q1000033 Q2900 Q3599 Q1731 Q587746 Q3857 Q674311 Q178382 Q1017769 Q1676870 Q42664 Q1711 Q854940 Q514796 Q854949 Q604516 Q239597 Q158432 Q327764 Q42635 Q9005 Q2337 Q633789 Q1019844 Q14960 Q3185 Q116417 Q3004 Q488869 Q837161 Q740853 Q205922 Q842976 Q2978 Q1676863 Q188082 Q941061 Q14440 Q203929 Q273880 Q855060 Q842996 Q3852 Q1773 Q14821 Q1020874 Q338616 Q954596 Q3958 Q3955 Q875070 Q668318 Q189633 Q2079 Q260522 Q42007 Q941032 Q854987 Q541550 Q855011 Q1258284 Q513417 Q4007 Q2096 Q642031 Q214948 Q58210 Q214942 Q16506 Q68481 Q245126 Q667208 Q191097 Q75336 Q57885 Q680656 Q946769 Q789233 Q360374 Q157835 Q3046 Q523489 Q246634 Q851048 Q1394252 Q523469 Q158257 Q185684 Q987487 Q629471 Q11194 Q7027 Q485581 Q646850 Q2119 Q1641829 Q57936 Q1721 Q390798 Q57906 Q44244 Q855052 Q547479 Q75026 Q509923 Q773203 Q149108 Q492366 Q149105 Q63855 Q470369 Q359990 Q108037 Q430207 Q756273 Q42622 Q188247 Q59095 Q3167 Q508591 Q789282 Q502993 Q637913 Q728438 Q3014 Q855086 Q146317 Q851492 Q911634 Q320798 Q494627 Q57941 Q530634 Q71151 Q4175 Q71159 Q57944 Q986082 Q57947 Q189769 Q236197 Q750224 Q2887 Q2880 Q804395 Q263757 Q488134 Q2706 Q653364 Q184998 Q1000056 Q854965 Q489147 Q755701 Q168648 Q629849 Q850676 Q990988 Q20073 Q485176 Q3935 Q3936 Q3931 Q248959 Q3750 Q3200 Q742160 Q158272 Q933638 Q386661 Q819672 Q158245 Q18575 Q680743 Q117676 Q613813 Q57948 Q1533 Q3042 Q1953 Q680963 Q933374 Q209988 Q582209 Q3994 Q954808 Q936145 Q842929 Q842925 Q302526 Q392429 Q1019371 Q225100 Q217681 Q721163 Q284480 Q2999 Q213296 Q1737652
(c(Q515),P190,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P190
type Q515
type Q486972
action find_tuple_counts
relation P190
type Q515
type Q15617994
action count
action filter_multi_types
action find
entity Q23482
relation P190
type Q486972
type Q15617994
[ANSWER]
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?n ) WHERE { { ?a property:P190 ?s . ?a rdf:type ontology:Q515 . ?s rdf:type ontology:Q486972 } UNION { ?a property:P190 ?s . ?a rdf:type ontology:Q515 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { { ?d rdf:type ontology:Q15617994 } UNION { ?d rdf:type ontology:Q486972 } } . resource:Q23482 property:P190 ?d } } }
Litoměřice Meziboří Csorna Sanda Příbram Nový Bor Landshut Rafaela Kroměříž Szikszó Iruma Zalaegerszeg Victoria Frankfurt (Oder) Ishinomaki Lößnitz Makó Szerencs Jászberény Wuxi Trutnov Lőrinci Omaha Herend Mar del Plata Nagykáta Cisnădie Gyula Nagykőrös Staré Město Balatonalmádi Skalná Veresegyház Szentes Nagyatád Maglód Incheon Horšovský Týn Schwarzenberg Changsha Téglás Frýdlant nad Ostravicí Visegrád Kapuvár Mezőberény Tata Celldömölk Kraslice Nagykanizsa Weihai Stříbro Winnipeg Vyškov Buštěhrad Kopřivnice Surabaya Cottbus Marseille Izumisano Tiszakécske Bzenec Dolní Benešov Sanuki Ibrány Xuzhou Martonvásár Bystřice nad Pernštejnem Bottrop Tirana Žďár nad Sázavou Ludwigshafen Hodonín Quanzhou Kyiv Ústí nad Orlicí Wolkenstein Thum Zalalövő Frankfurt Klatovy Berettyóújfalu Inuyama Tiszaújváros Rousínov Aš Buenos Aires Heidelberg Oxford Komárom Nanning Zalakaros Sásd Solt Hluboká nad Vltavou Puerto de la Cruz Kassel Kunszentmárton Tamási Budaörs Gyömrő Bílovec Svitavy Pápa Yingkou Znojmo Sanya Fonyód Bük Kyjov Darmstadt Fort Smith Batangas City Tapolca Třebíč Eger Carcassonne Kiskunfélegyháza Lengyeltóti Mosonmagyaróvár Waren (Müritz) Karlovo Brandýs nad Labem-Stará Boleslav Rosice Qinhuangdao Freiberg Meldorf Tábor Dijon Kralupy nad Vltavou Miami Rēzekne Sellye Celle Jiaozuo Szigethalom Česká Třebová Várpalota Rotava Lanškroun Quito Bicske Dresden Siret Wilhelmshaven Kisvárda Jūrmala Mnichovo Hradiště Jablonné nad Orlicí Huzhou Potsdam Dabas Baoji Nyergesújfalu Szentgotthárd Neratovice Stochov Prachatice Wenzhou Brussels Smolensk Dombóvár Přimda Brno Hildesheim Sátoraljaújhely Ingolstadt Benalmádena Sânnicolau Mare Szigetszentmiklós Qiqihar Mátészalka Regensburg Jablonec nad Jizerou Český Krumlov Bystřice pod Hostýnem Iquique Zimnicea Beppu Encs Pécsvárad Worms Riga Coburg Přeštice Čelákovice Havlíčkův Brod Neubrandenburg Weimar Dagupan Sárospatak Guilin Leipzig Bácsalmás Szombathely Kozármisleny Soltvadkert Tiszaföldvár Heves Raspenava Vsetín Rosenheim Edmonton Gárdony Cegléd Jinhua Kazincbarcika České Budějovice Fuzhou Siófok Fertőd Tachov Chaoyang Elterlein Sümeg Mórahalom Balassagyarmat Anqing Zaporizhzhya Pforzheim Terezín Zábřeh Făget Kosmonosy Mariánské Lázně Hlučín Hefei Ostrov Kiskunmajsa Sarajevo Straubing Aveiro Kiskőrös Mannheim Jiříkov Scheibenberg Wiesbaden Szentendre Yangzhou Santa Fe Mezőtúr Dunakeszi Fushun Mezőhegyes Százhalombatta Jablunkov Norden Tanvald Roudnice nad Labem Kolín Wuhu Valmiera Komló Karcag Suzhou Sarkad Zhuhai Siegen Police nad Metují Balatonföldvár Uherské Hradiště Tōgane Siklós Wolfsburg Sajószentpéter Veszprém Shibukawa Kisújszállás Mohács Ruhla Schneeberg, Saxony Pilisvörösvár Sayda Ibbenbüren Brand-Erbisdorf Annaberg-Buchholz Litvínov Nantong Salgótarján Hino City Strakonice Santiago Hamm Blatná Kadarkút Ontario Bremerhaven Atami Kaposvár Sušice Lenti Schmalkalden Ráckeve Sopron Hatvan Blansko Broumov Hohenstein-Ernstthal Pasadena Windhoek Bamberg Brandenburg an der Havel Zărnești Gera Salzgitter Shijōnawate Žamberk Mezőkövesd Fujisawa Kumano Písek Tucson Balatonfüred Viseu Kőszeg Aue Caracas Offenbach am Main Yerevan Mór Nagybajom Gödöllő Tokaj Kempten Kaplice Loket Nepomuk Edelény Tab Šternberk Studénka Bicaz Tai'an Itō Bóly Würzburg Sinaia Kdyně
337
action greater
action union
action find_tuple_counts
relation sister city
type city
type human settlement
action find_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Marseille
relation sister city
type human settlement
type designation for an administrative territorial entity
[{'concept': 'city'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?n ) WHERE { { ?a property:sister_city ?s . ?a rdf:type ontology:city . ?s rdf:type ontology:human_settlement } UNION { ?a property:sister_city ?s . ?a rdf:type ontology:city . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?n > ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?d rdf:type ontology:human_settlement } } . resource:Marseille property:sister_city ?d } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q23482
P1376
Q15617994 Q13220204
USER
How many administrative territories and administrative country subdivisions have Marseille as their capital ?
(Q23482,P1376,c(Q15617994)) (Q23482,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q23482
relation P1376
type Q15617994
action filter_type
action find
entity Q23482
relation P1376
type Q13220204
['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q23482', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?w rdf:type ?p }
Marseille
action count
action union
action filter_type
action find
entity Marseille
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Marseille
relation capital of
type second-level administrative country subdivision
['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Marseille', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?w rdf:type ?p }
[]
designation for an administrative territorial entity second-level administrative country subdivision
SYSTEM
1 administrative territories and 1 administrative country subdivisions
Q3240 Q701646
(Q23482,P1376,c(Q15617994)) (Q23482,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q23482
relation P1376
type Q15617994
action filter_type
action find
entity Q23482
relation P1376
type Q13220204
[ANSWER]
['Q23482', 'P1376', {'concept': 'Q15617994'}] ['Q23482', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?w rdf:type ?p }
Bouches-du-Rhône arrondissement of Marseille
1 administrative territories and 1 administrative country subdivisions
action count
action union
action filter_type
action find
entity Marseille
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Marseille
relation capital of
type second-level administrative country subdivision
['Marseille', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Marseille', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?w rdf:type ?p }
[]