I'd rather avoid repeating type names like (DerivedType) in different packages -- I had forgotten that hsql uses it.
BTW, it looks like you forgot to "git add ...TableDerived.java" -- I don't see it here.
At this point, I am thinking that the class you need is something more like StmtSubqueryScan.