select '90+' as label,count(distinct(device_id)) from data_feed_exposure2 \
where device_type{0} \
and stat_date = get_yesterday_date()\
and stat_date = '{7}'\
and device_id not in \
(select distinct(device_id) from data_feed_click2 \
where stat_date = get_yesterday_date()\
where stat_date = '{7}'\
and device_type{1}) \
and device_id in \
(select distinct(device_id) \
from data_feed_exposure2 \
where device_id in \
(select distinct(device_id) from data_feed_exposure2 \
where stat_date < {6}))".format(platform,platform.replace(' ','')ifplatform[-2]=='e'elseplatform,my_date1,my_date2,my_date3,my_date4,my_date5)
where stat_date < {6}))".format(platform,platform.replace(' ','')ifplatform[-2]=='e'elseplatform,my_date1,my_date2,my_date3,my_date4,my_date5,get_yesterday_date())