Easy. I assume you live in Singapore.
Singapore - Doha# - Dubai* - Doha* - Istanbul* (on Qatar Airways)
Istanbul - London# - Toronto* (on British Airways)
Toronto - Hong Kong* - Singapore (on Cathay Pacific Airways)
You're allowed five stopovers (marked * above), two transfers (marked #) and two open-jaws.