Question: Show all document names using templates with template type code BK.
Schema: create table documents (document_name varchar, template_id varchar, PRIMARY KEY (document_name)); create table templates (template_id varchar, template_type_code varchar, PRIMARY KEY (template_id))
SQL: select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = "bk"