$query = "SELECT id, title, start_date, end_date, registration_start_date, registration_end_date
FROM civicrm_event
WHERE is_template IS NULL OR is_template != 1";
$query = "SELECT id, title, start_date, end_date, registration_start_date, registration_end_date
FROM civicrm_event
WHERE is_template IS NULL OR is_template != 1";