Description
We'd want to duplicate constraints when there is an alias (i.e. for "SELECT a, a AS b", any constraints on a now apply to b)
This is a follow up task based on marmbrus's suggestion in https://docs.google.com/document/d/1WQRgDurUBV9Y6CWOBS75PQIqJwT-6WftVa18xzm7nCo/edit#heading=h.6hjcndo36qze