Durations to jobs

SUM(CEIL(job_histories.duration / 60.0)) AS minutes