:-) There are many 'rules' for subject / verb agreement but the important thing is to identify the subject. This can be hard to do if there are lots of words in between your subject and the verb.
In all of the example sentences, the subject is a noun, and it comes before other nouns, so you need to identify whether it is singular or plural and then you can choose the appropriate verb form.
Have another look at your sentence and the clauses, looking for the same pattern: Subject before the commas :-)