title: Get previous and next row from rows selected with (WHERE) conditions
body: <p>For example I have this statement:</p>
  
  <pre><code>my name is Joseph and my father's name is Brian
  </code></pre>
  
  <p>This statement is splitted by word, like this table:</p>
  
  <pre><code>------------------------------
  |      ID      |   word      |
  ------------------------------
  |       1      |   my        |
  |       2      |   name      |
  |       3      |   is        |
  |       4      |   Joseph    |
  |       5      |   and       |
  |       6      |   my        |
  |       7      |   father's  |
  |       8      |   name      |
  |       9      |   is        |
  |       10     |   Brian     |
  ------------------------------
  </code></pre>
  
  <p>I want to get previous and next word of each word</p>
  
  <p>For example I want to get previous and next word of "name":</p>
  
  <pre><code>--------------------------
  |    my    |  name  |  is |
  --------------------------
  | father's |  name  |  is |
  --------------------------
  </code></pre>
  
  <p>How could I get this result?</p>