Hi @mortonjt, we have a tutorial up on the docs site all about filtering, with a short section dedicated to the SQL WHERE
syntax:
https://docs.qiime2.org/2017.2/tutorials/filtering/#metadata-based-filtering
We are planning on beefing up some of the SQL WHERE
examples in the near future. So if you wanted to filter based on something like pH range (and your Metadata Category was named `pH``):
--p-where "CAST(pH AS INTEGER) BETWEEN 2 AND 4"
Also, just to clarify, we use SQLite as the SQL engine for processing these queries, so if you want to find some additional resources in the near future (before we improve the filtering tutorial), that should help guide your search.