smaller query when account_id is provided