add query reference to the output