sbTable
.join(teamsTable,(a,b) => a.teamID == b.teamID && a.yearID == b.yearID)
.select("yearID_1","SB","name")
.rename({
yearID_1:"year"
})
.derive({
stolenBases:record => op.parse_int(record.SB)
})
.orderby(aq.desc("stolenBases"))
.select(aq.not("SB"))
.view()