CREATE TABLE order_items (order_item_id NUMBER, order_id NUMBER, product_id NUMBER, order_quantity CLOB)
CREATE TABLE customers (customer_id NUMBER, payment_method_code CLOB, customer_number CLOB, customer_name CLOB, customer_address CLOB, customer_phone CLOB, customer_email CLOB)
CREATE TABLE customer_address_history (customer_id NUMBER, address_id NUMBER, date_from TIME, date_to TIME)
CREATE TABLE customer_orders (order_id NUMBER, customer_id NUMBER, order_date TIME, order_status_code CLOB)
CREATE TABLE addresses (address_id NUMBER, line_1_number_building CLOB, city CLOB, zip_postcode CLOB, state_province_county CLOB, country CLOB)
CREATE TABLE products (product_id NUMBER, product_type_code CLOB, product_name CLOB, product_price NUMBER)
CREATE TABLE contacts (contact_id NUMBER, customer_id NUMBER, gender CLOB, first_name CLOB, last_name CLOB, contact_phone CLOB)

Show the customer name, customer address city, date from, and date to for each customer address history.
SELECT T2.customer_name, T3.city, T1.date_from, T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id
SELECT "T2"."customer_name", "T3"."city", "T1"."date_from", "T1"."date_to" FROM "customer_address_history" "T1" JOIN "customers" "T2" ON "T1"."customer_id" = "T2"."customer_id" JOIN "addresses" "T3" ON "T1"."address_id" = "T3"."address_id"