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

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

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