You can break your question down into logical steps. Write a query that satisfies the statement up to the first comma. Test & verify. Then alter it to satisfy up to the following comma. Test and verify. Repeat. Post what you come up with.
You'll get some pointers if you put in effort and get stuck but you won't get the answer - you'll need to come up with that yourself.
It's because of this one or maybe more people that the whole world of the internet becomes so much of crappy messy place... *sighs*
Since there is really no specifics on deleting a topic, this is the best I could do.
Dear me - poor you! And now you'll have to do your homework all by yourself. Was that the original vision of the internet? That students should have to think for themselves?. A total travesty - I'm giving up on the internet altogether in protest.