qs --> query, and more parens for clarity?