title: select range when value is higher than in previous value
body: <p>How to get all records where value is higher than previous value.
  For example, first range in the table below start on id 1 and ends on id 6, next range is from 7 to 10, etc...</p>
  
  <pre><code>id  Open
  1   1.30077
  2   1.30088
  3   1.30115
  4   1.30132
  5   1.30135
  6   1.30144
  7   1.30132
  8   1.30137
  9   1.30152
  10  1.30158
  11  1.30149
  12  ...
  </code></pre>