Anonymous interview question

Syntax from Sql and python languages