query: support multiple flags in filter (RhBug:1173027)