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

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

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