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