Question: Find the name of instructor who is the advisor of the student who has the highest number of total credits.
Schema: create table student (id varchar, tot_cred varchar, PRIMARY KEY (id)); create table advisor (i_id varchar, s_id varchar, PRIMARY KEY (i_id)); create table instructor (name varchar, id varchar, PRIMARY KEY (name))
SQL: select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id order by t3.tot_cred desc limit 1