Python queries of database

Hello mam !
Working with database in python.
Ke all assignment questions I can’t solve it .
Could you please help me.
And sorry for your trouble.