Question
stringlengths 13
126
| Query
stringlengths 9
976
| Answer
stringlengths 3
20.9M
⌀ |
---|---|---|
Which is the smallest county of England? | SELECT DISTINCT ?county (strdf:area(?cWKT) AS ?cArea) WHERE { ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomC . ?geomC geo:asWKT ?cWKT . yago:England geo:hasGeometry ?geomW . ?geomW geo:asWKT ?wWKT FILTER geof:sfWithin(?cWKT, ?wWKT) } ORDER BY ?cArea LIMIT 1 | county,cArea
http://yago-knowledge.org/resource/North_Somerset,5.121792112482631E-2
|
Which is the largest bay in the Republic of Ireland? | SELECT DISTINCT ?bay (strdf:area(?bWKT) AS ?bArea) WHERE { ?bay rdf:type y2geoo:OSM_bay ; geo:hasGeometry ?geomB . ?geomB geo:asWKT ?bWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeom . ?iGeom geo:asWKT ?iWKT FILTER geof:sfIntersects(?bWKT, ?iWKT) } ORDER BY DESC(?bArea) LIMIT 1 | bay,bArea
http://yago-knowledge.org/resource/Galway_Bay,8.439154139495865E-2
|
Which are the smallest 5 lakes north of Dublin? | SELECT DISTINCT ?y (strdf:area(?yWKT) AS ?totalArea) WHERE { ?y rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?ygeo . ?ygeo geo:asWKT ?yWKT . y2geor:gadmentity_Dublin_IRL.6_1 geo:hasGeometry ?xgeo . ?xgeo geo:asWKT ?xWKT FILTER strdf:above(?yWKT, ?xWKT) } ORDER BY ASC(?totalArea) LIMIT 5 | y,totalArea
http://yago-knowledge.org/resource/geoentity_Upper_Trail_Lake_5877321,0.0E0
http://yago-knowledge.org/resource/geoentity_Sigernessjøen_3139731,0.0E0
http://yago-knowledge.org/resource/geoentity_Damvanna_9044671,0.0E0
http://yago-knowledge.org/resource/geoentity_Glacier_Lake_5961609,0.0E0
http://yago-knowledge.org/resource/geoentity_Unalaska_Lake_5877200,0.0E0
|
Which of the municipalities that border Thessaloniki has the biggest area? | SELECT ?neighboring (strdf:area(?yWKT) AS ?totalArea) WHERE { yago:geoentity_Dimos_Thessaloniki_8133841 geo:hasGeometry ?xGeom . ?xGeom geo:asWKT ?xWKT . ?neighboring rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?yGeom . ?yGeom geo:asWKT ?yWKT FILTER geof:sfTouches(?xWKT, ?yWKT) } ORDER BY DESC(?totalArea) LIMIT 1 | neighboring,totalArea
http://yago-knowledge.org/resource/Pylaia-Chortiatis,1.666313914646027E-2
|
Which town in England with a river crossing it has the largest area? | SELECT ?town (strdf:area(?townWKT) AS ?totalArea) WHERE { yago:United_Kingdom geo:hasGeometry ?xGeom . ?xGeom geo:asWKT ?xWKT . ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?townGeom . ?townGeom geo:asWKT ?townWKT FILTER geof:sfWithin(?townWKT, ?xWKT) ?river rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?rivGeom . ?rivGeom geo:asWKT ?rivWKT FILTER geof:sfCrosses(?rivWKT, ?townWKT) } ORDER BY DESC(?totalArea) LIMIT 1 | town,totalArea
http://yago-knowledge.org/resource/Haslemere,2.9852771039193707E-3
|
Which is the largest forest in a 1000km radius from Kastanas beach? | SELECT ?forest (strdf:area(?fWKT) AS ?forestArea) WHERE { yago:geoentity_Paralía_Kastanás_10277719 geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?kWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?fWKT FILTER ( geof:distance(?kWKT, ?fWKT, uom:metre) < 1000000 ) } ORDER BY DESC(?forestArea) LIMIT 1 | forest,forestArea
http://yago-knowledge.org/resource/geoentity_Foresta_Umbra_8224683,1.5159048889404872E-2
|
Which is the largest stream that intersects with Cork? | SELECT ?stream (strdf:area(?sWKT) AS ?streamArea) WHERE { y2geor:gadmentity_Cork_IRL.4_1 geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?cWKT . ?stream rdf:type y2geoo:OSM_stream ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?sWKT FILTER geof:sfIntersects(?sWKT, ?cWKT) } ORDER BY DESC(?streamArea) LIMIT 1 | stream,streamArea
http://yago-knowledge.org/resource/geoentity_Clodagh_River_3297234,0.0E0
|
Which is the smallest lake in the Republic of Ireland? | SELECT DISTINCT ?lake (strdf:area(?lWKT) AS ?area) WHERE { yago:Republic_of_Ireland 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) } ORDER BY ASC(?area) LIMIT 1 | lake,area
http://yago-knowledge.org/resource/geoentity_Doon_Lough_3311835,1.207044400012707E-7
|
What is the largest lake in the United Kingdom? | SELECT DISTINCT ?lake (strdf:area(?lWKT) AS ?area) WHERE { yago:United_Kingdom 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) } ORDER BY DESC(?area) LIMIT 1 | lake,area
http://yago-knowledge.org/resource/Lough_Neagh,5.294701270643011E-2
|
What is the largest city in Florida? | SELECT DISTINCT ?lake (strdf:area(?lWKT) AS ?area) WHERE { yago:Florida geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) } ORDER BY DESC(?area) LIMIT 1 | lake,area
"http://yago-knowledge.org/resource/Palm_Coast,_Florida",2.2946964213700353E-2
|
Which is the largest lake in Kansas? | SELECT DISTINCT ?lake (strdf:area(?lWKT) AS ?area) WHERE { yago:Kansas 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) } ORDER BY DESC(?area) LIMIT 1 | lake,area
http://yago-knowledge.org/resource/Clinton_Lake_(Kansas),3.0526860678398824E-3
|
What is the 10th largest town in Alaska? | SELECT ?town WHERE { { SELECT DISTINCT ?town (strdf:area(?lWKT) AS ?area) WHERE { yago:Alaska geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) } ORDER BY DESC(?area) LIMIT 10 } } ORDER BY ASC(?area) LIMIT 1 | town
"http://yago-knowledge.org/resource/Fort_Yukon,_Alaska"
|
Which county has the most inhabitants in the US? | SELECT ?county 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 ?pop FILTER geof:sfWithin(?cWKT, ?usWKT) } ORDER BY DESC(xsd:double(?pop)) LIMIT 1 | county
"http://yago-knowledge.org/resource/Maricopa_County,_Arizona"
|
Which county is the biggest by population in Nevada? | SELECT ?county WHERE { yago:Nevada geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?geom2 . ?geom2 geo:asWKT ?cWKT FILTER geof:sfContains(?mWKT, ?cWKT) ?county y2geoo:POPULATION ?pop } ORDER BY DESC(xsd:double(?pop)) LIMIT 1 | county
"http://yago-knowledge.org/resource/Churchill_County,_Nevada"
|
Which county has the lowest population in Kansas? | SELECT ?county WHERE { yago:Kansas geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?geom2 . ?geom2 geo:asWKT ?cWKT FILTER geof:sfContains(?mWKT, ?cWKT) ?county y2geoo:POPULATION ?pop } ORDER BY ASC(xsd:double(?pop)) LIMIT 1 | county
"http://yago-knowledge.org/resource/Hodgeman_County,_Kansas"
|
Which is the largest island in Ireland? | SELECT DISTINCT ?x (strdf:area(?lWKT) AS ?area) WHERE { yago:Republic_of_Ireland geo:hasGeometry ?geom . ?geom geo:asWKT ?mWKT . ?lake rdf:type y2geoo:OSM_island ; geo:hasGeometry ?geol . ?geol geo:asWKT ?lWKT FILTER geof:sfContains(?mWKT, ?lWKT) } ORDER BY ?area LIMIT 1 | x,area
,0.0E0
|
Is Liverpool the largest city of the United Kingdom? | ASK WHERE { { SELECT (strdf:area(?cWKT) AS ?area) (strdf:area(?LWKT) AS ?Larea) WHERE { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . yago:United_Kingdom geo:hasGeometry ?geom . ?geom geo:asWKT ?ukWKT . yago:Liverpool geo:hasGeometry ?geom1 . ?geom1 geo:asWKT ?LWKT FILTER geof:sfContains(?ukWKT, ?cWKT) } ORDER BY DESC(?area) LIMIT 1 } FILTER ( ?Larea > ?area ) } | {'head': {}, 'boolean': False} |
Which is the biggest city in Texas? | SELECT ?city (strdf:area(?cWKT) AS ?area) WHERE { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . yago:Texas geo:hasGeometry ?geom . ?geom geo:asWKT ?tWKT FILTER geof:sfContains(?tWKT, ?cWKT) } ORDER BY DESC(?area) LIMIT 1 | city,area
"http://yago-knowledge.org/resource/Grand_Prairie,_Texas",2.0208436051335116E-2
|
What is the largest state by area in the USA? | SELECT ?state (strdf:area(?sWKT) AS ?area) WHERE { yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?state rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?usWKT) } ORDER BY ?area LIMIT 1 | state,area
"http://yago-knowledge.org/resource/Washington,_D.C.",1.72463956665097E-2
|
Which is the smallest city in England? | SELECT ?city (strdf:area(?cWKT) AS ?carea) WHERE { ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . yago:England geo:hasGeometry ?geom . ?geom geo:asWKT ?eWKT FILTER geof:sfContains(?eWKT, ?cWKT) } ORDER BY DESC(?carea) LIMIT 1 | city,carea
http://yago-knowledge.org/resource/London_Colney,2.060708003361152E-1
|
What is the largest lake in Scotland? | SELECT ?city (strdf:area(?cWKT) AS ?area) WHERE { ?city rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . yago:Scotland geo:hasGeometry ?geom . ?geom geo:asWKT ?sWKT FILTER geof:sfContains(?sWKT, ?cWKT) } ORDER BY DESC(?area) LIMIT 1 | city,area
http://yago-knowledge.org/resource/Loch_Lomond,1.0274943211694972E-2
|
Which county in Ireland has the largest park? | SELECT ?city (strdf:area(?parkWKT) AS ?area) WHERE { ?city rdf:type y2geoo:OSI_County_Council ; geo:hasGeometry ?geoc . ?geoc geo:asWKT ?cWKT . yago:Republic_of_Ireland geo:hasGeometry ?geom . ?geom geo:asWKT ?iWKT FILTER geof:sfContains(?iWKT, ?cWKT) ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?parkGeom . ?parkGeom geo:asWKT ?parkWKT FILTER geof:sfContains(?cWKT, ?parkWKT) } ORDER BY DESC(?area) LIMIT 1 | city,area
http://yago-knowledge.org/resource/County_Kildare,3.19339580199965E-4
|
What is the largest lake in Cambridgeshire? | SELECT ?park (strdf:area(?parkWKT) AS ?parkArea) WHERE { yago:Cambridge geo:hasGeometry ?cGeom . ?cGeom geo:asWKT ?cWKT . ?park rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?parkGeom . ?parkGeom geo:asWKT ?parkWKT FILTER geof:sfWithin(?parkWKT, ?cWKT) } ORDER BY DESC(?parkArea) LIMIT 1 | park,parkArea
http://yago-knowledge.org/resource/geoentity_Stantons_9613023,2.4748434149992276E-6
|
Find the 5 least populated municipalities of Greece. | SELECT DISTINCT ?island WHERE { ?mun 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 ASC(?pop) LIMIT 5 | island
|
Which are the two smallest parks in the Republic of Ireland? | SELECT DISTINCT ?park (strdf:area(?wkt1) AS ?totalArea) WHERE { ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?g1 . ?g1 geo:asWKT ?wkt1 . yago:Republic_of_Ireland geo:hasGeometry ?g2 . ?g2 geo:asWKT ?wkt2 FILTER geof:sfWithin(?wkt1, ?wkt2) } ORDER BY ?totalArea LIMIT 2 | park,totalArea
http://yago-knowledge.org/resource/St_Stephen's_Green,1.2208139165001057E-5
http://yago-knowledge.org/resource/geoentity_Ringsend_Park_3289060,1.3450117824993684E-5
|
Is there at least one beach in any of the top 5 least populated regional units of Greece? | ASK WHERE { { SELECT ?municipality ?munWKT ?population WHERE { ?municipality rdf:type y2geoo:GAG_RegionalUnit ; y2geoo:hasGAG_Population ?population ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?munWKT } ORDER BY ASC(?population) LIMIT 5 } ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?beachWKT . ?beach geo:sfWithin ?municipality } | {'head': {}, 'boolean': True} |
Which Greek municipality has the biggest surface area? | SELECT DISTINCT ?region (strdf:area(?geoWKT) AS ?regionArea) WHERE { ?region rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT } ORDER BY DESC(?regionArea) LIMIT 1 | region,regionArea
http://yago-knowledge.org/resource/Grevena_(regional_unit),1.964721644258189E-1
|
Which municipality of Greece has the smallest number of inhabitants? | SELECT DISTINCT ?mun WHERE { ?mun rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?population } ORDER BY ASC(?population) LIMIT 1 | mun
http://yago-knowledge.org/resource/geoentity_Dimos_Alonnisos_8133938
|
Which 2 counties are 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 } ?county geo:hasGeometry ?geoC . ?geoC geo:asWKT ?cWKT } ORDER BY ?totalArea LIMIT 2 | county,totalArea
http://yago-knowledge.org/resource/Dún_Laoghaire–Rathdown,1.707073514495743E-2
http://yago-knowledge.org/resource/geoentity_South_Dublin_7288565,3.007819108965783E-2
|
Which 5 municipalities east of Athens have the most residents? | 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:right(?WKT1, ?WKT) } ORDER BY DESC(?population) LIMIT 5 | municipality
http://yago-knowledge.org/resource/geoentity_Dimos_Heraklion_8133920
http://yago-knowledge.org/resource/Rhodes
http://yago-knowledge.org/resource/geoentity_Chania_8133762
http://yago-knowledge.org/resource/geoentity_Dimos_Lesbos_8133755
http://yago-knowledge.org/resource/geoentity_Dimos_Kavala_8133899
|
Which are the three largest district wards that intersect with Plymouth? | SELECT DISTINCT ?park (strdf:area(?WKT1) AS ?areas) WHERE { yago:Plymouth geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?park rdf:type y2geoo:OS_DistrictWard ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT1, ?WKT) } ORDER BY DESC(?areas) LIMIT 3 | park,areas
"http://yago-knowledge.org/resource/Bickleigh,_South_Hams",1.434426612356001E-2
http://kr.di.uoa.gr/yago2geo/resource/osentity_Newton_&_Yealmpton_Ward_22841,1.029631855580412E-2
http://kr.di.uoa.gr/yago2geo/resource/osentity_Wembury_&_Brixton_Ward_22865,3.833593886277629E-3
|
Which are the 5 district wards with the smallest area that intersect with Essex? | SELECT DISTINCT ?barony (strdf:area(?WKT1) AS ?areas) WHERE { yago:Essex geo:hasGeometry ?o . ?o geo:asWKT ?WKT . ?barony rdf:type y2geoo:OS_DistrictWard ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?WKT1 FILTER geof:sfIntersects(?WKT1, ?WKT) } ORDER BY ASC(?areas) LIMIT 5 | barony,areas
http://yago-knowledge.org/resource/South_Hanningfield,4.549250789986387E-6
http://kr.di.uoa.gr/yago2geo/resource/osentity_Alton_Park_Ward_42009,9.349768371429228E-5
http://kr.di.uoa.gr/yago2geo/resource/osentity_Loughton_Fairmead_Ward_20059,1.000982022148157E-4
http://kr.di.uoa.gr/yago2geo/resource/osentity_Pier_Ward_42010,1.0946101108984213E-4
http://kr.di.uoa.gr/yago2geo/resource/osentity_Peter_Bruff_Ward_42011,1.1178390333180105E-4
|
Which is the largest lake by area in Ireland? | SELECT DISTINCT ?lake (strdf:area(?fWKT) AS ?totalArea) WHERE { ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?fGeom . ?fGeom geo:asWKT ?fWKT . yago:Republic_of_Ireland geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?fWKT, ?lcWKT) } ORDER BY DESC(?totalArea) LIMIT 1 | lake,totalArea
http://yago-knowledge.org/resource/Lough_Corrib,2.2185751118459912E-2
|
Which is the municipality by area in Western Macedonia? | SELECT DISTINCT ?park (strdf:area(?pWKT) AS ?totalArea) WHERE { ?park rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?pGeom . ?pGeom geo:asWKT ?pWKT . yago:geoentity_Western_Macedonia_6697811 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/Grevena_(regional_unit),1.964721644258189E-1
|
Which is the smallest forest by area in Greater London? | SELECT DISTINCT ?forest (strdf:area(?bWKT) AS ?totalArea) WHERE { ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?bGeom . ?bGeom geo:asWKT ?bWKT . yago:Greater_London geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?bWKT, ?lcWKT) } ORDER BY ASC(?totalArea) LIMIT 1 | forest,totalArea
http://yago-knowledge.org/resource/geoentity_Park_Wood_9884080,3.3836334550001227E-5
|
Which municipality on the border of Wester Macedonia has the smallest population? | SELECT DISTINCT ?rg ?pop WHERE { yago:geoentity_Western_Macedonia_6697811 geo:hasGeometry ?tgeo . ?tgeo geo:asWKT ?tWKT . ?rg rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?rggeo . ?rggeo geo:asWKT ?rgWKT . ?rg y2geoo:hasGAG_Population ?pop FILTER geof:sfTouches(?rgWKT, ?tWKT) } ORDER BY ASC(?pop) LIMIT 1 | rg,pop
http://yago-knowledge.org/resource/geoentity_Dimos_Almopia_8133796,27230
|
Which is the largest district that borders Oxford? | SELECT DISTINCT ?Mdistrict (strdf:area(?cWKT) AS ?area) WHERE { yago:Oxford geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT . ?Mdistrict rdf:type y2geoo:OS_District ; geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT FILTER geof:sfTouches(?eWKT, ?cWKT) } ORDER BY DESC(?area) LIMIT 1 | Mdistrict,area
http://yago-knowledge.org/resource/geoentity_South_Oxfordshire_District_2637349,9.515864154025841E-2
|
Which is the smallest forest in County Wicklow? | SELECT DISTINCT ?forest (strdf:area(?sWKT) AS ?area) WHERE { yago:County_Wicklow geo:hasGeometry ?lgeo . ?lgeo geo:asWKT ?lWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?sgeo . ?sgeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?lWKT) } ORDER BY ASC(?area) LIMIT 1 | forest,area
http://yago-knowledge.org/resource/geoentity_Ballyteage_Wood_3314940,4.707999066499269E-5
|
Which 5 municipalities in Central Macedonia have the smallest population? | SELECT DISTINCT ?municipality WHERE { yago:Central_Macedonia 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 ASC(?population) LIMIT 5 | municipality
http://yago-knowledge.org/resource/geoentity_Dimos_Amfipoli_8133862
http://yago-knowledge.org/resource/Sithonia
http://yago-knowledge.org/resource/Nea_Zichni
"http://yago-knowledge.org/resource/Kassandra,_Chalkidiki"
http://yago-knowledge.org/resource/Emmanouil_Pappas_(municipality)
|
What is the smallest 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 ASC(strdf:area(?WKT2)) LIMIT 1 | district
http://yago-knowledge.org/resource/geoentity_Epsom_and_Ewell_District_7290639
|
Which is the biggest lake in County Kerry? | SELECT ?lake WHERE { { SELECT ?lake (strdf:area(?WKT2) AS ?area) WHERE { yago:County_Kerry geo:hasGeometry ?rep1 . ?rep1 geo:asWKT ?WKT1 . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?rep2 . ?rep2 geo:asWKT ?WKT2 FILTER geof:sfWithin(?WKT2, ?WKT1) } ORDER BY DESC(?area) LIMIT 1 } } | lake
http://yago-knowledge.org/resource/Lough_Leane
|
Out of all lakes in England, which is the smallest? | SELECT DISTINCT ?forest (strdf:area(?bWKT) AS ?totalArea) WHERE { ?forest rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?bGeom . ?bGeom geo:asWKT ?bWKT . yago:England geo:hasGeometry ?lcGeom . ?lcGeom geo:asWKT ?lcWKT FILTER geof:sfWithin(?bWKT, ?lcWKT) } ORDER BY ASC(?totalArea) LIMIT 1 | forest,totalArea
http://yago-knowledge.org/resource/geoentity_Bear_9613022,2.8483445500046026E-7
|
Which region that borders the Peloponnese has the smallest area? | SELECT ?rg WHERE { { SELECT ?rg (strdf:area(?rgWKT) AS ?area) WHERE { <http://yago-knowledge.org/resource/Peloponnese_(region)> geo:hasGeometry ?tgeo . ?tgeo geo:asWKT ?tWKT . ?rg rdf:type y2geoo:GAG_Region ; geo:hasGeometry ?rggeo . ?rggeo geo:asWKT ?rgWKT FILTER geof:sfTouches(?rgWKT, ?tWKT) } ORDER BY ASC(?area) LIMIT 1 } } | rg
http://yago-knowledge.org/resource/Attica_(region)
|
Which are the two smallest districts that border Cumbria? | SELECT DISTINCT ?Mdistrict (strdf:area(?cWKT) AS ?area) WHERE { yago:Cumbria geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT . ?Mdistrict rdf:type y2geoo:OS_District ; geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT FILTER geof:sfTouches(?eWKT, ?cWKT) } ORDER BY ASC(?area) LIMIT 2 | Mdistrict,area
"http://yago-knowledge.org/resource/Lancaster,_Lancashire",8.31813555096206E-2
"http://yago-knowledge.org/resource/Lancaster,_Lancashire",8.984037967613094E-2
|
Which is the smallest barony in County Wicklow? | SELECT DISTINCT ?forest (strdf:area(?sWKT) AS ?area) WHERE { yago:County_Wicklow geo:hasGeometry ?lgeo . ?lgeo geo:asWKT ?lWKT . ?forest rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?sgeo . ?sgeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?lWKT) } ORDER BY ASC(?area) LIMIT 1 | forest,area
http://yago-knowledge.org/resource/geoentity_Ballinaclogh_3314983,4.016837874098286E-2
|
Which is the largest village in North Yorkshire? | SELECT ?vil (strdf:area(?vWKT) AS ?area) WHERE { yago:North_Yorkshire geo:hasGeometry ?nGeo . ?nGeo geo:asWKT ?nWKT . ?vil rdf:type y2geoo:OSM_village ; geo:hasGeometry ?vGeo . ?vGeo geo:asWKT ?vWKT FILTER geof:sfContains(?nWKT, ?vWKT) } ORDER BY DESC(?area) LIMIT 1 | vil,area
http://yago-knowledge.org/resource/Snainton,2.2487807823515175E-3
|
Which is the largest rural area? | SELECT ?rural (strdf:area(?ruralWKT) AS ?area) WHERE { ?rural rdf:type y2geoo:OSI_Rural_Area ; geo:hasGeometry ?ruralGeom . ?ruralGeom geo:asWKT ?ruralWKT } ORDER BY DESC(?area) LIMIT 1 | rural,area
http://yago-knowledge.org/resource/geoentity_Westport_Demesne_10130278,1.9189727866714995E-1
|
Is the largest US State larger than England? | ASK WHERE { { SELECT ?area WHERE { ?state rdf:type yago:wikicategory_States_of_the_United_States ; yago:hasArea ?area } ORDER BY DESC(?area) LIMIT 1 } yago:England yago:hasArea ?enarea FILTER ( ?area > ?enarea ) } | {'head': {}, 'boolean': True} |
Which is the largest US State? | SELECT ?state (strdf:area(?sWKT) AS ?sArea) WHERE { yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?state rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?usWKT) } ORDER BY DESC(?sArea) LIMIT 1 | state,sArea
http://yago-knowledge.org/resource/Alaska,2.7927972676429624E2
|
Which city in England is adjacent to the most lakes? | SELECT ?city WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?city rdf:type y2geoo:OSM_city ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lGeo . ?lGeo geo:asWKT ?lWKT FILTER ( geof:sfWithin(?cWKT, ?eWKT) && strdf:touches(?cWKT, ?lWKT) ) } GROUP BY ?city ORDER BY DESC(COUNT(?lake)) LIMIT 1 | city
|
What is the largest forest in Texas by area? | SELECT ?forest (strdf:area(?fWKT) AS ?farea) WHERE { yago:Texas geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fGeo . ?fGeo geo:asWKT ?fWKT FILTER geof:sfWithin(?fWKT, ?usWKT) } ORDER BY DESC(?farea) LIMIT 1 | forest,farea
http://yago-knowledge.org/resource/geoentity_Whispering_Cedars_4741414,2.910147626200249E-4
|
Which is the largest lake in Northern Ireland? | SELECT ?county (strdf:area(?lWKT) AS ?lArea) WHERE { yago:Northern_Ireland geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lGeo . ?lGeo geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?iWKT) } ORDER BY DESC(?lArea) LIMIT 1 | county,lArea
,5.294701270643011E-2
|
What is the largest island that belongs to the UK? | SELECT ?island 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) } ORDER BY DESC(strdf:area(?iWKT)) LIMIT 1 | island
http://yago-knowledge.org/resource/Shetland
|
Which US state capital has the highest population? | SELECT ?capital WHERE { yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?state rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?usWKT) ?state yago:hasCapital ?capital . ?capital yago:hasPopulation ?population } ORDER BY DESC(xsd:integer(?population)) LIMIT 1 | capital
http://yago-knowledge.org/resource/Indianapolis
|
Which States are larger than England? | SELECT ?state WHERE { { SELECT ?state (strdf:area(?eWKT) AS ?eArea) (strdf:area(?sWKT) AS ?sArea) WHERE { yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?state rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT FILTER geof:sfWithin(?sWKT, ?usWKT) } } FILTER ( ?sArea > ?eArea ) } | state
http://yago-knowledge.org/resource/Wisconsin
http://yago-knowledge.org/resource/Wyoming
http://yago-knowledge.org/resource/South_Dakota
http://yago-knowledge.org/resource/Utah
http://yago-knowledge.org/resource/Texas
http://yago-knowledge.org/resource/New_Mexico
http://yago-knowledge.org/resource/Washington_(state)
http://yago-knowledge.org/resource/North_Dakota
http://yago-knowledge.org/resource/Michigan
http://yago-knowledge.org/resource/Kansas
http://yago-knowledge.org/resource/Missouri
http://yago-knowledge.org/resource/Oklahoma
http://yago-knowledge.org/resource/Minnesota
http://yago-knowledge.org/resource/Oregon
http://yago-knowledge.org/resource/Alaska
http://yago-knowledge.org/resource/Idaho
http://yago-knowledge.org/resource/Montana
http://yago-knowledge.org/resource/Arizona
http://yago-knowledge.org/resource/Nebraska
http://yago-knowledge.org/resource/Nevada
http://yago-knowledge.org/resource/California
http://yago-knowledge.org/resource/Colorado
|
Which are the 3 largest canals, by length, in Scotland? | SELECT ?canal WHERE { yago:Scotland geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?eWKT) } ORDER BY DESC(strdf:area(?cWKT)) LIMIT 3 | canal
http://yago-knowledge.org/resource/geoentity_Monkland_Canal_2642334
http://yago-knowledge.org/resource/geoentity_Caledonian_Canal_-_sea_loch_6269282
http://yago-knowledge.org/resource/geoentity_Forth_and_Clyde_Canal_2649176
|
Which is the longest canal in England? | SELECT ?canal WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?canal rdf:type y2geoo:OSM_canal ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfWithin(?cWKT, ?eWKT) } ORDER BY DESC(strdf:area(?cWKT)) LIMIT 1 | canal
http://yago-knowledge.org/resource/geoentity_Grand_Union_Canal_9884079
|
Is Northern Ireland the least forested country in the UK? | ASK WHERE { { SELECT (SUM(strdf:area(?fccWKT)) AS ?areaCC) WHERE { yago:United_Kingdom geo:hasGeometry ?ukGeo . ?ukGeo geo:asWKT ?ukWKT . ?constituentCountry rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT . ?forectCC rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fccGeo . ?fccGeo geo:asWKT ?fccWKT FILTER ( ( ( ?constituentCountry != yago:Northern_Ireland ) && geof:sfWithin(?cWKT, ?ukWKT) ) && geof:sfWithin(?fccWKT, ?cWKT) ) } } { SELECT (SUM(strdf:area(?fccWKT)) AS ?areaNI) WHERE { yago:Northern_Ireland geo:hasGeometry ?niGeo . ?niGeo geo:asWKT ?niWKT . ?forectNI rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fniGeo . ?fniGeo geo:asWKT ?fniWKT FILTER geof:sfWithin(?fniWKT, ?niWKT) } } FILTER ( ?areaNI < ?areaCC ) } | {'head': {}, 'boolean': True} |
Which is the largest lake southeast of Galway? | SELECT ?lake (strdf:area(?lWKT) AS ?lArea) WHERE { yago:County_Galway geo:hasGeometry ?cgGeo . ?cgGeo geo:asWKT ?cgWKT . yago:Republic_of_Ireland geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lGeo . ?lGeo geo:asWKT ?lWKT FILTER ( ( geof:sfWithin(?lWKT, ?iWKT) && strdf:below(?lWKT, ?cgWKT) ) && strdf:right(?lWKT, ?cgWKT) ) } ORDER BY DESC(?lArea) LIMIT 1 | lake,lArea
http://yago-knowledge.org/resource/Lough_Derg_(Shannon),1.5643609150105132E-2
|
Which is the largest park in Greece? | SELECT ?park (strdf:area(?pWKT) AS ?area) WHERE { yago:Greece geo:hasGeometry ?geo . ?geo geo:asWKT ?gWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?parkGeo . ?parkGeo geo:asWKT ?pWKT FILTER geof:sfContains(?gWKT, ?pWKT) } ORDER BY DESC(?area) LIMIT 1 | park,area
http://yago-knowledge.org/resource/geoentity_Attikó_Álsos_9036476,5.186609370999773E-5
|
Is Scotland's capital also its largest city? | ASK WHERE { yago:Scotland yago:hasCapital ?capital . ?capital geo:hasGeometry ?cgeo . ?cgeo geo:asWKT ?cWKT . ?capital y2geoo:hasGADM_NationalLevel ?cnl . ?city y2geoo:hasGADM_NationalLevel ?cnl ; geo:hasGeometry ?citygeo . ?citygeo geo:asWKT ?cityWKT . yago:Scotland geo:hasGeometry ?sgeo . ?sgeo geo:asWKT ?sWKT FILTER strdf:contains(?sWKT, ?cityWKT) BIND(strdf:area(?cWKT) AS ?capitalArea) BIND(strdf:area(?cityWKT) AS ?cityArea) FILTER ( ?cityArea > ?capitalArea ) } | {'head': {}, 'boolean': True} |
Which is the largest uninhabited island? | SELECT ?island WHERE { SELECT ?island (strdf:area(?iWKT) AS ?iArea) WHERE { ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?iGeo . ?iGeo geo:asWKT ?iWKT OPTIONAL { ?island yago:hasPopulation ?pop } FILTER ( ! bound(?pop) ) } } ORDER BY DESC(?iArea) LIMIT 1 | island
http://yago-knowledge.org/resource/geoentity_Aputiteeq_3424496
|
Which is the smallest beach in the Peloponnese prefecture? | SELECT ?forest (strdf:area(?forestWKT) AS ?forestArea) WHERE { y2geor:gadmentity_Peloponnese_GRC.7.2_1 geo:hasGeometry ?o1 . ?o1 geo:asWKT ?pWKT . ?forest rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o3 . ?o3 geo:asWKT ?forestWKT FILTER geof:sfWithin(?forestWKT, ?pWKT) } ORDER BY ASC(?forestArea) LIMIT 1 | forest,forestArea
http://yago-knowledge.org/resource/geoentity_Kalamáki_6692236,2.9942129999758694E-8
|
Which is the largest lake south of Thessaloniki and north of Athens? | SELECT ?lake (strdf:area(?lakeWKT) AS ?forestArea) WHERE { yago:Greece geo:hasGeometry ?o5 . ?o5 geo:asWKT ?greeceWKT . yago:geoentity_Dimos_Thessaloniki_8133841 geo:hasGeometry ?o1 . ?o1 geo:asWKT ?thessWKT . yago:geoentity_Dimos_Athens_8133876 geo:hasGeometry ?o2 . ?o2 geo:asWKT ?athensWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o3 . ?o3 geo:asWKT ?lakeWKT FILTER ( ( geof:sfContains(?greeceWKT, ?lakeWKT) && strdf:below(?lakeWKT, ?thessWKT) ) && strdf:above(?lakeWKT, ?athensWKT) ) } ORDER BY DESC(?forestArea) LIMIT 1 | lake,forestArea
http://yago-knowledge.org/resource/Lake_Trichonida,9.617588690390127E-3
|
Which is the largest beach in Greece north of Athens? | SELECT ?forest (strdf:area(?forestWKT) AS ?forestArea) WHERE { yago:Greece geo:hasGeometry ?o1 . ?o1 geo:asWKT ?greeceWKT . yago:geoentity_Dimos_Athens_8133876 geo:hasGeometry ?o2 . ?o2 geo:asWKT ?athensWKT . ?forest rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o3 . ?o3 geo:asWKT ?forestWKT FILTER ( geof:sfWithin(?forestWKT, ?greeceWKT) && strdf:above(?forestWKT, ?athensWKT) ) } ORDER BY DESC(?forestArea) LIMIT 1 | forest,forestArea
http://yago-knowledge.org/resource/geoentity_Megali_Ammos_11777326,1.4851753550023931E-6
|
How large is the the smallest county of England? | SELECT (MIN(strdf:area(?cWKT)) AS ?mini) WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT FILTER geof:sfContains(?eWKT, ?cWKT) } | mini
5.121792112482631E-2
|
Which is the smallest municipality of Greece? | SELECT ?muni (strdf:area(?wkt) AS ?area) WHERE { ?muni rdf:type y2geoo:GAG_Municipality ; geo:hasGeometry ?geom . ?geom geo:asWKT ?wkt . yago:Greece geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 FILTER geof:sfWithin(?wkt, ?geoWKT1) } ORDER BY DESC(?area) LIMIT 1 | muni,area
http://yago-knowledge.org/resource/Grevena_(regional_unit),1.964721644258189E-1
|
Does Attica have more lakes than Crete? | ASK WHERE { { SELECT (COUNT(DISTINCT ?lake1) AS ?atticaLakes) WHERE { ?lake1 rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lgeom1 . ?lgeom1 geo:asWKT ?lwkt1 . <http://yago-knowledge.org/resource/Attica_(region)> geo:hasGeometry ?ogeom1 . ?ogeom1 geo:asWKT ?owkt1 FILTER geof:sfWithin(?lwkt1, ?owkt1) } } { SELECT (COUNT(DISTINCT ?lake2) AS ?creteLakes) WHERE { ?lake2 rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lgeom2 . ?lgeom2 geo:asWKT ?lwkt2 . yago:Crete geo:hasGeometry ?ogeom2 . ?ogeom2 geo:asWKT ?owkt2 FILTER geof:sfWithin(?lwkt2, ?owkt2) } } FILTER ( ?atticaLakes > ?creteLakes ) } | {'head': {}, 'boolean': True} |
Is there at least one beach in any of the top 10 most populated municipalities in Greece? | ASK WHERE { { SELECT ?municipality ?munWKT ?population WHERE { ?municipality rdf:type y2geoo:GAG_Municipality ; y2geoo:hasGAG_Population ?population ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?munWKT } ORDER BY DESC(?population) LIMIT 10 } ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?beachWKT . ?beach geo:sfWithin ?municipality } | {'head': {}, 'boolean': False} |
Is the population of the most nothern city in Scotland less than the population of the most southern city in Scotland? | ASK WHERE { { SELECT ?cpop1 WHERE { yago:Scotland geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT . ?city rdf:type y2geoo:OSM_city ; yago:hasPopulation ?cpop1 ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT . ?southCity rdf:type y2geoo:OSM_city ; geo:hasGeometry ?scGeo . ?scGeo geo:asWKT ?scWKT FILTER ( geof:sfWithin(?scWKT, ?sWKT) && geof:sfWithin(?scWKT, ?sWKT) ) FILTER NOT EXISTS { FILTER ( ( ?city != ?southCity ) && strdf:above(?scWKT, ?cWKT) ) } } } { SELECT ?cpop2 WHERE { yago:Scotland geo:hasGeometry ?s2Geo . ?s2Geo geo:asWKT ?s2WKT . ?city2 rdf:type y2geoo:OSM_city ; yago:hasPopulation ?cpop2 ; geo:hasGeometry ?c2Geo . ?c2Geo geo:asWKT ?c2WKT . ?southCity2 rdf:type y2geoo:OSM_city ; geo:hasGeometry ?sc2Geo . ?sc2Geo geo:asWKT ?sc2WKT FILTER ( geof:sfWithin(?sc2WKT, ?s2WKT) && geof:sfWithin(?sc2WKT, ?s2WKT) ) FILTER NOT EXISTS { FILTER ( ( ?city2 != ?southCity2 ) && strdf:above(?sc2WKT, ?c2WKT) ) } } } FILTER ( xsd:integer(?cpop1) < xsd:integer(?cpop2) ) } | {'head': {}, 'boolean': False} |
Which are the two smallest municipalities in Greece? | SELECT DISTINCT ?county (strdf:area(?cWKT) AS ?totalArea) WHERE { { ?county rdf:type y2geoo:GAG_Municipality } ?county geo:hasGeometry ?geoC . ?geoC geo:asWKT ?cWKT } ORDER BY ?totalArea LIMIT 2 | county,totalArea
http://yago-knowledge.org/resource/Agia_Varvara,2.1505023323686477E-4
http://yago-knowledge.org/resource/Agia_Varvara,2.1506486273667176E-4
|
Which are the easternmost towns of England? | SELECT DISTINCT ?town WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?town rdf:type y2geoo:OSM_town ; geo:hasGeometry ?tGeo . ?tGeo geo:asWKT ?tWKT . ?westernTown rdf:type y2geoo:OSM_town ; geo:hasGeometry ?wGeo . ?wGeo geo:asWKT ?wWKT FILTER ( geof:sfWithin(?tWKT, ?eWKT) && geof:sfWithin(?wWKT, ?eWKT) ) FILTER NOT EXISTS { FILTER ( ( ?town != ?westernTown ) && strdf:right(?wWKT, ?tWKT) ) } } | town
http://yago-knowledge.org/resource/Billingham
http://yago-knowledge.org/resource/East_Bridgford
http://yago-knowledge.org/resource/Chester-le-Street
http://yago-knowledge.org/resource/Haslemere
http://yago-knowledge.org/resource/St_Columb_Major
"http://yago-knowledge.org/resource/Boston,_Lincolnshire"
http://yago-knowledge.org/resource/St_Just_in_Penwith
"http://yago-knowledge.org/resource/Spalding,_Lincolnshire"
"http://yago-knowledge.org/resource/Stapleford,_Nottinghamshire"
http://yago-knowledge.org/resource/Strood
http://yago-knowledge.org/resource/St_Neots
http://yago-knowledge.org/resource/Thornaby-on-Tees
http://yago-knowledge.org/resource/Cambourne
http://yago-knowledge.org/resource/Dorking
"http://yago-knowledge.org/resource/Seaford,_East_Sussex"
"http://yago-knowledge.org/resource/Stillington,_County_Durham"
http://yago-knowledge.org/resource/Lightwater
http://yago-knowledge.org/resource/Burgess_Hill
http://yago-knowledge.org/resource/Bordon
http://yago-knowledge.org/resource/Shepperton
http://yago-knowledge.org/resource/Ingatestone
http://yago-knowledge.org/resource/Limpsfield
http://yago-knowledge.org/resource/Long_Whatton
http://yago-knowledge.org/resource/Molesey
http://yago-knowledge.org/resource/Wotton-under-Edge
http://yago-knowledge.org/resource/Huntingdon
http://yago-knowledge.org/resource/Northfleet
http://yago-knowledge.org/resource/Steyning
http://yago-knowledge.org/resource/Chertsey
http://yago-knowledge.org/resource/Addlestone
http://yago-knowledge.org/resource/Newbiggin-by-the-Sea
"http://yago-knowledge.org/resource/Cobham,_Surrey"
"http://yago-knowledge.org/resource/Penrith,_Cumbria"
http://yago-knowledge.org/resource/Newton_Aycliffe
http://yago-knowledge.org/resource/Frimley_Green
http://yago-knowledge.org/resource/Cuckfield
http://yago-knowledge.org/resource/geoentity_Totton_2635603
"http://yago-knowledge.org/resource/Lancing,_West_Sussex"
http://yago-knowledge.org/resource/Modbury
http://yago-knowledge.org/resource/Acle
http://yago-knowledge.org/resource/Sutton_Coldfield
http://yago-knowledge.org/resource/Haywards_Heath
http://yago-knowledge.org/resource/Shoreham-by-Sea
"http://yago-knowledge.org/resource/Chatham,_Kent"
http://yago-knowledge.org/resource/Snettisham
"http://yago-knowledge.org/resource/March,_Cambridgeshire"
http://yago-knowledge.org/resource/Princetown
http://yago-knowledge.org/resource/Diss
"http://yago-knowledge.org/resource/Saxby,_Lincolnshire"
"http://yago-knowledge.org/resource/Stone,_Staffordshire"
http://yago-knowledge.org/resource/Dursley
http://yago-knowledge.org/resource/geoentity_Petworth_2640332
http://yago-knowledge.org/resource/Egham
http://yago-knowledge.org/resource/Banstead
"http://yago-knowledge.org/resource/Beeston,_Nottinghamshire"
http://yago-knowledge.org/resource/geoentity_Ryton_6640030
http://yago-knowledge.org/resource/Esher
http://yago-knowledge.org/resource/Sutton-in-Ashfield
http://yago-knowledge.org/resource/Soham
http://yago-knowledge.org/resource/Leatherhead
http://yago-knowledge.org/resource/Bridport
http://yago-knowledge.org/resource/Consett
http://yago-knowledge.org/resource/Grantham
http://yago-knowledge.org/resource/Weybridge
http://yago-knowledge.org/resource/Reigate
"http://yago-knowledge.org/resource/Crook,_County_Durham"
http://yago-knowledge.org/resource/High_Wycombe
http://yago-knowledge.org/resource/Bromsgrove
http://yago-knowledge.org/resource/Staines-upon-Thames
"http://yago-knowledge.org/resource/Ashford,_Surrey"
http://yago-knowledge.org/resource/geoentity_Sunbury-on-Thames_2636534
http://yago-knowledge.org/resource/geoentity_Washington_2634715
http://yago-knowledge.org/resource/Padfield
http://yago-knowledge.org/resource/Walton-on-Thames
http://yago-knowledge.org/resource/Basingstoke
http://yago-knowledge.org/resource/Waterlooville
http://yago-knowledge.org/resource/Lynton
|
Which English district has the most lakes? | SELECT DISTINCT ?district WHERE { ?village rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 . yago:England geo:hasGeometry ?egeo . ?egeo geo:asWKT ?eWKT FILTER ( geof:sfWithin(?geoWKT2, ?eWKT) && geof:sfWithin(?geoWKT1, ?geoWKT2) ) } GROUP BY ?district ORDER BY DESC(COUNT(?village)) LIMIT 1 | district
http://yago-knowledge.org/resource/geoentity_Craven_District_7290606
|
Which county of Ireland has the most nature reserves? | SELECT DISTINCT ?county WHERE { ?lake rdf:type y2geoo:OSM_nature_reserve ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 . yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT FILTER ( geof:sfWithin(?geoWKT2, ?irlWKT) && geof:sfWithin(?geoWKT1, ?geoWKT2) ) } GROUP BY ?county ORDER BY DESC(COUNT(?lake)) LIMIT 1 | county
http://yago-knowledge.org/resource/County_Kildare
|
Which district of the United Kingdom has the most villages? | SELECT DISTINCT ?district WHERE { ?village rdf:type y2geoo:OSM_village ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?district rdf:type y2geoo:OS_District ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 . yago:United_Kingdom geo:hasGeometry ?UKgeo . ?UKgeo geo:asWKT ?UKWKT FILTER ( geof:sfWithin(?geoWKT2, ?UKWKT) && geof:sfWithin(?geoWKT1, ?geoWKT2) ) } GROUP BY ?district ORDER BY DESC(COUNT(?village)) LIMIT 1 | district
http://yago-knowledge.org/resource/geoentity_South_Cambridgeshire_District_7290661
|
Which Irish county has the highest number of lakes? | SELECT DISTINCT ?county WHERE { ?lake rdf:type y2geoo:OSM_lake ; 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 ?o1 . ?o1 geo:asWKT ?geoWKT1 FILTER geof:sfWithin(?geoWKT, ?geoWKT1) } GROUP BY ?county ORDER BY DESC(COUNT(?lake)) LIMIT 1 | county
http://yago-knowledge.org/resource/County_Mayo
|
Which island of Greece has the most beaches? | SELECT DISTINCT ?island WHERE { yago:Greece geo:hasGeometry ?o . ?o geo:asWKT ?geoWKT . ?island rdf:type y2geoo:OSM_island ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?beach rdf:type y2geoo:OSM_beach ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER ( geof:sfWithin(?geoWKT1, ?geoWKT) && geof:sfWithin(?geoWKT2, ?geoWKT1) ) } GROUP BY ?island ORDER BY DESC(COUNT(?beach)) LIMIT 1 | island
http://yago-knowledge.org/resource/Crete
|
Which county in England has the largest number of lakes? | SELECT DISTINCT ?county WHERE { ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) } GROUP BY ?county ORDER BY DESC(COUNT(?lWKT)) LIMIT 1 | county
http://yago-knowledge.org/resource/Cumbria
|
Which 5 counties of the UK have the most forests? | SELECT DISTINCT ?county WHERE { ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?geoC . ?geoC geo:asWKT ?cWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?geoF . ?geoF geo:asWKT ?fWKT FILTER geof:sfWithin(?fWKT, ?cWKT) } GROUP BY ?county ORDER BY DESC(COUNT(?forest)) LIMIT 5 | county
http://yago-knowledge.org/resource/Essex
http://yago-knowledge.org/resource/Norfolk
http://yago-knowledge.org/resource/Kent
http://yago-knowledge.org/resource/Derbyshire
http://yago-knowledge.org/resource/North_Yorkshire
|
Which county of England has the most parks? | SELECT ?county (COUNT(?park) AS ?parkCount) WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?o1 . ?o1 geo:asWKT ?countyWKT . ?park rdf:type y2geoo:OSM_park ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?parkWKT FILTER ( geof:sfWithin(?countyWKT, ?eWKT) && geof:sfWithin(?parkWKT, ?countyWKT) ) } GROUP BY ?county ORDER BY DESC(?parkCount) LIMIT 1 | county,parkCount
http://yago-knowledge.org/resource/Suffolk,12
|
Which barony in Ireland has the most lakes? | SELECT DISTINCT ?barony (COUNT(?lake) AS ?numberOfLakes) WHERE { ?barony rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?geomLC . ?geomLC geo:asWKT ?lcnWKT . ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?geomL . ?geomL geo:asWKT ?lWKT FILTER geof:sfWithin(?lWKT, ?lcnWKT) } GROUP BY ?barony ORDER BY DESC(?numberOfLakes) LIMIT 1 | barony,numberOfLakes
http://kr.di.uoa.gr/yago2geo/resource/osientity_2AE1962911E613A3E055000000000001,52
|
Find the 10 British Counties having the most forests. | SELECT ?m (COUNT(?l) AS ?count) WHERE { ?m rdf:type y2geoo:OS_County ; 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) } GROUP BY ?m ORDER BY DESC(?count) LIMIT 10 | m,count
http://yago-knowledge.org/resource/Essex,6
http://yago-knowledge.org/resource/Norfolk,6
http://yago-knowledge.org/resource/Kent,4
http://yago-knowledge.org/resource/Derbyshire,2
http://yago-knowledge.org/resource/North_Yorkshire,2
http://yago-knowledge.org/resource/Staffordshire,2
http://yago-knowledge.org/resource/Cambridge,2
http://yago-knowledge.org/resource/Suffolk,2
http://yago-knowledge.org/resource/Surrey,2
http://yago-knowledge.org/resource/Nottinghamshire,2
|
Find the 10 Irish Baronies with the most forests and at least 2 lakes. | SELECT ?mname (COUNT(?f) AS ?count_f) WHERE { { SELECT ?mw (COUNT(?l) AS ?count_inner) WHERE { ?m rdf:type y2geoo:OSI_Barony ; geo:hasGeometry ?mg . ?mg geo:asWKT ?mw . ?m y2geoo:hasGAG_Name ?mname . ?l rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lg . ?lg geo:asWKT ?lw FILTER geof:sfWithin(?lw, ?mw) } GROUP BY ?mw } FILTER ( ?count_inner > 1 ) ?f rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fg . ?fg geo:asWKT ?fw . ?f geo:sfWithin ?m } GROUP BY ?mname ORDER BY DESC(?count_f) LIMIT 10 | mname,count_f
|
What is the size of the largest forest in Cambridgeshire? | SELECT DISTINCT (MAX(strdf:area(?geoWKT2)) AS ?maxLakeArea) WHERE { yago:Cambridge geo:hasGeometry ?o1 . ?o1 geo:asWKT ?geoWKT1 . ?lake rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?o2 . ?o2 geo:asWKT ?geoWKT2 FILTER geof:sfWithin(?geoWKT2, ?geoWKT1) } | maxLakeArea
6.381672792501497E-5
|
How large is the largest forest in Greece? | SELECT (MAX(strdf:area(?forest_geoWKT)) AS ?areas_max) WHERE { yago:Greece geo:hasGeometry ?greeceGeo . ?greeceGeo geo:asWKT ?greeceWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT FILTER geof:sfWithin(?forest_geoWKT, ?greeceWKT) } | areas_max
|
What is the average area of a lake in Nevada? | SELECT (AVG(?areas) AS ?areas_avg) WHERE { SELECT (strdf:area(?forest_geoWKT) AS ?areas) WHERE { yago:Nevada geo:hasGeometry ?Cork_geo . ?Cork_geo geo:asWKT ?Cork_geoWKT . ?forest rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?forest_geo . ?forest_geo geo:asWKT ?forest_geoWKT FILTER geof:sfWithin(?forest_geoWKT, ?Cork_geoWKT) } } | areas_avg
2.003668558597946E-3
|
What is the size of the largest county in the Republic of Ireland? | SELECT DISTINCT (MAX(strdf:area(?geoWKT)) 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 } | maxArea
9.74589613693171E-1
|
Which county has the most townlands in Ireland? | 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 . yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT FILTER ( geof:sfWithin(?tWKT, ?irlWKT) && geof:sfWithin(?tWKT, ?cWKT) ) } GROUP BY ?county ORDER BY DESC(?num) LIMIT 1 | county,num
http://yago-knowledge.org/resource/geoentity_Cork_City_7778678,4986
|
Which Texan county has the most lakes? | SELECT ?county (COUNT(?lake) AS ?lakeCount) WHERE { ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?countyGeom . ?countyGeom geo:asWKT ?countyWKT . yago:Texas geo:hasGeometry ?tGeom . ?tGeom geo:asWKT ?texasWKT FILTER geof:sfWithin(?countyWKT, ?texasWKT) ?lake rdf:type y2geoo:OSM_lake ; geo:hasGeometry ?lakeGeom . ?lakeGeom geo:asWKT ?lakeWkt FILTER geof:sfWithin(?lakeWkt, ?countyWKT) } GROUP BY ?county ORDER BY DESC(?lakeCount) LIMIT 1 | county,lakeCount
"http://yago-knowledge.org/resource/Gregg_County,_Texas",40
|
Does Texas have more counties than Alabama? | ASK WHERE { { SELECT (COUNT(?texanCounty) AS ?texanCounties) WHERE { yago:Texas geo:hasGeometry ?tGeo . ?tGeo geo:asWKT ?tWKT . ?texanCounty rdf:type y2geoo:GADM_3rdOrder_AdministrativeUnit ; geo:hasGeometry ?tcGeo . ?tcGeo geo:asWKT ?tcWKT FILTER geof:sfWithin(?tcWKT, ?tWKT) } } { SELECT (COUNT(?alabamaCounty) AS ?alabamaCounties) WHERE { yago:Alabama geo:hasGeometry ?aGeo . ?aGeo geo:asWKT ?aWKT . ?alabamaCounty rdf:type y2geoo:GADM_3rdOrder_AdministrativeUnit ; geo:hasGeometry ?acGeo . ?acGeo geo:asWKT ?acWKT FILTER geof:sfWithin(?acWKT, ?aWKT) } } FILTER ( ?texanCounties > ?alabamaCounties ) } | {'head': {}, 'boolean': True} |
How many counties of Texas are larger than Austin? | SELECT (COUNT(?county) AS ?count) WHERE { ?county y2geoo:hasGADM_Description "County" ; geo:hasGeometry ?countyGeom . ?countyGeom geo:asWKT ?countyWKT . yago:Texas geo:hasGeometry ?tGeom . ?tGeom geo:asWKT ?texasWKT FILTER geof:sfWithin(?countyWKT, ?texasWKT) BIND(strdf:area(?countyWKT) AS ?county_area) BIND(strdf:area(?austinWKT) AS ?austin_area) FILTER ( ?county_area > ?austin_area ) } | count
0
|
Which state in the US has the most neighboring states? | SELECT ?state WHERE { yago:United_States geo:hasGeometry ?usGeo . ?usGeo geo:asWKT ?usWKT . ?state rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?sGeo . ?sGeo geo:asWKT ?sWKT . ?s2 rdf:type y2geoo:GADM_2ndOrder_AdministrativeUnit ; geo:hasGeometry ?s2Geo . ?s2Geo geo:asWKT ?s2WKT FILTER ( ( ( ( ?state != ?s2 ) && geof:sfWithin(?sWKT, ?usWKT) ) && geof:sfWithin(?s2WKT, ?usWKT) ) && geof:sfTouches(?sWKT, ?s2WKT) ) } GROUP BY ?state ORDER BY DESC(COUNT(?s2)) LIMIT 1 | state
http://yago-knowledge.org/resource/Tennessee
|
How many counties border the largest county of the Republic of Ireland? | SELECT (COUNT(?county) AS ?counties) WHERE { { SELECT ?largestCounty ?lcWKT WHERE { { ?largestCounty rdf:type y2geoo:OSI_County_Council } UNION { ?largestCounty rdf:type y2geoo:OSI_City_and_County_Council } ?largestCounty geo:hasGeometry ?lcGeo . ?lcGeo geo:asWKT ?lcWKT BIND(strdf:area(?lcWKT) AS ?lcArea) } ORDER BY DESC(?lcArea) LIMIT 1 } { ?county rdf:type y2geoo:OSI_County_Council } UNION { ?county rdf:type y2geoo:OSI_City_and_County_Council } ?county geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT . yago:Republic_of_Ireland geo:hasGeometry ?irlG . ?irlG geo:asWKT ?irlWKT FILTER geof:sfWithin(?cWKT, ?irlWKT) ?county geo:sfTouches ?largestCounty } | counties
1
|
Which English county has the most forests? | SELECT ?county WHERE { yago:England geo:hasGeometry ?eGeo . ?eGeo geo:asWKT ?eWKT . ?county rdf:type y2geoo:OS_County ; geo:hasGeometry ?cGeo . ?cGeo geo:asWKT ?cWKT . ?forest rdf:type y2geoo:OSM_forest ; geo:hasGeometry ?fGeo . ?fGeo geo:asWKT ?fWKT FILTER ( geof:sfWithin(?cWKT, ?eWKT) && geof:sfWithin(?fWKT, ?cWKT) ) } GROUP BY ?county ORDER BY DESC(COUNT(?forest)) LIMIT 1 | county
http://yago-knowledge.org/resource/Essex
|
What is the population of San Francisco? | SELECT (xsd:integer(?population) AS ?pop) WHERE { yago:San_Francisco yago:hasPopulation ?population } | pop
808977
|
What is the capital of California? | SELECT ?capital WHERE { yago:California yago:hasCapital ?capital } | capital
"http://yago-knowledge.org/resource/Sacramento,_California"
|
What is the height of the Mount Shuksan Waterfalls? | SELECT ?height WHERE { yago:Mount_Shuksan_Waterfalls yago:hasHeight ?height } | height
670.5600000000001#m
|
What is the population of the UK? | SELECT (xsd:integer(?population) AS ?pop) WHERE { yago:United_Kingdom yago:hasPopulation ?population } | pop
62041708
|
What is the population of Northern Ireland? | SELECT (xsd:integer(?population) AS ?pop) WHERE { yago:Northern_Ireland yago:hasPopulation ?population } | pop
1775000
|
Which is the capital of Northern Ireland? | SELECT ?capital WHERE { yago:Northern_Ireland yago:hasCapital ?capital } | capital
http://yago-knowledge.org/resource/Belfast
|