USE plato;

$key = select min(key) from Input;

INSERT INTO Output
SELECT
$key as key;

