Some great examples on how to use the filter query option in Sharepoint Power Automate:

https://diyd365.com/2019/11/20/every-power-automate-ms-flow-filter-query-you-ever-wanted-to-know-as-a-functional-consultant/