Determines whether the geometry value is simple (containing no self intersections or other irregularities).
SELECT ShapeID FROM SpatialShapes WHERE Shape.ST_IsSimple() = 0
SQL/MM (ISO/IEC 13249-3: 2006) 5.1.8