DELETE FROM to_gate_task WHERE to_gate_task.task_id = %(task_id_1)s