Pour the beans onto a sieve, rinse with cold water and drain. Peel and roughly dice the onions. Clean, wash, dab dry and cut into strips. Drain the corn on a sieve.
Peel the pineapple and cut it into pieces. Chop the nuts very finely. Peel and crush garlic. Mix yoghurt and sour cream. Season with garlic, salt, pepper and sugar. Stir 3/4 of the nuts into the yoghurt cream.
Crumble cheese. Mix salad, corn, beans, onions and pineapple. Place on a plate, sprinkle cheese and remaining nuts on top. Add extra yoghurt cream.