Question: Which events have the number of notes between one and three? List the event id and the property id.
Schema: create table customer_events (customer_event_id varchar, property_id varchar, customer_event_id varchar, PRIMARY KEY (customer_event_id)); create table customer_event_notes (customer_event_id varchar, PRIMARY KEY (customer_event_id))
SQL: select t1.customer_event_id, t1.property_id from customer_events as t1 join customer_event_notes as t2 on t1.customer_event_id = t2.customer_event_id group by t1.customer_event_id having count(*) between 1 and 3