table: add :as option to where