select * 
from rpt.han_LS_Sex_Age_s_pg
(
cast($1 as bigint),
cast($2 as bigint),
cast($3 as bigint),
CAST( to_timestamp($4, 'DD.MM.YYYY') as timestamp), 
CAST( to_timestamp($5, 'DD.MM.YYYY') as timestamp)
)
 order by 1
 		 

