number of errors=1
number of warnings=0
country=GB
select geonameid,name,ansiname,featurecode,countrycode,admincode1,admincode2,admincode3,admincode4,admincode5 from geoname where countrycode='GB' and featurecode='ADM2' and not exists (select 1 from countrysubdiv_code where validtill is null and countrysubdiv_code.countrycode='GB' and countrysubdiv_code.featurecode='ADM2' and geoname.admincode1=countrysubdiv_code.admincode1 and geoname.admincode2=countrysubdiv_code.admincode2) order by admincode1,admincode2,admincode3,admincode4,admincode5
11 from opendata_ni
geonameid name ansiname featurecode countrycode admincode1 admincode2 admincode3 admincode4 admincode5 2648110 Greater London Greater London ADM2 GB ENG GLA null null null