Sentence #2 is a non-standard expression. The standard wording for that question would be: What school did you graduate from? " You graduate from something.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Your answer is very helpful to me.
I hope this helps.