At the top of the gmail screen is a textbox that acts as a filter against all existing email.  Typically, you might use this textbox to search for emails with specific terms found in the body.  However, this textbox has a whole lot more to filter against.

Here’s a list of all the special syntax that this gmail filter textbox performs:
https://support.google.com/mail/answer/7190?hl=en