Write a query to return two funnel legs from fn_events: leg 1, view → add_to_cart, and leg 2, add_to_cart → purchase.
For each user, select their first view, then the first cart strictly after it, then the first purchase strictly after that cart. Do not use an earlier cart or a later repeat instead of the first eligible step. Equal timestamps do not satisfy a later step.
For each leg, count only users completing that leg as users. Convert each selected time gap to whole elapsed minutes. Return their mean as avg_minutes, rounded to one decimal place, and largest gap as integer max_minutes. A user with no eligible cart contributes to neither leg; completing leg 1 does not require completing leg 2.
Ordering: Sort by leg ascending.