I'm afraid that since it is a problem with writing the correct SQL statements to match your data and not an issue with our extension I can't really escalate it to a support incident and expect them to write your SQL statement either.
You will have to struggle with understanding SQL and writing it yourself. You can give it a try again and start a new thread on this forum.
Describe exactly what you are trying to do and where you are and somebody with a lot of SQL experience or a lot of time on their hands may help. Nobody will touch this three page thread with a ten foot pole, so probably a new thread is your best bet if you want to find help here on it. Even though writing SQL queries isn't one of the main skillsets of the most of the people you will find here.