There is no use for using aggregation with `select`. Therefore is should be not allowed https://github.com/PRQL/prql/discussions/2020#discussioncomment-5238298 Edit: should an error be thrown with `derive` as well?