Trade an sql query of the jobs table for one of the datasets table.