Adding a last query for pulling last available values during a time period.