Added SqlSubQuery class and functionality.