Fix timeseries query for large gaps in classification data