Generali interview question

Traduci query SQL in Pandas