Simple Question (Direct)
Simple Question
Q7527016
P69
Q3914
USER
Which school was Sir Gregory Page-Turner, 3rd Baronet educated at ?
(Q7527016,P69,c(Q3914))
action filter_type
action find
entity Q7527016
relation P69
type Q3914
['Q7527016', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q3914 . resource:Q7527016 property:P69 ?o }
Sir Gregory Page-Turner, 3rd Baronet
action filter_type
action find
entity Sir Gregory Page-Turner, 3rd Baronet
relation educated at
type school
['Sir Gregory Page-Turner, 3rd Baronet', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school . resource:Sir_Gregory_Page-Turner,_3rd_Baronet property:educated_at ?o }
[]
school
Q192088
SYSTEM
Eton College
Q192088
(Q7527016,P69,c(Q3914))
action filter_type
action find
entity Q7527016
relation P69
type Q3914
[ANSWER] was Sir Gregory Page-Turner, 3rd Baronet educated at
['Q7527016', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q3914 . resource:Q7527016 property:P69 ?o }
Eton College
Eton College was Sir Gregory Page-Turner, 3rd Baronet educated at
Eton College
action filter_type
action find
entity Sir Gregory Page-Turner, 3rd Baronet
relation educated at
type school
['Sir Gregory Page-Turner, 3rd Baronet', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:school . resource:Sir_Gregory_Page-Turner,_3rd_Baronet property:educated_at ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7527016
P937
Q56061
USER
What is the location where Sir Gregory Page-Turner, 3rd Baronet worked ?
(Q7527016,P937,c(Q56061))
action filter_type
action find
entity Q7527016
relation P937
type Q56061
['Q7527016', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7527016 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Sir Gregory Page-Turner, 3rd Baronet
action filter_type
action find
entity Sir Gregory Page-Turner, 3rd Baronet
relation work location
type administrative territorial entity
['Sir Gregory Page-Turner, 3rd Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Sir_Gregory_Page-Turner,_3rd_Baronet property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q7527016,P937,c(Q56061))
action filter_type
action find
entity Q7527016
relation P937
type Q56061
The location Sir Gregory Page-Turner , 3rd Baronet worked is in [ANSWER]
['Q7527016', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7527016 property:P937 ?h . ?h rdf:type ontology:Q56061 }
London
The location Sir Gregory Page-Turner , 3rd Baronet worked is in London
London
action filter_type
action find
entity Sir Gregory Page-Turner, 3rd Baronet
relation work location
type administrative territorial entity
['Sir Gregory Page-Turner, 3rd Baronet', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Sir_Gregory_Page-Turner,_3rd_Baronet property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q497480
Q56061
USER
And what about Andreas Glück?
(Q497480,P937,c(Q56061))
action filter_type
action find
entity Q497480
relation P937
type Q56061
['Q497480', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q497480 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Andreas Glück
action filter_type
action find
entity Andreas Glück
relation work location
type administrative territorial entity
['Andreas Glück', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andreas_Glück property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3085 Q557809 Q1022
SYSTEM
Reutlingen, Münsingen, Stuttgart
Q3085 Q557809 Q1022
(Q497480,P937,c(Q56061))
action filter_type
action find
entity Q497480
relation P937
type Q56061
[ANSWERS]
['Q497480', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q497480 property:P937 ?h . ?h rdf:type ontology:Q56061 }
Reutlingen Münsingen Stuttgart
Reutlingen Münsingen Stuttgart
action filter_type
action find
entity Andreas Glück
relation work location
type administrative territorial entity
['Andreas Glück', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Andreas_Glück property:work_location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1022
P17
Q7275 Q15617994
USER
How many states and administrative territories are Stuttgart situated in ?
(Q1022,P17,c(Q7275)) (Q1022,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1022
relation P17
type Q7275
action filter_type
action find
entity Q1022
relation P17
type Q15617994
['Q1022', 'P17', {'concept': 'Q7275'}] ['Q1022', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Q1022 property:P17 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q1022 property:P17 ?n . ?n rdf:type ontology:Q7275 } }
Stuttgart
action count
action union
action filter_type
action find
entity Stuttgart
relation country
type state
action filter_type
action find
entity Stuttgart
relation country
type designation for an administrative territorial entity
['Stuttgart', 'country', {'concept': 'state'}] ['Stuttgart', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Stuttgart property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Stuttgart property:country ?n . ?n rdf:type ontology:state } }
[]
state designation for an administrative territorial entity
SYSTEM
3 states and 1 administrative territories
Q7318 Q2172530 Q159631 Q41304
(Q1022,P17,c(Q7275)) (Q1022,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1022
relation P17
type Q7275
action filter_type
action find
entity Q1022
relation P17
type Q15617994
[ANSWER]
['Q1022', 'P17', {'concept': 'Q7275'}] ['Q1022', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Q1022 property:P17 ?n . ?n rdf:type ontology:Q15617994 } UNION { resource:Q1022 property:P17 ?n . ?n rdf:type ontology:Q7275 } }
Nazi Germany Electorate of Württemberg Kingdom of Württemberg Weimar Republic
3 states and 1 administrative territories
action count
action union
action filter_type
action find
entity Stuttgart
relation country
type state
action filter_type
action find
entity Stuttgart
relation country
type designation for an administrative territorial entity
['Stuttgart', 'country', {'concept': 'state'}] ['Stuttgart', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { resource:Stuttgart property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Stuttgart property:country ?n . ?n rdf:type ontology:state } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q384544
P609
Q56061 Q12280 Q83620
USER
Which administrative territories are the destination of lesser number of bridges and thoroughfares than Karlovy Vary ?
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
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 Q384544
relation P609
type Q12280
type Q83620
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?v WHERE { { ?y property:P609 ?v . ?v rdf:type ontology:Q56061 . ?y rdf:type ontology:Q83620 } UNION { ?y property:P609 ?v . ?v rdf:type ontology:Q56061 . ?y rdf:type ontology:Q12280 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P609 resource:Q384544 . { { ?i rdf:type ontology:Q12280 } UNION { ?i rdf:type ontology:Q83620 } } } } . FILTER ( ?b < ?d ) }
Karlovy Vary
action less
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 Karlovy Vary
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?v WHERE { { ?y property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:thoroughfare } UNION { ?y property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:bridge } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:terminus_location resource:Karlovy_Vary . { { ?i rdf:type ontology:bridge } UNION { ?i rdf:type ontology:thoroughfare } } } } . FILTER ( ?b < ?d ) }
[]
administrative territorial entity bridge thoroughfare
Q1781 Q956 Q1867
SYSTEM
Budapest, Beijing, Taipei
Q1159408 Q1866725 Q599331 Q81076 Q10084 Q3112494 Q81177 Q2218481 Q2779809 Q238510 Q780923 Q957593 Q581785 Q2207185 Q83178 Q1781774 Q1027049 Q10014 Q6772133 Q185216 Q846242 Q2223679 Q1950380 Q1309 Q832938 Q2684131 Q13415826 Q9920 Q746096 Q883862 Q12912978 Q494631 Q4507706 Q988590 Q149787 Q2372373 Q3020221 Q212686 Q1890499 Q282729 Q3475289 Q937679 Q5529922 Q49274 Q3030085 Q2124272 Q1012006 Q2060859 Q6903267 Q10025 Q3394752 Q43631 Q478036 Q6430673 Q502312 Q1812494 Q262483 Q842477 Q4733779 Q2121249 Q1615972 Q5083 Q9911 Q2376829 Q81086 Q1026976 Q51697 Q51694 Q798 Q793 Q545457 Q1615386 Q932008 Q2473978 Q2026781 Q1840 Q776965 Q3322237 Q2525207 Q5367550 Q9909 Q797512 Q60444 Q2247076 Q1726 Q6373375 Q920932 Q1023246 Q2579355 Q3026315 Q9898 Q3138 Q237692 Q1912125 Q1907250 Q26881 Q3312626 Q5039616 Q16977290 Q579722 Q5182964 Q488545 Q992371 Q2403755 Q83407 Q3030738 Q934511 Q2096849 Q2360370 Q1007168 Q2853591 Q858607 Q959585 Q1615562 Q2893665 Q740852 Q956 Q1770 Q2235855 Q425786 Q279000 Q9832 Q1781 Q2873143 Q168279 Q2318330 Q15156199 Q826048 Q1613459 Q12013510 Q244327 Q605318 Q20203420 Q1890680 Q695417 Q2856996 Q26421 Q10041 Q3330170 Q517423 Q2023889 Q1616642 Q9783 Q2157144 Q2750562 Q743632 Q2543653 Q9871 Q5327973 Q1863836 Q2511595 Q3432009 Q84125 Q736131 Q506745 Q1867 Q690062 Q634481 Q2906589 Q2805272 Q995911 Q166065 Q1007176 Q1241302 Q611722 Q1025080 Q1025089 Q1310 Q5604964 Q3205403 Q2900922 Q77056 Q1258901 Q9934 Q2225613 Q2774284 Q2496189 Q2181173 Q75967 Q2277323 Q2282115 Q1210428 Q60705 Q2289322 Q803903 Q2281208 Q726635 Q230406 Q615732 Q3025598 Q2860067 Q985549 Q971130 Q505601 Q1916586 Q10037 Q2433994 Q743236
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
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 Q384544
relation P609
type Q12280
type Q83620
[ANSWERS] are the destination of lesser number of bridges and thoroughfares than Karlovy Vary
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?v WHERE { { ?y property:P609 ?v . ?v rdf:type ontology:Q56061 . ?y rdf:type ontology:Q83620 } UNION { ?y property:P609 ?v . ?v rdf:type ontology:Q56061 . ?y rdf:type ontology:Q12280 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P609 resource:Q384544 . { { ?i rdf:type ontology:Q12280 } UNION { ?i rdf:type ontology:Q83620 } } } } . FILTER ( ?b < ?d ) }
Dandenong Groenekan Biddinghuizen Zierikzee Vlissingen Poeldijk Leersum Oosterbeek Kats Etten Wallasey Den Oever Lepelstraat Terneuzen Almere Ulvsunda Irkeshtam Kampen Marmion Grapevine Nieuw-Lekkerland Uithuizen Mount Barker Maastricht Bodegraven De Punt De Bilt Haarlem North Shields Blerick Oosterhout Sassnitz Dongen Pruszcz Gdański Hendon Kootwijk De Meern Aigio Manjimup Ouderkerk aan de Amstel Schaijk Bunnik Geestdorp Garland Wieringerwerf Maasdam Cruden Bay Nieuw-Beijerland Roosendaal Wierden Catthorpe Leiden Schoonhoven Koondoola Maasdijk Rijswijk Deadwood Oosterzele Almere Poort Stainforth Wateringen Seattle Den Helder Swifterbant Sas van Gent Sale McKinney Grand Prairie Assen Zwolle Nieuw-Vennep Sassenheim Maarssen Ede Poelkapelle Veenendaal Klaipėda Venlo Ochten Elsham, North Lincolnshire Bussum Baarle Drachten Barger-Compascuum Munich Karrinyup Eede Westrozebeke Babberich Terhole Amstelveen Trier Ewijk Klaaswaal Serooskerke Helsingør Middenmeer Carine Alkmaar Ossendrecht Crawley Spijkenisse Bruinisse Terschuur Mons Zuidschermer Papendrecht Stellendam Longtown IJsselmuiden Aberford Strijen Streefkerk Kesteren Beek, Montferland Tessenderlo Beijing Tallinn Aarlanderveen 's-Gravenzande South Shields Eindhoven Budapest Hoek Zbraslav Waverveen Alphen aan den Rijn Waddinxveen Naaldwijk Vught Gorinchem Joondalup Heumen Bad Nieuweschans Bremerton Neeritter Dordrecht Soest Velsen-Zuid Den Dolder Eijsden Thurcroft Roermond Almere Haven Aarsele Nieuw-Amsterdam, Drenthe Den Hoorn, South Holland Tilburg East Butterwick Kamerik Almere Stad Rijkevoort Gouda Alblasserdam Rijswijk Taipei Rønne Gedser Blijham Ens Hoofddorp Lelystad Glanerbrug Dongara Westerland, Netherlands Soesterberg Nieuw- en Sint Joosland Arnhem Greenwood Edgemont Nieuwe Pekela Edam Driebergen-Rijsenburg Hilversum Nieuwdorp Meerkerk Oude-Tonge Bellingwolde Schoondijke Siebengewald Gretna Didam Emmeloord Van Ewijcksluis Bainbridge Island Dinteloord Beek, Ubbergen Zurich, Friesland Breukelen Wedde Cothen Sitia Nieuwe Niedorp Wassenaar Elsloo, Limburg Eemnes Putte, Pays-Bas Diest
Budapest, Beijing and Taipei are the destination of lesser number of bridges and thoroughfares than Karlovy Vary
Budapest Beijing Taipei
action less
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 Karlovy Vary
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?v WHERE { { ?y property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:thoroughfare } UNION { ?y property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:bridge } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:terminus_location resource:Karlovy_Vary . { { ?i rdf:type ontology:bridge } UNION { ?i rdf:type ontology:thoroughfare } } } } . FILTER ( ?b < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2606846
P609
Q56061 Q12280 Q83620
USER
And also tell me about Norwich?
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
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 Q2606846
relation P609
type Q12280
type Q83620
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) ?k WHERE { VALUES ( ?p ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } . ?w rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:P609 resource:Q2606846 . { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } } } . FILTER ( ?d < ?b ) }
Norwich
action less
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 Norwich
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) ?k WHERE { VALUES ( ?p ) { ( ontology:bridge ) ( ontology:thoroughfare ) } . ?w rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:terminus_location resource:Norwich . { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } } } . FILTER ( ?d < ?b ) }
[]
administrative territorial entity bridge thoroughfare
Q1781 Q956 Q1867
SYSTEM
Budapest, Beijing, Taipei
Q1159408 Q1866725 Q599331 Q81076 Q10084 Q3112494 Q81177 Q2218481 Q2779809 Q238510 Q780923 Q957593 Q581785 Q2207185 Q83178 Q1781774 Q1027049 Q10014 Q6772133 Q185216 Q846242 Q2223679 Q1950380 Q1309 Q832938 Q2684131 Q13415826 Q9920 Q746096 Q883862 Q12912978 Q494631 Q4507706 Q988590 Q149787 Q2372373 Q3020221 Q212686 Q1890499 Q282729 Q3475289 Q937679 Q5529922 Q49274 Q3030085 Q2124272 Q1012006 Q2060859 Q6903267 Q10025 Q3394752 Q43631 Q478036 Q6430673 Q502312 Q1812494 Q262483 Q842477 Q4733779 Q2121249 Q1615972 Q5083 Q9911 Q2376829 Q81086 Q1026976 Q51697 Q51694 Q798 Q793 Q545457 Q1615386 Q932008 Q2473978 Q2026781 Q1840 Q776965 Q3322237 Q2525207 Q5367550 Q9909 Q797512 Q60444 Q2247076 Q1726 Q6373375 Q920932 Q1023246 Q2579355 Q3026315 Q9898 Q3138 Q237692 Q1912125 Q1907250 Q26881 Q3312626 Q5039616 Q16977290 Q579722 Q5182964 Q488545 Q992371 Q2403755 Q83407 Q3030738 Q934511 Q2096849 Q2360370 Q1007168 Q2853591 Q858607 Q959585 Q1615562 Q2893665 Q740852 Q956 Q1770 Q2235855 Q425786 Q279000 Q9832 Q1781 Q2873143 Q168279 Q2318330 Q15156199 Q826048 Q1613459 Q12013510 Q244327 Q605318 Q20203420 Q1890680 Q695417 Q2856996 Q26421 Q10041 Q3330170 Q517423 Q2023889 Q1616642 Q9783 Q2157144 Q2750562 Q743632 Q2543653 Q9871 Q5327973 Q1863836 Q2511595 Q3432009 Q84125 Q736131 Q506745 Q1867 Q690062 Q634481 Q2906589 Q2805272 Q995911 Q166065 Q1007176 Q1241302 Q611722 Q1025080 Q1025089 Q1310 Q5604964 Q3205403 Q2900922 Q77056 Q1258901 Q9934 Q2225613 Q2774284 Q2496189 Q2181173 Q75967 Q2277323 Q2282115 Q1210428 Q60705 Q2289322 Q803903 Q2281208 Q726635 Q230406 Q615732 Q3025598 Q2860067 Q985549 Q971130 Q505601 Q1916586 Q10037 Q2433994 Q743236
(c(Q12280)|c(Q83620),P609,c(Q56061))
action less
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 Q2606846
relation P609
type Q12280
type Q83620
[ANSWERS]
[[{'concept': 'Q12280'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) ?k WHERE { VALUES ( ?p ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } . ?w rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:P609 resource:Q2606846 . { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:Q12280 ) ( ontology:Q83620 ) } } } } . FILTER ( ?d < ?b ) }
Dandenong Groenekan Biddinghuizen Zierikzee Vlissingen Poeldijk Leersum Oosterbeek Kats Etten Wallasey Den Oever Lepelstraat Terneuzen Almere Ulvsunda Irkeshtam Kampen Marmion Grapevine Nieuw-Lekkerland Uithuizen Mount Barker Maastricht Bodegraven De Punt De Bilt Haarlem North Shields Blerick Oosterhout Sassnitz Dongen Pruszcz Gdański Hendon Kootwijk De Meern Aigio Manjimup Ouderkerk aan de Amstel Schaijk Bunnik Geestdorp Garland Wieringerwerf Maasdam Cruden Bay Nieuw-Beijerland Roosendaal Wierden Catthorpe Leiden Schoonhoven Koondoola Maasdijk Rijswijk Deadwood Oosterzele Almere Poort Stainforth Wateringen Seattle Den Helder Swifterbant Sas van Gent Sale McKinney Grand Prairie Assen Zwolle Nieuw-Vennep Sassenheim Maarssen Ede Poelkapelle Veenendaal Klaipėda Venlo Ochten Elsham, North Lincolnshire Bussum Baarle Drachten Barger-Compascuum Munich Karrinyup Eede Westrozebeke Babberich Terhole Amstelveen Trier Ewijk Klaaswaal Serooskerke Helsingør Middenmeer Carine Alkmaar Ossendrecht Crawley Spijkenisse Bruinisse Terschuur Mons Zuidschermer Papendrecht Stellendam Longtown IJsselmuiden Aberford Strijen Streefkerk Kesteren Beek, Montferland Tessenderlo Beijing Tallinn Aarlanderveen 's-Gravenzande South Shields Eindhoven Budapest Hoek Zbraslav Waverveen Alphen aan den Rijn Waddinxveen Naaldwijk Vught Gorinchem Joondalup Heumen Bad Nieuweschans Bremerton Neeritter Dordrecht Soest Velsen-Zuid Den Dolder Eijsden Thurcroft Roermond Almere Haven Aarsele Nieuw-Amsterdam, Drenthe Den Hoorn, South Holland Tilburg East Butterwick Kamerik Almere Stad Rijkevoort Gouda Alblasserdam Rijswijk Taipei Rønne Gedser Blijham Ens Hoofddorp Lelystad Glanerbrug Dongara Westerland, Netherlands Soesterberg Nieuw- en Sint Joosland Arnhem Greenwood Edgemont Nieuwe Pekela Edam Driebergen-Rijsenburg Hilversum Nieuwdorp Meerkerk Oude-Tonge Bellingwolde Schoondijke Siebengewald Gretna Didam Emmeloord Van Ewijcksluis Bainbridge Island Dinteloord Beek, Ubbergen Zurich, Friesland Breukelen Wedde Cothen Sitia Nieuwe Niedorp Wassenaar Elsloo, Limburg Eemnes Putte, Pays-Bas Diest
Budapest Beijing Taipei
action less
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 Norwich
relation terminus location
type bridge
type thoroughfare
[[{'concept': 'bridge'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) ?k WHERE { VALUES ( ?p ) { ( ontology:bridge ) ( ontology:thoroughfare ) } . ?w rdf:type ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { ?y property:terminus_location resource:Norwich . { ?y rdf:type ?q . VALUES ( ?q ) { ( ontology:bridge ) ( ontology:thoroughfare ) } } } } . FILTER ( ?d < ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q497480
P27
Q1048835
USER
Which political territory is Andreas Glück a civilian of ?
(Q497480,P27,c(Q1048835))
action filter_type
action find
entity Q497480
relation P27
type Q1048835
['Q497480', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q497480 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Andreas Glück
action filter_type
action find
entity Andreas Glück
relation country of citizenship
type political territorial entity
['Andreas Glück', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Andreas_Glück property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q497480,P27,c(Q1048835))
action filter_type
action find
entity Q497480
relation P27
type Q1048835
Which political territory is Andreas Glück a civilian of
['Q497480', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q497480 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Germany
Which political territory is Andreas Glück a civilian of
Germany
action filter_type
action find
entity Andreas Glück
relation country of citizenship
type political territorial entity
['Andreas Glück', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Andreas_Glück property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15439795
Q1048835
USER
And what about Peter Oestmann?
(Q15439795,P27,c(Q1048835))
action filter_type
action find
entity Q15439795
relation P27
type Q1048835
['Q15439795', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q15439795 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Peter Oestmann
action filter_type
action find
entity Peter Oestmann
relation country of citizenship
type political territorial entity
['Peter Oestmann', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Peter_Oestmann property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q15439795,P27,c(Q1048835))
action filter_type
action find
entity Q15439795
relation P27
type Q1048835
[ANSWER]
['Q15439795', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q15439795 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Peter Oestmann
relation country of citizenship
type political territorial entity
['Peter Oestmann', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Peter_Oestmann property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]