If all dogs are corgis with upright ears, and one image contains at least twice as many real corgis as the other image.
return dogs ;return #1 that are corgis  ;return ears of #2 ;return #2 where  #3 are upright ;return number of  #1 ;return number of  #4 ;return if  #5 is equal to  #6 ;return one image  ;return corgis  in  #8 ;return #9 that are real ;return number of  #10 ;return other image  ;return corgis  in  #12 ;return #13 that are real ;return number of  #14 ;return division of #11 and #15 ;return if  #16 is at least two ;return if  both  #7 and #17 are true
['select', 'filter', 'project', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'project', 'filter', 'aggregate', 'select', 'project', 'filter', 'aggregate', 'arithmetic', 'boolean', 'boolean']