the ballad is classified as aarne-thompson folktale type "at 922" of the shepherd substituting for the priest to answer the king's questions (for analogues, see parallels below). analogues are widespread, some of them being literary works dating to medieval times.