Mlpq: A Linear Constraint Database System With Aggregate Operators