If I've heard that once I've heard it a thousand times.
"You know better...."
"You knew that already, you just asked that question to get attention...."
"I shouldn't have to tell you these things, look how smart you are...."
There may be some correlation between intellectual smarts and social smarts. At most. Heck, the brainy but socially awkward nerd is a cliché in our culture.
Please, don't assume that just because someone is an avid reader, talks with a vocabulary well beyond his years and can discuss certain things in depth at the drop of a hat, that he also necessarily knows that you're upset or need a hand with the groceries or don't feel like being stared at.
And no, this is not an opportunity to get small-minded revenge on the person who keeps showing off and showing you up. Even if he corrects you in public on the most petty, lame-ass things doesn't mean he's personally attacking you.
Thank you very much in advance for your understanding.