Python Logical And Statement Sql Interview Practice