adding query for closest teams with console log return results