Port "jobs" query to the new format