The little boy stands in the middle of birds who have gathered on the sidewalk.
There are a lot of birds outside by the sidewalk.
There is a boy on the sidewalk by the birds.
Birds who have gathered are a lot of birds.   The sidewalk is to be found outside.
Birds is a rephrasing of lot of birds, and sidewalk implies outside.