Question
stringlengths
13
126
Query
stringlengths
9
976
Answer
stringlengths
3
20.9M
How many counties are there in California?
SELECT (COUNT(?county) AS ?numCounties) WHERE { yago:California geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT FILTER geof:sfContains(?mWKT, ?cWKT) }
numCounties 58
How many villages does Northern Ireland have?
SELECT (COUNT(DISTINCT ?lake) AS ?totalX) WHERE { yago:Northern_Ireland geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_village ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) }
totalX 7
How many villages border other villages?
SELECT DISTINCT (COUNT(?village1) AS ?numVillages) WHERE { ?village1 rdf:type y2geoo:OSM_village ; geo:hasGeometry ?v1Geom . ?v1Geom geo:asWKT ?v1WKT . ?village2 rdf:type y2geoo:OSM_village ; geo:hasGeometry ?v2Geom . ?v2Geom geo:asWKT ?v2WKT FILTER ( ( ?village1 != ?village2 ) && geof:sfTouches(?v1WKT, ?v2WKT) ) }
numVillages 10576
How many islands does Ireland have?
SELECT (COUNT(?island) AS ?islands) WHERE { ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?islandGeom . ?islandGeom geo:asWKT ?islandWKT . yago:Republic_of_Ireland geo:hasGeometry ?irelandGeom . ?irelandGeom geo:asWKT ?irelandWKT FILTER geof:sfWithin(?islandWKT, ?irelandWKT) }
islands 54
How many parks does Greece have?
SELECT (COUNT(DISTINCT ?p) AS ?parks) WHERE { ?p rdf:type y2geoo:OSM_park ; geo:hasGeometry ?o . ?o geo:asWKT ?pWKT . yago:Greece geo:hasGeometry ?g . ?g geo:asWKT ?gWKT FILTER geof:sfWithin(?pWKT, ?gWKT) }
parks 7
What is the total area of lakes in the state of Texas?
SELECT (SUM(?lakeArea) AS ?oSum) WHERE { { SELECT (strdf:area(?lakeWKT) AS ?lakeArea) WHERE { yago:Texas 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 6.465682141949049E-2
How many lakes do Irish counties have, if any?
SELECT DISTINCT ?county (COUNT(?lake) AS ?lake_count) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT . yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT FILTER ( geof:sfWithin(?lcWKT, ?irlWKT) && geof:sfIntersects(?lWKT, ?lcWKT) ) } GROUP BY ?county
county,lake_count http://yago-knowledge.org/resource/County_Tipperary,10 http://yago-knowledge.org/resource/County_Westmeath,17 http://yago-knowledge.org/resource/County_Roscommon,26 http://yago-knowledge.org/resource/Kilkenny,1 http://yago-knowledge.org/resource/County_Longford,3 http://yago-knowledge.org/resource/County_Offaly,5
How many lakeside forests are there?
SELECT (COUNT(DISTINCT ?village) AS ?villages) WHERE { ?village rdf:type y2geoo:OSM_forest ; 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 36
How many canals run through 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_canal ; geo:hasGeometry ?geoS . ?geoS geo:asWKT ?sWKT FILTER geof:sfCrosses(?sWKT, ?fWKT) }
streams 2
How many cities have bays?
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_bay ; geo:hasGeometry ?geoB . ?geoB geo:asWKT ?bWKT FILTER geof:sfWithin(?bWKT, ?cWKT) }
cities 10
How many towns intersect with woodlands?
SELECT (COUNT(DISTINCT ?island) AS ?islands) WHERE { ?region rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?island rdf:type y2geoo:OSM_town ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT1, ?WKT) }
islands 99
How many english districts contain lakes?
SELECT (COUNT(DISTINCT ?district) AS ?districts) WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?park rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER ( geof:sfWithin(?WKT, ?eWKT) && geof:sfContains(?WKT, ?WKT1) ) }
districts 5
What is the number of forests that intersect with lakes?
SELECT (COUNT(DISTINCT ?townland) AS ?forests) WHERE { ?townland rdf:type y2geoo:OSM_forest ; 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) }
forests 60
What is the number of forests that are adjacent 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 inside cities?
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
How many nature reserves are located in cities?
SELECT (COUNT(DISTINCT ?nature_reserve) AS ?nature_reserves) WHERE { ?nature_reserve rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?c rdf:type y2geoo:OSM_city ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT, ?geoWKT2) }
nature_reserves 4
How many beaches border nature reserves?
SELECT (COUNT(DISTINCT ?beach) AS ?beaches) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?nr rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfTouches(?geoWKT, ?geoWKT2) }
beaches 1
How many lakes intersect forests?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?g . ?g geo:asWKT ?geoWKT . ?f rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?geoWKT2 FILTER geof:sfIntersects(?geoWKT, ?geoWKT2) }
lakes 259
What is the total amount of streams that border forests?
SELECT (COUNT(DISTINCT ?x) AS ?streams) WHERE { ?x rdf:type y2geoo:OSM_stream ; 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) }
streams 10
How many canals intersect with lakes in the United States?
SELECT (COUNT(DISTINCT ?x) AS ?streams) WHERE { yago:United_States 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_lake ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT FILTER ( geof:sfContains(?oWKT, ?yWKT) && geof:sfIntersects(?xWKT, ?yWKT) ) }
streams 11
How many canals in England are west of villages in Camrbridgeshire?
SELECT (COUNT(DISTINCT ?x) AS ?canals) WHERE { yago:Cambridge geo:hasGeometry ?oGeo . ?oGeo geo:asWKT ?oWKT . yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?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(?eWKT, ?xWKT) && geof:sfContains(?oWKT, ?yWKT) ) && strdf:left(?xWKT, ?yWKT) ) }
canals 27
How many lakes overlap with Greek municipalities?
SELECT (COUNT(DISTINCT ?Lake) AS ?lakes) WHERE { ?m rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?MDGeo . ?MDGeo geo:asWKT ?MDPolygon . ?Lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?LakeGeo . ?LakeGeo geo:asWKT ?LakePolygon . yago:Greece geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT FILTER ( geof:sfWithin(?MDPolygon, ?geoWKT) && geof:sfOverlaps(?MDPolygon, ?LakePolygon) ) }
lakes 5
What is the total count of villages located on the border of 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 parks contain streams?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?parkGeometry . ?parkGeometry geo:asWKT ?parkWKT . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?streamGeometry . ?streamGeometry geo:asWKT ?streamWKT FILTER geof:sfContains(?parkWKT, ?streamWKT) }
parks 182
How many lakes intersect canals?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { ?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:sfIntersects(?lakeWKT, ?canalWKT) }
lakes 53
What is the number of regions that have at least one canal in Greece?
SELECT (COUNT(DISTINCT ?r) AS ?rs) WHERE { ?r rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?c rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
rs 1
What is the number of regions that contain one or more streams?
SELECT (COUNT(DISTINCT ?r) AS ?rs) WHERE { ?r rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?s rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) }
rs 12
How many cities are adjacent to lakes?
SELECT (COUNT(DISTINCT ?county) AS ?cities) WHERE { ?county rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfTouches(?lcnWKT, ?lWKT) }
cities 18
How many rivers are inside forests?
SELECT (COUNT(DISTINCT ?r) AS ?rs) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forestGeom . ?forestGeom geo:asWKT ?forestWKT . ?r rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?lakeWKT FILTER geof:sfWithin(?lakeWKT, ?forestWKT) }
rs 303
How many beaches are in Greek municipalities?
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_Municipality ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
beaches 97
How many parks are there in Irish Baronies?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?county rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER geof:sfWithin(?x1WKT, ?x2WKT) }
parks 1
How many lakes are in townlands in Ireland?
SELECT (COUNT(DISTINCT ?lake) AS ?lakes) WHERE { yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?x1Geo . ?x1Geo geo:asWKT ?x1WKT . ?t rdf:type y2geoo:OSI_Townland ; geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?x2WKT FILTER ( geof:sfWithin(?x2WKT, ?irlWKT) && geof:sfWithin(?x1WKT, ?x2WKT) ) }
lakes 167
How many Greek regions contain islands and forests?
SELECT (COUNT(DISTINCT ?r) AS ?rs) WHERE { ?r rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 . ?f rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?g3 . ?g3 geo:asWKT ?wkt3 FILTER geof:sfContains(?wkt1, ?wkt2) FILTER geof:sfContains(?wkt1, ?wkt3) }
rs 0
How many rivers cross baronies?
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_Barony ; geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 FILTER geof:sfCrosses(?wkt1, ?wkt2) }
rivers 46
How many streams interect beaches and lagoons?
SELECT (COUNT(DISTINCT ?stream) AS ?streams) WHERE { ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?cWKT . ?park rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?bWKT . ?l rdf:type y2geoo:OSM_lagoon ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?lWKT FILTER geof:sfIntersects(?cWKT, ?bWKT) FILTER geof:sfIntersects(?cWKT, ?lWKT) }
streams 0
How many streams are within a nature reserve?
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 FILTER geof:sfWithin(?sWKT, ?rWKT) }
streams 78
How many parks contain a lagoon within them?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?fWKT . ?lagoon rdf:type y2geoo:OSM_lagoon ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?fWKT) }
parks 1
How many municipalities contain canals?
SELECT (COUNT(DISTINCT ?municipality) AS ?municipalities) WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?l rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfContains(?lcnWKT, ?lWKT) }
municipalities 1
What is the total number of British counties that contain streams?
SELECT (COUNT(DISTINCT ?county) AS ?counties) WHERE { ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcWKT . ?l rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfContains(?lcWKT, ?lWKT) }
counties 23
How many British counties have lakes and canals in or as parts of them?
SELECT (COUNT(DISTINCT ?park) AS ?parks) WHERE { ?park rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomP . ?geomP geo:asWKT ?lWKT_P . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomF . ?geomF geo:asWKT ?lWKT_F . ?lagoon rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT_L FILTER geof:sfIntersects(?lWKT_P, ?lWKT_F) FILTER geof:sfIntersects(?lWKT_P, ?lWKT_L) }
parks 1
How many baronies have parks inside them?
SELECT (COUNT(DISTINCT ?counties) AS ?countiesss) WHERE { ?counties rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 FILTER geof:sfWithin(?geoWKT1, ?geoWKT) }
countiesss 1
What is the number of people that live in the Municipalities of Central Greece?
SELECT (SUM(DISTINCT ?pop) AS ?people) WHERE { ?x rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?xGeom ; y2geoo:hasGAG_Population ?pop . ?xGeom geo:asWKT ?xWKT . <http://yago-knowledge.org/resource/Central_Greece_(region)> geo:hasGeometry ?o1 . ?o1 geo:asWKT ?iWKT FILTER geof:sfWithin(?xWKT, ?iWKT) }
people 570922
How many counties does Texas have?
SELECT (COUNT(?county) AS ?counties) WHERE { yago:Texas geo:hasGeometry ?tGeo . ?tGeo geo:asWKT ?tWKT . ?county rdf:type y2geoo:GADM_3rdOrder_AdministrativeUnit ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?tWKT) }
counties 348
How many municipalities does Greece have?
SELECT (COUNT(DISTINCT ?muni) AS ?count) WHERE { ?muni rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geom . ?geom geo:asWKT ?wkt . yago:Greece geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT FILTER geof:sfWithin(?wkt, ?geoWKT) }
count 108
How many Scottish lakes are there?
SELECT (COUNT(?slake) AS ?lakes) WHERE { yago:Scotland geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT . ?slake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?slGeo . ?slGeo geo:asWKT ?slWKT FILTER geof:sfWithin(?slWKT, ?sWKT) }
lakes 66
How many beaches are located in municipalities with less than 100000 inhabitants in Greece?
SELECT (COUNT(DISTINCT ?park) AS ?parkcount) WHERE { ?park rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?park_geom . ?park_geom geo:asWKT ?park_wkt . ?region rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?pop FILTER ( ?pop < 100000 ) ?region geo:hasGeometry ?region_geom . ?region_geom geo:asWKT ?region_wkt FILTER geof:sfWithin(?park_wkt, ?region_wkt) }
parkcount 94
Give me 5 islands that have at least three lakes?
SELECT ?island WHERE { ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?island_geom . ?island_geom geo:asWKT ?island_wkt { SELECT ?island (COUNT(?lake) AS ?lake_count) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lake_geom . ?lake_geom geo:asWKT ?lake_wkt . ?lake geo:sfWithin ?island } GROUP BY ?island } FILTER ( ?lake_count >= 3 ) } LIMIT 5
island http://yago-knowledge.org/resource/Ireland's_Eye http://yago-knowledge.org/resource/Vancouver_Island http://yago-knowledge.org/resource/geoentity_Senja_9063739 http://yago-knowledge.org/resource/Tukarak_Island http://yago-knowledge.org/resource/geoentity_Ósland_2627780
How many American States have no lakes and no canals?
SELECT (COUNT(?state) AS ?count) WHERE { ?state rdf:type yago:United_States FILTER NOT EXISTS { ?state geo:hasGeometry ?stateGeometry . ?stateGeometry geo:asWKT ?stateWKT { ?lake rdf:type yago:OSM_lake ; geo:hasGeometry ?lakeGeometry . ?lakeGeometry geo:asWKT ?lakeWKT FILTER geof:sfWithin(?lakeWKT, ?stateWKT) } UNION { ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?canalGeometry . ?canalGeometry geo:asWKT ?canalWKT FILTER geof:sfWithin(?canalWKT, ?stateWKT) } } }
count 0
What is the average US county population?
SELECT (AVG(xsd:float(?population)) AS ?avg) WHERE { ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?c . ?c geo:asWKT ?cWKT . yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?county y2geoo:POPULATION ?population FILTER geof:sfWithin(?cWKT, ?usWKT) }
avg 75319.98
How many islands does the UK have?
SELECT (COUNT(?island) AS ?islands) WHERE { yago:United_Kingdom geo:hasGeometry ?ukGeo . ?ukGeo geo:asWKT ?ukWKT . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT FILTER geof:sfWithin(?iWKT, ?ukWKT) }
islands 49
What is the average size of a lake in England?
SELECT (AVG(strdf:area(?cWKT)) AS ?averageArea) WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?canal rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?eWKT) }
averageArea 2.694917338059127E-4
Does Greece have more towns than Ireland?
ASK WHERE { { SELECT (COUNT(?gtown) AS ?greekTowns) (COUNT(?itown) AS ?irishTowns) WHERE { y2geor:Greece geo:hasGeometry ?gGeo . ?gGeo geo:asWKT ?gWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT . ?gtown rdf:type y2geoo:OSM_town ; geo:hasGeometry ?gtGeo . ?gtGeo geo:asWKT ?gtWKT . ?itown rdf:type y2geoo:OSM_town ; geo:hasGeometry ?itGeo . ?itGeo geo:asWKT ?itWKT FILTER ( geof:sfWithin(?itWKT, ?iWKT) && geof:sfWithin(?gtWKT, ?gWKT) ) } } FILTER ( ?greekTowns > ?irishTowns ) }
{'head': {}, 'boolean': False}
How many islands have no towns, villages or cities?
SELECT (COUNT(?island) AS ?islands) WHERE { ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT FILTER NOT EXISTS { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?tGeo . ?tGeo geo:asWKT ?tWKT FILTER geof:sfWithin(?tWKT, ?iWKT) } FILTER NOT EXISTS { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?iWKT) } FILTER NOT EXISTS { ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?vGeo . ?vGeo geo:asWKT ?vWKT FILTER geof:sfWithin(?vWKT, ?iWKT) } }
islands 21672
How many constituent countries make up the UK?
SELECT (COUNT(DISTINCT ?country) AS ?countries) WHERE { yago:United_Kingdom geo:hasGeometry ?ukGeo . ?ukGeo geo:asWKT ?ukWKT . ?country rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?ukWKT) }
countries 4
How much of Greece is covered by lakes?
SELECT (( ( ?lake_area_sum / ?greece_area ) * 100 ) AS ?percentage) WHERE { { SELECT (SUM(?lake_area) AS ?lake_area_sum) ?greece_area WHERE { { SELECT (strdf:area(?lake_wkt) AS ?lake_area) (strdf:area(?greece_wkt) AS ?greece_area) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lake_geom . ?lake_geom geo:asWKT ?lake_wkt . yago:Greece geo:hasGeometry ?greece_geom . ?greece_geom geo:asWKT ?greece_wkt FILTER geof:sfWithin(?lake_wkt, ?greece_wkt) } } } GROUP BY ?greece_area } }
percentage 2.5478817627788347E-1
What percentage of Thrace is covered by lakes?
SELECT (( ( ?lake_area_sum / ?greece_area ) * 100 ) AS ?percentage) WHERE { { SELECT (SUM(?lake_area) AS ?lake_area_sum) ?greece_area WHERE { { SELECT (strdf:area(?lake_wkt) AS ?lake_area) (strdf:area(?greece_wkt) AS ?greece_area) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lake_geom . ?lake_geom geo:asWKT ?lake_wkt . yago:geoentity_Eastern_Macedonia_and_Thrace_6697803 geo:hasGeometry ?greece_geom . ?greece_geom geo:asWKT ?greece_wkt FILTER geof:sfWithin(?lake_wkt, ?greece_wkt) } } } GROUP BY ?greece_area } }
percentage 4.46718353467407E-1
Does Harris County in Texas have more inhabitants than all its neighboring counties?
ASK WHERE { { SELECT (SUM(xsd:double(?pop)) AS ?total) WHERE { <http://yago-knowledge.org/resource/yago:Harris_County,_Texas> geo:hasGeometry ?tGeo . ?tGeo geo:asWKT ?tWKT . ?county y2geoo:hasGADM_Description "County" ; y2geoo:POPULATION ?pop ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER ( ( ?county != <http://yago-knowledge.org/resource/yago:Harris_County,_Texas> ) && geof:sfTouches(?cWKT, ?tWKT) ) } } <http://yago-knowledge.org/resource/yago:Harris_County,_Texas> y2geoo:POPULATION ?popTexas FILTER ( xsd:double(?popTexas) > ?total ) }
{'head': {}, 'boolean': False}
Which is the most populated municipality in Greece?
SELECT ?m WHERE { ?m rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?pop } ORDER BY DESC(?pop) LIMIT 1
m http://yago-knowledge.org/resource/geoentity_Dimos_Athens_8133876
Which forest is nearest to the city of Belfast?
SELECT DISTINCT ?forest WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fg . ?fg geo:asWKT ?fw . yago:geoentity_City_of_Belfast_3333223 geo:hasGeometry ?x2Geo . ?x2Geo geo:asWKT ?cw } ORDER BY geof:distance(?fw, ?cw, uom:metre) LIMIT 1
forest http://yago-knowledge.org/resource/geoentity_Rossmore_Forest_Park_3310609
Which lake is closest to the municipality of Athens?
SELECT DISTINCT ?lake WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lake_geom . ?lake_geom geo:asWKT ?lake_wkt . yago:geoentity_Dimos_Athens_8133876 geo:hasGeometry ?o . ?o geo:asWKT ?muni_wkt } ORDER BY geof:distance(?muni_wkt, ?lake_wkt, uom:metre) LIMIT 1
lake http://yago-knowledge.org/resource/geoentity_Límni_Koumoundoúrou_259065
Which Irish county has the fewest townlands?
SELECT DISTINCT ?county (COUNT(?town) AS ?num) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?town rdf:type y2geoo:OSI_Townland . ?county geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . ?town geo:hasGeometry ?geot . ?geot geo:asWKT ?tWKT FILTER geof:sfWithin(?tWKT, ?cWKT) } GROUP BY ?county ORDER BY ?num LIMIT 1
county,num http://yago-knowledge.org/resource/Dún_Laoghaire–Rathdown,103
Find the 3 least populated municipalities of Greece.
SELECT DISTINCT ?island WHERE { ?island rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?pop ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 . yago:Greece geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 FILTER geof:sfWithin(?wkt1, ?wkt2) } ORDER BY ?pop LIMIT 3
island http://yago-knowledge.org/resource/geoentity_Dimos_Anogeia_8133943 http://yago-knowledge.org/resource/Fyli http://yago-knowledge.org/resource/geoentity_Dimos_Oropedio_Lasithiou_8133925
Which are the 10 smallest towns in the island of Ireland?
SELECT DISTINCT ?town (strdf:area(?wkt1) AS ?totalArea) WHERE { ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 { yago:Republic_of_Ireland geo:hasGeometry ?g2 } UNION { yago:Northern_Ireland geo:hasGeometry ?g2 } ?g2 geo:asWKT ?wkt2 FILTER geof:sfWithin(?wkt1, ?wkt2) } ORDER BY ?totalArea LIMIT 10
town,totalArea http://yago-knowledge.org/resource/Lurgan,4.9497904326464465E-5 http://yago-knowledge.org/resource/Crossmaglen,7.833251374001895E-5 http://yago-knowledge.org/resource/Waringsford,1.8640652615499774E-4 "http://yago-knowledge.org/resource/Moira,_County_Down",2.0235903580000415E-4 "http://yago-knowledge.org/resource/Moira,_County_Down",5.472995712064352E-4 http://yago-knowledge.org/resource/Waringsford,1.6387830070554014E-3 http://yago-knowledge.org/resource/Lurgan,1.7978699630499658E-3 http://yago-knowledge.org/resource/Crossmaglen,5.001286920758198E-3
Which region of Greece has the most inhabitants?
SELECT DISTINCT ?region WHERE { ?region rdf:type y2geoo:GAG_Region ; y2geoo:hasGAG_Population ?population } ORDER BY DESC(?population) LIMIT 1
region http://yago-knowledge.org/resource/Attica_(region)
Which county in the British Isles is the smallest by area ?
SELECT DISTINCT ?county (strdf:area(?cWKT) AS ?totalArea) WHERE { { ?county rdf:type y2geoo:OS_County } UNION { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?geoC . ?geoC geo:asWKT ?cWKT } ORDER BY ?totalArea LIMIT 1
county,totalArea http://yago-knowledge.org/resource/Dún_Laoghaire–Rathdown,1.707073514495743E-2
Which 10 municipalities west of Athens have the lowest population?
SELECT DISTINCT ?municipality WHERE { yago:geoentity_Dimos_Athens_8133876 geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?municipality rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?population ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER strdf:left(?WKT1, ?WKT) } ORDER BY ?population LIMIT 10
municipality http://yago-knowledge.org/resource/geoentity_Dimos_Skiathos_8133939 http://yago-knowledge.org/resource/Elafonisos http://yago-knowledge.org/resource/geoentity_Dimos_Agkistri_8133874 http://yago-knowledge.org/resource/Meganisi http://yago-knowledge.org/resource/geoentity_Dimos_Paxoi_8133911 http://yago-knowledge.org/resource/Prespes http://yago-knowledge.org/resource/Perama http://yago-knowledge.org/resource/geoentity_Dimos_Hydra_8133769 http://yago-knowledge.org/resource/geoentity_Dimos_Ithaca_8133849 http://yago-knowledge.org/resource/geoentity_Kythira_8133702
What is the smallest forest area that intersects with Essex?
SELECT ?forest (strdf:area(?WKT1) AS ?area1) WHERE { yago:Essex geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT1, ?WKT) } ORDER BY ?area1 LIMIT 1
forest,area1 http://yago-knowledge.org/resource/geoentity_Pedlars_Wood_9883765,1.8218561900008377E-6
Which are the two biggest baronies that intersect with Dublin?
SELECT ?barony WHERE { yago:Dublin geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?barony rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT1, ?WKT) } ORDER BY DESC(strdf:area(?WKT1)) LIMIT 2
barony http://yago-knowledge.org/resource/geoentity_Dubber_Cross_7838912 http://yago-knowledge.org/resource/geoentity_Hartstown_3315332
Which is the largest forest by area in England?
SELECT DISTINCT ?forest (strdf:area(?fWKT) AS ?totalArea) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fGeom . ?fGeom geo:asWKT ?fWKT . yago:England geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?fWKT, ?lcWKT) } ORDER BY DESC(?totalArea) LIMIT 1
forest,totalArea http://yago-knowledge.org/resource/Savernake_Forest,1.5999443545550666E-3
Which is the largest park by area in Dublin?
SELECT DISTINCT ?park (strdf:area(?pWKT) AS ?totalArea) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?pGeom . ?pGeom geo:asWKT ?pWKT . yago:Dublin geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?pWKT, ?lcWKT) } ORDER BY DESC(?totalArea) LIMIT 1
park,totalArea http://yago-knowledge.org/resource/geoentity_Ringsend_Park_3289060,1.3450117824993684E-5
Which is the smallest beach by area in Naxos?
SELECT DISTINCT ?beach (strdf:area(?bWKT) AS ?totalArea) WHERE { ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?bGeom . ?bGeom geo:asWKT ?bWKT . yago:Naxos geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?bWKT, ?lcWKT) } ORDER BY ASC(?totalArea) LIMIT 1
beach,totalArea http://yago-knowledge.org/resource/geoentity_Orkos_bay_7731772,1.82710080000207E-7
Which region that borders Thessaly has the largest population ?
SELECT DISTINCT ?rg ?pop WHERE { yago:Thessaly geo:hasGeometry ?tgeo . ?tgeo geo:asWKT ?tWKT . ?rg rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?rggeo . ?rggeo geo:asWKT ?rgWKT . ?rg y2geoo:hasGAG_Population ?pop FILTER geof:sfTouches(?rgWKT, ?tWKT) } ORDER BY DESC(?pop) LIMIT 1
rg,pop http://yago-knowledge.org/resource/Central_Macedonia,1759533
What is the smallest metropolitan district that borders Manchester?
SELECT DISTINCT ?Mdistrict (strdf:area(?cWKT) AS ?area) WHERE { yago:Manchester geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT . ?Mdistrict rdf:type y2geoo:OS_MetropolitanDistrict ; geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT FILTER geof:sfTouches(?eWKT, ?cWKT) } ORDER BY ?area LIMIT 1
Mdistrict,area http://yago-knowledge.org/resource/City_of_Salford,1.241623054163627E-2
Which is the biggest lake in County Kerry ?
SELECT DISTINCT ?lake (strdf:area(?sWKT) AS ?area) WHERE { yago:County_Kerry geo:hasGeometry ?lgeo . ?lgeo geo:asWKT ?lWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?sgeo . ?sgeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?lWKT) } ORDER BY DESC(?area) LIMIT 1
lake,area http://yago-knowledge.org/resource/Lough_Leane,2.575920421759999E-3
Which 3 municipalities in Epirus have the biggest population?
SELECT DISTINCT ?municipality WHERE { <http://yago-knowledge.org/resource/Epirus_(region)> geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WKT1 . ?municipality rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WKT2 FILTER geof:sfWithin(?WKT2, ?WKT1) ?municipality y2geoo:hasGAG_Population ?population } ORDER BY DESC(?population) LIMIT 3
municipality http://yago-knowledge.org/resource/geoentity_Dimos_Ioánnina_7303595 "http://yago-knowledge.org/resource/Arta,_Greece" http://yago-knowledge.org/resource/geoentity_Dimos_Preveza_8133743
Which is the biggest district that borders Greater London?
SELECT ?district WHERE { yago:Greater_London geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WKT1 . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WKT2 FILTER geof:sfTouches(?WKT2, ?WKT1) } ORDER BY DESC(strdf:area(?WKT2)) LIMIT 1
district http://yago-knowledge.org/resource/geoentity_Sevenoaks_District_6945814
Which is the biggest forest in County Wexford?
SELECT ?forest WHERE { yago:County_Wexford geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WKT1 . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WKT2 FILTER geof:sfWithin(?WKT2, ?WKT1) } ORDER BY DESC(strdf:area(?WKT2)) LIMIT 1
forest http://yago-knowledge.org/resource/geoentity_Killoughrum_Forest_2963306
What are the largest parks that belong to counties north of Budgebury Forest?
SELECT DISTINCT ?locality WHERE { yago:Bedgebury_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:below(?for_geoWKT, ?county_geoWKT) ?locality rdf:type y2geoo:OSM_park ; geo:hasGeometry ?locality_geo . ?locality_geo geo:asWKT ?locality_geoWKT FILTER geof:sfWithin(?locality_geoWKT, ?county_geoWKT) } ORDER BY DESC(?parkarea) LIMIT 1
locality http://yago-knowledge.org/resource/geoentity_Locko_Park_9319007
Which municipality bordering Agia Paraskevi has the largest population ?
SELECT DISTINCT ?dimos WHERE { yago:Agia_Paraskevi geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?dimos rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT . ?dimos y2geoo:hasGAG_Population ?pop FILTER geof:sfTouches(?geoWKT, ?cWKT) } ORDER BY DESC(?pop) LIMIT 1
dimos http://yago-knowledge.org/resource/Chalandri
Which county bordering the city of Cork has the largest area?
SELECT DISTINCT ?county (strdf:area(?cWKT) AS ?area) WHERE { yago:geoentity_Cork_City_7778678 geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT FILTER geof:sfTouches(?geoWKT, ?cWKT) } ORDER BY DESC(?area) LIMIT 1
county,area http://yago-knowledge.org/resource/County_Kerry,6.312628685863195E-1
Which village in Rhodes has the biggest population?
SELECT DISTINCT ?x ?property WHERE { yago:Rhodes geo:hasGeometry ?aGeo . ?aGeo geo:asWKT ?A . ?x rdf:type y2geoo:OSM_village ; y2geoo:hasGAG_Population ?property ; geo:hasGeometry ?bGeo . ?bGeo geo:asWKT ?B FILTER geof:sfWithin(?B, ?A) } ORDER BY ASC(?property) LIMIT 1
x,property http://yago-knowledge.org/resource/Afantou,1027
Which village in England has the largest area?
SELECT DISTINCT ?village (strdf:area(?cWKT) AS ?totalArea) WHERE { ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT . yago:England geo:hasGeometry ?geomE . ?geomE geo:asWKT ?eWKT FILTER geof:sfWithin(?cWKT, ?eWKT) } ORDER BY DESC(?totalArea) LIMIT 1
village,totalArea "http://yago-knowledge.org/resource/Welford,_Northamptonshire",1.3535902468662922E-2
Which park within Dublin is the smallest by area?
SELECT DISTINCT ?park (strdf:area(?cWKT) AS ?totalArea) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT . yago:Dublin geo:hasGeometry ?geomE . ?geomE geo:asWKT ?eWKT FILTER geof:sfWithin(?cWKT, ?eWKT) } ORDER BY ASC(?totalArea) LIMIT 1
park,totalArea http://yago-knowledge.org/resource/St_Stephen's_Green,1.2208139165001057E-5
Which is the largest region of Greece?
SELECT DISTINCT ?region (strdf:area(?rWKT) AS ?totalArea) WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?geomR . ?geomR geo:asWKT ?rWKT } ORDER BY DESC(?totalArea) LIMIT 1
region,totalArea http://yago-knowledge.org/resource/Peloponnese_(region),2.982366241634627E0
What are the top five largest counties by area in the United Kingdom that are located north of the City of London?
SELECT DISTINCT ?y (strdf:area(?yWKT) AS ?totalArea) WHERE { yago:United_Kingdom geo:hasGeometry ?uGeom . ?uGeom geo:asWKT ?uWKT . ?y rdf:type y2geoo:OS_County ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT . yago:geoentity_City_of_London_2643744 geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT FILTER geof:sfWithin(?yWKT, ?uWKT) FILTER strdf:above(?yWKT, ?xWKT) } ORDER BY DESC(?totalArea) LIMIT 5
y,totalArea http://yago-knowledge.org/resource/North_Yorkshire,1.1090863106712205E0 http://yago-knowledge.org/resource/North_Yorkshire,1.1087838744621135E0 http://yago-knowledge.org/resource/Cumbria,9.984490290263256E-1 http://yago-knowledge.org/resource/Cumbria,9.392470081072689E-1 http://yago-knowledge.org/resource/Norfolk,7.316367418077454E-1
Which are the 3 most populated municipalities of Crete?
SELECT DISTINCT ?Dimos WHERE { yago:Crete geo:hasGeometry ?CreteGeo . ?CreteGeo geo:asWKT ?CreteWKT . ?Dimos rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?pop ; geo:hasGeometry ?DimosGeo . ?DimosGeo geo:asWKT ?DimosWKT FILTER geof:sfWithin(?DimosWKT, ?CreteWKT) } ORDER BY DESC(?pop) LIMIT 3
Dimos http://yago-knowledge.org/resource/geoentity_Dimos_Heraklion_8133920 http://yago-knowledge.org/resource/Malevizi http://yago-knowledge.org/resource/geoentity_Dimos_Siteia_8133948
Which is the biggest park in Dublin?
SELECT ?park (strdf:area(?lWKT) AS ?area) 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) } ORDER BY DESC(?area) LIMIT 1
park,area http://yago-knowledge.org/resource/geoentity_Ringsend_Park_3289060,1.3450117824993684E-5
Show me the biggest park in Liverpool
SELECT ?park (strdf:area(?pWKT) AS ?parkArea) WHERE { yago:Liverpool geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?lWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?pWKT FILTER geof:sfWithin(?pWKT, ?lWKT) } ORDER BY DESC(?parkArea) LIMIT 1
park,parkArea http://yago-knowledge.org/resource/Sefton_Park,1.1577826293501063E-4
Which is the largest Greek region?
SELECT DISTINCT ?region (strdf:area(?geoWKT) AS ?regionArea) WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT } ORDER BY DESC(?regionArea) LIMIT 1
region,regionArea http://yago-knowledge.org/resource/Peloponnese_(region),2.982366241634627E0
Which is the least populated regional unit that belongs to the South Aegean administrative region and intersects with beaches?
SELECT ?a ?forest WHERE { ?a geo:hasGeometry ?dhmo_geo . ?dhmo_geo geo:asWKT ?dhmo_geoWKT . ?a y2geoo:hasGAG_Population ?pop . ?forest rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT . yago:South_Aegean geo:hasGeometry ?o1 . ?o1 geo:asWKT ?gWKT FILTER ( geof:sfWithin(?dhmo_geoWKT, ?gWKT) && geof:sfWithin(?forest_geoWKT, ?dhmo_geoWKT) ) } ORDER BY ASC(?pop) LIMIT 1
a,forest http://yago-knowledge.org/resource/geoentity_Dimos_Milos_8133681,http://yago-knowledge.org/resource/geoentity_Pláthiena_9212573
Which rural area south of Longford has the smallest forest?
SELECT DISTINCT ?rural_areas (strdf:area(?geoWKT) AS ?totalArea) WHERE { yago:County_Longford geo:hasGeometry ?Suffolk_geo . ?Suffolk_geo geo:asWKT ?Suffolk_geoWKT . ?rural_areas rdf:type y2geoo:OSI_Rural_Area ; geo:hasGeometry ?rural_areas_geo . ?rural_areas_geo geo:asWKT ?rural_areas_geoWKT FILTER strdf:below(?rural_areas_geoWKT, ?Suffolk_geoWKT) ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT2, ?rural_areas_geoWKT) } ORDER BY ASC(?totalArea) LIMIT 1
rural_areas,totalArea http://kr.di.uoa.gr/yago2geo/resource/osientity_2AE19629445713A3E055000000000001,
Which county of England has the largest forest?
SELECT DISTINCT ?county (strdf:area(?geoWKT) AS ?totalArea) WHERE { yago:England geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT FILTER geof:sfContains(?eWKT, ?cWKT) ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT2, ?cWKT) } ORDER BY DESC(?totalArea) LIMIT 1
county,totalArea http://yago-knowledge.org/resource/Derbyshire,
Which district of the United Kingdom covers the biggest area?
SELECT DISTINCT ?district (strdf:area(?geoWKT) AS ?totalArea) WHERE { yago:United_Kingdom geo:hasGeometry ?uGeom . ?uGeom geo:asWKT ?uWKT . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT FILTER geof:sfWithin(?geoWKT, ?uGeom) } ORDER BY DESC(?totalArea) LIMIT 1
district,totalArea http://yago-knowledge.org/resource/geoentity_Eden_District_7290666,3.000527316050404E-1
Which is the most populated region in Greece?
SELECT DISTINCT ?region WHERE { ?region rdf:type y2geoo:GAG_Region ; y2geoo:hasGAG_Population ?population ; geo:hasGeometry ?geo1 . ?geo1 geo:asWKT ?g1WKT . yago:Greece geo:hasGeometry ?geo . ?geo geo:asWKT ?gWKT FILTER geof:sfWithin(?g1WKT, ?gWKT) } ORDER BY DESC(?population) LIMIT 1
region http://yago-knowledge.org/resource/Attica_(region)
Which lake of the municipality of Amintaio covers the largest area?
SELECT DISTINCT ?l WHERE { yago:geoentity_Dimos_Amyntaio_8133871 geo:hasGeometry ?cg . ?cg geo:asWKT ?cw . ?l rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lg . ?lg geo:asWKT ?lw FILTER geof:sfWithin(?lw, ?cw) } ORDER BY DESC(strdf:area(?lw)) LIMIT 1
l http://yago-knowledge.org/resource/geoentity_Límni_Zazarí_798442
Which is the largest forest in Norfolk?
SELECT DISTINCT ?l WHERE { yago:Norfolk geo:hasGeometry ?mg . ?mg geo:asWKT ?mw . ?l rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?lg . ?lg geo:asWKT ?lw FILTER geof:sfWithin(?lw, ?mw) } ORDER BY DESC(strdf:area(?lw)) LIMIT 1
l http://yago-knowledge.org/resource/geoentity_Holkham_Meals_2646756
Which civil parish bordering Killinane occupies the smallest area?
SELECT DISTINCT ?x WHERE { ?x rdf:type y2geoo:OSI_Civil_Parish ; geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT . yago:geoentity_Kilkieran_3302356 geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT FILTER geof:sfTouches(?xWKT, ?yWKT) } ORDER BY ASC(strdf:area(?xWKT)) LIMIT 1
x http://kr.di.uoa.gr/yago2geo/resource/osientity_2AE1962941C213A3E055000000000001
Which is the most populated region of Greece?
SELECT ?region WHERE { ?region rdf:type y2geoo:GAG_Region ; y2geoo:hasGAG_Population ?p ; geo:hasGeometry ?geo1 . ?geo1 geo:asWKT ?g1WKT . yago:Greece geo:hasGeometry ?geo . ?geo geo:asWKT ?gWKT FILTER geof:sfWithin(?g1WKT, ?gWKT) } ORDER BY DESC(?p) LIMIT 1
region http://yago-knowledge.org/resource/Attica_(region)
Which region of Greece has the biggest area?
SELECT DISTINCT ?region (strdf:area(?geoWKT) AS ?regionArea) WHERE { ?region rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT } ORDER BY DESC(?regionArea) LIMIT 1
region,regionArea http://yago-knowledge.org/resource/Peloponnese_(region),2.982366241634627E0
How large is the largest county in Ireland?
SELECT DISTINCT (MAX(?area) AS ?maxArea) WHERE { { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT FILTER geof:sfWithin(?geoWKT, ?irlWKT) BIND(strdf:area(?geoWKT) AS ?area) }
maxArea 5.715421925604922E-1