Select all or part of a table, possibly with new columns

Below, square brackets mark optional elements.

select [Lexp] [ps] [by pb] from texp [where pw]