A new Turán-type problem on distances of graphs was introduced by Tyomkyn and Uzzell. In this paper, we focus on the case of distance two. We show that for any positive integer , a graph on vertices without three vertices pairwise at distance has at most pairs of vertices at distance , provided has a vertex whose neighbors are covered by at most two cliques. This partially answers a conjecture of Tyomkyn and Uzzell [Tyomkyn, M.,Uzzell, A.J.: A new Turdn-type problem on distances of graphs. Graphs Combin. ]..