Python Logical And Statement Sql W3schools