Arcpy Create Definition Query, This functionality is new in ArcGIS Pro 3.