Picking rows backward and forward with the Analytic Query step