Sql Year Function In Python Syntax For Not Equal