Simple Question (Direct)
Simple Question
Q5539989
P27
Q15617994
USER
Which administrative territory is the country of citizenship of George H. Adams ?
(Q5539989,P27,c(Q15617994))
action filter_type
action find
entity Q5539989
relation P27
type Q15617994
['Q5539989', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5539989 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
George H. Adams
action filter_type
action find
entity George H. Adams
relation country of citizenship
type designation for an administrative territorial entity
['George H. Adams', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:George_H._Adams property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5539989,P27,c(Q15617994))
action filter_type
action find
entity Q5539989
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of George H. Adams
['Q5539989', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q5539989 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
The United States of America is the country of citizenship of George H. Adams
United States of America
action filter_type
action find
entity George H. Adams
relation country of citizenship
type designation for an administrative territorial entity
['George H. Adams', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:George_H._Adams property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P1313
Q895526
USER
Which authority organ is fulfilled by that administrative territory ?
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?m WHERE { resource:Q30 property:P1313 ?m . ?m rdf:type ontology:Q895526 }
United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?m WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?m . ?m rdf:type ontology:authority_organ }
[]
authority organ
Q11696
SYSTEM
President of the United States of America
Q11696
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
The [ANSWER] is fulfilled by that administrative territory
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?m WHERE { resource:Q30 property:P1313 ?m . ?m rdf:type ontology:Q895526 }
President of the United States of America
The President of the United States of America is fulfilled by that administrative territory
President of the United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?m WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?m . ?m rdf:type ontology:authority_organ }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q827015
P47
Q15617994
USER
How many administrative territories share border with United States of America or Bouenza Department ?
(Q30,P47,c(Q15617994)) (Q827015,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q30
relation P47
type Q15617994
action filter_type
action find
entity Q827015
relation P47
type Q15617994
['Q30', 'P47', {'concept': 'Q15617994'}] ['Q827015', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Q30 property:P47 ?r . ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q15617994 . resource:Q827015 property:P47 ?r } }
United States of America Bouenza Department
action count
action union
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Bouenza Department
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bouenza Department', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:United_States_of_America property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bouenza_Department property:shares_border_with ?r } }
[]
designation for an administrative territorial entity
SYSTEM
12
Q702 Q804 Q159 Q96 Q17 Q786 Q241 Q683 Q710 Q678 Q717 Q790
(Q30,P47,c(Q15617994)) (Q827015,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q30
relation P47
type Q15617994
action filter_type
action find
entity Q827015
relation P47
type Q15617994
[ANSWER]
['Q30', 'P47', {'concept': 'Q15617994'}] ['Q827015', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:Q30 property:P47 ?r . ?r rdf:type ontology:Q15617994 } UNION { ?r rdf:type ontology:Q15617994 . resource:Q827015 property:P47 ?r } }
Federated States of Micronesia Panama Russia Mexico Japan Dominican Republic Cuba Samoa Kiribati Tonga Venezuela Haiti
12
action count
action union
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Bouenza Department
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bouenza Department', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { resource:United_States_of_America property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bouenza_Department property:shares_border_with ?r } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q3305213 Q2342494
USER
How many administrative territories are expressed in atmost 2 paintings and collectables ?
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 2
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P180 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q3305213 } UNION { ?z property:P180 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?c } . FILTER ( ?u <= 2 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 2
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:depicts ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:painting } UNION { ?z property:depicts ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:collectable } } GROUP BY ?c } . FILTER ( ?u <= 2 ) }
[]
designation for an administrative territorial entity painting collectable
SYSTEM
94
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q82025 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 2
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P180 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q3305213 } UNION { ?z property:P180 ?c . ?c rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q2342494 } } GROUP BY ?c } . FILTER ( ?u <= 2 ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe horn Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
94
action count
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 2
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:depicts ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:painting } UNION { ?z property:depicts ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:collectable } } GROUP BY ?c } . FILTER ( ?u <= 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q64051
P159
Q13220204 Q895526
USER
How many administrative country subdivisions are the headquarters of around the same number of authority organs located as Monthey ?
(c(Q895526),P159,c(Q13220204))
action count
action approx
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action count
action filter_type
action find
entity Q64051
relation P159
type Q13220204
[{'concept': 'Q895526'}, 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P159 ?x . ?x rdf:type ontology:Q13220204 . ?s rdf:type ontology:Q895526 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q64051 property:P159 ?z . ?z rdf:type ontology:Q13220204 } } . FILTER ( ?w = ?q ) }
Monthey
action count
action approx
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action count
action filter_type
action find
entity Monthey
relation headquarters location
type second-level administrative country subdivision
[{'concept': 'authority organ'}, 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:headquarters_location ?x . ?x rdf:type ontology:second-level_administrative_country_subdivision . ?s rdf:type ontology:authority_organ } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Monthey property:headquarters_location ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision } } . FILTER ( ?w = ?q ) }
[]
second-level administrative country subdivision authority organ
SYSTEM
460
Q101341 Q67519 Q473316 Q68129 Q67125 Q107960 Q67120 Q67123 Q65826 Q64027 Q57919 Q57918 Q739449 Q57914 Q841299 Q258084 Q1440902 Q249715 Q65439 Q70248 Q69721 Q48542 Q69724 Q69726 Q69729 Q955459 Q13209 Q10016 Q160584 Q183029 Q337425 Q30599 Q65649 Q69152 Q64563 Q64567 Q206469 Q5707 Q475709 Q109483 Q67935 Q64694 Q65891 Q267015 Q488435 Q69981 Q1094095 Q65263 Q69383 Q69380 Q9767 Q499779 Q917326 Q4225 Q19316 Q9924 Q68269 Q9928 Q218259 Q68261 Q488157 Q1375859 Q11939 Q135970 Q7083 Q64186 Q18473 Q69503 Q64065 Q14565 Q9954 Q67760 Q69372 Q7903 Q5223 Q14580 Q63946 Q1321157 Q1525441 Q69300 Q25444 Q66384 Q43195 Q69433 Q57868 Q208012 Q1003757 Q36077 Q5420 Q81949 Q69208 Q65510 Q66283 Q9771 Q9774 Q9777 Q48750 Q171536 Q67872 Q69754 Q1025838 Q67849 Q843899 Q219595 Q64627 Q488779 Q66125 Q66537 Q450625 Q68220 Q68227 Q476330 Q68959 Q156743 Q65612 Q45744 Q484119 Q70517 Q108999 Q1473276 Q3941941 Q66403 Q90595 Q157144 Q1019611 Q69976 Q66334 Q488970 Q67203 Q211260 Q68256 Q156719 Q9858 Q9859 Q156711 Q73226 Q68258 Q68522 Q65164 Q69030 Q9913 Q791673 Q1663 Q113552 Q68244 Q4992787 Q104379 Q249906 Q69570 Q579984 Q14559 Q1013189 Q64156 Q9821 Q69329 Q66898 Q156760 Q308245 Q69716 Q58931 Q864802 Q67188 Q3799 Q189419 Q1532373 Q63905 Q64275 Q66473 Q926700 Q657461 Q48728 Q69148 Q69780 Q70655 Q64979 Q68956 Q917313 Q995152 Q68165 Q66984 Q81139 Q65273 Q9899 Q64614 Q70424 Q570969 Q157137 Q9799 Q33349 Q15833966 Q64727 Q7097 Q64058 Q158053 Q156724 Q1019658 Q43595 Q1019651 Q69364 Q131883 Q9949 Q63939 Q48696 Q67539 Q157795 Q285891 Q70042 Q1267640 Q66390 Q486717 Q483902 Q69836 Q66399 Q68063 Q66964 Q69216 Q581647 Q69401 Q4191 Q69227 Q69747 Q69745 Q69742 Q217802 Q215374 Q69654 Q69621 Q269667 Q108025 Q10039 Q395919 Q52261 Q111039 Q10035 Q64051 Q69974 Q65983 Q64224 Q998227 Q225521 Q65336 Q235190 Q48278 Q108988 Q503660 Q184454 Q66611 Q109005 Q65934 Q64099 Q1403340 Q21194 Q64665 Q64093 Q66593 Q648489 Q68240 Q68363 Q66814 Q68248 Q36136 Q3278215 Q9905 Q67100 Q64165 Q917535 Q67265 Q135959 Q57871 Q101918 Q63986 Q455464 Q489342 Q73065 Q68799 Q988413 Q67951 Q68097 Q70090 Q70093 Q10052 Q145871 Q64853 Q69822 Q503591 Q335135 Q70234 Q69675 Q2326 Q68849 Q48732 Q484008 Q69678 Q1447266 Q890194 Q1825 Q69774 Q10040 Q10044 Q109469 Q1975222 Q66839 Q108966 Q972 Q157055 Q36175 Q33280 Q2933 Q68205 Q66461 Q68266 Q69682 Q107135 Q691725 Q1008352 Q107351 Q109031 Q946497 Q493961 Q1347872 Q1256993 Q52298 Q69525 Q62266 Q64285 Q156732 Q72981 Q156739 Q734860 Q109042 Q69191 Q9872 Q9873 Q109048 Q9874 Q9875 Q110431 Q499485 Q63922 Q68111 Q1722 Q1640 Q1647 Q652130 Q145845 Q500223 Q69224 Q489374 Q7131 Q146456 Q2365 Q6749343 Q65037 Q69738 Q10001 Q10002 Q67894 Q108031 Q483969 Q27587 Q1019590 Q112675 Q64882 Q6535 Q69647 Q109494 Q246999 Q64087 Q303521 Q64082 Q66604 Q66191 Q66195 Q17834 Q9932 Q68277 Q48923 Q1686835 Q66697 Q113571 Q1773444 Q64171 Q66672 Q213246 Q216430 Q67270 Q984656 Q546634 Q64372 Q69512 Q64070 Q14570 Q69517 Q57860 Q67673 Q69062 Q90590 Q69245 Q485253 Q200667 Q2245 Q70332 Q67396 Q243766 Q56869 Q66633 Q68086 Q1000454 Q12407719 Q476008 Q68167 Q64512 Q68286 Q3617 Q2236 Q68395 Q52773 Q69768 Q69765 Q164098 Q10056 Q10053 Q157725 Q2088458 Q10050 Q4686 Q688539 Q107582 Q66254 Q66256 Q488762 Q69235 Q68230 Q65609 Q64205 Q66831 Q2340870 Q48844 Q69114 Q372110 Q1881 Q1019417 Q69690 Q771826 Q66733 Q488067 Q109021 Q67606 Q476603 Q65506 Q990385 Q493977 Q65858 Q10032 Q68305 Q68308 Q574558 Q69182 Q69020 Q68311
(c(Q895526),P159,c(Q13220204))
action count
action approx
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action count
action filter_type
action find
entity Q64051
relation P159
type Q13220204
[ANSWER]
[{'concept': 'Q895526'}, 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:P159 ?x . ?x rdf:type ontology:Q13220204 . ?s rdf:type ontology:Q895526 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q64051 property:P159 ?z . ?z rdf:type ontology:Q13220204 } } . FILTER ( ?w = ?q ) }
Lillehammer Broc Phra Khanong Olten Appenzell District East Delhi Grüningen Steckborn Hüttwilen Nyon Arendal Vestby Krimpen aan den IJssel Sørum Matosinhos Grong Sopó Olaine Erlen Paudex La Tour-de-Peilz Stange Oberwil Langenthal Rapperswil-Jona Galatsi Nidau Oldenzaal Sievierodonetsk Sande Albergaria-a-Velha Municipality Pleiku Courtelary Thayngen Seon Buochs Nøtterøy Bjelovar Khlong Thom Kristiansund Selzach Dornach Marly Cầu Giấy Hvaler Melide Cailungo Oberriet Hinwil Bowil Gulpen-Wittem Verran Vila Franca de Xira Emmen Biên Hòa Haarlemmermeer Pfäffikon Heemstede Zoeterwoude Meilen Rissa Kaliro District Stein am Rhein Pilar Rothenburg Bad Zurzach Zuchwil Poschiavo Lancy Dierikon Purmerend Stabio Neuhausen am Rheinfall Casablanca Stryn Weggis Yverdon-les-Bains Raebareli district Phra Nakhon Gland Funchal Tramelan Aigle Lenzburg Oppegård Hoogeveen Khartsyzk Hạ Long Varaždin Barcelona Province Windisch Bonstetten Feuerthalen Valkenburg aan de Geul Weert Venlo Finnøy Geldermalsen Castel San Pietro Volketswil Pathum Wan Pieterlen Rheden Smila Männedorf Tynset Neuenegg Itingen Alytus Oftringen Richterswil Pak Kret Thalwil Ternopil Widnau Sathon Frøya Saint-Aubin-Sauges Røros Súdwest-Fryslân Rovereta Bellach Risør Vinnytsia Suan Luang Les Genevez Mörschwil Inderøy Tavannes Zaandam Porrentruy Kamianske Oosterhout Oss Uzhhorod Nijkerk Weinfelden Le Noirmont Dietlikon Münchenstein Diemen Avdiivka Split Bømlo Wohlen Īslīce parish Vadsø Águeda Municipality Rolle Temerin Schüpfheim Trstenik Arbon Boxtel Mies Zumikon Nikopol Ørland Écublens Harderwijk Long Biên Rüte Porto-Novo Zemun Zaltbommel Kreuzlingen Egerkingen Lengnau Oeiras Cartagena Karlsøy Schlieren Freienbach Mex Dürrenäsch Martigny Vila do Conde Kakhovka Kloten Langendorf Torres Novas Municipality Plan-les-Ouates Amsterdam Sachseln Saint-Blaise Hergiswil Kryvyi Rih Heerlen Melitopol Marin NE Allschwil Inwil Köniz Sorokyne Kremenchuk Chatuchak Cotonou Yan Nawa Carouge 's Gravenmoer Naarden Baden Fauske Buchs Druzhkivka Copacabana, Antioquia Courtepin Dusit Saint-Imier Balsfjord Karmøy Bellevue Härkingen Saint-Prex Freienstein-Teufen Küsnacht Arlesheim Morges Lucerne Orpund Reinach Renens Arth Stjørdal Askøy Feusisberg Binningen Rheinfelden Sarpsborg Renswoude Anadia Bex Namsos De Bilt Monthey Cortébert Bussnang Opfikon Horishni Plavni Skarsterlân Lupfig Manizales Antioquia - Medellín Kongsberg Verdal Zeewolde Oberhofen am Thunersee Sandefjord Wettswil am Albis Brugg Khlong Toei Vũng Tàu Birsfelden Le Locle Frenkendorf Loznica Onex Laufen Schwerzenbach Grenchen Trà Vinh Mueang Nakhon Nayok Beverwijk Lachen Aarburg Loures Liesberg Caacupé Skedsmo Apeldoorn Zofingen Noordwijk Aukra Veendam Bedano Puerto Plata Dielsdorf Davos Sainte-Croix Evilard Vianen Preševo Wiesendangen Pregny-Chambésy Leka Popayán Gambarogno Zollikofen Notodden Leytron Meråker Austevoll Belp Envigado Ba Đình Karasjok Stäfa Rhenen Houten Askim Huai Khwang Luterbach Mandal Alkmaar Cherkasy Thanh Hóa Lysychansk Asunción Paradiso Givisiez Domat/Ems Ostermundigen Fredrikstad Renkum Lak Si Hammerfest Voss Luque Ulstein Oldambt Priboj Bursins Payerne Ålesund Stansstad Kherson Wijchen Rivne Capelle aan den IJssel Halden Laufenburg Uden Valkenswaard Horten Veghel Veldhoven Steinkjer Utsira Vernier Chiasso Dubrovnik Osijek Rijeka Reykjanesbær Doetinchem Klepp Herrliberg Frosta Nottwil Mukacheve Tinn Manhiça District Trimbach Pully Deventer Enschede Rümlang Gjøvik Rakkestad Sandnes Phasi Charoen Leidschendam-Voorburg Greifensee Alta Wollerau Odda Chouf District Baar Vik Dübendorf Risch-Rotkreuz Muttenz Horn Rebstein Heiloo Buchs Genthod Yenakiieve Steinhausen Førde Ghaziabad Uzwil Breitenbach Alphen aan den Rijn Levanger Caslano Penafiel Nea Smyrni Sins Lyss Dietikon Horw Châtel-Saint-Denis Lørenskog Sant'Antonino Collina d'Oro Grimstad Cologny Stord Ladakh Vinje Romanel-sur-Morges Wiler bei Utzenstorf Bucaramanga Asker Kilchberg Les Breuleux Shostka Stavanger Mueang Chiang Mai Sumiswald Buchs Horgen Karlovac Seljord Neerach Cheseaux-sur-Lausanne Amriswil Muri bei Bern Barneveld Zeist Wijk bij Duurstede Chernivtsi Bankura district Nieuwegein Slavonski Brod Rapperswil Cēsis Au Hünenberg Melhus Cham Meyrin Niederbuchsiten Regensdorf Bettlach Kordelio-Evosmos Sortland Trubschachen Apatin Fyresdal Watthana Ittigen Kovačica Lausen Osterøy Moss Bleienbach Sam Phran Flawil Horta Tysvær Turbenthal Bunnik Wetzikon Bulle Heerenveen Ramsen Hölstein Burgdorf
460
action count
action approx
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action count
action filter_type
action find
entity Monthey
relation headquarters location
type second-level administrative country subdivision
[{'concept': 'authority organ'}, 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?w ) WHERE { ?s property:headquarters_location ?x . ?x rdf:type ontology:second-level_administrative_country_subdivision . ?s rdf:type ontology:authority_organ } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Monthey property:headquarters_location ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision } } . FILTER ( ?w = ?q ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q68167
P159
Q13220204 Q895526
USER
And also tell me about Sumiswald?
(c(Q895526),P159,c(Q13220204))
action count
action approx
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action count
action filter_type
action find
entity Q68167
relation P159
type Q13220204
[{'concept': 'Q895526'}, 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?x rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q895526 . ?k property:P159 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Q68167 property:P159 ?c . ?c rdf:type ontology:Q13220204 } } . FILTER ( ?h = ?r ) }
Sumiswald
action count
action approx
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action count
action filter_type
action find
entity Sumiswald
relation headquarters location
type second-level administrative country subdivision
[{'concept': 'authority organ'}, 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:authority_organ . ?k property:headquarters_location ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Sumiswald property:headquarters_location ?c . ?c rdf:type ontology:second-level_administrative_country_subdivision } } . FILTER ( ?h = ?r ) }
[]
second-level administrative country subdivision authority organ
SYSTEM
460
Q101341 Q67519 Q473316 Q68129 Q67125 Q107960 Q67120 Q67123 Q65826 Q64027 Q57919 Q57918 Q739449 Q57914 Q841299 Q258084 Q1440902 Q249715 Q65439 Q70248 Q69721 Q48542 Q69724 Q69726 Q69729 Q955459 Q13209 Q10016 Q160584 Q183029 Q337425 Q30599 Q65649 Q69152 Q64563 Q64567 Q206469 Q5707 Q475709 Q109483 Q67935 Q64694 Q65891 Q267015 Q488435 Q69981 Q1094095 Q65263 Q69383 Q69380 Q9767 Q499779 Q917326 Q4225 Q19316 Q9924 Q68269 Q9928 Q218259 Q68261 Q488157 Q1375859 Q11939 Q135970 Q7083 Q64186 Q18473 Q69503 Q64065 Q14565 Q9954 Q67760 Q69372 Q7903 Q5223 Q14580 Q63946 Q1321157 Q1525441 Q69300 Q25444 Q66384 Q43195 Q69433 Q57868 Q208012 Q1003757 Q36077 Q5420 Q81949 Q69208 Q65510 Q66283 Q9771 Q9774 Q9777 Q48750 Q171536 Q67872 Q69754 Q1025838 Q67849 Q843899 Q219595 Q64627 Q488779 Q66125 Q66537 Q450625 Q68220 Q68227 Q476330 Q68959 Q156743 Q65612 Q45744 Q484119 Q70517 Q108999 Q1473276 Q3941941 Q66403 Q90595 Q157144 Q1019611 Q69976 Q66334 Q488970 Q67203 Q211260 Q68256 Q156719 Q9858 Q9859 Q156711 Q73226 Q68258 Q68522 Q65164 Q69030 Q9913 Q791673 Q1663 Q113552 Q68244 Q4992787 Q104379 Q249906 Q69570 Q579984 Q14559 Q1013189 Q64156 Q9821 Q69329 Q66898 Q156760 Q308245 Q69716 Q58931 Q864802 Q67188 Q3799 Q189419 Q1532373 Q63905 Q64275 Q66473 Q926700 Q657461 Q48728 Q69148 Q69780 Q70655 Q64979 Q68956 Q917313 Q995152 Q68165 Q66984 Q81139 Q65273 Q9899 Q64614 Q70424 Q570969 Q157137 Q9799 Q33349 Q15833966 Q64727 Q7097 Q64058 Q158053 Q156724 Q1019658 Q43595 Q1019651 Q69364 Q131883 Q9949 Q63939 Q48696 Q67539 Q157795 Q285891 Q70042 Q1267640 Q66390 Q486717 Q483902 Q69836 Q66399 Q68063 Q66964 Q69216 Q581647 Q69401 Q4191 Q69227 Q69747 Q69745 Q69742 Q217802 Q215374 Q69654 Q69621 Q269667 Q108025 Q10039 Q395919 Q52261 Q111039 Q10035 Q64051 Q69974 Q65983 Q64224 Q998227 Q225521 Q65336 Q235190 Q48278 Q108988 Q503660 Q184454 Q66611 Q109005 Q65934 Q64099 Q1403340 Q21194 Q64665 Q64093 Q66593 Q648489 Q68240 Q68363 Q66814 Q68248 Q36136 Q3278215 Q9905 Q67100 Q64165 Q917535 Q67265 Q135959 Q57871 Q101918 Q63986 Q455464 Q489342 Q73065 Q68799 Q988413 Q67951 Q68097 Q70090 Q70093 Q10052 Q145871 Q64853 Q69822 Q503591 Q335135 Q70234 Q69675 Q2326 Q68849 Q48732 Q484008 Q69678 Q1447266 Q890194 Q1825 Q69774 Q10040 Q10044 Q109469 Q1975222 Q66839 Q108966 Q972 Q157055 Q36175 Q33280 Q2933 Q68205 Q66461 Q68266 Q69682 Q107135 Q691725 Q1008352 Q107351 Q109031 Q946497 Q493961 Q1347872 Q1256993 Q52298 Q69525 Q62266 Q64285 Q156732 Q72981 Q156739 Q734860 Q109042 Q69191 Q9872 Q9873 Q109048 Q9874 Q9875 Q110431 Q499485 Q63922 Q68111 Q1722 Q1640 Q1647 Q652130 Q145845 Q500223 Q69224 Q489374 Q7131 Q146456 Q2365 Q6749343 Q65037 Q69738 Q10001 Q10002 Q67894 Q108031 Q483969 Q27587 Q1019590 Q112675 Q64882 Q6535 Q69647 Q109494 Q246999 Q64087 Q303521 Q64082 Q66604 Q66191 Q66195 Q17834 Q9932 Q68277 Q48923 Q1686835 Q66697 Q113571 Q1773444 Q64171 Q66672 Q213246 Q216430 Q67270 Q984656 Q546634 Q64372 Q69512 Q64070 Q14570 Q69517 Q57860 Q67673 Q69062 Q90590 Q69245 Q485253 Q200667 Q2245 Q70332 Q67396 Q243766 Q56869 Q66633 Q68086 Q1000454 Q12407719 Q476008 Q68167 Q64512 Q68286 Q3617 Q2236 Q68395 Q52773 Q69768 Q69765 Q164098 Q10056 Q10053 Q157725 Q2088458 Q10050 Q4686 Q688539 Q107582 Q66254 Q66256 Q488762 Q69235 Q68230 Q65609 Q64205 Q66831 Q2340870 Q48844 Q69114 Q372110 Q1881 Q1019417 Q69690 Q771826 Q66733 Q488067 Q109021 Q67606 Q476603 Q65506 Q990385 Q493977 Q65858 Q10032 Q68305 Q68308 Q574558 Q69182 Q69020 Q68311
(c(Q895526),P159,c(Q13220204))
action count
action approx
action find_reverse_tuple_counts
relation P159
type Q13220204
type Q895526
action count
action filter_type
action find
entity Q68167
relation P159
type Q13220204
[ANSWER]
[{'concept': 'Q895526'}, 'P159', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?x rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q895526 . ?k property:P159 ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Q68167 property:P159 ?c . ?c rdf:type ontology:Q13220204 } } . FILTER ( ?h = ?r ) }
Lillehammer Broc Phra Khanong Olten Appenzell District East Delhi Grüningen Steckborn Hüttwilen Nyon Arendal Vestby Krimpen aan den IJssel Sørum Matosinhos Grong Sopó Olaine Erlen Paudex La Tour-de-Peilz Stange Oberwil Langenthal Rapperswil-Jona Galatsi Nidau Oldenzaal Sievierodonetsk Sande Albergaria-a-Velha Municipality Pleiku Courtelary Thayngen Seon Buochs Nøtterøy Bjelovar Khlong Thom Kristiansund Selzach Dornach Marly Cầu Giấy Hvaler Melide Cailungo Oberriet Hinwil Bowil Gulpen-Wittem Verran Vila Franca de Xira Emmen Biên Hòa Haarlemmermeer Pfäffikon Heemstede Zoeterwoude Meilen Rissa Kaliro District Stein am Rhein Pilar Rothenburg Bad Zurzach Zuchwil Poschiavo Lancy Dierikon Purmerend Stabio Neuhausen am Rheinfall Casablanca Stryn Weggis Yverdon-les-Bains Raebareli district Phra Nakhon Gland Funchal Tramelan Aigle Lenzburg Oppegård Hoogeveen Khartsyzk Hạ Long Varaždin Barcelona Province Windisch Bonstetten Feuerthalen Valkenburg aan de Geul Weert Venlo Finnøy Geldermalsen Castel San Pietro Volketswil Pathum Wan Pieterlen Rheden Smila Männedorf Tynset Neuenegg Itingen Alytus Oftringen Richterswil Pak Kret Thalwil Ternopil Widnau Sathon Frøya Saint-Aubin-Sauges Røros Súdwest-Fryslân Rovereta Bellach Risør Vinnytsia Suan Luang Les Genevez Mörschwil Inderøy Tavannes Zaandam Porrentruy Kamianske Oosterhout Oss Uzhhorod Nijkerk Weinfelden Le Noirmont Dietlikon Münchenstein Diemen Avdiivka Split Bømlo Wohlen Īslīce parish Vadsø Águeda Municipality Rolle Temerin Schüpfheim Trstenik Arbon Boxtel Mies Zumikon Nikopol Ørland Écublens Harderwijk Long Biên Rüte Porto-Novo Zemun Zaltbommel Kreuzlingen Egerkingen Lengnau Oeiras Cartagena Karlsøy Schlieren Freienbach Mex Dürrenäsch Martigny Vila do Conde Kakhovka Kloten Langendorf Torres Novas Municipality Plan-les-Ouates Amsterdam Sachseln Saint-Blaise Hergiswil Kryvyi Rih Heerlen Melitopol Marin NE Allschwil Inwil Köniz Sorokyne Kremenchuk Chatuchak Cotonou Yan Nawa Carouge 's Gravenmoer Naarden Baden Fauske Buchs Druzhkivka Copacabana, Antioquia Courtepin Dusit Saint-Imier Balsfjord Karmøy Bellevue Härkingen Saint-Prex Freienstein-Teufen Küsnacht Arlesheim Morges Lucerne Orpund Reinach Renens Arth Stjørdal Askøy Feusisberg Binningen Rheinfelden Sarpsborg Renswoude Anadia Bex Namsos De Bilt Monthey Cortébert Bussnang Opfikon Horishni Plavni Skarsterlân Lupfig Manizales Antioquia - Medellín Kongsberg Verdal Zeewolde Oberhofen am Thunersee Sandefjord Wettswil am Albis Brugg Khlong Toei Vũng Tàu Birsfelden Le Locle Frenkendorf Loznica Onex Laufen Schwerzenbach Grenchen Trà Vinh Mueang Nakhon Nayok Beverwijk Lachen Aarburg Loures Liesberg Caacupé Skedsmo Apeldoorn Zofingen Noordwijk Aukra Veendam Bedano Puerto Plata Dielsdorf Davos Sainte-Croix Evilard Vianen Preševo Wiesendangen Pregny-Chambésy Leka Popayán Gambarogno Zollikofen Notodden Leytron Meråker Austevoll Belp Envigado Ba Đình Karasjok Stäfa Rhenen Houten Askim Huai Khwang Luterbach Mandal Alkmaar Cherkasy Thanh Hóa Lysychansk Asunción Paradiso Givisiez Domat/Ems Ostermundigen Fredrikstad Renkum Lak Si Hammerfest Voss Luque Ulstein Oldambt Priboj Bursins Payerne Ålesund Stansstad Kherson Wijchen Rivne Capelle aan den IJssel Halden Laufenburg Uden Valkenswaard Horten Veghel Veldhoven Steinkjer Utsira Vernier Chiasso Dubrovnik Osijek Rijeka Reykjanesbær Doetinchem Klepp Herrliberg Frosta Nottwil Mukacheve Tinn Manhiça District Trimbach Pully Deventer Enschede Rümlang Gjøvik Rakkestad Sandnes Phasi Charoen Leidschendam-Voorburg Greifensee Alta Wollerau Odda Chouf District Baar Vik Dübendorf Risch-Rotkreuz Muttenz Horn Rebstein Heiloo Buchs Genthod Yenakiieve Steinhausen Førde Ghaziabad Uzwil Breitenbach Alphen aan den Rijn Levanger Caslano Penafiel Nea Smyrni Sins Lyss Dietikon Horw Châtel-Saint-Denis Lørenskog Sant'Antonino Collina d'Oro Grimstad Cologny Stord Ladakh Vinje Romanel-sur-Morges Wiler bei Utzenstorf Bucaramanga Asker Kilchberg Les Breuleux Shostka Stavanger Mueang Chiang Mai Sumiswald Buchs Horgen Karlovac Seljord Neerach Cheseaux-sur-Lausanne Amriswil Muri bei Bern Barneveld Zeist Wijk bij Duurstede Chernivtsi Bankura district Nieuwegein Slavonski Brod Rapperswil Cēsis Au Hünenberg Melhus Cham Meyrin Niederbuchsiten Regensdorf Bettlach Kordelio-Evosmos Sortland Trubschachen Apatin Fyresdal Watthana Ittigen Kovačica Lausen Osterøy Moss Bleienbach Sam Phran Flawil Horta Tysvær Turbenthal Bunnik Wetzikon Bulle Heerenveen Ramsen Hölstein Burgdorf
460
action count
action approx
action find_reverse_tuple_counts
relation headquarters location
type second-level administrative country subdivision
type authority organ
action count
action filter_type
action find
entity Sumiswald
relation headquarters location
type second-level administrative country subdivision
[{'concept': 'authority organ'}, 'headquarters location', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?h ) WHERE { ?x rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:authority_organ . ?k property:headquarters_location ?x } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Sumiswald property:headquarters_location ?c . ?c rdf:type ontology:second-level_administrative_country_subdivision } } . FILTER ( ?h = ?r ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P127
Q895526 Q18142
USER
Which tower blocks are under posessision of atleast 1 authority organ ?
(c(Q18142),P127,c(Q895526))
action atleast
action find_tuple_counts
relation P127
type Q18142
type Q895526
value 1
[{'concept': 'Q18142'}, 'P127', {'concept': 'Q895526'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?k property:P127 ?q . ?k rdf:type ontology:Q18142 . ?q rdf:type ontology:Q895526 } GROUP BY ?k } . FILTER ( ?n >= 1 ) }
action atleast
action find_tuple_counts
relation owned by
type tower block
type authority organ
value 1
[{'concept': 'tower block'}, 'owned by', {'concept': 'authority organ'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?k property:owned_by ?q . ?k rdf:type ontology:tower_block . ?q rdf:type ontology:authority_organ } GROUP BY ?k } . FILTER ( ?n >= 1 ) }
[]
authority organ tower block
Q7209427 Q3052104 Q4547314
SYSTEM
Police Cantonment Complex, Immigration Tower, 111 George Street
Q1777464 Q7209427 Q3052104 Q3361020 Q4547314 Q3052060
(c(Q18142),P127,c(Q895526))
action atleast
action find_tuple_counts
relation P127
type Q18142
type Q895526
value 1
[ANSWERS] are under posessision of atleast 1 authority organ
[{'concept': 'Q18142'}, 'P127', {'concept': 'Q895526'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?k property:P127 ?q . ?k rdf:type ontology:Q18142 . ?q rdf:type ontology:Q895526 } GROUP BY ?k } . FILTER ( ?n >= 1 ) }
Metro Hall Police Cantonment Complex Immigration Tower Palais de justice 111 George Street Revenue Tower
Police Cantonment Complex, Immigration Tower and 111 George Street are under posessision of atleast 1 authority organ
Police Cantonment Complex Immigration Tower 111 George Street
action atleast
action find_tuple_counts
relation owned by
type tower block
type authority organ
value 1
[{'concept': 'tower block'}, 'owned by', {'concept': 'authority organ'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?n ) WHERE { ?k property:owned_by ?q . ?k rdf:type ontology:tower_block . ?q rdf:type ontology:authority_organ } GROUP BY ?k } . FILTER ( ?n >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q719503 Q30
P161 P6
Q502895
USER
Which people are the head of government of United States of America or are in Doraemon: Nobita and the Animal Planet ?
OR((Q30,P6,c(Q502895)), (Q719503,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q719503
relation P161
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q719503', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?n } UNION { resource:Q719503 property:P161 ?n } } }
Doraemon: Nobita and the Animal Planet United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Doraemon: Nobita and the Animal Planet
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Doraemon: Nobita and the Animal Planet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?n } UNION { resource:Doraemon:_Nobita_and_the_Animal_Planet property:cast_member ?n } } }
[]
common name
Q11806 Q3031763 Q91 Q6782679 Q1328558 Q2000663 Q3031796 Q35686 Q8007 Q9916
SYSTEM
Some of them are John Adams, Masato Hirano, Abraham Lincoln, Masashi Sugawara, Kazuya Tatekabe, Masashi Hirose, Ryōichi Tanaka, Rutherford B. Hayes, Franklin Delano Roosevelt, Dwight D. Eisenhower
Q35171 Q11815 Q11816 Q11817 Q9588 Q6419096 Q12306 Q91 Q12325 Q33866 Q1124 Q35648 Q35498 Q933540 Q659547 Q35678 Q783233 Q2000663 Q2329608 Q11812 Q9582 Q207 Q11813 Q35236 Q23685 Q9696 Q2714894 Q23 Q241771 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q836154 Q6782679 Q11806 Q2714660 Q3031796 Q35286 Q9640 Q1931106 Q35686 Q1328558 Q11820 Q3031763 Q35041 Q4817770 Q34836 Q11869 Q1187760 Q1089493 Q34296 Q76 Q8612 Q181616 Q23505 Q2305052 Q3180879 Q2663879 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q719503,P161,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q719503
relation P161
type Q502895
[ANSWERS] are the head of government of United States of America or are in Doraemon: Nobita and the Animal Planet
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q719503', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . { { resource:Q30 property:P6 ?n } UNION { resource:Q719503 property:P161 ?n } } }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Kiyoshi Kawakubo Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt Bill Clinton William Howard Taft Chester A. Arthur Naoki Tatsuta Run Sasaki Benjamin Harrison Toku Nishio Masashi Hirose Yōko Matsuoka Thomas Jefferson Gerald Ford George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Chafurin George Washington Mayumi Tanaka Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce Nobuyo Ōyama Masashi Sugawara John Adams Kaneta Kimotsuki Ryōichi Tanaka Warren G. Harding Lyndon B. Johnson Michiko Nomura Rutherford B. Hayes Kazuya Tatekabe Martin Van Buren Masato Hirano William McKinley Atsuko Mine Ulysses S. Grant William Henry Harrison Jūrōta Kosugi Keaton Yamada Woodrow Wilson Barack Obama Andrew Johnson Katsuji Mori George H. W. Bush Kumiko Nishihara Takeshi Watabe Noriko Ohara Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
John Adams, Masato Hirano, Abraham Lincoln, Masashi Sugawara, Kazuya Tatekabe, Masashi Hirose, Ryōichi Tanaka, Rutherford B. Hayes, Franklin Delano Roosevelt and Dwight D. Eisenhower are the head of government of United States of America or are in Doraemon: Nobita and the Animal Planet
John Adams Masato Hirano Abraham Lincoln Masashi Sugawara Kazuya Tatekabe Masashi Hirose Ryōichi Tanaka Rutherford B. Hayes Franklin Delano Roosevelt Dwight D. Eisenhower
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Doraemon: Nobita and the Animal Planet
relation cast member
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Doraemon: Nobita and the Animal Planet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . { { resource:United_States_of_America property:head_of_government ?n } UNION { resource:Doraemon:_Nobita_and_the_Animal_Planet property:cast_member ?n } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5010052 Q68167
P17
Q15617994
USER
Which administrative territories do Sumiswald or CD Burguillos belong to ?
OR((Q68167,P17,c(Q15617994)), (Q5010052,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q68167
relation P17
action find
entity Q5010052
relation P17
type Q15617994
{'OR': [['Q68167', 'P17', {'concept': 'Q15617994'}], ['Q5010052', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?l ) { ( resource:Q68167 ) ( resource:Q5010052 ) } . ?l property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
CD Burguillos Sumiswald
action filter_type
action union
action find
entity Sumiswald
relation country
action find
entity CD Burguillos
relation country
type designation for an administrative territorial entity
{'OR': [['Sumiswald', 'country', {'concept': 'designation for an administrative territorial entity'}], ['CD Burguillos', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?l ) { ( resource:Sumiswald ) ( resource:CD_Burguillos ) } . ?l property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q39
SYSTEM
Spain, Switzerland
Q29 Q39
OR((Q68167,P17,c(Q15617994)), (Q5010052,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q68167
relation P17
action find
entity Q5010052
relation P17
type Q15617994
Sumiswald or CD Burguillos belong to the [ANSWERS]
{'OR': [['Q68167', 'P17', {'concept': 'Q15617994'}], ['Q5010052', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?l ) { ( resource:Q68167 ) ( resource:Q5010052 ) } . ?l property:P17 ?p } . ?p rdf:type ontology:Q15617994 }
Spain Switzerland
Sumiswald or CD Burguillos belong to the Spain and Switzerland
Spain Switzerland
action filter_type
action union
action find
entity Sumiswald
relation country
action find
entity CD Burguillos
relation country
type designation for an administrative territorial entity
{'OR': [['Sumiswald', 'country', {'concept': 'designation for an administrative territorial entity'}], ['CD Burguillos', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?l ) { ( resource:Sumiswald ) ( resource:CD_Burguillos ) } . ?l property:country ?p } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q784
P17
Q15617994 Q55488 Q2668072
USER
How many administrative territories are greater number of railway stations and collections located in than Dominica ?
(c(Q55488)|c(Q2668072),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
action count
action filter_multi_types
action find_reverse
entity Q784
relation P17
type Q55488
type Q2668072
[[{'concept': 'Q55488'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { { ?t property:P17 ?g . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q55488 } UNION { ?t property:P17 ?g . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q2668072 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P17 resource:Q784 . { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:Q55488 ) ( ontology:Q2668072 ) } } } } . FILTER ( ?u > ?x ) }
Dominica
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
action count
action filter_multi_types
action find_reverse
entity Dominica
relation country
type railway station
type collection
[[{'concept': 'railway station'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { { ?t property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:railway_station } UNION { ?t property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:collection } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:country resource:Dominica . { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:railway_station ) ( ontology:collection ) } } } } . FILTER ( ?u > ?x ) }
[]
designation for an administrative territorial entity railway station collection
SYSTEM
136
Q804 Q801 Q800 Q398 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q265 Q214 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q219 Q4628 Q826 Q822 Q241 Q242 Q244 Q811 Q736 Q33 Q921 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q29999 Q854 Q734 Q424 Q730 Q236 Q230 Q232 Q233 Q238 Q20 Q27 Q28 Q1027 Q189 Q843 Q842 Q184 Q1028 Q836 Q786 Q32 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1032 Q1033 Q1030 Q191 Q965 Q962 Q963 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q215 Q218 Q37 Q912 Q1005 Q833 Q1009 Q1008 Q683 Q29 Q874 Q79 Q77 Q858 Q878 Q948 Q817 Q1016 Q1011 Q929 Q863 Q869 Q953
(c(Q55488)|c(Q2668072),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q55488
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
action count
action filter_multi_types
action find_reverse
entity Q784
relation P17
type Q55488
type Q2668072
[ANSWER]
[[{'concept': 'Q55488'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { { ?t property:P17 ?g . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q55488 } UNION { ?t property:P17 ?g . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q2668072 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P17 resource:Q784 . { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:Q55488 ) ( ontology:Q2668072 ) } } } } . FILTER ( ?u > ?x ) }
Panama Israel Costa Rica Bahrain Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Uzbekistan Slovakia Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Bulgaria Faroe Islands Maldives Lebanon Cuba Belize Barbados Nicaragua Ecuador Finland Brunei Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Cambodia Suriname Montenegro Georgia Kazakhstan Malta San Marino Norway Ireland Hungary Mauritius Iceland Pakistan Oman Belarus Morocco Myanmar Dominican Republic Luxembourg Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Niger Nigeria Namibia Estonia Burkina Faso Benin Botswana Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovenia Romania Lithuania Mali Gambia Malaysia Cameroon Côte d'Ivoire Samoa Spain Turkmenistan Egypt Uruguay Syria United Arab Emirates Tunisia Kuwait Libya Cape Verde Central African Republic Tajikistan Thailand Zambia
136
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type railway station
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
action count
action filter_multi_types
action find_reverse
entity Dominica
relation country
type railway station
type collection
[[{'concept': 'railway station'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { { ?t property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:railway_station } UNION { ?t property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:collection } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:country resource:Dominica . { ?h rdf:type ?j . VALUES ( ?j ) { ( ontology:railway_station ) ( ontology:collection ) } } } } . FILTER ( ?u > ?x ) }
[]