(SELECT a FROM t WHERE a=1) UNION (SELECT a FROM t WHERE a=2)
