insert into plato.Output
select key, count(*), min(value) from plato.Input group by key order by key;

