Which is an English word that functions as:
1. An interrogative pronoun: "Which one do you prefer?"
2. A relative pronoun: "The book which I bought yesterday is interesting."
3. A determiner: "Which way should we go?"
4. In non-defining clauses: "My car, which is red, is parked outside."