query: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name ORDER BY sum(T2.amount)
question: What the names of the different customers have taken out a loan one , ordered by the total amount that they have taken?
query_toks: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY sum ( T2.amount )
query_toks_no_value: select t1 . cust_name from customer as t1 join loan as t2 on t1 . cust_id = t2 . cust_id group by t1 . cust_name order by sum ( t2 . amount )
question_toks: What the names of the different customers have taken out a loan one , ordered by the total amount that they have taken?