In French there are two main relative pronouns, qui and que. The choice between qui and que in French depends solely on the grammatical role, subject or direct object, that the relative pronoun plays in the subordinate clause.
Qui functions as the subject of the subordinate clause.
Que functions as the direct object of the subordinate clause
pror1: relative pronouns: qui and que