Text this: Notes on selection rules of canonical differential equations and relative cohomology