Code for expressing a rule that generates a set of values from some data in the database.