| Limit (cost=0.02..0.03 rows=1 width=144) |
| -> Sort (cost=0.02..0.03 rows=1 width=144) |
| Sort Key: (CASE WHEN (r.status = ANY ('{1,5}'::integer[])) THEN 0 ELSE 1 END), r.created_at DESC |
| -> HashAggregate (cost=0.00..0.01 rows=1 width=144) |
| Group Key: r.id |
| -> Result (cost=0.00..0.00 rows=0 width=140) |
| One-Time Filter: false |