SELECT m.entidad_id, m.dpto_snc, m.dist_snc 
FROM public.snc_catalog_mapping m 
WHERE m.dpto_snc IN ('L', 'K') 
ORDER BY m.dpto_snc, m.dist_snc;
