select customer.education as c0, store.store_country as c1, store.store_state as c2, store.store_city as c3 from customer as customer, sales_fact_1997 as sales_fact_1997, store as store where sales_fact_1997.customer_id = customer.customer_id and sales_fact_1997.store_id = store.store_id and (store.store_city in ('Beverly Hills', 'San Francisco') and store.store_state = 'CA') group by customer.education, store.store_country, store.store_state, store.store_city order by customer.education ASC NULLS LAST, store.store_country ASC NULLS LAST, store.store_state ASC NULLS LAST, store.store_city ASC NULLS LAST; |