'q' builder for RESTful systems