rewritten instructor query