select b.name, sum(c.count) from websites b inner join access_log c on b.id = c.site_id group by c.site_id having sum(c.count) > 500