2025-08-15     2025-08-16     2025-08-17

valid admincode1,2 for JP

number of errors=3
number of warnings=0
country=JP

select countrycode,name,geonameid,admincode1,admincode2,featureclass,featurecode,relevance from geoname where countrycode in ('JP') and not featureCode in ('ADM1H','ADM2H','ADM3H','ADM4H','ADM5H','ADMD') and not featurecode in ('STM') and admincode1 is not null and admincode1<>'00' and admincode2 is not null and not exists (select 1 from geoname b where b.countrycode=geoname.countrycode and b.admincode1=geoname.admincode1 and b.admincode2=geoname.admincode2 and b.featurecode='ADM2' and b.countrycode in ('JP')) order by relevance desc,admincode1,admincode2

countrycode	name	geonameid	admincode1	admincode2	featureclass	featurecode	relevance	
JP	Shōwa Denkō Kōjō	13431706	04	1859635	S	MFG	0	
JP	Ōbuchi	13429125	46	1864089	P	PPL	0	
JP	Ichiba	13429155	46	1864104	P	PPLL	0