Simple Question (Direct)
Simple Question
Q2501745
P27
Q1048835
USER
Which political territory does Ursula Lazarus belong to ?
(Q2501745,P27,c(Q1048835))
action filter_type
action find
entity Q2501745
relation P27
type Q1048835
['Q2501745', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q2501745 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Ursula Lazarus
action filter_type
action find
entity Ursula Lazarus
relation country of citizenship
type political territorial entity
['Ursula Lazarus', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ursula_Lazarus property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q2501745,P27,c(Q1048835))
action filter_type
action find
entity Q2501745
relation P27
type Q1048835
Ursula Lazarus belongs to [ANSWER]
['Q2501745', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q2501745 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Germany
Ursula Lazarus belongs to Germany
Germany
action filter_type
action find
entity Ursula Lazarus
relation country of citizenship
type political territorial entity
['Ursula Lazarus', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Ursula_Lazarus property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P138
Q12280
USER
Which bridge has that political territory as its namesake ?
(c(Q12280),P138,Q183)
action filter_type
action find_reverse
entity Q183
relation P138
type Q12280
[{'concept': 'Q12280'}, 'P138', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q183 . ?y rdf:type ontology:Q12280 }
Germany
action filter_type
action find_reverse
entity Germany
relation named after
type bridge
[{'concept': 'bridge'}, 'named after', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Germany . ?y rdf:type ontology:bridge }
[]
bridge
Q205682
SYSTEM
Three Countries Bridge
Q205682
(c(Q12280),P138,Q183)
action filter_type
action find_reverse
entity Q183
relation P138
type Q12280
[ANSWER] has that political territory as its namesake
[{'concept': 'Q12280'}, 'P138', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q183 . ?y rdf:type ontology:Q12280 }
Three Countries Bridge
Three Countries Bridge has that political territory as its namesake
Three Countries Bridge
action filter_type
action find_reverse
entity Germany
relation named after
type bridge
[{'concept': 'bridge'}, 'named after', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Germany . ?y rdf:type ontology:bridge }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q205682
P177
Q355304
USER
Which watercourse is over/under that bridge ?
(Q205682,P177,c(Q355304))
action filter_type
action find
entity Q205682
relation P177
type Q355304
['Q205682', 'P177', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { resource:Q205682 property:P177 ?g . ?g rdf:type ontology:Q355304 }
Three Countries Bridge
action filter_type
action find
entity Three Countries Bridge
relation crosses
type watercourse
['Three Countries Bridge', 'crosses', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { resource:Three_Countries_Bridge property:crosses ?g . ?g rdf:type ontology:watercourse }
[]
watercourse
Q584
SYSTEM
Rhine
Q584
(Q205682,P177,c(Q355304))
action filter_type
action find
entity Q205682
relation P177
type Q355304
[ANSWER] is over/under that bridge
['Q205682', 'P177', {'concept': 'Q355304'}]
SELECT DISTINCT ?g WHERE { resource:Q205682 property:P177 ?g . ?g rdf:type ontology:Q355304 }
Rhine
Rhine is over/under that bridge
Rhine
action filter_type
action find
entity Three Countries Bridge
relation crosses
type watercourse
['Three Countries Bridge', 'crosses', {'concept': 'watercourse'}]
SELECT DISTINCT ?g WHERE { resource:Three_Countries_Bridge property:crosses ?g . ?g rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P469
Q337567 Q23397 Q355304
USER
Which watercourses flow through approximately the same number of still waterss and lakes as that watercourse ?
(c(Q355304),P469,c(Q337567)|c(Q23397))
action approx
action union
action find_tuple_counts
relation P469
type Q355304
type Q337567
action find_tuple_counts
relation P469
type Q355304
type Q23397
action count
action filter_multi_types
action find
entity Q584
relation P469
type Q337567
type Q23397
[{'concept': 'Q355304'}, 'P469', [{'concept': 'Q337567'}, {'concept': 'Q23397'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?z WHERE { { ?z property:P469 ?a . ?z rdf:type ontology:Q355304 . ?a rdf:type ontology:Q337567 } UNION { ?z property:P469 ?a . ?z rdf:type ontology:Q355304 . ?a rdf:type ontology:Q23397 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q584 property:P469 ?b . { ?b rdf:type ?m . VALUES ( ?m ) { ( ontology:Q337567 ) ( ontology:Q23397 ) } } } } . FILTER ( ?r = ?p ) }
action approx
action union
action find_tuple_counts
relation lakes on river
type watercourse
type still waters
action find_tuple_counts
relation lakes on river
type watercourse
type lake
action count
action filter_multi_types
action find
entity Rhine
relation lakes on river
type still waters
type lake
[{'concept': 'watercourse'}, 'lakes on river', [{'concept': 'still waters'}, {'concept': 'lake'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?z WHERE { { ?z property:lakes_on_river ?a . ?z rdf:type ontology:watercourse . ?a rdf:type ontology:still_waters } UNION { ?z property:lakes_on_river ?a . ?z rdf:type ontology:watercourse . ?a rdf:type ontology:lake } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Rhine property:lakes_on_river ?b . { ?b rdf:type ?m . VALUES ( ?m ) { ( ontology:still_waters ) ( ontology:lake ) } } } } . FILTER ( ?r = ?p ) }
[]
still waters lake watercourse
SYSTEM
314
Q1888146 Q13533400 Q2279579 Q664341 Q581307 Q1393263 Q2028742 Q6661013 Q3458654 Q4071815 Q4503043 Q749950 Q1429523 Q1144474 Q410410 Q2492910 Q668244 Q160140 Q1813684 Q5507324 Q18150029 Q2415273 Q4580881 Q2668113 Q3017105 Q362183 Q1789505 Q2368048 Q1636349 Q4790369 Q664121 Q668892 Q1458500 Q82776 Q3458570 Q7069329 Q4068821 Q4408691 Q748195 Q1435649 Q255379 Q6976632 Q4246441 Q859274 Q220839 Q954009 Q248756 Q450584 Q10718791 Q833164 Q6661118 Q4576100 Q537889 Q1445804 Q214748 Q4427701 Q14366 Q882739 Q3377411 Q283622 Q289638 Q5882378 Q4059960 Q3732920 Q1877245 Q2264472 Q502773 Q3275381 Q642694 Q3348721 Q1329928 Q2737438 Q152661 Q1586793 Q51845 Q848670 Q1519836 Q1338024 Q1076530 Q3635074 Q4225184 Q5635 Q1779641 Q49582 Q6513766 Q870065 Q1032656 Q951240 Q927499 Q679808 Q298372 Q1524764 Q6513842 Q516140 Q2331787 Q10667340 Q82147 Q1164945 Q525091 Q4429078 Q120189 Q792016 Q524612 Q1882914 Q1047568 Q3218643 Q1714941 Q1343164 Q4179226 Q3512615 Q2566970 Q668478 Q1273955 Q890526 Q11990461 Q499668 Q2598623 Q1144510 Q3433647 Q151858 Q1048696 Q1353913 Q10520049 Q626 Q1376034 Q128350 Q80240 Q321043 Q2936036 Q11873746 Q18681925 Q128102 Q1430986 Q971114 Q75745 Q4282693 Q1669474 Q300672 Q300674 Q1953821 Q471382 Q7161432 Q4985505 Q17512637 Q383379 Q7402707 Q3196524 Q30548 Q1710848 Q684728 Q2624495 Q7401266 Q26475 Q2216 Q1046455 Q1666552 Q1538524 Q429769 Q680765 Q3292 Q4573966 Q4143776 Q978496 Q3720471 Q4134618 Q4460344 Q53484 Q1809877 Q757914 Q4074592 Q2846182 Q11883442 Q1628207 Q258400 Q286703 Q1801063 Q1343379 Q846926 Q843024 Q4251953 Q1748443 Q949042 Q324350 Q698586 Q517670 Q10706307 Q2462900 Q1491454 Q8051453 Q16945 Q1066192 Q5307904 Q857676 Q3411 Q525121 Q3374047 Q10429656 Q555450 Q1636202 Q1331306 Q6977407 Q1478566 Q2750140 Q258243 Q1538332 Q4131027 Q19849708 Q19849705 Q1161204 Q35591 Q1243669 Q19798122 Q3062302 Q4424134 Q2626727 Q4424133 Q19518505 Q1235975 Q1867521 Q382489 Q192567 Q209031 Q490186 Q548 Q2128582 Q4249198 Q1715173 Q226862 Q17476676 Q426516 Q6990897 Q93360 Q4222569 Q3785326 Q572425 Q3720244 Q661667 Q162737 Q1548669 Q23550 Q59647 Q503723 Q1542229 Q166301 Q1742075 Q1531702 Q1009177 Q1808066 Q7074548 Q11762217 Q391411 Q3773325 Q3179104 Q63109 Q22680166 Q2155664 Q1054311 Q584 Q1682 Q182042 Q3458740 Q4103724 Q5755799 Q318435 Q645 Q2244 Q4375034 Q10727731 Q270427 Q5447707 Q203862 Q280126 Q4081114 Q4532009 Q1645200 Q2155708 Q1479784 Q5872598 Q4586319 Q2738652 Q1485122 Q1514693 Q770781 Q10891111 Q2090382 Q15122970 Q846419 Q602 Q9394362 Q2143805 Q4407311 Q138631 Q729801 Q5625 Q273456 Q384194 Q671309 Q936688 Q785531 Q1364212 Q217956 Q650985 Q11899928 Q10561333 Q782845 Q7516332 Q954645 Q14333 Q1272368 Q14338 Q2992698 Q3739940 Q4015 Q1349937
(c(Q355304),P469,c(Q337567)|c(Q23397))
action approx
action union
action find_tuple_counts
relation P469
type Q355304
type Q337567
action find_tuple_counts
relation P469
type Q355304
type Q23397
action count
action filter_multi_types
action find
entity Q584
relation P469
type Q337567
type Q23397
[ANSWER]
[{'concept': 'Q355304'}, 'P469', [{'concept': 'Q337567'}, {'concept': 'Q23397'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?z WHERE { { ?z property:P469 ?a . ?z rdf:type ontology:Q355304 . ?a rdf:type ontology:Q337567 } UNION { ?z property:P469 ?a . ?z rdf:type ontology:Q355304 . ?a rdf:type ontology:Q23397 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q584 property:P469 ?b . { ?b rdf:type ?m . VALUES ( ?m ) { ( ontology:Q337567 ) ( ontology:Q23397 ) } } } } . FILTER ( ?r = ?p ) }
Kaministiquia River Vermilion River (Minnesota) Shire River Traun São Gonçalo Channel Fairford River Ord River Ljusnan Huahum River Astkhadzor (river) Tsakkar Elliðaár Karatal River Huskvarna River Hvítá Vytegra River Vedeggio Schwarzer Schöps Leiblach Fui River Cochrane River Pola River Ålkistan Ajaguz River Davsha Ager Ksani Tes River Råne River Nkusi River Glanfurt Engelberger Aa Vodla River Terek River Palena River Symsarna Argichi Sarma River Ruzizi River Fond du Lac River Lovat River Piaśnica Kultuchnaya Big Sioux River Luvua River River Corrib Tyya Alz Vårbybäcken Buzău River Llancahue River Skithegga Drammenselva Voxnan Göta älv Solzan Ticino Blue Nile Little Bostonnais River Atrek River Selizharovka River Hollyford River Aksu River Ulluchay River Lumi River Seeache Dranse Astarachay Otra Ochlockonee River Ing River Kazinga Channel Salzach Rapa River Ume älv Oglio Tokke Klarälven Sió Barnhusviken Kobona River Masurian Canal Hunnselva Olonka River Tinnelva Broye Rapel River Calcurrupe River Gudbrandsdalslågen Toce Österdal River Michipicoten River Heddøla Maggia Stanley River Sickla canal Taymyr River Nipigon River Großache Soroga (river) Rönne River Begna River Paatsjoki Mackintosh River Shelon River Laune Jänisjoki Leysse Zhelcha River Sumgayit River White River Kander Saint Louis River Kymi River Mølleåen Nidelva Pirsaat River Långan Bostonnais River Luapula River Waiau River (Southland) Rickleån Helige å Volga Waswanipi River Lukuga River Ural River Dornbirner Ach Canal de Savières Kutujoki Kaivanto Canal Irtysh River Sefīd-Rūd Pieman River Selenga River Martuni (river) Nottaway River Aabach Aabach (Seetal) Murray Mouth Kinda Canal Pelican River Bueno River Nares River Afon Glaslyn Sajna Kika Hrazdan River Pic River Jona Thiou Saint Francis River Treska Athabasca River Lepsy River Murchison River Gosen Canal Tidan Glatt Nelson River Langvassåga Gorgan Wisconsin River Shura-Ozen River Gdovka River Tompuda Syas River Richelieu River Attawapiskat River Babkha Andoma River Murole Canal Huon River Loisach English River Lake River Enningdalsälven Madawaska River Chaudière River Lava River, Leningrad Oblast Sjoa Ljungan Königsseer Ache Bregenzer Ache Emba River Tunaån Utulik Große Aa Yelcho River Suhre Sog River Drive Creek Lule River Mackenzie River Argen Kynne River Billstaån Akerselva Koitajoki Elizabeth River, Tasmania Svärtaån Santa Cruz River Kagera River Würm Hallingdalselva Gavaraget Seebach Grundlseer Traun San Juan River Tigris Azopardo River Hurdalselva Naknek River Slyudyanka Kura River Slyudyanka Sveselva Gullspångsälven Lockhart River Alter Rhein Ili River Narva River Andelva Vistula Rainy River Qusar River Jökulsá á Brú Suna River Nordbyelva Indalsälven Nemadji River Bío Bío River Kichera Stryneelva Lütschine Rubas River Flambeau River Angara River Great Bear River Velikaya River Abitibi River Cassarate Jämsänjoki Amper King River Ruvu Turka Otta Obabika River Liwna Gatineau River Aji Chay Kalambo River Adda Dajna Batiscan River Upper Angara River Rhine Havel Kuma River Pascua River Vardenis (river) Barabduchai Detroit River Neva Beaver River Pokhabikha Ösan Green River Figgja Saint-Maurice river Robson River Bezymyannaya Enco River Simojoki Matawin River Norrström Simineh River Hobølelva Fimi River Pigeon River Malagarasi River Sulak River Jeannotte River Khara-Murin Manouane River (Saint-Maurice River) Kenai River Rhône Łososina Thompson River San Pedro River Mandalselva Trosaån Pissa River Omo River Łupawa Primero River Mincio Snezhnaya River Renaelva Tsna River Nidau-Büren Canal Vaajavirta Lidan Awash River Zarriné-Rūd Little Zab Saane/Sarine Vindel River Limmat Burnaya River Åker's Canal Reuss Nyköpingsån
314
action approx
action union
action find_tuple_counts
relation lakes on river
type watercourse
type still waters
action find_tuple_counts
relation lakes on river
type watercourse
type lake
action count
action filter_multi_types
action find
entity Rhine
relation lakes on river
type still waters
type lake
[{'concept': 'watercourse'}, 'lakes on river', [{'concept': 'still waters'}, {'concept': 'lake'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) ?z WHERE { { ?z property:lakes_on_river ?a . ?z rdf:type ontology:watercourse . ?a rdf:type ontology:still_waters } UNION { ?z property:lakes_on_river ?a . ?z rdf:type ontology:watercourse . ?a rdf:type ontology:lake } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Rhine property:lakes_on_river ?b . { ?b rdf:type ?m . VALUES ( ?m ) { ( ontology:still_waters ) ( ontology:lake ) } } } } . FILTER ( ?r = ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12556970
P138
Q355304 Q874405 Q1777515
USER
How many watercourses are greater number of social groups and junctions named after than Klyazma River ?
(c(Q874405)|c(Q1777515),P138,c(Q355304))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q874405
action find_reverse_tuple_counts
relation P138
type Q355304
type Q1777515
action count
action filter_multi_types
action find_reverse
entity Q12556970
relation P138
type Q874405
type Q1777515
[[{'concept': 'Q874405'}, {'concept': 'Q1777515'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P138 ?w . ?w rdf:type ontology:Q355304 . ?u rdf:type ontology:Q874405 } UNION { ?u property:P138 ?w . ?w rdf:type ontology:Q355304 . ?u rdf:type ontology:Q1777515 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P138 resource:Q12556970 . { { ?k rdf:type ontology:Q874405 } UNION { ?k rdf:type ontology:Q1777515 } } } } . FILTER ( ?q > ?e ) }
Klyazma River
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type social group
action find_reverse_tuple_counts
relation named after
type watercourse
type junction
action count
action filter_multi_types
action find_reverse
entity Klyazma River
relation named after
type social group
type junction
[[{'concept': 'social group'}, {'concept': 'junction'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:named_after ?w . ?w rdf:type ontology:watercourse . ?u rdf:type ontology:social_group } UNION { ?u property:named_after ?w . ?w rdf:type ontology:watercourse . ?u rdf:type ontology:junction } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:named_after resource:Klyazma_River . { { ?k rdf:type ontology:social_group } UNION { ?k rdf:type ontology:junction } } } } . FILTER ( ?q > ?e ) }
[]
watercourse social group junction
SYSTEM
6
Q779803 Q2425438 Q209540 Q185405 Q896996 Q1664
(c(Q874405)|c(Q1777515),P138,c(Q355304))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q355304
type Q874405
action find_reverse_tuple_counts
relation P138
type Q355304
type Q1777515
action count
action filter_multi_types
action find_reverse
entity Q12556970
relation P138
type Q874405
type Q1777515
[ANSWER]
[[{'concept': 'Q874405'}, {'concept': 'Q1777515'}], 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:P138 ?w . ?w rdf:type ontology:Q355304 . ?u rdf:type ontology:Q874405 } UNION { ?u property:P138 ?w . ?w rdf:type ontology:Q355304 . ?u rdf:type ontology:Q1777515 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P138 resource:Q12556970 . { { ?k rdf:type ontology:Q874405 } UNION { ?k rdf:type ontology:Q1777515 } } } } . FILTER ( ?q > ?e ) }
Gouwe Holendrecht Scioto River Amstel Parthe Ruhr
6
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type watercourse
type social group
action find_reverse_tuple_counts
relation named after
type watercourse
type junction
action count
action filter_multi_types
action find_reverse
entity Klyazma River
relation named after
type social group
type junction
[[{'concept': 'social group'}, {'concept': 'junction'}], 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?q ) WHERE { { ?u property:named_after ?w . ?w rdf:type ontology:watercourse . ?u rdf:type ontology:social_group } UNION { ?u property:named_after ?w . ?w rdf:type ontology:watercourse . ?u rdf:type ontology:junction } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:named_after resource:Klyazma_River . { { ?k rdf:type ontology:social_group } UNION { ?k rdf:type ontology:junction } } } } . FILTER ( ?q > ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2535637 Q205682
P17
Q15617994
USER
Which administrative territories are Three Countries Bridge or Cortes present in ?
OR((Q205682,P17,c(Q15617994)), (Q2535637,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q205682
relation P17
action find
entity Q2535637
relation P17
type Q15617994
{'OR': [['Q205682', 'P17', {'concept': 'Q15617994'}], ['Q2535637', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q205682 property:P17 ?c } UNION { resource:Q2535637 property:P17 ?c } } }
Cortes Three Countries Bridge
action filter_type
action union
action find
entity Three Countries Bridge
relation country
action find
entity Cortes
relation country
type designation for an administrative territorial entity
{'OR': [['Three Countries Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cortes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Three_Countries_Bridge property:country ?c } UNION { resource:Cortes property:country ?c } } }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q205682,P17,c(Q15617994)), (Q2535637,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q205682
relation P17
action find
entity Q2535637
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q205682', 'P17', {'concept': 'Q15617994'}], ['Q2535637', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . { { resource:Q205682 property:P17 ?c } UNION { resource:Q2535637 property:P17 ?c } } }
France Spain
Which administrative territories are Three Countries Bridge or Cortes present in
France Spain
action filter_type
action union
action find
entity Three Countries Bridge
relation country
action find
entity Cortes
relation country
type designation for an administrative territorial entity
{'OR': [['Three Countries Bridge', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cortes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Three_Countries_Bridge property:country ?c } UNION { resource:Cortes property:country ?c } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P495
Q166142 Q5458202
USER
How many applications or flavored liquors originated in that administrative territory ?
(c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q29) (c(Q5458202),P495,Q29)
[{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q29'] [{'concept': 'Q5458202'}, 'P495', 'Q29']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q20266861 } UNION { ?y property:P495 resource:Q20266861 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q5458202 }
[{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'Spain'] [{'concept': 'flavored liquor'}, 'country of origin', 'Spain']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Spain } UNION { ?y property:country_of_origin resource:Spain } } . ?z rdf:type ontology:application . ?y rdf:type ontology:flavored_liquor }
[]
application flavored liquor
Quantitative|Count|Mult. entity type|Clarification
Q29
SYSTEM
Did you mean Spain ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q20266861 } UNION { ?y property:P495 resource:Q20266861 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q5458202 }
Did you mean Spain ?
Spain
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Spain } UNION { ?y property:country_of_origin resource:Spain } } . ?z rdf:type ontology:application . ?y rdf:type ontology:flavored_liquor }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q29) (c(Q5458202),P495,Q29)
Q142
[{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q29'] [{'concept': 'Q5458202'}, 'P495', 'Q29']
[{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'Spain'] [{'concept': 'flavored liquor'}, 'country of origin', 'Spain']
[]
SYSTEM
12
Q3072768 Q24666152 Q3563697 Q2818462 Q3522430 Q2868642 Q2403445 Q3210243 Q16976 Q776134 Q2878412 Q14657870
(c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q142) (c(Q5458202),P495,Q142) (c(Q166142),P495,Q29) (c(Q5458202),P495,Q29)
[ANSWER]
[{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q142'] [{'concept': 'Q5458202'}, 'P495', 'Q142'] [{'concept': 'Q166142'}, 'P495', 'Q29'] [{'concept': 'Q5458202'}, 'P495', 'Q29']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q20266861 } UNION { ?y property:P495 resource:Q20266861 } } . ?z rdf:type ontology:Q166142 . ?y rdf:type ontology:Q5458202 }
Fire & Forget II Wakfu Raiders Vroom 80 Days The Raven Project Asterix & Obélix take on Caesar Saga: Rage of the Vikings The New Adventures of the Time Machine pastis Tonic Trouble Back to the Golden Age Qwant
12
[{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'France'] [{'concept': 'flavored liquor'}, 'country of origin', 'France'] [{'concept': 'application'}, 'country of origin', 'Spain'] [{'concept': 'flavored liquor'}, 'country of origin', 'Spain']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Spain } UNION { ?y property:country_of_origin resource:Spain } } . ?z rdf:type ontology:application . ?y rdf:type ontology:flavored_liquor }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q29
P206
Q337567 Q15324 Q15617994
USER
How many administrative territories are located in the neighbourhood of more number of still waterss or bodies of water than Spain ?
(c(Q15617994),P206,c(Q337567)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action count
action filter_multi_types
action find
entity Q29
relation P206
type Q337567
type Q15324
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?l WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?l } . FILTER ( ?r > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q29 property:P206 ?v . { { ?v rdf:type ontology:Q337567 } UNION { ?v rdf:type ontology:Q15324 } } } } }
Spain
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Spain
relation located next to body of water
type still waters
type body of water
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?l WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?l } . FILTER ( ?r > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Spain property:located_next_to_body_of_water ?v . { { ?v rdf:type ontology:still_waters } UNION { ?v rdf:type ontology:body_of_water } } } } }
[]
still waters body of water designation for an administrative territorial entity
SYSTEM
36
Q21111 Q104577 Q446425 Q55 Q801 Q47585 Q6237 Q568926 Q884 Q664950 Q244095 Q7566251 Q36 Q34 Q38 Q769680 Q104192 Q236 Q681329 Q20 Q690219 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q17 Q1577 Q516567 Q215 Q1009 Q1438 Q20267 Q194136 Q47612
(c(Q15617994),P206,c(Q337567)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action count
action filter_multi_types
action find
entity Q29
relation P206
type Q337567
type Q15324
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?l WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:Q337567 ) ( ontology:Q15324 ) } } GROUP BY ?l } . FILTER ( ?r > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q29 property:P206 ?v . { { ?v rdf:type ontology:Q337567 } UNION { ?v rdf:type ontology:Q15324 } } } } }
Corn Islands Desenzano del Garda Altwarp Netherlands Israel Garda Lecco Maasholm South Korea Loddin Bellagio South Bay Poland Sweden Italy Bornholm Kleinmachnow Montenegro Dümmer Norway Perlin Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Japan Neuwerk Kappeln Slovenia Cameroon Campania Schwarz Riva del Garda Domaso
36
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Spain
relation located next to body of water
type still waters
type body of water
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) ?l WHERE { ?m rdf:type ?x . VALUES ( ?x ) { ( ontology:still_waters ) ( ontology:body_of_water ) } } GROUP BY ?l } . FILTER ( ?r > ?s ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Spain property:located_next_to_body_of_water ?v . { { ?v rdf:type ontology:still_waters } UNION { ?v rdf:type ontology:body_of_water } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q493924
P206
Q337567 Q15324 Q15617994
USER
And what about Pasewalk?
(c(Q15617994),P206,c(Q337567)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action count
action filter_multi_types
action find
entity Q493924
relation P206
type Q337567
type Q15324
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?r rdf:type ?i } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { resource:Q493924 property:P206 ?l . { { ?l rdf:type ontology:Q337567 } UNION { ?l rdf:type ontology:Q15324 } } } } . FILTER ( ?d > ?a ) }
Pasewalk
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Pasewalk
relation located next to body of water
type still waters
type body of water
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?r rdf:type ?i } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { resource:Pasewalk property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:still_waters } UNION { ?l rdf:type ontology:body_of_water } } } } . FILTER ( ?d > ?a ) }
[]
still waters body of water designation for an administrative territorial entity
SYSTEM
36
Q21111 Q104577 Q446425 Q55 Q801 Q47585 Q6237 Q568926 Q884 Q664950 Q244095 Q7566251 Q36 Q34 Q38 Q769680 Q104192 Q236 Q681329 Q20 Q690219 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q17 Q1577 Q516567 Q215 Q1009 Q1438 Q20267 Q194136 Q47612
(c(Q15617994),P206,c(Q337567)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action count
action filter_multi_types
action find
entity Q493924
relation P206
type Q337567
type Q15324
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:Q15324 ) ( ontology:Q337567 ) } . ?r rdf:type ?i } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { resource:Q493924 property:P206 ?l . { { ?l rdf:type ontology:Q337567 } UNION { ?l rdf:type ontology:Q15324 } } } } . FILTER ( ?d > ?a ) }
Corn Islands Desenzano del Garda Altwarp Netherlands Israel Garda Lecco Maasholm South Korea Loddin Bellagio South Bay Poland Sweden Italy Bornholm Kleinmachnow Montenegro Dümmer Norway Perlin Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Japan Neuwerk Kappeln Slovenia Cameroon Campania Schwarz Riva del Garda Domaso
36
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Pasewalk
relation located next to body of water
type still waters
type body of water
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?d ) WHERE { VALUES ( ?i ) { ( ontology:body_of_water ) ( ontology:still_waters ) } . ?r rdf:type ?i } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { resource:Pasewalk property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:still_waters } UNION { ?l rdf:type ontology:body_of_water } } } } . FILTER ( ?d > ?a ) }
[]