I have Jack Russel Terriers and they are extremely smart. One of them can even spell. I can spell B A T H and she runs and hides.
JRT agility competition.
https://www.youtube.com/watch?v=TuC8hymDmfI