Made some attributes of SQLcompiler private.
Simplified Query private interface for getting deferred data.