If there are lamps on each side of a bed
return bed ;return sides of #1 ;return lamps ;return #2 that has #3 on ;return number of  #4 ;return if  #5 is equal to  two
['select', 'project', 'select', 'filter', 'aggregate', 'boolean']