update another sql query to limit by term start date