Disengagements per Thousand Autonomous Miles by Software Release
Last updated: November 29, 2026
Quick Overview
Using tables of drives (release, autonomous miles, test-track flag), disengagement events (drive, cause) and releases (release date), write SQL that reports disengagements and safety-related disengagements per 1,000 public-road autonomous miles for each release, plus the change versus the previous release.
Nuro
November 29, 20260
0
0 solved
Using tables of drives (release, autonomous miles, test-track flag), disengagement events (drive, cause) and releases (release date), write SQL that reports disengagements and safety-related disengagements per 1,000 public-road autonomous miles for each release, plus the change versus the previous release.
Safety and release teams track intervention rates per mile for each Nuro Driver build before it goes to a wider fleet such as the Uber robotaxi program. The interviewer checks correct aggregation grain (no fan-out when joining events to drives), handling of releases with zero events, and window functions.
What the Interviewer Expects
- Aggregate miles and events separately to avoid join fan-out
- Exclude test-track drives consistently from both numerator and denominator
- Keep releases with zero disengagements using LEFT JOIN and COALESCE
- Use LAG ordered by release date for the change
- Apply a minimum-miles filter and explain why
Key Topics to Cover
How to Approach This
- Clarify the schema and expected output format before writing queries.
- Use CTEs (WITH clauses) to break complex queries into readable steps.
- Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
- Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
- For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
- How would you attach a confidence interval to each rate?
- How would you adjust for releases tested on different routes or times of day?
- How would you count disengagements that occur within a few seconds of each other?
- What would you change if a drive could span two releases?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice SQL ProblemsSample Answer
Clarify the Data
drives(drive_id, software_release, autonomous_miles, is_test_track), one row per drive. disengagements(event_id, drive_id, cause), many per drive. releases(software_release, released_at). I assu...
Approach
Joining events to drives before summing miles would count a drive's miles once per event. So I aggregate miles per release in one CTE and events per release in another, join them at release grain, com...