If the building in the left image has exactly one chimney.
return left image ;return building in  #1 ;return chimney of #2 ;return number of  #3 ;return if  #4 is equal to  one
['select', 'project', 'project', 'aggregate', 'boolean']