@dispatch(Selection)
def simple_selections(expr):
 return SimpleSelection(simple_selections(expr._child), simple_selections(expr.predicate))

@ dispatch ( Selection ) def simple_selections ( expr ) : return SimpleSelection ( simple_selections ( expr . _child ) , simple_selections ( expr . predicate ) )
cast all selection nodes into simpleselection nodes .