SQL & Queries

Answer & solution
Official answer: D
Method
Divide possible output rows into matched pairs, unmatched Book rows and unmatched Stock rows. An inner join emits only the first group. A left join additionally emits unmatched Book rows with null Stock columns; a right join analogously preserves unmatched Stock rows. A full join includes all three groups. Even after the common projection, every row generated by a narrower join still occurs in the full join, with at least the same multiplicity.
Solution
The full outer join includes every matched pair plus all unmatched rows from each side padded by nulls. The inner and either one-sided outer join produce subsets of those rows after the same projection. Thus Query4, D; this remains a superset under SQL bag multiplicities.