# create a query selection
paraview.simple.QuerySelect(QueryString='((id == 1) | (id == 2) | (id == 3))', FieldType='CELL')
The easiest way to figure this out is to use the Python tracing capabilities: Tools > Start Trace, check Show Incremental Trace in the Trace Options dialog, and then use the Find Data dialog to do the query.