There are SQL queries that don't have a bool type in the where clause (e.g.: the usage of JSON_CONTAINS_PATH). https://github.com/David-Wobrock/sqlvalidator/blob/6b8732359e4c43c68d3550a10df5eea115417c1c/sqlvalidator/grammar/sql.py#L250 should be the place to change this.