title: Querying a list of tuples in Database
body: <p>Since I am new to python programming, I don’t know more about querying a data from a database.
  First, I’ve created my database in SQL Server, with 2 columns: The <code>String</code> column and the <code>Numeric</code> column.</p>
  
  <p><code>
  +--------+---------+
  | String | Numeric |
  +--------+---------+
  | One    |    1    |
  | Five   |    5    |
  | Three  |    3    |
  | Seven  |    7    |
  | Eight  |    8    |
  | Two    |    2    |
  +--------+---------+</code></p>
  
  <p>For example:</p>
  
  <p><code>X = [(‘three’,’odd’), (‘one’,’odd’), (‘two’,’even’)]</code></p>
  
  <p>Now I want that the output follow this sequence: <code>odd – even – odd</code> so it will be like this <code>1 2 3</code>.
  <code>
  +-----+------+-----+
  | Odd | Even | Odd |
  +-----+------+-----+
  |  1  |   2  |  3  |
  +-----+------+-----+</code></p>
  
  <p>How to query the <code>numeric</code> value of the <code>string</code> based on if <code>odd</code> or <code>even</code> the <code>string</code> is in database?</p>