Simple Question (Direct)
Simple Question
Q1897371
P20
Q56061
USER
Where did Marie Heiberg expire ?
(Q1897371,P20,c(Q56061))
action filter_type
action find
entity Q1897371
relation P20
type Q56061
['Q1897371', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1897371 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Marie Heiberg
action filter_type
action find
entity Marie Heiberg
relation place of death
type administrative territorial entity
['Marie Heiberg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Marie_Heiberg property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1770
SYSTEM
Tallinn
Q1770
(Q1897371,P20,c(Q56061))
action filter_type
action find
entity Q1897371
relation P20
type Q56061
Marie Heiberg expired [ANSWER]
['Q1897371', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1897371 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Tallinn
Marie Heiberg expired Tallinn
Tallinn
action filter_type
action find
entity Marie Heiberg
relation place of death
type administrative territorial entity
['Marie Heiberg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Marie_Heiberg property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1897371
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q1770,P106,c(Q12737077))
action filter_type
action find
entity Q1897371
relation P106
type Q12737077
['Q1770', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1897371 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Marie Heiberg
action filter_type
action find
entity Marie Heiberg
relation occupation
type occupation
['Tallinn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Marie_Heiberg property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q1770,P106,c(Q12737077))
action filter_type
action find
entity Q1897371
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q1770', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q1897371 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
writer
The writer is the profession of that person
writer
action filter_type
action find
entity Marie Heiberg
relation occupation
type occupation
['Tallinn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Marie_Heiberg property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P921
Q571 Q838948
USER
How many books or works of art have that occupation as their main topic ?
(c(Q571),P921,Q36180) (c(Q838948),P921,Q36180) (c(Q571),P921,Q36180) (c(Q838948),P921,Q36180)
action count
action union
action filter_type
action find_reverse
entity Q36180
relation P921
type Q571
action filter_type
action find_reverse
entity Q36180
relation P921
type Q838948
[{'concept': 'Q571'}, 'P921', 'Q36180'] [{'concept': 'Q838948'}, 'P921', 'Q36180'] [{'concept': 'Q571'}, 'P921', 'Q36180'] [{'concept': 'Q838948'}, 'P921', 'Q36180']
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:Q571 ) ( ontology:Q838948 ) } . ?c rdf:type ?l }
action count
action union
action filter_type
action find_reverse
entity writer
relation main subject
type book
action filter_type
action find_reverse
entity writer
relation main subject
type work of art
[{'concept': 'book'}, 'main subject', 'writer'] [{'concept': 'work of art'}, 'main subject', 'writer'] [{'concept': 'book'}, 'main subject', 'writer'] [{'concept': 'work of art'}, 'main subject', 'writer']
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:book ) ( ontology:work_of_art ) } . ?c rdf:type ?l }
[]
book work of art
SYSTEM
2
Q15291012 Q7847743
(c(Q571),P921,Q36180) (c(Q838948),P921,Q36180) (c(Q571),P921,Q36180) (c(Q838948),P921,Q36180)
action count
action union
action filter_type
action find_reverse
entity Q36180
relation P921
type Q571
action filter_type
action find_reverse
entity Q36180
relation P921
type Q838948
[ANSWER]
[{'concept': 'Q571'}, 'P921', 'Q36180'] [{'concept': 'Q838948'}, 'P921', 'Q36180'] [{'concept': 'Q571'}, 'P921', 'Q36180'] [{'concept': 'Q838948'}, 'P921', 'Q36180']
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:Q571 ) ( ontology:Q838948 ) } . ?c rdf:type ?l }
Writers and Radio Trumbo
2
action count
action union
action filter_type
action find_reverse
entity writer
relation main subject
type book
action filter_type
action find_reverse
entity writer
relation main subject
type work of art
[{'concept': 'book'}, 'main subject', 'writer'] [{'concept': 'work of art'}, 'main subject', 'writer'] [{'concept': 'book'}, 'main subject', 'writer'] [{'concept': 'work of art'}, 'main subject', 'writer']
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { VALUES ( ?l ) { ( ontology:book ) ( ontology:work_of_art ) } . ?c rdf:type ?l }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q425786
P609
Q56061 Q12280 Q83620
USER
Which administrative territories are the terminus locations of approximately the same number of bridges or thoroughfares as 's-Gravenzande ?
(c(Q12280)|c(Q83620),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q425786
relation P609
type Q12280
type Q83620
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?p ) WHERE { { ?z property:P609 ?i . ?i rdf:type ontology:Q56061 . ?z rdf:type ontology:Q12280 } UNION { ?z property:P609 ?i . ?i rdf:type ontology:Q56061 . ?z rdf:type ontology:Q83620 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P609 resource:Q425786 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } } } . FILTER ( ?p = ?o ) }
's-Gravenzande
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity 's-Gravenzande
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?p ) WHERE { { ?z property:terminus_location ?i . ?i rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:bridge } UNION { ?z property:terminus_location ?i . ?i rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:thoroughfare } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:terminus_location resource:'s-Gravenzande . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } } } . FILTER ( ?p = ?o ) }
[]
administrative territorial entity bridge thoroughfare
Q649 Q8686 Q1781
SYSTEM
Moscow, Shanghai, Budapest
Q803 Q1159408 Q1866725 Q599331 Q81076 Q2588702 Q10084 Q746718 Q3112494 Q886915 Q81177 Q2218481 Q2305106 Q2779809 Q238510 Q780923 Q957593 Q2635319 Q11885222 Q581785 Q942842 Q2207185 Q2688228 Q83178 Q1781774 Q1027049 Q2376652 Q1022954 Q851041 Q10014 Q6772133 Q1784816 Q490595 Q185216 Q153745 Q611919 Q1018448 Q1019462 Q2002936 Q599201 Q1774840 Q846242 Q499174 Q1784987 Q2223679 Q1950380 Q6506 Q1309 Q984437 Q16568 Q832938 Q269980 Q23337 Q7017057 Q2656 Q2684131 Q33264 Q13415826 Q1425428 Q9920 Q746096 Q143782 Q2233872 Q883862 Q12912978 Q754868 Q494631 Q985268 Q4507706 Q219656 Q36989 Q1026371 Q4076763 Q749 Q1527123 Q988590 Q49244 Q4357016 Q3315792 Q90 Q1022789 Q149787 Q2606846 Q2372373 Q4357626 Q3020221 Q2161723 Q6931019 Q2227172 Q212686 Q2132 Q6816 Q1890499 Q2669870 Q982854 Q282729 Q3475289 Q3204894 Q937679 Q3532 Q5529922 Q1020419 Q430316 Q5259257 Q3240318 Q2374507 Q12892 Q49274 Q257446 Q1011062 Q988761 Q945084 Q3907766 Q971223 Q212826 Q3030085 Q2124272 Q1012006 Q2060859 Q6903267 Q10025 Q1108196 Q3394752 Q43631 Q478036 Q2566692 Q6430673 Q502312 Q1812494 Q10661123 Q34739 Q1615894 Q2668887 Q1978857 Q103717 Q1004397 Q783210 Q2618803 Q262483 Q842477 Q4733779 Q5168 Q2121249 Q156080 Q1615972 Q953583 Q5083 Q1043381 Q952097 Q9911 Q8336 Q6383632 Q2055138 Q2376829 Q5336994 Q28218 Q81086 Q1026976 Q51697 Q51694 Q7306457 Q2008706 Q798 Q2297876 Q1983451 Q793 Q298489 Q545457 Q1344696 Q883 Q1615386 Q932008 Q7291165 Q2473978 Q2026781 Q1840 Q776965 Q3322237 Q2525207 Q5367550 Q9909 Q797512 Q611065 Q3776352 Q60444 Q2247076 Q5316449 Q374501 Q1726 Q1924946 Q6373375 Q2345413 Q26430 Q920932 Q2432500 Q239 Q12994 Q1023246 Q486472 Q49940 Q16556 Q2579355 Q8686 Q2279962 Q1233089 Q3026315 Q844908 Q9898 Q3138 Q1639484 Q237692 Q973864 Q483000 Q1737120 Q79783 Q2266985 Q1912125 Q131491 Q170263 Q985524 Q1907250 Q1748 Q891359 Q2480177 Q26881 Q3110254 Q84 Q1022447 Q3312626 Q5039616 Q16977290 Q579722 Q5182964 Q488545 Q992371 Q2403755 Q1009668 Q755393 Q806903 Q970792 Q1946253 Q200036 Q83407 Q3030738 Q934511 Q954194 Q470380 Q482976 Q2096849 Q2360370 Q1934815 Q1007168 Q988156 Q2853591 Q664060 Q858607 Q4412622 Q862684 Q1828035 Q959585 Q1615562 Q2893665 Q1781266 Q40738 Q740852 Q249022 Q2598092 Q956 Q1490 Q5326549 Q203889 Q2118905 Q1010422 Q5016557 Q1962451 Q2342197 Q983790 Q1770 Q2235855 Q753830 Q425786 Q3511360 Q1927386 Q279000 Q9832 Q1781 Q986664 Q2873143 Q2738845 Q168279 Q2318330 Q15156199 Q202158 Q826048 Q1613459 Q772940 Q12013510 Q244327 Q2551418 Q605318 Q156974 Q20203420 Q1890680 Q191914 Q695417 Q4006479 Q2856996 Q201002 Q2577946 Q26345 Q1025055 Q220 Q26421 Q525880 Q10041 Q208262 Q160493 Q5881488 Q3261960 Q3330170 Q2738898 Q14935506 Q517423 Q2023889 Q5858099 Q868869 Q1538358 Q1616642 Q134902 Q9783 Q118958 Q3243599 Q755569 Q1492862 Q616877 Q1755020 Q2157144 Q2750562 Q743632 Q2543653 Q9871 Q989288 Q2233170 Q5327973 Q1863836 Q2511595 Q134121 Q2388026 Q1110140 Q592438 Q833668 Q4830086 Q1004085 Q3432009 Q64 Q65 Q84125 Q255781 Q2499899 Q736131 Q5062158 Q386862 Q14657 Q506745 Q1867 Q2194010 Q690062 Q634481 Q83065 Q2906589 Q755748 Q931778 Q177861 Q1027111 Q2805272 Q995911 Q504803 Q2115537 Q3126359 Q2732640 Q166065 Q841979 Q1782644 Q1007176 Q868637 Q1241302 Q611722 Q1232203 Q49255 Q1025080 Q2192403 Q2563265 Q1025089 Q1310 Q5604964 Q649 Q3205403 Q2900922 Q77056 Q1996607 Q577960 Q1258901 Q24826 Q9934 Q3091189 Q79842 Q203000 Q2225613 Q213325 Q2774284 Q2496189 Q887 Q813431 Q2181173 Q889888 Q47164 Q576149 Q75967 Q384544 Q2188667 Q2277323 Q2199102 Q40844 Q2282115 Q1020364 Q1210428 Q1299618 Q60705 Q10686 Q1617033 Q143334 Q888491 Q2289322 Q986634 Q448970 Q1781568 Q803903 Q1013540 Q1781556 Q2281208 Q1950746 Q726635 Q2361780 Q230406 Q615732 Q537120 Q183551 Q2294176 Q146351 Q129610 Q3025598 Q4411580 Q2860067 Q2152099 Q985549 Q1190876 Q974325 Q971130 Q505601 Q83813 Q1887976 Q2415663 Q1916586 Q179385 Q946361 Q10037 Q2433994 Q743236 Q3354991
(c(Q12280)|c(Q83620),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q425786
relation P609
type Q12280
type Q83620
[ANSWERS] are the terminus locations of approximately the same number of bridges or thoroughfares as 's-Gravenzande
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?p ) WHERE { { ?z property:P609 ?i . ?i rdf:type ontology:Q56061 . ?z rdf:type ontology:Q12280 } UNION { ?z property:P609 ?i . ?i rdf:type ontology:Q56061 . ?z rdf:type ontology:Q83620 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P609 resource:Q425786 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } } } . FILTER ( ?p = ?o ) }
Utrecht Dandenong Groenekan Biddinghuizen Zierikzee Shankill Vlissingen Birkenhead Poeldijk Blythe Leersum Oosterbeek White Kats Etten Wallasey Den Oever Menominee Ojakylä Lepelstraat Smíchov Terneuzen Toronto Almere Ulvsunda Irkeshtam Ludborough St. Clair Shores Glendora Kampen Marmion Korsør Daytona Beach Grapevine Beuel Shannon, County Clare Washington Natalia Ironwood Hayti Hugo Nieuw-Lekkerland Barstow Aspudden Uithuizen Mount Barker Varna Maastricht Hoogkerk Jacksonville Bodegraven Newry Salt Lake City Newbridge, Edinburgh Palermo De Punt Las Cruces De Bilt Newcastle upon Tyne Haarlem North Shields North Las Vegas Ontario Blerick Oosterhout Cumberland Sassnitz Inver Grove Heights Dongen Macon Pardubice Kinnegad Ballymascanlan Groningen Girton Pruszcz Gdański Santa Ana Ulvsunda industriområde Sätra Paris Munising Hendon Norwich Kootwijk Farstanäset De Meern Ludington Muchea Sunfish Lake Aigio Victoria Ulan-Ude Manjimup Kilcullen Leon Valley Ouderkerk aan de Amstel Schaijk Newcastle Bunnik Hemel Hempstead Geestdorp Madison National City Dennyloanhead Sapulpa Redfield Antwerp Garland Holyhead Maldon Denham Elko Strensham Buxton West Bromwich Wieringerwerf Maasdam Cruden Bay Nieuw-Beijerland Roosendaal Wierden Coleshill Catthorpe Leiden Schoonhoven Crookhaven Koondoola Maasdijk Rijswijk Sandarna Dayton Cheadle New Lenox Forest Lake Rovaniemi Coldwater Bracknell Colome Deadwood Oosterzele Almere Poort Makhachkala Stainforth Opava Wateringen Littleton Seattle Reimersholme Muskegon Den Helder Hockenheim Huvudsta Heavener Swifterbant Edenfield Baton Rouge Sas van Gent Sale McKinney Grand Prairie Redwick Elkhart Assen Chevening Platte Zwolle Östermalm Nieuw-Vennep Enterprise Novosibirsk Sassenheim Maarssen Rancho Peñasquitos Ede Poelkapelle Veenendaal Klaipėda Venlo Ochten Elsham, North Lincolnshire Bussum Baarle Farington Downings Drachten Barger-Compascuum Durham Tabor Munich Canfield Karrinyup Hardtner Tilburg Eede Ishpeming Brussels Bruges Westrozebeke Kansas City Newark-on-Trent Phoenix Babberich Shanghai Highmore Totton and Eling Terhole Crawley Amstelveen Trier Huyton Ewijk Nocona Farmington Wilmot Nogales Essington Klaaswaal Brighton Chester Fallon Serooskerke Copenhagen Bolingbrook Norway Helsingør Kapolei London Cleckheaton Middenmeer Carine Alkmaar Ossendrecht Crawley Spijkenisse Bruinisse Terschuur Otterburn New Castle Banning Del Rio St. Ignace Volos Mons Zuidschermer Papendrecht Springfield Přerov Brigham City Stellendam Longtown Milies IJsselmuiden Slidell Aberford Cloncurry Strijen Hjorthagen Yucca Valley Lisburn Streefkerk Kesteren Beek, Montferland Courtmacsherry Bursa Tessenderlo Traralgon Shorne Beijing Tokyo Earlswood Luton Purley Inverkeithing Cadnam Mollington Eccles West Wendover Tallinn Aarlanderveen Redlands 's-Gravenzande St John's Town of Dalry Madill South Shields Eindhoven Budapest Springsure Hoek Cheboygan Zbraslav Waverveen Alphen aan den Rijn Hämeenlinna Waddinxveen Naaldwijk Bandar-e Emam Khomeyni Vught Gorinchem South Mimms Joondalup Ústí nad Labem Heumen Bad Nieuweschans Hachinohe Bremerton Urmston Neeritter Liljeholmen Mullaghmore, County Sligo Kalmar Kruiningen Rome Dordrecht Hollis Soest Eastbourne Inverness Hollingworth Gröndal Velsen-Zuid Crystal Falls Morven Den Dolder Eijsden Khosravi Harlingen Workington Thurcroft Stoke-on-Trent Roermond Leuven Lennox Pocomoke City Los Algodones Louny Tynemouth Almere Haven Aarsele Nieuw-Amsterdam, Drenthe Den Hoorn, South Holland Tilburg Yankton Charlotte East Butterwick Kamerik Almere Stad Namur Exminster Colman Kalavryta Boise City Awkley Craigavon Rijkevoort Berlin Los Angeles Gouda Wendover Highnam Alblasserdam Fulwood, Lancashire Sylvania Vyborg Rijswijk Taipei Sunbury-on-Thames Rønne Gedser Leicester Blijham Stonington Calipatria Faribault Kengtung Ens Hoofddorp Krumbach Viola Hambrook Topcliffe Lelystad Mansfield Årsta Glanerbrug Macclesfield Dongara Westerland, Netherlands Diakopto Tampa Soesterberg Elkton Carrigaholt Nieuw- en Sint Joosland Arnhem Greenwood Moscow Edgemont Nieuwe Pekela Edam Lake Norden O'Fallon Driebergen-Rijsenburg Liverpool Hilversum Uddingston Flagstaff Perth Nieuwdorp Rapid City Meerkerk Oude-Tonge Yekaterinburg Beaumont Bellingwolde Bodmin Santa Monica Columbia Schoondijke Karlovy Vary Selden Siebengewald Chadderton Breda Gretna Swanley Didam Ehestorf Emmeloord Belfast Worsley Ishim Oslo Van Ewijcksluis Sault Ste. Marie Alvik Nockeby Bainbridge Island Dupree Gärdet Dinteloord Mount Surprise Beek, Ubbergen Chapel-en-le-Frith Zurich, Friesland Breukelen Walker Waterford Stroud Liberec Galway Wedde Fredhäll Cothen Worthing Sitia Bromsgrove Palmview Nieuwe Niedorp Wassenaar Savannah Anthony Petoskey Elsloo, Limburg Greenwich Bamber Bridge Eemnes Putte, Pays-Bas Diest Kristineberg
Moscow, Shanghai and Budapest are the terminus locations of approximately the same number of bridges or thoroughfares as 's-Gravenzande
Moscow Shanghai Budapest
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity 's-Gravenzande
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?p ) WHERE { { ?z property:terminus_location ?i . ?i rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:bridge } UNION { ?z property:terminus_location ?i . ?i rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:thoroughfare } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:terminus_location resource:'s-Gravenzande . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } } } . FILTER ( ?p = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2659606
P609
Q56061 Q12280 Q83620
USER
And what about Caldwell?
(c(Q12280)|c(Q83620),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q2659606
relation P609
type Q12280
type Q83620
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?c ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } . ?x rdf:type ?c } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } . ?y property:P609 resource:Q2659606 } } . FILTER ( ?g = ?f ) }
Caldwell
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Caldwell
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?c ) { ( ontology:bridge ) ( ontology:thoroughfare ) } . ?x rdf:type ?c } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } . ?y property:terminus_location resource:Caldwell } } . FILTER ( ?g = ?f ) }
[]
administrative territorial entity bridge thoroughfare
Q649 Q8686 Q64
SYSTEM
Moscow, Shanghai, Berlin
Q803 Q2588702 Q746718 Q886915 Q2305106 Q2635319 Q180139 Q38511 Q23311 Q11885222 Q942842 Q2688228 Q2376652 Q1022954 Q851041 Q1784816 Q490595 Q153745 Q611919 Q1018448 Q1019462 Q2002936 Q599201 Q1774840 Q499174 Q1784987 Q6506 Q984437 Q4093 Q16568 Q269980 Q23337 Q7017057 Q488924 Q2656 Q748747 Q33264 Q1425428 Q143782 Q2233872 Q754868 Q985268 Q131335 Q219656 Q36989 Q1026371 Q4076763 Q923799 Q749 Q1527123 Q960454 Q49244 Q4357016 Q3315792 Q90 Q1022789 Q2606846 Q4357626 Q675049 Q2161723 Q904462 Q6931019 Q2227172 Q2132 Q6816 Q2669870 Q982854 Q3204894 Q3532 Q1020419 Q430316 Q5259257 Q3240318 Q2374507 Q12892 Q257446 Q1011062 Q988761 Q945084 Q3907766 Q971223 Q79889 Q212826 Q755600 Q3239732 Q1108196 Q1948672 Q2566692 Q1042366 Q10661123 Q34739 Q1615894 Q2668887 Q1978857 Q103717 Q1004397 Q783210 Q2618803 Q5168 Q156080 Q953583 Q1043381 Q952097 Q8336 Q6383632 Q2055138 Q5336994 Q28218 Q7306457 Q2008706 Q2297876 Q1983451 Q298489 Q1344696 Q883 Q7291165 Q23436 Q611065 Q3776352 Q81137 Q5316449 Q828753 Q374501 Q1924946 Q2345413 Q26430 Q192896 Q2432500 Q239 Q12994 Q486472 Q49940 Q16556 Q992 Q8686 Q2279962 Q1233089 Q844908 Q1639484 Q33518 Q973864 Q483000 Q756103 Q1737120 Q79783 Q2266985 Q131491 Q170263 Q985524 Q1748 Q891359 Q2480177 Q3110254 Q84 Q1022447 Q1589316 Q2523431 Q472 Q1009668 Q755393 Q34863 Q806903 Q970792 Q1946253 Q831527 Q200036 Q780785 Q954194 Q470380 Q3355046 Q482976 Q2056925 Q1934815 Q780532 Q988156 Q184587 Q755106 Q664060 Q4412622 Q862684 Q1828035 Q1781266 Q40738 Q249022 Q2598092 Q1490 Q5326549 Q203889 Q2118905 Q1010422 Q5016557 Q1962451 Q2342197 Q983790 Q753830 Q3511360 Q1927386 Q986664 Q2738845 Q202158 Q772940 Q2551418 Q179224 Q156974 Q191914 Q3646335 Q4006479 Q201002 Q2577946 Q26345 Q1025055 Q220 Q525880 Q208262 Q160493 Q5881488 Q3261960 Q2738898 Q14935506 Q631666 Q5858099 Q868869 Q1538358 Q134902 Q118958 Q3243599 Q755569 Q1492862 Q58900 Q616877 Q1755020 Q1043368 Q989288 Q2233170 Q134121 Q2388026 Q1110140 Q592438 Q833668 Q4830086 Q1004085 Q64 Q65 Q255781 Q2499899 Q5062158 Q386862 Q14657 Q2194010 Q83065 Q755748 Q931778 Q177861 Q1027111 Q504803 Q2115537 Q3126359 Q49225 Q2732640 Q2756084 Q2549819 Q937736 Q841979 Q2278965 Q1782644 Q8385 Q18681973 Q868637 Q1232203 Q49255 Q2192403 Q2563265 Q649 Q989919 Q1996607 Q577960 Q24826 Q990130 Q3091189 Q79842 Q203000 Q1988986 Q213325 Q887 Q34370 Q813431 Q28237 Q24454 Q889888 Q47164 Q576149 Q384544 Q2076290 Q2188667 Q2199102 Q40844 Q1020364 Q1299618 Q10686 Q1617033 Q143334 Q888491 Q49267 Q369947 Q986634 Q448970 Q1781568 Q755773 Q1013540 Q4411341 Q1781556 Q1950746 Q2361780 Q537120 Q975 Q183551 Q2294176 Q146351 Q129610 Q1782100 Q4411580 Q2659606 Q2152099 Q1190876 Q974325 Q83813 Q1887976 Q2415663 Q179385 Q946361 Q3354991
(c(Q12280)|c(Q83620),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q2659606
relation P609
type Q12280
type Q83620
[ANSWERS]
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?c ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } . ?x rdf:type ?c } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } . ?y property:P609 resource:Q2659606 } } . FILTER ( ?g = ?f ) }
Utrecht Shankill Birkenhead Blythe White Menominee Hradec Králové Turku City of London Ojakylä Smíchov Toronto Ludborough St. Clair Shores Glendora Korsør Daytona Beach Beuel Shannon, County Clare Washington Natalia Ironwood Hayti Hugo Barstow Aspudden Varna Hoogkerk Glasgow Jacksonville Newry Salt Lake City Newbridge, Edinburgh Oceanside Palermo New Buffalo Las Cruces Newcastle upon Tyne North Las Vegas Ontario Cumberland Inver Grove Heights Sioux Falls Macon Pardubice Kinnegad Ballymascanlan Santee Groningen Girton Holyport Santa Ana Ulvsunda industriområde Sätra Paris Munising Norwich Farstanäset Flandreau Ludington Riddarholmen Muchea Sunfish Lake Victoria Ulan-Ude Kilcullen Leon Valley Newcastle Hemel Hempstead Madison National City Dennyloanhead Sapulpa Redfield Antwerp Holyhead Maldon Denham Elko Strensham Buxton Casa Grande West Bromwich Milford Sulphur Coleshill Carlin Crookhaven Lilla Essingen Sandarna Dayton Cheadle New Lenox Forest Lake Rovaniemi Coldwater Bracknell Colome Makhachkala Opava Littleton Reimersholme Muskegon Hockenheim Huvudsta Heavener Edenfield Baton Rouge Redwick Elkhart Chevening Platte Östermalm Enterprise Novosibirsk Rancho Peñasquitos Edinburgh Farington Downings Olomouc Durham Coronado Tabor Canfield Hardtner Tilburg Carlisle Ishpeming Brussels Bruges Kansas City Newark-on-Trent Phoenix Amersfoort Shanghai Highmore Totton and Eling Crawley Huyton Dover Nocona Farmington Lewes Wilmot Nogales Essington Brighton Chester Fallon Copenhagen Bolingbrook Norway Kapolei London Cleckheaton Traneberg Stadshagen Sofia Otterburn New Castle Oklahoma City Banning Del Rio St. Ignace Djurgården Volos Långholmen Springfield Přerov Marieberg Brigham City Tripp Milies Negaunee Slidell Grand Rapids Rehoboth Beach Cloncurry Hjorthagen Yucca Valley Lisburn Courtmacsherry Bursa Traralgon Shorne Tokyo Earlswood Luton Purley Inverkeithing Cadnam Mollington Eccles West Wendover Redlands St John's Town of Dalry Madill Springsure Cheboygan Hämeenlinna Bandar-e Emam Khomeyni South Mimms Dover Ústí nad Labem Hachinohe Vasastan Urmston Liljeholmen Mullaghmore, County Sligo Kalmar Kruiningen Rome Hollis Eastbourne Inverness Hollingworth Gröndal Crystal Falls Morven Holtville Khosravi Harlingen Workington Stoke-on-Trent Leuven Lennox Pocomoke City Los Algodones Doncaster Louny Tynemouth Stora Essingen Yankton Charlotte Namur Exminster Colman Kalavryta Boise City Awkley Craigavon Berlin Los Angeles Wendover Highnam Fulwood, Lancashire Sylvania Vyborg Sunbury-on-Thames Leicester Stonington Calipatria Faribault Kengtung Krumbach Viola Hambrook Reno Topcliffe Johanneshov Seaton Burn Hot Springs Mansfield Henryetta Årsta Ostrava Kedonperä Macclesfield Diakopto Tampa Elkton Carrigaholt Moscow Farmington Hills Lake Norden O'Fallon Liverpool Hook of Holland Uddingston Flagstaff Perth Mitchell Rapid City Yekaterinburg Rotterdam Beaumont Lansing Troisvierges Bodmin Santa Monica Columbia Karlovy Vary Wells Selden Chadderton Breda Swanley Ehestorf Belfast Worsley Ishim Oslo Henderson El Cajon Sault Ste. Marie Alvik Nockeby Harrington Dupree Södra Hammarbyhamnen Gärdet Mount Surprise Chapel-en-le-Frith Walker San Antonio Waterford Stroud Liberec Galway Farsta strand Fredhäll Caldwell Worthing Bromsgrove Palmview Savannah Anthony Petoskey Greenwich Bamber Bridge Kristineberg
Moscow Shanghai Berlin
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Caldwell
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?g ) WHERE { VALUES ( ?c ) { ( ontology:bridge ) ( ontology:thoroughfare ) } . ?x rdf:type ?c } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { { ?y rdf:type ?d . VALUES ( ?d ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } . ?y property:terminus_location resource:Caldwell } } . FILTER ( ?g = ?f ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q649 Q8686 Q64
P190
Q56061
USER
Which administrative territories are partner towns of those ones ?
(Q649,P190,c(Q56061)) (Q8686,P190,c(Q56061)) (Q64,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q649', 'P190', {'concept': 'Q56061'}] ['Q8686', 'P190', {'concept': 'Q56061'}] ['Q64', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?x ) { ( resource:Q803 ) ( resource:Q2588702 ) ( resource:Q746718 ) } . ?z rdf:type ontology:Q56061 . ?x property:P190 ?z }
Moscow Shanghai Berlin
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}] ['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?x ) { ( resource:Utrecht ) ( resource:Shankill ) ( resource:Birkenhead ) } . ?z rdf:type ontology:administrative_territorial_entity . ?x property:sister_city ?z }
[]
administrative territorial entity
Q1085 Q1085 Q649
SYSTEM
Moscow for 3rd, Prague for 1st, 2nd
Q807 Q41572 Q13498 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q1490 Q1741 Q196678 Q3805 Q1520 Q1524 Q1491 Q987 Q1780 Q3630 Q140147 Q25409 Q33935 Q131290 Q3561 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q239 Q2807 Q956 Q3640 Q64 Q1218 Q133026 Q186576 Q1085 Q12892 Q3889 Q648 Q1861 Q35381 Q52535 Q24826 Q1297 Q1850 Q269 Q13580 Q36433 Q340 Q597491 Q109356 Q84 Q78 Q133073 Q49227 Q41621 Q37806 Q47034 Q612 Q585 Q43509 Q87 Q58976 Q34370 Q3856 Q406 Q34713 Q174 Q490 Q36647 Q33986 Q131694 Q1492 Q23311 Q959 Q62 Q269 Q84 Q3630 Q270 Q649 Q239 Q2807 Q956 Q1781 Q1489 Q1490 Q65 Q90 Q406 Q1085
(Q649,P190,c(Q56061)) (Q8686,P190,c(Q56061)) (Q64,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q649', 'P190', {'concept': 'Q56061'}] ['Q8686', 'P190', {'concept': 'Q56061'}] ['Q64', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?x ) { ( resource:Q803 ) ( resource:Q2588702 ) ( resource:Q746718 ) } . ?z rdf:type ontology:Q56061 . ?x property:P190 ?z }
Lausanne Mykolaiv Taranto Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Tokyo Vienna Torzhok Amman Astana Athens La Paz New Delhi Bratislava Jakarta Brest Košice Tel Aviv Ganja Algiers London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw Brussels Madrid Beijing Ankara Berlin Jerusalem Kolomna Pazardzhik Prague Antwerp Maputo Lille Bangkok Colombo Rosario Liverpool Chicago Phnom Penh Tashkent Metro Manila Porto Montreal Okahandja Hamhung London Basel Dunedin Winston-Salem Haifa Port Vila Espoo Dubai Oslo Guayaquil Alexandria Piraeus Rotterdam Nicosia Istanbul Salzburg São Paulo Milan Cork Valparaíso Aden Barcelona City of London Vladivostok San Francisco Tashkent London Jakarta Warsaw Moscow Brussels Madrid Beijing Budapest Mexico City Tokyo Los Angeles Paris Istanbul Prague
Prague, Prague and Moscow are partner towns of those ones
Prague Prague Moscow
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}] ['Berlin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { VALUES ( ?x ) { ( resource:Utrecht ) ( resource:Shankill ) ( resource:Birkenhead ) } . ?z rdf:type ontology:administrative_territorial_entity . ?x property:sister_city ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P1376
Q15617994
USER
Which administrative territory has that administrative territory has its center of administration ?
(Q1085,P1376,c(Q15617994))
action filter_type
action find
entity Q1085
relation P1376
type Q15617994
['Q1085', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1085 property:P1376 ?a . ?a rdf:type ontology:Q15617994 }
Prague
action filter_type
action find
entity Prague
relation capital of
type designation for an administrative territorial entity
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Prague property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q1085 Q1085 Q649
(Q1085,P1376,c(Q15617994)) (Q1085,P1376,c(Q15617994)) (Q649,P1376,c(Q15617994))
[ANSWER]
['Q1085', 'P1376', {'concept': 'Q15617994'}] ['Q1085', 'P1376', {'concept': 'Q15617994'}] ['Q649', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1085 property:P1376 ?a . ?a rdf:type ontology:Q15617994 }
Prague Prague Moscow
Did you mean Prague ?
Prague
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Prague property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1085,P1376,c(Q15617994))
['Q1085', 'P1376', {'concept': 'Q15617994'}]
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
[]
Q213
SYSTEM
Czech Republic
Q213
(Q1085,P1376,c(Q15617994))
action filter_type
action find
entity Q1085
relation P1376
type Q15617994
The [ANSWER] has that administrative territory has its center of administration
['Q1085', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1085 property:P1376 ?a . ?a rdf:type ontology:Q15617994 }
Czech Republic
The Czech Republic has that administrative territory has its center of administration
Czech Republic
action filter_type
action find
entity Prague
relation capital of
type designation for an administrative territorial entity
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Prague property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q213 Q12025397
P27
Q502895
USER
Is Jiří Niederle a civilian of that administrative territory ?
(Q12025397,P27,Q213)
action is_in
entity Q213
action find
entity Q12025397
relation P27
['Q12025397', 'P27', 'Q213']
ASK WHERE { resource:Q12025397 property:P27 resource:Q213 }
Czech Republic Jiří Niederle
action is_in
entity Czech Republic
action find
entity Jiří Niederle
relation country of citizenship
['Jiří Niederle', 'country of citizenship', 'Czech Republic']
ASK WHERE { resource:Jiří_Niederle property:country_of_citizenship resource:Czech_Republic }
[]
common name
SYSTEM
YES
(Q12025397,P27,Q213)
action is_in
entity Q213
action find
entity Q12025397
relation P27
[ANSWER]
['Q12025397', 'P27', 'Q213']
ASK WHERE { resource:Q12025397 property:P27 resource:Q213 }
Yes
action is_in
entity Czech Republic
action find
entity Jiří Niederle
relation country of citizenship
['Jiří Niederle', 'country of citizenship', 'Czech Republic']
ASK WHERE { resource:Jiří_Niederle property:country_of_citizenship resource:Czech_Republic }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q649 Q19689 Q1953
P190
Q515
USER
Is Moscow a sister city of Tirana and Yerevan ?
(Q649,P190,Q19689) (Q649,P190,Q1953)
action is_in
entity Q649
action intersection
action find_reverse
entity Q19689
relation P190
action find_reverse
entity Q1953
relation P190
['Q649', 'P190', 'Q19689'] ['Q649', 'P190', 'Q1953']
ASK WHERE { resource:Q649 property:P190 resource:Q19689 . resource:Q649 property:P190 resource:Q1953 }
Moscow Tirana Yerevan
action is_in
entity Moscow
action intersection
action find_reverse
entity Tirana
relation sister city
action find_reverse
entity Yerevan
relation sister city
['Moscow', 'sister city', 'Tirana'] ['Moscow', 'sister city', 'Yerevan']
ASK WHERE { resource:Moscow property:sister_city resource:Tirana . resource:Moscow property:sister_city resource:Yerevan }
[]
city
SYSTEM
YES
(Q649,P190,Q19689) (Q649,P190,Q1953)
action is_in
entity Q649
action intersection
action find_reverse
entity Q19689
relation P190
action find_reverse
entity Q1953
relation P190
[ANSWER]
['Q649', 'P190', 'Q19689'] ['Q649', 'P190', 'Q1953']
ASK WHERE { resource:Q649 property:P190 resource:Q19689 . resource:Q649 property:P190 resource:Q1953 }
Yes
action is_in
entity Moscow
action intersection
action find_reverse
entity Tirana
relation sister city
action find_reverse
entity Yerevan
relation sister city
['Moscow', 'sister city', 'Tirana'] ['Moscow', 'sister city', 'Yerevan']
ASK WHERE { resource:Moscow property:sister_city resource:Tirana . resource:Moscow property:sister_city resource:Yerevan }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q15416 Q838948
USER
Which administrative territories are the narrative locations of atleast 526 television programs or works of art ?
(c(Q15416)|c(Q838948),P840,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 526
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?l WHERE { { ?o property:P840 ?l . ?o rdf:type ontology:Q15416 . ?l rdf:type ontology:Q56061 } UNION { ?o property:P840 ?l . ?o rdf:type ontology:Q838948 . ?l rdf:type ontology:Q56061 } } GROUP BY ?l } . FILTER ( ?n >= 526 ) }
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 526
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?l WHERE { { ?o property:narrative_location ?l . ?o rdf:type ontology:television_program . ?l rdf:type ontology:administrative_territorial_entity } UNION { ?o property:narrative_location ?l . ?o rdf:type ontology:work_of_art . ?l rdf:type ontology:administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?n >= 526 ) }
[]
administrative territorial entity television program work of art
Q90 Q65 Q84
SYSTEM
Paris, Los Angeles, London
Q90 Q84 Q65 Q60
(c(Q15416)|c(Q838948),P840,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
value 526
[ANSWERS] are the narrative locations of atleast 526 television programs or works of art
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?l WHERE { { ?o property:P840 ?l . ?o rdf:type ontology:Q15416 . ?l rdf:type ontology:Q56061 } UNION { ?o property:P840 ?l . ?o rdf:type ontology:Q838948 . ?l rdf:type ontology:Q56061 } } GROUP BY ?l } . FILTER ( ?n >= 526 ) }
Paris London Los Angeles New York City
Paris, Los Angeles and London are the narrative locations of atleast 526 television programs or works of art
Paris Los Angeles London
action atleast
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
value 526
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) ?l WHERE { { ?o property:narrative_location ?l . ?o rdf:type ontology:television_program . ?l rdf:type ontology:administrative_territorial_entity } UNION { ?o property:narrative_location ?l . ?o rdf:type ontology:work_of_art . ?l rdf:type ontology:administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?n >= 526 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have adopted around the same number of holidays or people as patron saint as that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
holiday common name administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q65
SYSTEM
Did you mean Los Angeles ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Did you mean Los Angeles ?
Los Angeles
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Paris. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
Q90
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
[]
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]