Adds join alias and changes exit alias to Q