Implemented GetSQL system function, added SQL object type and corresponding type constraint.