Extracts the restrictions code from SelectStatement into
StatementRestrictions