Tesla Interview Question

SQL logic questions based on scenarios