Returns the name of the type of the ST_Geometry value.
SELECT LIST( ShapeID ORDER BY ShapeID ) FROM SpatialShapes WHERE Shape.ST_GeometryType() IN( 'ST_Polygon', 'ST_CurvePolygon' )
SQL/MM (ISO/IEC 13249-3: 2006) 5.1.4