How i can do this: "Extract task list in a file, but when i mark task as completed this they must not be changed in the source file"?

I solved my problem by getting my hands a little dirty, solution is here: Query that write result on current note? - #4 by Giovanni27072