Scripts for generating and formatting data for MMQL model