finished-tasks-postgresql.xql