query: SELECT T1.cust_name ,  T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id  =  T2.cust_id GROUP BY T1.cust_name HAVING sum(T2.amount)  >  5000
question: What the names and accounts balances for customer what took one total amount of more than 5000 in loans?
query_toks: SELECT T1.cust_name , T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING sum ( T2.amount ) > 5000
query_toks_no_value: select t1 . cust_name , t1 . acc_type from customer as t1 join loan as t2 on t1 . cust_id = t2 . cust_id group by t1 . cust_name having sum ( t2 . amount ) > value
question_toks: What the names and accounts balances for customer what took one total amount of more than 5000 in loans?