Minor fixes
Prefix should be static to be shareble with subqueries
Added nicer where API to define operators