USE plato;

SELECT
    key,
    min(1u/(4u-subkey)),
    min(subkey),
    min(1u),
    min(1u/0u)
FROM Input
GROUP by key
ORDER by key