CREATE TABLE a(x);
INSERT INTO a VALUES(1),(2),(3);
SELECT (SELECT max(x) FROM a), (SELECT count(*) FROM a WHERE x IN (SELECT x FROM a));
