If each image shows only one wild dog, and the left image shows a dog with its body in profile turned rightward.
return wild dogs ;return images ;return number of  #1 for each  #2 ;return #2 where  #3 is equal to  one ;return number of  #2 ;return number of  #4 ;return if  #5 is equal to  #6 ;return left image  ;return #1 that is in  #8 ;return body of #9 ;return #9 where  #10 is in  profile ;return #11 where  #10 is turned rightward ;return number of  #12 ;return if  #13 is equal to  one ;return if  both  #7 and #14 are true
['select', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'filter', 'project', 'comparative', 'comparative', 'aggregate', 'boolean', 'boolean']