Wrote query code