finish query 3