Query: Relational: SQL gen improvements

  - Change to use expressions for table source, projection and ordering.
  - Adds table/column aliasing.