Question
stringlengths
13
126
Query
stringlengths
9
976
Answer
stringlengths
3
20.9M
What is the population of the municipalities that border Kastoria?
SELECT DISTINCT ?municipality ?population WHERE { yago:Kastoria geo:hasGeometry ?o3 . ?o3 geo:asWKT ?kastoriaWKT . ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?munWKT . ?municipality y2geoo:hasGAG_Population ?population FILTER geof:sfTouches(?kastoriaWKT, ?munWKT) }
municipality,population http://yago-knowledge.org/resource/Nestorio,3542 http://yago-knowledge.org/resource/Argos_Orestiko,6571 http://yago-knowledge.org/resource/geoentity_Dimos_Eordaia_8133857,44497 http://yago-knowledge.org/resource/geoentity_Dimos_Amyntaio_8133871,17976 http://yago-knowledge.org/resource/Prespes,2511 http://yago-knowledge.org/resource/geoentity_Dimos_Florina_8133716,33282
Which municipality in Crete has a population over 20000?
SELECT DISTINCT ?m WHERE { yago:Crete geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?m rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?mg . ?mg geo:asWKT ?mgeoWKT FILTER strdf:within(?mgeoWKT, ?geoWKT) ?m y2geoo:hasGAG_Population ?p FILTER ( ?p > 20000 ) }
m http://yago-knowledge.org/resource/geoentity_Dimos_Heraklion_8133920 http://yago-knowledge.org/resource/Malevizi
Is there a village in Scotland with an area smaller than 0.05 square kilometers?
ASK WHERE { ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?vg . ?vg geo:asWKT ?vgeoWKT . yago:Scotland geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT FILTER strdf:within(?vgeoWKT, ?geoWKT) FILTER ( strdf:area(?vgeoWKT) < 0.05 ) }
{'head': {}, 'boolean': True}
Which towns in County Longford with area bigger than 0.01 are west of Dublin?
SELECT ?town WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?tg . ?tg geo:asWKT ?tgeoWKT . yago:County_Longford geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT FILTER strdf:within(?tgeoWKT, ?geoWKT) FILTER ( strdf:area(?tgeoWKT) > 0.01 ) yago:Dublin geo:hasGeometry ?dg . ?dg geo:asWKT ?dgeoWKT FILTER strdf:left(?geoWKT, ?dgeoWKT) }
town http://yago-knowledge.org/resource/Granard
Which Greek regional units have less than 10000 inhabitants?
SELECT ?region WHERE { ?region rdf:type y2geoo:GAG_RegionalUnit ; y2geoo:hasGAG_Population ?pop FILTER ( ?pop < 10000 ) }
region http://kr.di.uoa.gr/yago2geo/resource/gagentity_504 http://kr.di.uoa.gr/yago2geo/resource/gagentity_602 http://kr.di.uoa.gr/yago2geo/resource/gagentity_1101 http://yago-knowledge.org/resource/geoentity_Perifereiakí_Enótita_Mykónou_8538487 http://yago-knowledge.org/resource/geoentity_Perifereiakí_Enótita_Tínou_8139378 http://yago-knowledge.org/resource/geoentity_Perifereiakí_Enótita_Karpáthou_445443 http://yago-knowledge.org/resource/geoentity_Perifereiakí_Enótita_Kéas_-_Kýthnou_445411 http://yago-knowledge.org/resource/geoentity_Perifereiakí_Enótita_Mílou_445413
Which municipalities in the Central Athens Regional Unit have less than 50000 residents and contain parks?
SELECT DISTINCT ?dimos WHERE { yago:geoentity_Perifereiakí_Enótita_Kentrikoú_Toméa_Athinón_8200482 geo:hasGeometry ?mgeo . ?mgeo geo:asWKT ?mWKT . ?dimos geo:hasGeometry ?dimos_geo . ?dimos_geo geo:asWKT ?dimos_geoWKT FILTER geof:sfContains(?mWKT, ?dimos_geoWKT) ?dimos y2geoo:hasGAG_Population ?dimos_pop FILTER ( ?dimos_pop < 50000 ) ?island rdf:type y2geoo:OSM_park . ?park geo:hasGeometry ?park_geo . ?park_geo geo:asWKT ?parkWKT FILTER geof:sfIntersects(?parkWKT, ?dimos_geoWKT) }
dimos http://yago-knowledge.org/resource/Kaisariani
What are the names of the lakes in the Northern Irish wards west of Wales?
SELECT DISTINCT ?locality WHERE { yago:Wales geo:hasGeometry ?city_geometry . ?city_geometry geo:asWKT ?geoWKT . ?ward rdf:type y2geoo:OSNI_Ward ; geo:hasGeometry ?ward_geo . ?ward_geo geo:asWKT ?ward_geoWKT FILTER strdf:left(?ward_geoWKT, ?geoWKT) ?locality rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?locality_geo . ?locality_geo geo:asWKT ?locality_geoWKT FILTER geof:sfWithin(?locality_geoWKT, ?ward_geoWKT) }
locality http://yago-knowledge.org/resource/geoentity_Lough_Lea_2644763 http://yago-knowledge.org/resource/geoentity_Lough_Navarnan_3308470 http://yago-knowledge.org/resource/geoentity_Carricknahorna_Lough_3308322 http://yago-knowledge.org/resource/geoentity_Derrygid_Lough_3309477 http://yago-knowledge.org/resource/geoentity_Lough_Aghery_2657640 http://yago-knowledge.org/resource/geoentity_Carrick_Lough_2653677 http://yago-knowledge.org/resource/geoentity_Lough_Bradan_2655003 http://yago-knowledge.org/resource/geoentity_Lough_Lack_2645078 http://yago-knowledge.org/resource/geoentity_Lough_Catherine_2653511 http://yago-knowledge.org/resource/geoentity_Lough_Money_8436509
What are the largest lakes that belong to counties south of Epping Forest?
SELECT DISTINCT ?locality (strdf:area(?locality_geoWKT) AS ?lakeArea) WHERE { yago:Epping_Forest geo:hasGeometry ?for_geo . ?for_geo geo:asWKT ?for_geoWKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?county_geo . ?county_geo geo:asWKT ?county_geoWKT FILTER strdf:above(?for_geoWKT, ?county_geoWKT) ?locality rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?locality_geo . ?locality_geo geo:asWKT ?locality_geoWKT FILTER geof:sfWithin(?locality_geoWKT, ?county_geoWKT) } ORDER BY DESC(?lakeArea) LIMIT 1
locality,lakeArea http://yago-knowledge.org/resource/geoentity_Boldermere_Lake_7116376,7.223164074996838E-6
Which municipalities in Central Athens that intersect with a park have a population of more than 10.000 people?
SELECT DISTINCT ?municipality WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?population ; geo:hasGeometry ?om . ?om geo:asWKT ?geoWKT . yago:geoentity_Perifereiakí_Enótita_Kentrikoú_Toméa_Athinón_8200482 geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?parkGeometry . ?parkGeometry geo:asWKT ?parkWKT FILTER geof:sfWithin(?geoWKT, ?geoWKT1) FILTER strdf:intersects(?geoWKT, ?parkWKT) FILTER ( ?population > 10000 ) }
municipality http://yago-knowledge.org/resource/Galatsi
Which is the number of inhabitants residing on the islands situated within Greece?
SELECT DISTINCT ?pop ?x WHERE { ?x rdf:type y2geoo:OSM_island ; geo:hasGeometry ?xGeom ; y2geoo:hasGAG_Population ?pop . ?xGeom geo:asWKT ?xWKT . yago:Greece geo:hasGeometry ?o1 . ?o1 geo:asWKT ?iWKT FILTER geof:sfWithin(?xWKT, ?iWKT) }
pop,x 564267,http://yago-knowledge.org/resource/Crete
Which Greek regions have between 500000 and 1000000 inhabitants?
SELECT ?region WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?regionGeom . ?regionGeom geo:asWKT ?xWKT . ?region y2geoo:hasGAG_Population ?pop . yago:Greece geo:hasGeometry ?o1 . ?o1 geo:asWKT ?iWKT FILTER geof:sfWithin(?xWKT, ?iWKT) FILTER ( ?pop < 1000000 ) FILTER ( ?pop > 500000 ) }
region http://yago-knowledge.org/resource/Crete http://yago-knowledge.org/resource/Crete http://yago-knowledge.org/resource/Crete http://yago-knowledge.org/resource/Peloponnese_(region) http://yago-knowledge.org/resource/Peloponnese_(region)
Which states only have counties with 1000 inhabitants or more?
SELECT ?state WHERE { ?state rdf:type yago:wikicategory_States_of_the_United_States ; geo:hasGeometry ?stateGeom . ?stateGeom geo:asWKT ?stateWKT FILTER NOT EXISTS { ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?cGeom . ?cGeom geo:asWKT ?cWKT FILTER geof:sfContains(?stateWKT, ?cWKT) ?county y2geoo:POPULATION ?pop BIND(xsd:double(?pop) AS ?popd) FILTER ( ?popd < 1000 ) } }
state http://yago-knowledge.org/resource/Wisconsin http://yago-knowledge.org/resource/Wyoming http://yago-knowledge.org/resource/Rhode_Island http://yago-knowledge.org/resource/South_Carolina http://yago-knowledge.org/resource/South_Dakota http://yago-knowledge.org/resource/Tennessee http://yago-knowledge.org/resource/Utah http://yago-knowledge.org/resource/New_Hampshire http://yago-knowledge.org/resource/Vermont http://yago-knowledge.org/resource/New_Jersey http://yago-knowledge.org/resource/Virginia http://yago-knowledge.org/resource/North_Carolina http://yago-knowledge.org/resource/Maryland http://yago-knowledge.org/resource/West_Virginia http://yago-knowledge.org/resource/Maine http://yago-knowledge.org/resource/Massachusetts http://yago-knowledge.org/resource/Ohio http://yago-knowledge.org/resource/Michigan http://yago-knowledge.org/resource/Kansas http://yago-knowledge.org/resource/Missouri http://yago-knowledge.org/resource/Kentucky http://yago-knowledge.org/resource/Pennsylvania http://yago-knowledge.org/resource/Oklahoma http://yago-knowledge.org/resource/Hawaii http://yago-knowledge.org/resource/Florida http://yago-knowledge.org/resource/Minnesota http://yago-knowledge.org/resource/Oregon http://yago-knowledge.org/resource/Alaska http://yago-knowledge.org/resource/Georgia_(U.S._state) http://yago-knowledge.org/resource/Mississippi http://yago-knowledge.org/resource/Alabama http://yago-knowledge.org/resource/Arkansas http://yago-knowledge.org/resource/Idaho http://yago-knowledge.org/resource/Arizona http://yago-knowledge.org/resource/Illinois http://yago-knowledge.org/resource/Connecticut http://yago-knowledge.org/resource/Indiana http://yago-knowledge.org/resource/Nevada http://yago-knowledge.org/resource/California http://yago-knowledge.org/resource/Iowa http://yago-knowledge.org/resource/Delaware http://yago-knowledge.org/resource/Louisiana
How many lakes are there in Los Angeles?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { yago:geoentity_Los_Angeles_City_Center_6946540 geo:hasGeometry ?laGeom . ?laGeom geo:asWKT ?laWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?lakeWKT FILTER geof:sfContains(?laWKT, ?lakeWKT) }
lakes 3
Find the number of forests in England.
SELECT (COUNT(DISTINCT ?x) AS ?forests) WHERE { yago:England geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?x rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
forests 28
What is the total number of localities in County Roscommon, and what is their total and average area?
SELECT (COUNT(DISTINCT ?locality) AS ?total) (SUM(strdf:area(?WKT2)) AS ?sum) (AVG(strdf:area(?WKT2)) AS ?avg) WHERE { yago:County_Roscommon geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WKT1 . ?locality rdf:type y2geoo:OSM_locality ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WKT2 FILTER geof:sfWithin(?WKT2, ?WKT1) }
total,sum,avg 13,1.8424967596399934E-3,1.417305199723072E-4
What is the average number of beaches located in the municipalities to the west of Pyrgos in the Elis region?
SELECT ?reg_unit (AVG(?no_of_beaches) AS ?avg_no_of_beaches) WHERE { <http://yago-knowledge.org/resource/Pyrgos,_Elis> geo:hasGeometry ?pirgos_geo . ?pirgos_geo geo:asWKT ?pirgos_geoWKT . ?reg_unit rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?reg_unitgeo . ?reg_unitgeo geo:asWKT ?reg_unitgeoWKT FILTER strdf:left(?reg_unitgeoWKT, ?pirgos_geoWKT) ?locality rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?locality_geo . ?locality_geo geo:asWKT ?locality_geoWKT FILTER geof:sfWithin(?locality_geoWKT, ?reg_unitgeoWKT) } GROUP BY ?reg_unit
reg_unit,avg_no_of_beaches http://yago-knowledge.org/resource/geoentity_Dimos_Igoumenitsa_8133725,0.0E0 http://yago-knowledge.org/resource/geoentity_Dimos_Parga_8133742,0.0E0 http://yago-knowledge.org/resource/geoentity_Dimos_Lefkada_8133851,0.0E0 http://yago-knowledge.org/resource/geoentity_Dimos_Corfu_8133855,0.0E0 http://yago-knowledge.org/resource/geoentity_Dimos_Paxoi_8133911,0.0E0
What is the total number of lakes and the total number of streams located within the city limits of Cork?
SELECT (COUNT(DISTINCT ?lake) AS ?total_lakes) (COUNT(DISTINCT ?stream) AS ?total_streams) WHERE { yago:geoentity_Cork_City_7778678 geo:hasGeometry ?o . ?o geo:asWKT ?A . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomB . ?geomB geo:asWKT ?B . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?C FILTER geof:sfWithin(?B, ?A) FILTER geof:sfWithin(?C, ?A) }
total_lakes,total_streams 19,39
How many parks and how many streams are there in Essex?
SELECT (COUNT(DISTINCT ?park) AS ?total_parks) (COUNT(DISTINCT ?stream) AS ?total_streams) WHERE { yago:Essex geo:hasGeometry ?o . ?o geo:asWKT ?A . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?geomB . ?geomB geo:asWKT ?B . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?C FILTER geof:sfWithin(?B, ?A) FILTER geof:sfWithin(?C, ?A) }
total_parks,total_streams 1,3
How many lakes does Greece have?
SELECT (COUNT(?x) AS ?cnt) WHERE { ?x rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?xGeom . ?xGeom geo:asWKT ?xWKT . yago:Greece geo:hasGeometry ?o1 . ?o1 geo:asWKT ?iWKT FILTER geof:sfWithin(?xWKT, ?iWKT) }
cnt 17
How many lakes are there in England?
SELECT (COUNT(DISTINCT ?x) AS ?lakes) WHERE { yago:England geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?x rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
lakes 22
How many parks does Dublin have and what is their total area?
SELECT (COUNT(?park) AS ?count) (SUM(strdf:area(?lWKT)) AS ?total_area_of_parks) WHERE { yago:Dublin geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
count,total_area_of_parks 2,2.565825698999474E-5
What is the total area of lakes in Monaghan?
SELECT (SUM(?lakeArea) AS ?oSum) WHERE { { SELECT (strdf:area(?lakeWKT) AS ?lakeArea) WHERE { y2geor:osientity_2AE1962941E413A3E055000000000001 geo:hasGeometry ?o1 . ?o1 geo:asWKT ?baronyWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?lakeWKT FILTER geof:sfWithin(?lakeWKT, ?baronyWKT) } } }
oSum 0
What is the number of lakes in each county that has lakes?
SELECT DISTINCT ?county (COUNT(?lake) AS ?lake_count) WHERE { ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfIntersects(?lWKT, ?lcWKT) } GROUP BY ?county
county,lake_count http://yago-knowledge.org/resource/North_Yorkshire,2 http://yago-knowledge.org/resource/Cambridge,8 http://yago-knowledge.org/resource/Surrey,4 http://yago-knowledge.org/resource/Norfolk,10 http://yago-knowledge.org/resource/Cumbria,20
What is the maximum area among lakes located in County Cavan?
SELECT DISTINCT (MAX(strdf:area(?geoWKT2)) AS ?maxLakeArea) WHERE { yago:County_Cavan geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT2, ?geoWKT1) }
maxLakeArea 9.683881436250193E-4
What are the smallest, largest and average forest areas that are within a district which is placed south of Staffordshire?
SELECT (MIN(strdf:area(?forest_geoWKT)) AS ?areas_min) (MAX(strdf:area(?forest_geoWKT)) AS ?areas_max) (AVG(strdf:area(?forest_geoWKT)) AS ?areas_avg) WHERE { yago:Staffordshire geo:hasGeometry ?Suffolk_geo . ?Suffolk_geo geo:asWKT ?Suffolk_geoWKT . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?district_geo . ?district_geo geo:asWKT ?district_geoWKT FILTER strdf:below(?district_geoWKT, ?Suffolk_geoWKT) ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT FILTER geof:sfWithin(?forest_geoWKT, ?district_geoWKT) }
areas_min,areas_max,areas_avg 1.8218561900008377E-6,7.697400551350174E-4,1.4819109035088407E-4
What is the average area of the forests that are within the Rural Area south of Cork City?
SELECT (AVG(?areas) AS ?areas_avg) WHERE { SELECT (strdf:area(?forest_geoWKT) AS ?areas) WHERE { yago:geoentity_Cork_City_7778678 geo:hasGeometry ?Cork_geo . ?Cork_geo geo:asWKT ?Cork_geoWKT . ?rural_area rdf:type y2geoo:OSI_Rural_Area ; geo:hasGeometry ?rural_area_geo . ?rural_area_geo geo:asWKT ?rural_area_geoWKT FILTER strdf:above(?rural_area_geoWKT, ?Cork_geoWKT) ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT FILTER geof:sfWithin(?forest_geoWKT, ?rural_area_geoWKT) } }
areas_avg 2.2398264837615153E-4
How many lakeside villages are there?
SELECT (COUNT(DISTINCT ?village) AS ?villages) WHERE { ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?geoV . ?geoV geo:asWKT ?vWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geoL . ?geoL geo:asWKT ?lWKT FILTER geof:sfTouches(?lWKT, ?vWKT, uom:metre) }
villages 58
How many streams cross forests?
SELECT (COUNT(DISTINCT ?stream) AS ?streams) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geoF . ?geoF geo:asWKT ?fWKT . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geoS . ?geoS geo:asWKT ?sWKT FILTER geof:sfCrosses(?sWKT, ?fWKT) }
streams 595
How many cities have beaches?
SELECT (COUNT(DISTINCT ?city) AS ?cities) WHERE { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geoC . ?geoC geo:asWKT ?cWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?geoB . ?geoB geo:asWKT ?bWKT FILTER geof:sfWithin(?bWKT, ?cWKT) }
cities 54
How many islands are within a Greek region?
SELECT (COUNT(DISTINCT ?island) AS ?islands) WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 . yago:Greece geo:hasGeometry ?o2 . ?o2 geo:asWKT ?iWKT FILTER geof:sfWithin(?WKT, ?iWKT) FILTER geof:sfWithin(?WKT1, ?WKT) }
islands 5
How many English districts contain parks?
SELECT (COUNT(DISTINCT ?district) AS ?districts) WHERE { ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 . yago:England geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT FILTER ( geof:sfContains(?WKT, ?WKT1) && geof:sfContains(?eWKT, ?WKT) ) }
districts 14
How many townlands intersect with lakes?
SELECT (COUNT(DISTINCT ?townland) AS ?townlands) WHERE { ?townland rdf:type y2geoo:OSI_Townland ; geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT, ?WKT1) }
townlands 2823
What is the number of forests that are right next to a lake?
SELECT (COUNT(DISTINCT ?forest) AS ?forests) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfTouches(?x1WKT, ?x2WKT) }
forests 36
How many parks are located within city limits?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
parks 12030
What is the number of bays that are adjacent to villages?
SELECT (COUNT(DISTINCT ?bay) AS ?bays) WHERE { ?bay rdf:type y2geoo:OSM_bay ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfTouches(?x1WKT, ?x2WKT) }
bays 10
How many municipalities contain at least one lake?
SELECT (COUNT(DISTINCT ?mun) AS ?municipalities) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?vgeo . ?vgeo geo:asWKT ?vWKT . ?mun rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?mgeo . ?mgeo geo:asWKT ?mWKT FILTER geof:sfContains(?mWKT, ?vWKT) }
municipalities 11
How many counties contain at least one reservoir?
SELECT (COUNT(DISTINCT ?county) AS ?counties) WHERE { ?res rdf:type y2geoo:OSM_reservoir ; geo:hasGeometry ?vgeo . ?vgeo geo:asWKT ?vWKT { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } UNION { ?county rdf:type y2geoo:OS_County } ?county geo:hasGeometry ?mgeo . ?mgeo geo:asWKT ?mWKT FILTER geof:sfContains(?mWKT, ?vWKT) }
counties 7
How many counties have beaches?
SELECT (COUNT(DISTINCT ?county) AS ?counties) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } UNION { ?county rdf:type y2geoo:OS_County } ?county geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?bgeo . ?bgeo geo:asWKT ?bWKT FILTER geof:sfContains(?cWKT, ?bWKT) }
counties 5
How many greek regions have a beach?
SELECT (COUNT(DISTINCT ?region) AS ?regions) WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WRT1 . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WRT2 FILTER geof:sfWithin(?WRT2, ?WRT1) }
regions 8
What is the number of Counties that intersect with lakes?
SELECT (COUNT(DISTINCT ?county) AS ?counties) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } UNION { ?county rdf:type y2geoo:OS_County } ?county geo:hasGeometry ?geomc . ?geomc geo:asWKT ?WKT1 . ?forest rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomf . ?geomf geo:asWKT ?WKT2 FILTER geof:sfIntersects(?WKT2, ?WKT1) }
counties 27
What is the total number of baronies which have nature reserves?
SELECT (COUNT(DISTINCT ?x) AS ?baronies) WHERE { ?x rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?cGeom1 . ?cGeom1 geo:asWKT ?cWKT1 . ?y rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?cGeom2 . ?cGeom2 geo:asWKT ?cWKT2 FILTER geof:sfWithin(?cWKT2, ?cWKT1) }
baronies 1
How many nature reserves intersect with forests?
SELECT (COUNT(DISTINCT ?nature_reserve) AS ?nature_reserves) WHERE { ?nature_reserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?nature_reserve_geo . ?nature_reserve_geo geo:asWKT ?nature_reserve_geoWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT FILTER geof:sfIntersects(?forest_geoWKT, ?nature_reserve_geoWKT) }
nature_reserves 7
How many administrative level 3 entities have oxbows?
SELECT (COUNT(DISTINCT ?order3adm) AS ?adms) WHERE { ?order3adm y2geoo:hasGADM_NationalLevel "3rdOrder" ; geo:hasGeometry ?order3adm_geo . ?order3adm_geo geo:asWKT ?order3adm_geoWKT . ?oxbow rdf:type y2geoo:OSM_oxbow ; geo:hasGeometry ?oxbow_geo . ?oxbow_geo geo:asWKT ?oxbow_geoWKT FILTER geof:sfWithin(?oxbow_geoWKT, ?order3adm_geoWKT) }
adms 14
What is the number of islands that have lakes?
SELECT (COUNT(DISTINCT ?island) AS ?islands) WHERE { ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?island_geo . ?island_geo geo:asWKT ?island_geoWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lake_geo . ?lake_geo geo:asWKT ?lake_geoWKT FILTER geof:sfWithin(?lake_geoWKT, ?island_geoWKT) }
islands 165
How many nature reserves intersect with towns?
SELECT (COUNT(DISTINCT ?natureReserve) AS ?natureReserves) WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?natureReserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 FILTER geof:sfIntersects(?geoWKT, ?geoWKT1) }
natureReserves 9
How many villages border towns?
SELECT (COUNT(DISTINCT ?village) AS ?villages) WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfTouches(?geoWKT1, ?geoWKT2) }
villages 685
How many beaches are next to cities?
SELECT (COUNT(DISTINCT ?beach) AS ?beaches) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfTouches(?geoWKT1, ?geoWKT2) }
beaches 3
How many district wards are within districts?
SELECT (COUNT(DISTINCT ?DistrictWard) AS ?wards) WHERE { ?District rdf:type y2geoo:OS_District ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?A . ?DistrictWard rdf:type y2geoo:OS_DistrictWard ; geo:hasGeometry ?geom . ?geom geo:asWKT ?B FILTER geof:sfWithin(?B, ?A) }
wards 4379
How many lakes are within Irish counties?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { ?CountyCouncil rdf:type y2geoo:OSI_County_Council ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?A . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geom . ?geom geo:asWKT ?B FILTER geof:sfWithin(?B, ?A) }
lakes 849
What is the number of lakes that are connected to a forest?
SELECT (COUNT(DISTINCT ?x) AS ?lakes) WHERE { ?x rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?xGeom . ?xGeom geo:asWKT ?xWKT . ?o rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?oGeom . ?oGeom geo:asWKT ?iWKT FILTER geof:sfIntersects(?xWKT, ?iWKT) }
lakes 259
How many baronies border with city councils?
SELECT (COUNT(DISTINCT ?o) AS ?os) WHERE { ?x rdf:type y2geoo:OSI_City_Council ; geo:hasGeometry ?xGeom . ?xGeom geo:asWKT ?xWKT . ?o rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?oGeom . ?oGeom geo:asWKT ?iWKT FILTER geof:sfTouches(?xWKT, ?iWKT) }
os 0
How many forests border lakes?
SELECT (COUNT(DISTINCT ?x1) AS ?forests) WHERE { ?x1 rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?x2 rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfTouches(?x1WKT, ?x2WKT) }
forests 36
What is the number of parks located within cities?
SELECT (COUNT(DISTINCT ?x1) AS ?parks) WHERE { ?x1 rdf:type y2geoo:OSM_park ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?x2 rdf:type y2geoo:OSM_city ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
parks 12030
How many bays are adjacent to villages?
SELECT (COUNT(DISTINCT ?x1) AS ?bays) WHERE { ?x1 rdf:type y2geoo:OSM_bay ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?x2 rdf:type y2geoo:OSM_village ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfTouches(?x1WKT, ?x2WKT) }
bays 10
How many streams intersect with lakes?
SELECT (COUNT(DISTINCT ?p1) AS ?streams) WHERE { ?p1 rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?p1geo . ?p1geo geo:asWKT ?p1WKT . ?p2 rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?p2geo . ?p2geo geo:asWKT ?p2WKT FILTER geof:sfIntersects(?p1WKT, ?p2WKT) }
streams 2589
How many nature reserves contain forests?
SELECT (COUNT(DISTINCT ?p1) AS ?forests) WHERE { ?p1 rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?p1geo . ?p1geo geo:asWKT ?p1WKT . ?p2 rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?p2geo . ?p2geo geo:asWKT ?p2WKT FILTER geof:sfContains(?p1WKT, ?p2WKT) }
forests 1
How many villages are on islands?
SELECT (COUNT(DISTINCT ?p1) AS ?villages) WHERE { ?p1 rdf:type y2geoo:OSM_village ; geo:hasGeometry ?p1geo . ?p1geo geo:asWKT ?p1WKT . ?p2 rdf:type y2geoo:OSM_island ; geo:hasGeometry ?p2geo . ?p2geo geo:asWKT ?p2WKT FILTER geof:sfWithin(?p1WKT, ?p2WKT) }
villages 1016
What is the number of nature reserves that are located on islands?
SELECT (COUNT(DISTINCT ?nature_reserve) AS ?nature_reserves) WHERE { ?nature_reserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?islands rdf:type y2geoo:OSM_island ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT, ?geoWKT2) }
nature_reserves 16
How many beaches border forests?
SELECT (COUNT(DISTINCT ?beach) AS ?beaches) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfTouches(?geoWKT, ?geoWKT2) }
beaches 0
How many parks have lakes running through them?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfCrosses(?geoWKT, ?geoWKT2) }
lakes 1
What is the number of lakes that border forests?
SELECT (COUNT(DISTINCT ?x) AS ?lakes) WHERE { ?x rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT . ?y rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT FILTER geof:sfTouches(?xWKT, ?yWKT) }
lakes 103
How many Cretan villages are north of Cretan forests?
SELECT (COUNT(DISTINCT ?x) AS ?villages) WHERE { yago:Crete geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?x rdf:type y2geoo:OSM_village ; geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT . ?y rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT FILTER ( ( geof:sfContains(?oWKT, ?yWKT) && geof:sfContains(?oWKT, ?yWKT) ) && strdf:above(?xWKT, ?yWKT) ) }
villages 0
How many canals are east of villages in County Kerry?
SELECT (COUNT(DISTINCT ?x) AS ?canals) WHERE { yago:County_Kerry geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?x rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT . ?y rdf:type y2geoo:OSM_village ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT FILTER ( geof:sfContains(?oWKT, ?yWKT) && strdf:right(?xWKT, ?yWKT) ) }
canals 0
How many Greek municipalities contain at least one forest?
SELECT (COUNT(DISTINCT ?M) AS ?muns) WHERE { ?M rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?MGeo . ?MGeo geo:asWKT ?MPolygon . ?Forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?ForestGeo . ?ForestGeo geo:asWKT ?ForestPolygon . yago:Greece geo:hasGeometry ?o2 . ?o2 geo:asWKT ?iWKT FILTER geof:sfWithin(?MPolygon, ?iWKT) FILTER geof:sfWithin(?ForestPolygon, ?MPolygon) }
muns 0
How many lakes overlap with metropolitan districts?
SELECT (COUNT(DISTINCT ?Lake) AS ?lakes) WHERE { ?MD rdf:type y2geoo:OS_MetropolitanDistrict ; geo:hasGeometry ?MDGeo . ?MDGeo geo:asWKT ?MDPolygon . ?Lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?LakeGeo . ?LakeGeo geo:asWKT ?LakePolygon FILTER strdf:overlaps(?MDPolygon, ?LakePolygon) }
lakes 0
How many villages are right next to cities?
SELECT (COUNT(DISTINCT ?village) AS ?villages) WHERE { ?City rdf:type y2geoo:OSM_city ; geo:hasGeometry ?CityGeo . ?CityGeo geo:asWKT ?CityPolygon . ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?villageGeo . ?villageGeo geo:asWKT ?villagePolygon FILTER geof:sfTouches(?villagePolygon, ?CityPolygon) }
villages 531
How many lakes are north of forests in Cambridgeshire?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { yago:Cambridge geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?park rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?parkGeometry . ?parkGeometry geo:asWKT ?parkWKT . ?stream rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?streamGeometry . ?streamGeometry geo:asWKT ?streamWKT FILTER ( ( geof:sfContains(?oWKT, ?parkWKT) && geof:sfContains(?oWKT, ?streamWKT) ) && strdf:above(?parkWKT, ?streamWKT) ) }
parks 4
How many lakes in Scotland are south of canals in Scotland?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { yago:Scotland geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeometry . ?lakeGeometry geo:asWKT ?lakeWKT . ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?canalGeometry . ?canalGeometry geo:asWKT ?canalWKT FILTER ( ( geof:sfContains(?oWKT, ?lakeWKT) && geof:sfContains(?oWKT, ?canalWKT) ) && strdf:below(?lakeWKT, ?canalWKT) ) }
lakes 22
How many localities are adjacent to forests?
SELECT (COUNT(DISTINCT ?locality) AS ?localities) WHERE { ?locality rdf:type y2geoo:OSM_locality ; geo:hasGeometry ?localityGeometry . ?localityGeometry geo:asWKT ?localityWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forestGeometry . ?forestGeometry geo:asWKT ?forestWKT FILTER geof:sfTouches(?localityWKT, ?forestWKT) }
localities 2
How many municipalities have at least one beach?
SELECT (COUNT(DISTINCT ?municipality) AS ?muns) WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
muns 29
What is the number of municipalities that contain one or more canals?
SELECT (COUNT(DISTINCT ?municipality) AS ?muns) WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
muns 1
How many cities are north of streams, in Wales?
SELECT (COUNT(DISTINCT ?county) AS ?cities) WHERE { yago:Wales geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?county rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?lake rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER ( ( geof:sfContains(?oWKT, ?lWKT) && geof:sfContains(?oWKT, ?lcnWKT) ) && strdf:above(?lcnWKT, ?lWKT) ) }
cities 0
How many lakes are inside forests?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forestGeom . ?forestGeom geo:asWKT ?forestWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?lakeWKT FILTER geof:sfWithin(?lakeWKT, ?forestWKT) }
lakes 116
How many rivers are on islands in Greece?
SELECT (COUNT(DISTINCT ?river) AS ?rivers) WHERE { yago:Greece geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?islandGeom . ?islandGeom geo:asWKT ?xWKT . ?river rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?riverGeom . ?riverGeom geo:asWKT ?yWKT FILTER ( geof:sfContains(?oWKT, ?xWKT) && geof:sfWithin(?yWKT, ?xWKT) ) }
rivers 8
What is the total number of villages that are inside lakes in England?
SELECT (COUNT(DISTINCT ?village) AS ?villages) WHERE { yago:England geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?villageGeom . ?villageGeom geo:asWKT ?xWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?yWKT FILTER ( geof:sfContains(?oWKT, ?yWKT) && geof:sfContains(?yWKT, ?xWKT) ) }
villages 0
How many beaches are in regions in Greece?
SELECT (COUNT(DISTINCT ?beach) AS ?beaches) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT . yago:Greece geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT FILTER geof:sfWithin(?x2WKT, ?oWKT) FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
beaches 29
How many parks exist in English counties?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
parks 27
How many nature reserves are in rural areas?
SELECT (COUNT(DISTINCT ?nature_reserve) AS ?reserves) WHERE { ?nature_reserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?rural_area rdf:type y2geoo:OSI_Rural_Area ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
reserves 1
How many Greek regional units contain islands?
SELECT (COUNT(DISTINCT ?ru) AS ?rus) WHERE { ?ru rdf:type y2geoo:GAG_RegionalUnit ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 FILTER geof:sfContains(?wkt1, ?wkt2) }
rus 16
How many rivers cross Irish townlands in County Kildare?
SELECT (COUNT(DISTINCT ?river) AS ?rivers) WHERE { ?river rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 . ?county rdf:type y2geoo:OSI_Townland ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 . yago:County_Kildare geo:hasGeometry ?kildare_geo . ?kildare_geo geo:asWKT ?kildare_geoWKT FILTER ( ( geof:sfWithin(?wkt1, ?kildare_geoWKT) && geof:sfWithin(?wkt2, ?kildare_geoWKT) ) && geof:sfCrosses(?wkt1, ?wkt2) ) }
rivers 6
How many cities intersect with beaches in Thessaly?
SELECT (COUNT(DISTINCT ?city) AS ?cities) WHERE { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?cWKT . ?park rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?bWKT . yago:Thessaly geo:hasGeometry ?tgeo . ?tgeo geo:asWKT ?tWKT FILTER ( ( geof:sfWithin(?cWKT, ?tWKT) && geof:sfWithin(?bWKT, ?tWKT) ) && geof:sfIntersects(?cWKT, ?bWKT) ) }
cities 0
How many streams cross a nature reserve in Oxford?
SELECT (COUNT(DISTINCT ?stream) AS ?streams) WHERE { ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?sWKT . ?reserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?rWKT . yago:Oxford geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT FILTER ( ( geof:sfWithin(?sWKT, ?eWKT) && geof:sfWithin(?rWKT, ?eWKT) ) && geof:sfCrosses(?sWKT, ?rWKT) ) }
streams 0
How many forests in County Longford have a lagoon inside them?
SELECT (COUNT(DISTINCT ?forest) AS ?forests) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?fWKT . ?lagoon rdf:type y2geoo:OSM_lagoon ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?lWKT . yago:County_Longford geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT FILTER ( geof:sfWithin(?fWKT, ?geoWKT) && geof:sfWithin(?lWKT, ?fWKT) ) }
forests 0
How many municipalities in Greece contain beaches?
SELECT (COUNT(DISTINCT ?municipality) AS ?municipalities) WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfContains(?lcnWKT, ?lWKT) }
municipalities 29
What is the total number of counties that border with forests in England?
SELECT (COUNT(DISTINCT ?county) AS ?counties) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } UNION { ?county rdf:type y2geoo:OS_County } ?county geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT . yago:England geo:hasGeometry ?eGeom . ?eGeom geo:asWKT ?eWKT FILTER ( geof:sfWithin(?lcWKT, ?eWKT) && strdf:touches(?lWKT, ?lcWKT) ) }
counties 0
How many parks have lakes in or as parts of them in County Mayo?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?geomP . ?geomP geo:asWKT ?lWKT_P . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomF . ?geomF geo:asWKT ?lWKT_F . yago:County_Mayo geo:hasGeometry ?geo1 . ?geo1 geo:asWKT ?geoWKT1 FILTER ( ( geof:sfWithin(?lWKT_F, ?geoWKT1) && geof:sfWithin(?lWKT_P, ?geoWKT1) ) && geof:sfIntersects(?lWKT_P, ?lWKT_F) ) }
parks 0
How many English counties have lakes inside them?
SELECT (COUNT(DISTINCT ?counties) AS ?countiesss) WHERE { ?county rdf:type y2geoo:OS_County . ?counties geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . yago:England geo:hasGeometry ?eGeom . ?eGeom geo:asWKT ?eWKT FILTER ( geof:sfWithin(?geoWKT, ?eWKT) && geof:sfWithin(?geoWKT1, ?geoWKT) ) }
countiesss 63
How many parks have streams crossing them in Plymouth?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . yago:Plymouth geo:hasGeometry ?o . ?o geo:asWKT ?WKT FILTER ( ( geof:sfWithin(?geoWKT, ?WKT) && geof:sfWithin(?geoWKT1, ?WKT) ) && geof:sfCrosses(?geoWKT1, ?geoWKT) ) }
parks 0
How many municipalities have a park in Attica?
SELECT (COUNT(DISTINCT ?island) AS ?islands) WHERE { ?island rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomI . ?geomI geo:asWKT ?iWKT . ?forest rdf:type y2geoo:OSM_park ; geo:hasGeometry ?geomB . ?geomB geo:asWKT ?bWKT . yago:geoentity_Apokentroméni_Dioíkisi_Attikís_8200474 geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT FILTER ( ( geof:sfWithin(?bWKT, ?cWKT) && geof:sfWithin(?iWKT, ?cWKT) ) && geof:sfWithin(?bWKT, ?iWKT) ) }
islands 0
How many towns have beaches in the Republic of Ireland?
SELECT (COUNT(DISTINCT ?town) AS ?towns) WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?geomT . ?geomT geo:asWKT ?fWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeom . ?iGeom geo:asWKT ?iWKT FILTER ( ( geof:sfWithin(?lWKT, ?iWKT) && geof:sfWithin(?fWKT, ?iWKT) ) && geof:sfTouches(?lWKT, ?fWKT) ) }
towns 0
How many towns have canals in Northern Ireland?
SELECT (COUNT(DISTINCT ?town) AS ?towns) WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?geomT . ?geomT geo:asWKT ?fWKT . ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT . yago:Northern_Ireland geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT FILTER ( ( geof:sfWithin(?lWKT, ?mWKT) && geof:sfWithin(?fWKT, ?mWKT) ) && geof:sfTouches(?lWKT, ?fWKT) ) }
towns 0
How many canals are there in the Republic of Ireland?
SELECT (COUNT(DISTINCT ?canal) AS ?numCanals) WHERE { ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeom . ?iGeom geo:asWKT ?iWKT FILTER geof:sfWithin(?cWKT, ?iWKT) }
numCanals 4
How many beaches are there in England and what is their total area?
SELECT (COUNT(DISTINCT ?beach) AS ?numBeaches) (SUM(strdf:area(?bWKT)) AS ?totalArea) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?bgeo . ?bgeo geo:asWKT ?bWKT . yago:England geo:hasGeometry ?eGeom . ?eGeom geo:asWKT ?eWKT FILTER geof:sfWithin(?bWKT, ?eWKT) }
numBeaches,totalArea 3,2.155678840002368E-6
How many beaches are in municipalities of Greece?
SELECT (COUNT(?beach) AS ?NoOfBeaches) WHERE { ?Municp rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?MunicpGeo . ?MunicpGeo geo:asWKT ?MunicpWKT . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?beachGeo . ?beachGeo geo:asWKT ?beachWKT FILTER geof:sfWithin(?beachWKT, ?MunicpWKT) }
NoOfBeaches 218
How many lakes are in Michigan?
SELECT (COUNT(?lake) AS ?numLakes) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?lakeWKT . yago:Michigan geo:hasGeometry ?mGeom . ?mGeom geo:asWKT ?mWKT FILTER geof:sfWithin(?lakeWKT, ?mWKT) }
numLakes 2017
How many lakes does Scotland have?
SELECT (COUNT(?lake) AS ?numLakes) WHERE { yago:Scotland geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) }
numLakes 66
How many lakes are there in the Republic of Ireland?
SELECT (COUNT(DISTINCT ?x) AS ?totalX) WHERE { ?x rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?cGeom . ?cGeom geo:asWKT ?cWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeom . ?iGeom geo:asWKT ?iWKT FILTER geof:sfWithin(?cWKT, ?iWKT) }
totalX 902
How many canals are there in Alabama?
SELECT (COUNT(?lake) AS ?canals) WHERE { yago:Alabama geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) }
canals 0
How many forests are there in California?
SELECT (COUNT(?lake) AS ?forests) WHERE { yago:California geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) }
forests 15
How many forests exist in Ireland?
SELECT (COUNT(?lake) AS ?forests) WHERE { yago:Republic_of_Ireland geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) }
forests 28