Add distinct to select parameters, locations from timeseries.