bridgepoint/oal.py
def p_select_related_statement(self, p):
        '''
        statement : SELECT ONE  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT ANY  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT MANY variable_name RELATED BY navigation_hook navigation_chain
        '''
        p[0] = SelectRelatedNode(cardinality=p[2],
                                 variable_name=p[3],
                                 handle=p[6],
                                 navigation_chain=p[7])
def p_select_related_statement(self, p):
        '''
        statement : SELECT ONE  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT ANY  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT MANY variable_name RELATED BY navigation_hook navigation_chain
        '''
        p[0] = SelectRelatedNode(cardinality=p[2],
                                 variable_name=p[3],
                                 handle=p[6],
                                 navigation_chain=p[7])
statement : SELECT ONE  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT ANY  variable_name RELATED BY navigation_hook navigation_chain
                  | SELECT MANY variable_name RELATED BY navigation_hook navigation_chain