Added order by support to qbe, and support to subquestions when creating
dynamic answer tables