Bugfix: aliases for child queries were not converted to query ID