Question: Find the name of bank branches that provided some loans.
Schema: create table loan (branch_id varchar, PRIMARY KEY (branch_id)); create table bank (bname varchar, branch_id varchar, PRIMARY KEY (bname))
SQL: select distinct t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id