Nested join Query failing with spool out error.

Database
Highlighted
Fan

Nested join Query failing with spool out error.