Transitioning SQL commands to RUN