The field name (from the Table Schema) that you want is cantrunxformattrib
The value in the cantrunxformattrib field of the starterhistory table for CLEAN horses is 0. The value for DIRTY or XFORM horses is 1. And the value for CANTRUN horses is 2.
So, to make a SQL UDM flag CLEAN horses, use a SQL Expression like the following: