number of errors=4
number of warnings=0
select a.name,a.countrycode,a.featurecode,a.geonameid,b.geonameid from geoname a, geoname b, geoname_bbox bb where a.featureclass='P' and b.featureclass='P' and a.geonameid=bb.geonameid and accuracylevel=10 and st_within(b.geography::geometry,wkb_geometry) and a.geonameid<>b.geonameid and lower(a.name)=lower(b.name)
name countrycode featurecode geonameid geonameid Blairgowrie GB PPL 2655394 13268594 Eaglescliffe GB PPL 6694830 13269241 Brighton GB PPLA2 2654710 13284120 West Cornforth GB PPL 2634467 13265249