CREATE INDEX task_active_resolved_idx
  ON social.task_active
  USING btree
  (resolved_by, resolved_at, event_id);

CREATE INDEX task_closed_resolved_idx
  ON social.task_closed
  USING btree
  (resolved_by, resolved_at, event_id);

CREATE INDEX task_closed_closed_idx
  ON social.task_closed
  USING btree
  (closed_by, closed_at, event_id);
