For the Finnish to make sense (well your sentence doesn't make sense in the first place) it should be "ananaksessa". Ananaksessa = in a pineapple. Ananas = pineapple. You need to add the -ssa to get the "in" translated and because of rules, the stem changes some. Google translate has a hard time with this (not surprisingly).
This was a really fun quiz, though.