substantial work in creating sql functions and derived attributes