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

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

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