Added support for SubQueries using Templates.
Added support for Extra Alias Nodes.