qnli question: In what year did William IV adopt a purity law pertaining to beer? sentence: Beer produced before the Industrial Revolution continued to be made and sold on a domestic scale, although by the 7th century AD, beer was also being produced and sold by European monasteries.