Correctly mark nested INNER joins as such