Hi Fred,
I think QD does not really support files in www/.... . It not runs because of the tcl/zz-postload.tcl get the xql files. I think not too sure it has been a long time since I have done this.
What you need to do is to edit the tcl/zz-postload.tcl file and include your ORIG directory in a list there. Then name your query as "dbqd.www.orig.[file].[query name]". I hope this helps most of this are from memory. I do encourage you to not to put xql files under www try to use packages.