The king of France, the king of France,
with forty thousand men,
Oh, they all went up the hill, and so - came
Halliwell (a 19th century collector of nursery rhymes) wrote, "Another version. The nurse sings the first line, and repeats it, time after time, until the expectant little one asks, what next? Then comes the climax."
Thanks and Acknowledgements
This rhyme can be found in "The Nursery Rhymes of England" 5th edition (1886), collected by James Orchard Halliwell and illustrated by W. B. Scott.