This topic has a ton of useful example queries. Chances are some may be pretty close to what you’re looking for, and by playing around a bit you’ll start to get a feel for how the queries are constructed: