commented SQL for clarity