select set1, ((chain C or chain D) and (name O3' or name O4' or name O5')) select set2, ((chain C or chain D) and (name OP1 or name OP2)) select set3, ((chain C or chain D) and /1r4o/*/*/*/N*)