edits to query language