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

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

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