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

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

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