query as default scope