data_exc_outliers = aq
.from(data)
.select("_id", "name", "type", "hqCountry", "numInvestments", "totalInvested")
.rename({
_id: "id"
})
.derive({ totalInvested: (d) => d.totalInvested / 10000 })
.filter((d) => (d.totalInvested > 0) & (d.totalInvested < 1000000))
.objects()