Search subterm for goal first