Question: Find employee with ID and name of the country presently where (s)he is working.
Schema: create table countries (country_name varchar, country_id varchar, PRIMARY KEY (country_name)); create table departments (department_id varchar, location_id varchar, PRIMARY KEY (department_id)); create table locations (location_id varchar, country_id varchar, PRIMARY KEY (location_id)); create table employees (employee_id varchar, department_id varchar, PRIMARY KEY (employee_id))
SQL: select t1.employee_id, t4.country_name from employees as t1 join departments as t2 on t1.department_id = t2.department_id join locations as t3 on t2.location_id = t3.location_id join countries as t4 on t3.country_id = t4.country_id