use TABLE_QUERY instead of TABLE_DATE_RANGE because of 'date range too large' errors