Meaning: This sentence describes friends bidding farewell to each other at the school gate.
Choice of Words: The sentence uses past tense to describe a completed action. The subject is "friends", "waved" is the past tense of "wave", "goodbye" is the object, and "at the gate" indicates the location.