Scalable Analytics-as-a-Service platform based on relational algebra