Loosend regex to get aliases from subqueries and functions

Ordering columns were not detected if the pseudo column was a function or a subquery with a white space.
related to issue #41, #39 (partially)