add limit and offset method on Query