Generic query object class created