If there is at least 1 lock with a chain in the right image.
return locks ;return chain ;return #1 with #2 ;return #3 in  the  right image ;return number of  #4 ;return if  #5 is at least one
['select', 'select', 'filter', 'filter', 'aggregate', 'boolean']