Build an Ordered TurboTax Filing Funnel from Event Logs

Last updated: November 29, 2026

Quick Overview

Given an events table with user_id, event_name and event_ts, write SQL that counts how many users reached each step of the filing funnel (start return, income entered, deductions reviewed, payment, filed) in order, and the conversion from each step to the next.

Intuit
Data Manipulation (SQL/Python)
Data Scientist
Intuit
November 29, 2026
Data Scientist
Phone Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


Given an events table with user_id, event_name and event_ts, write SQL that counts how many users reached each step of the filing funnel (start return, income entered, deductions reviewed, payment, filed) in order, and the conversion from each step to the next.

TurboTax product analytics revolves around where filers abandon the flow, especially in the weeks before the April deadline. The interviewer checks that a step only counts if it happened after the previous step, and that conversion is computed between consecutive steps.

What the Interviewer Expects
  • Take the first timestamp per user per step
  • Require each step to occur after the previous one
  • Count users per step and conversion step over step
  • Keep the tax year or season filter explicit
  • Handle users who skip optional events
Key Topics to Cover
funnels
conditional aggregation
MIN per group
event logs
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you show the median time between each pair of steps?
  • How would you break the funnel down by product tier (Free Edition, Deluxe, Live)?
  • Users often start, leave for weeks, and return. How would you define sessions here?
  • How would you check whether a drop at payment is a tracking issue or real behavior?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

events(user_id, event_name, event_ts, tax_year). Steps: start_return, income_entered, deductions_reviewed, payment_submitted, return_filed. Free Edition users may have no payment event, so...

Approach

Pivot to one row per user with the first timestamp of each step. Then a user reaches step k only if step k exists and its timestamp is after step k-1, and they reached step k-1. Count with `COUNT(*) F...


Submit Your Answer
Markdown supported