Lucid Motors interview question

Example of SQL functions and knowledge of python.