Edit WF query.