SELECT * FROM plato.Input UNION SELECT * FROM plato.Input2 ORDER BY key, subkey, value;