Amazon interview question

Few SQL and python related questions. Other questions were behavioral.