Compute shop visibility and intent metrics in SQL | Meta SQL Question