Sollicitatievraag bij Tesla

Write a SQL query that includes grouping, ordering and counting logic.