<Dd> Accuser / Group: Then who? </Dd> <P> This is followed by the "accused" saying the name of someone else, as "(name of a child in the circle) stole the cookie from the cookie jar," and the subsequent back - and - forth lines are repeated . The song may be repeated ad infinitum or it may end - if it is being performed as part of a game, where members of the group are eliminated by failing to keep up with the prescribed beat or eliminated as a result of being chosen as one of the accused . </P> <P> The song, and game, is featured as one of the sequences in Grandpa's Magical Toys; the only accusation that is missing is that of the Dutch Girl, and she reveals that she got all the toys and the last cookie . The song was also done on three episodes of Barney & Friends . A variation of the song has been used in Smart4life commercials in the US beginning in 2009 . The song was also used in the Family Guy episode "When You Wish Upon a Weinstein ." The song was used in The Simpsons episode "Kamp Krustier" where Chief Wiggum arrests two kids after they sing it in a group activity . </P>

Who put their hand in the cookie jar