Simple Question (Direct)
Simple Question
Q1354082
P19
Q56061
USER
Which administrative territory was Erik Rasmussen born at ?
(Q1354082,P19,c(Q56061))
action filter_type
action find
entity Q1354082
relation P19
type Q56061
['Q1354082', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q1354082 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Erik Rasmussen
action filter_type
action find
entity Erik Rasmussen
relation place of birth
type administrative territorial entity
['Erik Rasmussen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Erik_Rasmussen property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q988741
SYSTEM
St. Louis Park
Q988741
(Q1354082,P19,c(Q56061))
action filter_type
action find
entity Q1354082
relation P19
type Q56061
Erik Rasmussen was born in [ANSWER]
['Q1354082', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q1354082 property:P19 ?g . ?g rdf:type ontology:Q56061 }
St. Louis Park
Erik Rasmussen was born in St. Louis Park
St. Louis Park
action filter_type
action find
entity Erik Rasmussen
relation place of birth
type administrative territorial entity
['Erik Rasmussen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Erik_Rasmussen property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q988741
P47
Q56061
USER
Which administrative territories do that one share a border with ?
(c(Q56061),P47,Q988741)
action filter_type
action find_reverse
entity Q988741
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q988741']
SELECT DISTINCT ?e WHERE { ?e property:P47 resource:Q988741 . ?e rdf:type ontology:Q56061 }
St. Louis Park
action filter_type
action find_reverse
entity St. Louis Park
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'St. Louis Park']
SELECT DISTINCT ?e WHERE { ?e property:shares_border_with resource:St._Louis_Park . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q868848 Q936753
SYSTEM
Golden Valley, Plymouth
Q868848 Q936753
(c(Q56061),P47,Q988741)
action filter_type
action find_reverse
entity Q988741
relation P47
type Q56061
That one share a border with the [ANSWERS]
[{'concept': 'Q56061'}, 'P47', 'Q988741']
SELECT DISTINCT ?e WHERE { ?e property:P47 resource:Q988741 . ?e rdf:type ontology:Q56061 }
Golden Valley Plymouth
That one share a border with the Golden Valley and Plymouth
Golden Valley Plymouth
action filter_type
action find_reverse
entity St. Louis Park
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'St. Louis Park']
SELECT DISTINCT ?e WHERE { ?e property:shares_border_with resource:St._Louis_Park . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q56061
USER
Which administrative territories are situated in the neighbourhood of around 1 watercourses or still waterss ?
(c(Q56061),P206,c(Q355304)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 1
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?n ) WHERE { { ?u property:P206 ?x . ?u rdf:type ontology:Q56061 . ?x rdf:type ontology:Q337567 } UNION { ?u property:P206 ?x . ?u rdf:type ontology:Q56061 . ?x rdf:type ontology:Q355304 } } GROUP BY ?u } . FILTER ( ?n = 1 ) }
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 1
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?n ) WHERE { { ?u property:located_next_to_body_of_water ?x . ?u rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:still_waters } UNION { ?u property:located_next_to_body_of_water ?x . ?u rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:watercourse } } GROUP BY ?u } . FILTER ( ?n = 1 ) }
[]
watercourse still waters administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q165736 Q991950 Q1721578 Q84 Q2003600 Q18682792 Q157478 Q2255397 Q2752171 Q539767 Q3876 Q990253 Q1586529 Q3246724 Q740149 Q23311 Q3238 Q3143983 Q41057 Q16650704 Q2207185 Q2222516 Q3844 Q18682692 Q2047623 Q10014 Q643835 Q515728 Q321197 Q7054 Q2335714 Q2454052 Q11882295 Q1520342 Q3150 Q18682889 Q16168559 Q10084 Q846242 Q1083051 Q18808 Q985642 Q369911 Q1309 Q991532 Q4093 Q955992 Q144773 Q3659 Q609698 Q1780116 Q1667345 Q2415951 Q987 Q2451654 Q6672525 Q11874170 Q254734 Q577891 Q631517 Q13648690 Q175258 Q209176 Q1754096 Q746096 Q2135238 Q653025 Q2284683 Q162857 Q1521199 Q1757 Q1025910 Q1754 Q4201085 Q769631 Q7977 Q15377069 Q571970 Q2987335 Q1685683 Q15241516 Q257034 Q2500974 Q1252635 Q9365 Q9361 Q47048 Q90 Q1519942 Q3563897 Q986645 Q2441552 Q588293 Q486792 Q1610396 Q371532 Q385386 Q3397397 Q956954 Q34820 Q2726062 Q9375247 Q625761 Q1930 Q786111 Q2007261 Q1033978 Q2539726 Q2305394 Q20205325 Q17332337 Q597 Q73462 Q3183256 Q2287228 Q3036324 Q20714928 Q185404 Q93347 Q3894 Q3748 Q11901685 Q15320 Q365 Q5836 Q1020231 Q641390 Q1845104 Q572034 Q26362 Q624065 Q11866294 Q2465220 Q617407 Q179454 Q3323 Q2060859 Q8546656 Q206954 Q16015040 Q3026650 Q478036 Q18923859 Q9270 Q2886833 Q635806 Q1779522 Q2916660 Q968631 Q24861 Q1526933 Q1009524 Q7018666 Q427708 Q160642 Q14935628 Q174054 Q163091 Q2078223 Q185582 Q3483520 Q73221 Q9326 Q156717 Q573599 Q9918 Q1520 Q11902175 Q1646181 Q1776515 Q554655 Q28218 Q4527424 Q2861 Q793 Q621483 Q6477002 Q18682920 Q1614071 Q43070 Q932008 Q3703 Q2227038 Q2059003 Q37133 Q2069566 Q314367 Q2525207 Q2598092 Q997775 Q550373 Q2174345 Q2627252 Q504544 Q3630 Q200783 Q18682241 Q4070552 Q16636995 Q1165854 Q5474003 Q755657 Q3832 Q239 Q4083 Q1094123 Q733368 Q15377091 Q995159 Q508998 Q2300996 Q2379952 Q1004822 Q238803 Q932955 Q1908062 Q196397 Q542647 Q948468 Q145638 Q894535 Q1563 Q523651 Q987790 Q2543792 Q18682719 Q1223508 Q2335535 Q1042366 Q2391779 Q85 Q15241507 Q533456 Q9536 Q10707890 Q11901984 Q2255057 Q2933890 Q1487909 Q629786 Q2229853 Q737877 Q2918470 Q73031 Q2543086 Q1735 Q1143278 Q984973 Q773280 Q2950738 Q2924158 Q19297212 Q3856 Q3010939 Q1785679 Q36281 Q7481520 Q6278969 Q70 Q425780 Q3743068 Q1648515 Q1390389 Q1585348 Q1390387 Q2321706 Q12191 Q3674 Q7507390 Q15339 Q5912898 Q992474 Q172 Q270 Q1957 Q109535 Q2336499 Q1519434 Q690 Q1906235 Q3274 Q285323 Q961068 Q1807382 Q11899935 Q537214 Q18681966 Q109386 Q2729544 Q2160909 Q3051477 Q920968 Q192098 Q15241652 Q26296883 Q18663090 Q5189288 Q649738 Q715 Q567332 Q4374268 Q3001 Q21197 Q10717 Q1129607 Q1018225 Q180333 Q543904 Q592123 Q990651 Q2578642 Q7107283 Q654259 Q2842582 Q437 Q390588 Q3551 Q1265670 Q384 Q858775 Q865808 Q2329846 Q1780 Q1781 Q658902 Q6397865 Q2659563 Q1003576 Q2529554 Q2682753 Q11897598 Q4067724 Q914755 Q227064 Q1850 Q1070428 Q477232 Q1314479 Q1490863 Q285778 Q2807 Q4357920 Q35381 Q259617 Q3604 Q3407596 Q4405293 Q959517 Q5638429 Q4207520 Q183104 Q17315652 Q2225806 Q1025055 Q2424732 Q2538313 Q208143 Q806414 Q593141 Q1785595 Q165486 Q3739 Q2637838 Q16015068 Q2787064 Q1823092 Q617 Q952497 Q181359 Q1243780 Q19613854 Q1012411 Q15241991 Q11902896 Q19906849 Q2574529 Q155955 Q34713 Q5068781 Q183199 Q2350941 Q1545679 Q10690 Q915 Q1200892 Q161912 Q3028239 Q1997485 Q11889617 Q674395 Q2007254 Q2911365 Q1538830 Q12047 Q2267399 Q671557 Q1043368 Q4454 Q1800099 Q9974 Q989288 Q987243 Q614706 Q2927534 Q276274 Q1792879 Q2511670 Q1423660 Q345389 Q1721184 Q3909 Q2931074 Q7056872 Q1026296 Q755389 Q1011866 Q736131 Q41572 Q306440 Q3766 Q9125 Q1861 Q15552182 Q1870405 Q868647 Q2194010 Q12439 Q83065 Q269 Q1794939 Q2392235 Q661700 Q1947 Q2674551 Q1981987 Q162065 Q2751941 Q676689 Q2498737 Q939609 Q1533868 Q795623 Q840681 Q922981 Q2077402 Q2784834 Q2351343 Q166065 Q985659 Q971550 Q13400194 Q18681979 Q2868 Q1886770 Q5132825 Q2682566 Q40747 Q2087380 Q820949 Q649 Q304108 Q77056 Q58940 Q894955 Q2579332 Q504678 Q990527 Q2014445 Q2948574 Q990130 Q427044 Q28848 Q3112541 Q598948 Q12762569 Q806799 Q910997 Q766896 Q2830827 Q586 Q585 Q34370 Q954764 Q15287 Q1734018 Q1669399 Q16531502 Q630478 Q9279 Q11901684 Q2124272 Q2704 Q986675 Q1270505 Q1713141 Q579556 Q11900887 Q65502 Q464955 Q508056 Q506700 Q6899495 Q11873187 Q963894 Q2627415 Q2281721 Q2319224 Q204234 Q787279 Q750760 Q19613699 Q988100 Q1006998 Q353307 Q1025353 Q2432955 Q55630 Q7618827 Q4100 Q4914513 Q16016733 Q3361880 Q878809 Q4998230 Q19612988 Q3726 Q57006 Q1742334 Q5674391 Q570990 Q36168 Q956125 Q630334 Q2051589 Q1553283 Q2409481 Q1341 Q578026 Q1964137 Q503763 Q2355915 Q2303243 Q1531454 Q1017 Q18399563 Q2350685 Q15241523 Q1850580 Q2585002 Q1522881 Q5646331 Q179385 Q1248930 Q11901400 Q1728043 Q1743660 Q1085
(c(Q56061),P206,c(Q355304)|c(Q337567))
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 1
[ANSWERS] are situated in the neighbourhood of around 1 watercourses or still waterss
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?n ) WHERE { { ?u property:P206 ?x . ?u rdf:type ontology:Q56061 . ?x rdf:type ontology:Q337567 } UNION { ?u property:P206 ?x . ?u rdf:type ontology:Q56061 . ?x rdf:type ontology:Q355304 } } GROUP BY ?u } . FILTER ( ?n = 1 ) }
Doesburg Karczew Tagazar London Walton-on-Thames Vaattojärvi Lesozavodsk Uitdam Ardnacrusha Ivalo Lilongwe Henley-on-Thames Rothneusiedl Bisham Södermalm City of London Tegucigalpa Lekkerkerk Topeka Innokent'evka Terneuzen Sansané Haoussa Brazzaville Kirkonkylä Strzyżów Kampen Arfurt Harburg-Wilhelmsburg Cieszyn Dalnegorsk Steeden Olney Metsäkylä Turvey Jena Väli-Olhava Novozhatkovo Vlissingen Nieuw-Lekkerland Swanscombe Pyongyang Góra Kalwaria Athlone Maastricht Grays Glasgow Kobryn Zakroczym N'Djamena Lorain Cold Brayfield Marienwerder Whitchurch-on-Thames New Delhi Trentemoult Long Ditton Kätkäsuvanto Äkäslompolo East St. Louis Marivan Taradei Novosil Ely Weybridge North Shields East Tilbury Bergambacht Mobridge Kourfeye Centre Great Barford Helsinki Maïné-Soroa Stockholm Innishannon Drohiczyn Priozersk Zellerfeld Torgelow East Cowes Jean Marie River Alchan Kemble Richmond Doulsou Dushanbe Bishkek Oulu Paris Bromham Vyadhapura Imanan Tondikandia Sonning Aranjuez Egham Hythe Lisala Spakenburg Radley Kaspi Santo Domingo Westmaas Winniki Bandipore Ottawa Kokorou N'Gonga Canvey Island Ashton Keynes Karesuvanto Hattian Dupatta Grand Forks, Yukon Lisbon Zaltbommel Opheusden Simmering Pangbourne Port Famine Bundaberg Mostar Kampala Monrovia Virkkula Syasstroy Cologne Toledo Newport Pagnell Breskens Little Thetford Eggesin Lebus Molesey Jeesiö Putney Eton Pitkyaranta Belgorod Nieuw-Beijerland Hurley Kastoria Ariadnoye Lexmond Schoonhoven Busse Thimphu Basildon, Berkshire Runkel Kolmane Brakel Corringham, Essex Albany Hacking Whalley Newnham Murren Chamberlain Salisbury Lune River Isola Bella Zwiesel Kelmscott Knoxville Siggebohyttan Tiel Vientiane Khmelnytskyi Weilburg Enkhuizen Astana Väylä Worcester New Bradwell Ronneburg Baton Rouge Shuyskoye, Vologda Oblast Rostock Zwolle Villmar Vuotso Yli-Olhava Dodewaard Donetsk Maarssen Bamako Warder, Netherlands Bourne End Mariupol Penzing Tunxdorf Ochten Shorne Palojoensuu Godstow Rudolfsheim Katwijk aan den Rijn Ellingen Jakarta Monschau Mankila Arkhangelovka Glazovka Dargol Köngäs Athlunkard Bangui Brussels Eschweiler Rhoda Island Hoofdplaat Clausthal Ciechanowiec Marlow Caversham, Berkshire Moulsford Bumba, Democratic Republic of the Congo Maidenhead Scharsterbrug Matankari Sortavala Méhana Carabane Kashira Bosso Havana St Mary Hoo Inagh Youri Tepasto Ohrid Deest Lilla Essingen Tamou Cairo Arkhipovka Cricklade Bad Doberan Olhava Vuontisjärvi Iffley Stoneleigh Sinder Wraysbury Velsen-Noord Termunten Rossum, Gelderland Kessel Blanchland Innsbruck Twickenham Laleham Aumenau Waarde Bray Neuses Nicosia Salmon Arm Sambéra Roseau Wolvercote Jormua Bern 's-Gravendeel Muonio Tounouga Landön Harikanassou Fabidji Kingston upon Thames Nantes Niamey Sicamous, British Columbia Shlisselburg Houghton, Cambridgeshire Taplow Toronto Warsaw Vologda Zutphen Higham, Kent Carlton Delft Łomianki Managua Staines-upon-Thames Chétimari Muiderberg Vaalajärvi Prenzlau Kaukonen Nampho Rotterdam Centrum Rodaun Ellewoutsdijk Nellim Oymyakon Busse Deventer Ylikiiminki Crowmarsh Gifford Alto Douro Heilbronn Annopol Mapledurham Paramaribo Chișinău Georgetown Cookham St Neots Foča Bagdad, Tamaulipas Medmenham Kozienice Purley on Thames Osney Bukoba Ameide Ljubljana Metković Rabat Dungass Skopje Dartford Birni N'Gaouré Sandford-on-Thames Bratislava Budapest Otley Keväjärvi Little Wittenham Say Old Windsor Werkendam Tikkaperä Anuchino Dogo Zoutelande Phnom Penh Chertsey Aktobe Sorbon Haoussa Gaden bei Pförring Datchet Madrid Kuttura Colombo Wasserburg am Inn Djibouti Kennington, Oxfordshire Fobbing Koygolo Hafslundsøy Kazakevichevo Feldkirch Siikajoenkylä Sassoumbroum Kruiningen Zuilichem Wacha Wigan Bandé Philip Kourteye Kempston Bissau Vlissingen-Oost Venyukovo Long Wittenham Liboré Padua Letterkenny Talavera de la Reina Dorchester on Thames Bogoslovka Culham Nizhnie Luzhki Ylläsjärvi Novorossiyka Stanford-le-Hope Kuybyshev Salzburg Chalk, Kent Ioannina Scharwoude, Koggenland Shepperton Cardiff Perm Dessa Solec Kujawski Greenhithe Littleport Raattama Bovenkarspel N'Dounga Borssele Gothèye Mügeln Krimpen aan de Lek Brackley Stora Essingen Khabarovsk Wytham Weesp Yankton Kollo Anzourou Allhallows Wolverton Canning Town Tima Hütteldorf Łochów Kahlenbergerdorf Maseru Termunterzijl North Stoke, Oxfordshire Jinotega Athenry Tillabéri Alblasserdam Mykolaiv Abbeyfeale Damascus Winterthur Bangkok Tikhmenevo Lorrha Southport Sunbury-on-Thames Detroit Leicester Tashkent Kwaya Tanda Sankt Andreasberg Juba West Tilbury Neuwaldegg Dishoek South Stoke, Oxfordshire Gravesend Dorney Lechlade Godmanchester Oud-Beijerland Kinsale Mijnsheerenland Aldeburgh Dreumel Benson, Oxfordshire Lelystad Ciechocinek West Thurrock Dornbach Kelontekemä Lima Malawa Cliffe, Kent Clifton Hampden Pierre Northfleet Gougane Barra Moscow Isola dei Pescatori Edam Capolago Boubon Appleford-on-Thames Berwick-upon-Tweed Diffa Bath, Netherlands Champ d'Asile Hook of Holland Guilladjé Saint Paul Vuren Wargrave Arenibek Bankilaré Wyszków Gaya Remenham Bonn Oslo Rotterdam Thames Ditton Novaya Ladoga Karma Killorglin Baryshevo Rixensart Bandar Seri Begawan Virmaila Maasdam Pescara Gorouol Deline Juliusplate Labasa Venetpalo Bönigen Windsor Filingué Ueckermünde Mongewell Kuivaniemi Kilrush Schellinkhout Teddington Goring-on-Thames Milton Keynes Stony Stratford Sliedrecht Beloyarovo Wallingford Sutton Courtenay Addlestone Cadzand-Bad Isleworth Novi Sad Stone, Kent Baden-Baden Binsey, Oxfordshire Orlinoye Schardam Bitinkodji Burcot, Oxfordshire Abaykan Banjul Emmerich am Rhein Kiota Hartford, Cambridgeshire Lakewood Bridgetown Kouré Bad Berka Streatley, Berkshire Gueskérou Little Thurrock Tolyatti Kleszczele Namaro Pappenheim Czyżew Shiplake Glin Aachen Argunskoye Tolhuin Abramovka Hambleden Brockham Killaloe, County Clare Hampton Wick Greenwich Bishop's Waltham Vikajärvi Sheremetyevo Kirtachi Prague
Prague, Moscow and Madrid are situated in the neighbourhood of around 1 watercourses or still waterss
Prague Moscow Madrid
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 1
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?n ) WHERE { { ?u property:located_next_to_body_of_water ?x . ?u rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:still_waters } UNION { ?u property:located_next_to_body_of_water ?x . ?u rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:watercourse } } GROUP BY ?u } . FILTER ( ?n = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q492622 Q868848
P47 P17
Q15617994
USER
Which administrative territories are Golden Valley present in or share border with Montalbano Elicona ?
OR((Q868848,P17,c(Q15617994)), (Q492622,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q868848
relation P17
action find
entity Q492622
relation P47
type Q15617994
{'OR': [['Q868848', 'P17', {'concept': 'Q15617994'}], ['Q492622', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q868848 property:P17 ?c } UNION { resource:Q492622 property:P47 ?c } } }
Montalbano Elicona Golden Valley
action filter_type
action union
action find
entity Golden Valley
relation country
action find
entity Montalbano Elicona
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Golden Valley', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Montalbano Elicona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Golden_Valley property:country ?c } UNION { resource:Montalbano_Elicona property:shares_border_with ?c } } }
[]
designation for an administrative territorial entity
Q496026 Q387547 Q491430 Q496141 Q30 Q491812 Q492625 Q492980 Q493440 Q497168
SYSTEM
Some of them are Falcone, Sicily, Malvagna, Raccuja, Francavilla di Sicilia, United States of America, Roccella Valdemone, Basicò, San Piero Patti, Floresta, Oliveri
Q491430 Q493440 Q489948 Q491425 Q492980 Q490889 Q496026 Q30 Q493482 Q496141 Q491812 Q492625 Q387547 Q497168
OR((Q868848,P17,c(Q15617994)), (Q492622,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q868848
relation P17
action find
entity Q492622
relation P47
type Q15617994
Golden Valley are share of [ANSWERS]
{'OR': [['Q868848', 'P17', {'concept': 'Q15617994'}], ['Q492622', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q868848 property:P17 ?c } UNION { resource:Q492622 property:P47 ?c } } }
Raccuja Floresta Patti Santa Domenica Vittoria San Piero Patti Tripi Falcone, Sicily United States of America Librizzi Francavilla di Sicilia Roccella Valdemone Basicò Malvagna Oliveri
Golden Valley are share of Falcone, Sicily, Malvagna, Raccuja, Francavilla di Sicilia, United States of America, Roccella Valdemone, Basicò, San Piero Patti, Floresta and Oliveri
Falcone, Sicily Malvagna Raccuja Francavilla di Sicilia United States of America Roccella Valdemone Basicò San Piero Patti Floresta Oliveri
action filter_type
action union
action find
entity Golden Valley
relation country
action find
entity Montalbano Elicona
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Golden Valley', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Montalbano Elicona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Golden_Valley property:country ?c } UNION { resource:Montalbano_Elicona property:shares_border_with ?c } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q1752346 Q701632 Q15617994
USER
How many administrative territories have approximately 2 assemblies and municipal councils as their council ?
(c(Q15617994),P194,c(Q1752346)|c(Q701632))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q701632
value 2
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?n ) WHERE { { ?e property:P194 ?y . ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1752346 } UNION { ?e property:P194 ?y . ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q701632 } } GROUP BY ?e } . FILTER ( ?n = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?n ) WHERE { { ?e property:legislative_body ?y . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:assembly } UNION { ?e property:legislative_body ?y . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:municipal_council } } GROUP BY ?e } . FILTER ( ?n = 2 ) }
[]
assembly municipal council designation for an administrative territorial entity
SYSTEM
2
Q794 Q6465
(c(Q15617994),P194,c(Q1752346)|c(Q701632))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q701632
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?n ) WHERE { { ?e property:P194 ?y . ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1752346 } UNION { ?e property:P194 ?y . ?e rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q701632 } } GROUP BY ?e } . FILTER ( ?n = 2 ) }
Iran department of France
2
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?n ) WHERE { { ?e property:legislative_body ?y . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:assembly } UNION { ?e property:legislative_body ?y . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:municipal_council } } GROUP BY ?e } . FILTER ( ?n = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q279177 Q492980
P47
Q15617994
USER
Which administrative territories have an adjacent border with San Piero Patti or Forlì del Sannio ?
OR((c(Q15617994),P47,Q492980), (c(Q15617994),P47,Q279177))
action filter_type
action union
action find_reverse
entity Q492980
relation P47
action find_reverse
entity Q279177
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q492980'], [{'concept': 'Q15617994'}, 'P47', 'Q279177']]}
SELECT DISTINCT ?d WHERE { { ?d property:P47 ?f . VALUES ( ?f ) { ( resource:Q492980 ) ( resource:Q279177 ) } } . ?d rdf:type ontology:Q15617994 }
Forlì del Sannio San Piero Patti
action filter_type
action union
action find_reverse
entity San Piero Patti
relation shares border with
action find_reverse
entity Forlì del Sannio
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Piero Patti'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Forlì del Sannio']]}
SELECT DISTINCT ?d WHERE { { ?d property:shares_border_with ?f . VALUES ( ?f ) { ( resource:San_Piero_Patti ) ( resource:Forlì_del_Sannio ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q279003 Q493482 Q279695 Q492622 Q278848 Q279530 Q491430 Q279561 Q491715 Q489948
SYSTEM
Some of them are Cerro al Volturno, Librizzi, Vastogirardi, Montalbano Elicona, Acquaviva d'Isernia, Rionero Sannitico, Raccuja, Roccasicura, Sant'Angelo di Brolo, Patti
Q279530 Q491430 Q493440 Q279695 Q278848 Q489948 Q491715 Q13450 Q279003 Q493482 Q279561 Q492622
OR((c(Q15617994),P47,Q492980), (c(Q15617994),P47,Q279177))
action filter_type
action union
action find_reverse
entity Q492980
relation P47
action find_reverse
entity Q279177
relation P47
type Q15617994
[ANSWERS] have an adjacent border with San Piero Patti or Forlì del Sannio
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q492980'], [{'concept': 'Q15617994'}, 'P47', 'Q279177']]}
SELECT DISTINCT ?d WHERE { { ?d property:P47 ?f . VALUES ( ?f ) { ( resource:Q492980 ) ( resource:Q279177 ) } } . ?d rdf:type ontology:Q15617994 }
Rionero Sannitico Raccuja Floresta Vastogirardi Acquaviva d'Isernia Patti Sant'Angelo di Brolo Isernia Cerro al Volturno Librizzi Roccasicura Montalbano Elicona
Cerro al Volturno, Librizzi, Vastogirardi, Montalbano Elicona, Acquaviva d'Isernia, Rionero Sannitico, Raccuja, Roccasicura, Sant'Angelo di Brolo and Patti have an adjacent border with San Piero Patti or Forlì del Sannio
Cerro al Volturno Librizzi Vastogirardi Montalbano Elicona Acquaviva d'Isernia Rionero Sannitico Raccuja Roccasicura Sant'Angelo di Brolo Patti
action filter_type
action union
action find_reverse
entity San Piero Patti
relation shares border with
action find_reverse
entity Forlì del Sannio
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'San Piero Patti'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Forlì del Sannio']]}
SELECT DISTINCT ?d WHERE { { ?d property:shares_border_with ?f . VALUES ( ?f ) { ( resource:San_Piero_Patti ) ( resource:Forlì_del_Sannio ) } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15243774 Q30
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with United States of America or are Mahmudabad, Javanrud a part of ?
OR((Q30,P530,c(Q15617994)), (Q15243774,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q15243774
relation P17
type Q15617994
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q15243774', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q30 property:P530 ?s } UNION { resource:Q15243774 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Mahmudabad, Javanrud United States of America
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Mahmudabad, Javanrud
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Mahmudabad, Javanrud', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:United_States_of_America property:diplomatic_relation ?s } UNION { resource:Mahmudabad,_Javanrud property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1011 Q794 Q17 Q805 Q414 Q222 Q668 Q953 Q347 Q155
SYSTEM
Some of them are Cape Verde, Iran, Japan, Yemen, Argentina, Albania, India, Zambia, Liechtenstein, Brazil
Q805 Q38 Q159 Q222 Q801 Q155 Q148 Q1011 Q889 Q794 Q17 Q37 Q953 Q668 Q403 Q347 Q414 Q796
OR((Q30,P530,c(Q15617994)), (Q15243774,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q15243774
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with United States of America or are Mahmudabad, Javanrud a part of
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q15243774', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q30 property:P530 ?s } UNION { resource:Q15243774 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Yemen Italy Russia Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iran Japan Lithuania Zambia India Serbia Liechtenstein Argentina Iraq
Cape Verde, Iran, Japan, Yemen, Argentina, Albania, India, Zambia, Liechtenstein and Brazil hold diplomatic relationship with United States of America or are Mahmudabad, Javanrud a part of
Cape Verde Iran Japan Yemen Argentina Albania India Zambia Liechtenstein Brazil
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Mahmudabad, Javanrud
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Mahmudabad, Javanrud', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:United_States_of_America property:diplomatic_relation ?s } UNION { resource:Mahmudabad,_Javanrud property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q786
P361
Q2221906 Q811979 Q15617994
USER
How many administrative territories are a component of greater number of geographic locations or architectural structures than Dominican Republic ?
(c(Q15617994),P361,c(Q2221906)|c(Q811979))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q15617994
type Q2221906
action find_tuple_counts
relation P361
type Q15617994
type Q811979
action count
action filter_multi_types
action find
entity Q786
relation P361
type Q2221906
type Q811979
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q2221906'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q786 property:P361 ?k . { VALUES ( ?a ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } . ?k rdf:type ?a } } } . FILTER ( ?s > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2221906 . ?v property:P361 ?x } UNION { ?v property:P361 ?x . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q811979 } } GROUP BY ?v } }
Dominican Republic
action count
action greater
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type geographic location
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find
entity Dominican Republic
relation part of
type geographic location
type architectural structure
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'geographic location'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Dominican_Republic property:part_of ?k . { VALUES ( ?a ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } . ?k rdf:type ?a } } } . FILTER ( ?s > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:geographic_location . ?v property:part_of ?x } UNION { ?v property:part_of ?x . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:architectural_structure } } GROUP BY ?v } }
[]
geographic location architectural structure designation for an administrative territorial entity
SYSTEM
5
Q159 Q155 Q948 Q794 Q36
(c(Q15617994),P361,c(Q2221906)|c(Q811979))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q15617994
type Q2221906
action find_tuple_counts
relation P361
type Q15617994
type Q811979
action count
action filter_multi_types
action find
entity Q786
relation P361
type Q2221906
type Q811979
[ANSWER]
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q2221906'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q786 property:P361 ?k . { VALUES ( ?a ) { ( ontology:Q2221906 ) ( ontology:Q811979 ) } . ?k rdf:type ?a } } } . FILTER ( ?s > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?v WHERE { { ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2221906 . ?v property:P361 ?x } UNION { ?v property:P361 ?x . ?v rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q811979 } } GROUP BY ?v } }
Russia Brazil Tunisia Iran Poland
5
action count
action greater
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type geographic location
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type architectural structure
action count
action filter_multi_types
action find
entity Dominican Republic
relation part of
type geographic location
type architectural structure
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'geographic location'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Dominican_Republic property:part_of ?k . { VALUES ( ?a ) { ( ontology:geographic_location ) ( ontology:architectural_structure ) } . ?k rdf:type ?a } } } . FILTER ( ?s > ?d ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?v WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:geographic_location . ?v property:part_of ?x } UNION { ?v property:part_of ?x . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:architectural_structure } } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1935231 Q1085
P190 P36
Q56061
USER
Which administrative territories are the sister cities of Prague or are associated to Aserrí as the capital ?
OR((Q1085,P190,c(Q56061)), (Q1935231,P36,c(Q56061)))
action filter_type
action union
action find
entity Q1085
relation P190
action find
entity Q1935231
relation P36
type Q56061
{'OR': [['Q1085', 'P190', {'concept': 'Q56061'}], ['Q1935231', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q1935231 property:P36 ?x } UNION { resource:Q1085 property:P190 ?x } } }
Aserrí Prague
action filter_type
action union
action find
entity Prague
relation sister city
action find
entity Aserrí
relation capital
type administrative territorial entity
{'OR': [['Prague', 'sister city', {'concept': 'administrative territorial entity'}], ['Aserrí', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Aserrí property:capital ?x } UNION { resource:Prague property:sister_city ?x } } }
[]
administrative territorial entity
Q216 Q1748 Q168202 Q1842 Q2090 Q6252 Q2634 Q16556 Q2807 Q239
SYSTEM
Some of them are Vilnius, Copenhagen, Rosh HaAyin, Luxembourg, Nuremberg, Monza, Naples, Phoenix, Madrid, Brussels
Q1757 Q649 Q472 Q8621 Q185632 Q1867 Q1297 Q1842 Q1524 Q6252 Q406 Q1780 Q2634 Q13386 Q1748 Q26119 Q2090 Q51103 Q13362 Q216 Q239 Q2807 Q3624939 Q64 Q3376 Q1218 Q16556 Q168202
OR((Q1085,P190,c(Q56061)), (Q1935231,P36,c(Q56061)))
action filter_type
action union
action find
entity Q1085
relation P190
action find
entity Q1935231
relation P36
type Q56061
[ANSWERS] are the sister cities of Prague or are associated to Aserrí as the capital
{'OR': [['Q1085', 'P190', {'concept': 'Q56061'}], ['Q1935231', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { { resource:Q1935231 property:P36 ?x } UNION { resource:Q1085 property:P190 ?x } } }
Helsinki Moscow Sofia Terni Limassol Taipei Chicago Luxembourg Athens Monza Istanbul Bratislava Naples Lecce Copenhagen Prešov Nuremberg Cali Ferrara Vilnius Brussels Madrid Aserrí Berlin Trento Jerusalem Phoenix Rosh HaAyin
Vilnius, Copenhagen, Rosh HaAyin, Luxembourg, Nuremberg, Monza, Naples, Phoenix, Madrid and Brussels are the sister cities of Prague or are associated to Aserrí as the capital
Vilnius Copenhagen Rosh HaAyin Luxembourg Nuremberg Monza Naples Phoenix Madrid Brussels
action filter_type
action union
action find
entity Prague
relation sister city
action find
entity Aserrí
relation capital
type administrative territorial entity
{'OR': [['Prague', 'sister city', {'concept': 'administrative territorial entity'}], ['Aserrí', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { { resource:Aserrí property:capital ?x } UNION { resource:Prague property:sister_city ?x } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q11204 Q12737077
USER
Which administrative territories are judicially linked to min number of legislatures or occupations ?
(c(Q11204)|c(Q12737077),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
[[{'concept': 'Q11204'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?g WHERE { VALUES ( ?z ) { ( ontology:Q11204 ) ( ontology:Q12737077 ) } . ?j rdf:type ?z } GROUP BY ?g } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?h WHERE { { ?f property:P1001 ?h . ?f rdf:type ontology:Q11204 . ?h rdf:type ontology:Q15617994 } UNION { ?f property:P1001 ?h . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q12737077 } } GROUP BY ?h } } }
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
[[{'concept': 'legislature'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?g WHERE { VALUES ( ?z ) { ( ontology:legislature ) ( ontology:occupation ) } . ?j rdf:type ?z } GROUP BY ?g } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?h WHERE { { ?f property:applies_to_jurisdiction ?h . ?f rdf:type ontology:legislature . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:occupation } } GROUP BY ?h } } }
[]
designation for an administrative territorial entity legislature occupation
Q158095 Q2107 Q2871
SYSTEM
Charlottenburg-Wilmersdorf, Wuppertal, Hagen
Q707 Q706679 Q2765 Q163012 Q22273061 Q2871 Q24764 Q2742 Q443815 Q50198 Q187035 Q22274206 Q3097 Q158893 Q2942 Q11340 Q11343 Q2899 Q2758 Q4712 Q155019 Q163966 Q769680 Q3068 Q11323 Q1093 Q119284 Q3403547 Q2667658 Q3462133 Q223 Q2838 Q752 Q22274534 Q11337 Q11331 Q154547 Q1216 Q2805 Q2107 Q1438 Q2380910 Q11301 Q2904 Q158095 Q770 Q772 Q158083 Q72449 Q22273285 Q129003 Q33788 Q1267638 Q329609 Q2938 Q1231
(c(Q11204)|c(Q12737077),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
[ANSWERS] are judicially linked to min number of legislatures or occupations
[[{'concept': 'Q11204'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?g WHERE { VALUES ( ?z ) { ( ontology:Q11204 ) ( ontology:Q12737077 ) } . ?j rdf:type ?z } GROUP BY ?g } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?h WHERE { { ?f property:P1001 ?h . ?f rdf:type ontology:Q11204 . ?h rdf:type ontology:Q15617994 } UNION { ?f property:P1001 ?h . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q12737077 } } GROUP BY ?h } } }
Flevoland Duchy of Bar Gelsenkirchen Pankow Duchy of Nemours Hagen municipality of the Philippines Münster Altomünster province of Thailand Principality of Albania Duchy of Mercoeur Remscheid Friedrichshain-Kreuzberg Solingen Sprockhövel Wetter (Ruhr) Mülheim an der Ruhr Mönchengladbach Duchy of Burgundy Duchy of Lorraine Mitte Bornholm Loire-Atlantique Breckerfeld Limburg Marzahn-Hellersdorf principality of Phalsbourg and Lixheim Shushary, Saint Petersburg Saxe-Coburg and Gotha Greenland Oberhausen Groningen Duchy of Elbeuf Herdecke Gevelsberg duchy Piedmont Krefeld Wuppertal Campania Duchy of Zaslawye Ennepetal Herne Charlottenburg-Wilmersdorf Friesland Drenthe Spandau Roccarainola Duchy of Guise French Southern and Antarctic Lands New Caledonia Beloostrov Lichtenberg Leverkusen Kosovo Region
Charlottenburg-Wilmersdorf, Wuppertal and Hagen are judicially linked to min number of legislatures or occupations
Charlottenburg-Wilmersdorf Wuppertal Hagen
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
[[{'concept': 'legislature'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?g WHERE { VALUES ( ?z ) { ( ontology:legislature ) ( ontology:occupation ) } . ?j rdf:type ?z } GROUP BY ?g } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( MIN ( ?q ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) ?h WHERE { { ?f property:applies_to_jurisdiction ?h . ?f rdf:type ontology:legislature . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:occupation } } GROUP BY ?h } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q158095 Q2107 Q2871
P17
Q1048835
USER
Which political territories are those administrative territories a part of ?
(Q158095,P17,c(Q1048835)) (Q2107,P17,c(Q1048835)) (Q2871,P17,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P17
type Q1048835
['Q158095', 'P17', {'concept': 'Q1048835'}] ['Q2107', 'P17', {'concept': 'Q1048835'}] ['Q2871', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?i property:P17 ?c . VALUES ( ?i ) { ( resource:Q707 ) ( resource:Q706679 ) ( resource:Q2765 ) } . ?c rdf:type ontology:Q1048835 }
Charlottenburg-Wilmersdorf Wuppertal Hagen
action filter_type
action find
entity prev_answer
relation country
type political territorial entity
['Charlottenburg-Wilmersdorf', 'country', {'concept': 'political territorial entity'}] ['Wuppertal', 'country', {'concept': 'political territorial entity'}] ['Hagen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?i property:country ?c . VALUES ( ?i ) { ( resource:Flevoland ) ( resource:Duchy_of_Bar ) ( resource:Gelsenkirchen ) } . ?c rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q183 Q183 Q183
(Q158095,P17,c(Q1048835)) (Q2107,P17,c(Q1048835)) (Q2871,P17,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P17
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] are those administrative territories a part of
['Q158095', 'P17', {'concept': 'Q1048835'}] ['Q2107', 'P17', {'concept': 'Q1048835'}] ['Q2871', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?i property:P17 ?c . VALUES ( ?i ) { ( resource:Q707 ) ( resource:Q706679 ) ( resource:Q2765 ) } . ?c rdf:type ontology:Q1048835 }
Germany Germany Germany
Germany, Germany and Germany are those administrative territories a part of
Germany Germany Germany
action filter_type
action find
entity prev_answer
relation country
type political territorial entity
['Charlottenburg-Wilmersdorf', 'country', {'concept': 'political territorial entity'}] ['Wuppertal', 'country', {'concept': 'political territorial entity'}] ['Hagen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?i property:country ?c . VALUES ( ?i ) { ( resource:Flevoland ) ( resource:Duchy_of_Bar ) ( resource:Gelsenkirchen ) } . ?c rdf:type ontology:political_territorial_entity }
[]