Allow query filtering by visibility field