added method to get sql between statement from areabox class