That zip file only had the "pages" table in it.
But maybe if you could give an example of some sample data and then the results you like to see from that sample it would help even more.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.