Modifying query to look at this term courses