Re-add SQL to Query exports.

More than just Query objects can raise exceptions in their __debugInfo
method. Debugger should be catching and gracefully handling that
situation.