EX: It was John who went.
=> "who" refers to John. "John" is the grammatical subject; "It", the structural subject. With expletive-It constructs, the subject (i.e., John) is delayed.
EX: It is John and Mary who are going.
=> "are" agrees in number with "who", which gets its number from its referent "John and Mary".
All the best.