*SUPPORT*
IN: lug fep lug tufa wif OUT: BLUE GREEN GREEN BLUE
IN: kiki fep kiki dax gazzer OUT: PINK YELLOW YELLOW PINK
IN: kiki OUT: PINK
IN: gazzer OUT: YELLOW
IN: gazzer lug gazzer tufa wif OUT: YELLOW BLUE YELLOW GREEN GREEN
IN: gazzer kiki kiki fep tufa dax gazzer OUT: YELLOW PINK GREEN PINK YELLOW YELLOW
IN: tufa OUT: GREEN
IN: gazzer wif dax tufa dax kiki dax lug OUT: YELLOW YELLOW GREEN GREEN PINK PINK BLUE BLUE
IN: tufa gazzer wif OUT: GREEN YELLOW YELLOW
IN: lug OUT: BLUE
IN: lug lug kiki dax lug OUT: BLUE BLUE PINK BLUE BLUE
IN: tufa lug OUT: GREEN BLUE
IN: gazzer wif OUT: YELLOW YELLOW
IN: kiki wif OUT: PINK PINK

*QUERY*
IN: kiki fep tufa kiki OUT: GREEN PINK PINK
IN: kiki fep lug wif dax gazzer dax tufa OUT: BLUE BLUE YELLOW YELLOW GREEN GREEN PINK
IN: tufa dax tufa OUT: GREEN GREEN GREEN
IN: tufa wif OUT: GREEN GREEN
IN: kiki gazzer wif dax tufa dax gazzer OUT: PINK YELLOW YELLOW GREEN GREEN YELLOW YELLOW
IN: tufa fep lug dax gazzer dax gazzer OUT: BLUE YELLOW YELLOW YELLOW YELLOW GREEN
IN: lug tufa tufa wif dax tufa OUT: BLUE GREEN GREEN GREEN GREEN GREEN
IN: tufa gazzer kiki fep gazzer dax kiki OUT: GREEN YELLOW YELLOW PINK PINK PINK
IN: gazzer fep tufa wif OUT: GREEN GREEN YELLOW
IN: lug fep gazzer OUT: YELLOW BLUE

*GRAMMAR*
lug -> BLUE 
 gazzer -> YELLOW 
 tufa -> GREEN 
 kiki -> PINK 
 u1 fep x1 -> [x1] [u1] 
 u1 wif -> [u1] [u1] 
 x1 dax u1 -> [x1] [u1] [u1] 
 u1 x1 -> [u1] [x1] 
 