query for ta by class fleshed out