CREATE TABLE test (id Int32, x1 Nullable(Int32), x2 Nullable(Float32)) ENGINE = MergeTree() ORDER BY id
INSERT INTO test SELECT number, number+1, number + 2 FROM numbers(1000000)
SELECT COUNT(1) FROM test WHERE least(x1, x2) > 1
SELECT COUNT(1) FROM test WHERE GREATEST(x1, x2) > 1
DROP TABLE IF EXISTS test