query::flags as enum class