demo query code submit