I'm thinking this may be the place to translate?

This code should make existing 'left' and 'right' selectors work, but I think 'left_id' would be needed vs. 'trunk_id', or are the _id forms allowed in wql?