Added continous queries for downsampling