Configurable SQL over extended relational algebra