adding filtered query for data set