number of errors=4
number of warnings=0
select a.countrycode,a.geonameid,b.geonameid,a.name,a.admincode1,b.admincode1 from geoname a, geoname b where a.geonameid <> b.geonameid and a.featureclass='P' and b.featureclass='P' and lower(a.name)=lower(b.name) and a.longlat<->b.longlat<0.005 and a.iscities500 and b.iscities500 and a.admincode1=b.admincode1
countrycode geonameid geonameid name admincode1 admincode1 BR 6317437 3396920 Lagoa do PiauĂ 20 20 BR 3396920 6317437 Lagoa do PiauĂ 20 20 BR 3445054 6317611 Modelo 26 26 BR 6317611 3445054 Modelo 26 26