2 つのクエリがあります。
1)
SELECT a.n
FROM account a, contract c
WHERE c.n = a.r$contract
AND c.n IN (
SELECT account.n
FROM account, contract
WHERE contract.n = account.r$contract
AND account.n = contract.n )
ORDER BY a.n
と
2)
SELECT account.n
FROM account, contract
WHERE contract.n = account.r$contract
AND account.n = contract.n
1では47行あるのに2から15まで。理由がわかりません