DROP TABLE test;

CREATE TABLE test(a INTEGER, b INTEGER);

INSERT INTO test VALUES (1,2);

INSERT INTO test VALUES (2,2);

INSERT INTO test VALUES (2,1);

SELECT to_char(a)||' is less than '||to_char(b) less_than
FROM test
WHERE a < b;

SELECT to_char(a)||' is equal to '||to_char(b) equal_to
FROM test
WHERE a = b;

SELECT to_char(a)||' is greater than '||to_char(b) greater_than
FROM test
WHERE a > b;