updated query to get deals.csv