Create query-edit