Notebook
select BusinessName, AsGeoJSON(foodratings.Geometry) from foodratings, parish_region WHERE parish_region.NAME LIKE '%Arreton%' AND foodratings.Geometry NOT NULL AND within(foodratings.Geometry, parish_region.wgs84) ;#do a quick text against the index SELECT * FROM (SELECT FHRSID, p.wgs84, f.Geometry FROM (SELECT FHRSID, Geometry, X(osgb) x, Y(osgb) y FROM foodratings WHERE Geometry NOT NULL) f , parish_region p, idx_parish_region_geometry i WHERE p.NAME LIKE '%Arreton%' AND p.pk_uid= i.pkid AND i.xmin < f.x and i.xmax > f.x and i.ymin < f.y and i.ymax > f.y) fr ;