number of errors=0
number of warnings=0
country=AU
select geonameid,name,ansiname,featurecode,countrycode,admincode1,admincode2,admincode3,admincode4,admincode5 from geoname where countrycode='AU' and featurecode='ADM1' and geoname.admincode1<>'00' and not exists (select 1 from countrysubdiv_code where validtill is null and countrysubdiv_code.countrycode='AU' and countrysubdiv_code.featurecode='ADM1' and geoname.admincode1=countrysubdiv_code.admincode1) order by admincode1,admincode2,admincode3,admincode4,admincode5
8 from abs
geonameid name ansiname featurecode countrycode admincode1 admincode2 admincode3 admincode4 admincode5