USE plato; pragma yt.FuseMapToMapReduce="normal"; SELECT key, max(subkey), FROM Input GROUP BY key;