added code to set the sub query mode to SQLTableElement on the constructor.