Alter SQLCompiler so it supports derived tables