If the right image features a dog with its head and body angled leftward and its tongue hanging out.
return dog ;return head of #1 ;return #1 where  #2 is angled leftward ;return body of #1 ;return #1 where  #4 is angled leftward ;return #1 in  both  #3 and #5 ;return tongue of #6 ;return #6 where  #7 is hanging out ;return if  #8 is in  the  right image
['select', 'project', 'comparative', 'project', 'comparative', 'intersection', 'project', 'comparative', 'boolean']