If each set of images is actually just two different views of the same building.
return images ;return buildings in  #1 ;return if  #2 are the  same ;return different views of #2 ;return number of  #4 ;return if  #5 is equal to  two ;return if  both  #6 and #3 are true
['select', 'project', 'boolean', 'project', 'aggregate', 'boolean', 'boolean']