debugging query 4