The face of a goat doesn't really inspire. It has a deadpan stare, and it's certainly not the liveliest.

"That's the common public impression, that goats and most other farm animals are not very intelligent," says Elodie Briefer, a researcher at the Institute of Agricultural Sciences in Zurich.

In a recent study, she and her colleagues found that behind that dazed look is a pretty smart brain, too.

It turns out that goats haven't really been studied for their cognitive skills, at least not in the same way that chimps have.

"By working with them, we realized that they are actually very curious animals," Briefer says. "Most people who own goats, they know that they can open locks and escape from any pen."

The goats involved in the study were already domesticated. They were put through a series of tests over the span of several months to measure their thinking abilities.

What they designed was essentially an obstacle course to get food out of a box. Briefer and her team timed the goats to see how fast they could get their grub.

"After these really long intervals, they could solve the task within two minutes, which was quite surprising for us," she says.

Even though the research focused on obtaining food, a goat's intelligence isn't limited to that. In fact, a goat's intelligence is one of the reasons the animal can survive pretty much anywhere, contributing to the resilience of the species.

"They can manipulate objects easily, they can learn complex tasks, and they can remember them," Briefer says.