Still no idea what you're talking about. Give us input data and tell us what you want it to come out looking like. Supplying your SQL queries might be helpful as well. Are you modeling date ranges? Or taking logical rules about what starts or ends within what or lies within what and graphing the relationships?