Editing query results