select to_char(ra.created,'YYYY-MM-DD'),ba.is_verified,count(*) from realm_account ra, base_acccount ba where ba.id= ra.base_account and ra.created > '2015-06-01' and ra.realm = 4 group by 1,2 order by 1,2;