query_view expansion

Extended capability for handling SQL conditions