If one image shows one leg, which wears a black knee brace, and the other image shows a pair of legs, but only one wears a black knee brace.
return one   image  ;return legs in  #1 ;return knee  braces in  #1 ;return #3 that are black ;return #2 that wear #4 ;return number of  #2 ;return number of  #5 ;return if  #6 is equal to  one   ;return if  #7 is equal to  one   ;return if  both  #8 and #9 are true ;return the  other image  ;return legs in  #11 ;return knee  braces in  #11 ;return #13 that are black ;return #12 that wear #14 ;return number of  #12 ;return number of  #15 ;return if  #16 is equal to  two ;return if  #17 is equal to  one   ;return if  both  #18 and #19 are true ;return if  both  #10 and #20 are true
['select', 'project', 'project', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean', 'select', 'project', 'project', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean', 'boolean']