Do "Nani o tabetai" and "Nani ga tabetai" have the same meaning?


Sometimes you see japanese people (or japanese descendant I guess) writing
_nani ga tabetai desuka?_ and sometimes they write _Nani o tabetai desu ka?_

Is there any difference in meaning, nuance or emphasis in these 2 sentences or
do they mean exactly the same thing?

