SQL & Queries

Answer & solution
Answer: A (no official key was published)
Step 1: FROM r,s creates a Cartesian product. If s is nonempty, every row of r appears at least once in that product; projection onto w,x and DISTINCT then returns exactly the distinct rows of r.
Step 2: To preserve SQL bag multiplicities as well, r itself must have no duplicates. No duplicate restriction on s is needed because DISTINCT removes replication.
Hence A. If s is empty, the result is empty even for nonempty r. If r has duplicates, DISTINCT changes it. The other listed conditions do not rule out these failures.