Framework for generating and operating on arbitrary sets of data