DXC Technology interview question

Simple SQL queries and python code