A friend of mine in Calgary had a dog which the jays would plague. One jay would cry out from the roof and his dog would run to the house and bark at it. Then the confederate jay would fly to the dog food bowl and gorge itself. Eventually the dog would notice the theft and run to the bowl. Then that jay flew to the roof and started calling. The first jay would then fly away. When the dog was occupied barking at jay 2, jay 1 would alight at the bowl. This would go on until the dog and the jays finished the food. You can judge which was smarter, bird or dog (German Shepherd). Avian neurons are much smaller than mammalian ones, so small bird brains can pack a lot in a small space. So maybe dinosaurs were clever despite relatively small brains.