If in all photos, all four legs are visible.
return legs ;return photos ;return number of #1 for each #2 ;return #2 where #3 is  equal to four ;return number of #2 ;return number of #4 ;return If #5 is  equal to #6
['select', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean']