Beetroot and apple salad with lentils, rice and walnuts