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

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

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