Загрузка данных


select
    classification,
    contract_model_label,
    count(*) as eps_count
from ourpension.eps
where service_type = 'NPO'
  and periodicity in (1, 2)
group by
    classification,
    contract_model_label
order by 1, 2;