cleaned up time-series queries and defined the winner function which gives the top-converting projects