Education

See page 32 here. https://www.irs.gov/pub/irs-pdf/p970.pdf

 

A loan is qualified if the student was your dependent when the loan was taken out (and assuming it meets the other tests).