Thanks :-)
Could you elaborate on the ones that do not look right? I kind of summarized the SQL portion, that may be what you mean. I tried each one out on a set of data and they seemed correct.
Here is the p - q more defined
CREATE VIEW loj AS SELECT pe.p AS p, qu.que AS q FROM pe LEFT OUTER JOIN qu ON pe.p = qu.que;
CREATE VIEW p_minus_q AS SELECT * FROM loj WHERE q IS NULL;