recomendation query implemented