Add query window with executing code