Recommendations for the long tail by term-query graph