If at least one afghan hound with a curled upright tail is standing in profile.
return afghan hounds ;return tail of #1 ;return #1 where  #2 is curled ;return #1 where  #2 is upright ;return #1 in  both  #3 and #4 ;return #5 that are standing in  profile ;return number of  #6 ;return if  #7 is at least one
['select', 'project', 'comparative', 'comparative', 'intersection', 'filter', 'aggregate', 'boolean']