Nah, it's just one query. Agree that just checking motions.closed_at IS NULL is sufficient here.