If each image contains a single phone, and the phone in the right image has its top at least partially flipped open.
return images ;return phones in  #1 ;return number of  #2 for each  #1 ;return #1 where  #3 is equal to  one ;return number of  #4 ;return number of  #1 ;return if  #5 is equal to  #6 ;return the  right image  ;return phone  in  #8 ;return top of #9 ;return if  #10 is at least partially flipped open ;return if  both  #7 and #11 are true
['select', 'project', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'project', 'project', 'boolean', 'boolean']