Python Logical And Statement Sqlbolt