Combine queries using the union, intersection, or difference operators (from http://www.postgresql.org/docs/9.4/static/queries-union.html)
(select ... from ...) foo union (select ... from ...) bar;
(select ... from ...) foo intersect (select ... from ...) bar;
(select ... from ...) foo except (select ... from ...) bar;