country query now working