fix bug on selects with raw expressions + adding some aggregations in the config example