added query for collecting data on retention over time