query code in weather contract