              value = uuid.UUID(value)
          return value
  
      def bulk_insert_sql(self, fields, placeholder_rows):
          return " UNION ALL ".join(
              "SELECT %s" % ", ".join(row)
              for row in placeholder_rows
          )
 
</s> remove     IntegerField, Q, Sum, Value,
 </s> add     IntegerField, NullBooleanField, Q, Sum, Value,
    def convert_booleanfield_value(self, value, expression, connection, context):
        return bool(value) if value in (1, 0) else value

              value = uuid.UUID(value)
          return value
  
    def convert_booleanfield_value(self, value, expression, connection, context):
        return bool(value) if value in (1, 0) else value

      def bulk_insert_sql(self, fields, placeholder_rows):
          return " UNION ALL ".join(
              "SELECT %s" % ", ".join(row)
              for row in placeholder_rows
          )
keep keep add keep keep keep keep keep
 Fixed #27481 -- Made SQLite return annotated boolean values as boolean, not integer.

Thanks Simon Charette for review. 
django/db/backends/sqlite3/operations.py