subset,filter: Support for querying Flag types