You can learn SQL and Query Tables faster than I can. I know it, simply because you’re reading this.
First, watch this whole course
Look at existing, working SQL code
Take advantage of those tabs in the Query Table builder to more quickly and accurately include the right tables and fields and find the operators you need (and how to use them)