In Peewee 3.7.0, when executing the following code I get this error:
TypeError: \'>\' not supported between instances of \'ModelCompoundSelectQuery\' and \'int\'