How many characters can the SQL query for the data group filter criteria have?

The SQL query for the data group filter criteria is stored as a Character Larger Object (CLOB) type data. The SQL query can have more than 4000 characters when you delete the existing data group filter criteria and create a new one.