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

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

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