2025-03-04     2025-03-05     2025-03-06

adm2 without ppla2

number of errors=0
number of warnings=0
country=ES

select geonameid,countrycode,admincode1,admincode2,ansiname from geoname where featurecode = 'ADM2' and admincode1 is not null and admincode1 <>'00' and admincode2 is not null and countrycode || admincode1 || admincode2 not in (select countrycode || admincode1 || admincode2 from geoname where featurecode in ('PPLC','PPLA','PPLA2') and countrycode is not null and admincode1 is not null and admincode1 <>'00' and admincode2 is not null) and countrycode='ES' order by countrycode,admincode1,admincode2

geonameid	countrycode	admincode1	admincode2	ansiname