How smart were dinosaurs?

Not very smart. The biggest dinosaur, sauropod, was extremely dumb and the predators were only a little bit smarter. If faced a velociraraptor today, it would be slightly dumber than a chicken.