select sorozat, psz, extract(year from allagba) from mozdony where extract(month from allagba)=12 and extract(day from allagba)=31;
select sorozat, psz, extract(year from allagba) from mozdony where text(allagba)~'12-31';