1 2 3 4 5 6 7 8 9 10
USE plato; SELECT key, value, count(*) AS c FROM Input GROUP BY key, value ORDER BY c, key, value;