Indicate the function of the bolded elements in the following questions.
1. Who came? Subject
2. Who did he see? Direct Object
3. Who did he say came? Subject
4. Who's this? Subject Complement
5. Who did he give it to? Indirect Object
6. When did he give it to her? Adjunct
7. Where did he put it? Prepositional Complement
8. What colour did he paint the house? Object Complement