title: Python SQLite how to get SQL string statement being executed
body: <p>Let's say we have a SQL statement that just needs to be completed with the parameters before getting executed against the DB. For instance:</p>
  
  <pre><code>sql = '''
        SELECT  id, price, date_out
        FROM sold_items
        WHERE date_out BETWEEN ? AND ?
        '''
  
  database_cursor.execute(sql, (start_date, end_date))
  </code></pre>
  
  <p>How do I get the string that is parsed and executed?, something like this:</p>
  
  <pre><code>SELECT  id, price, date_out
  FROM sold_items
  WHERE date_out BETWEEN 2010-12-05 AND 2011-12-01
  </code></pre>
  
  <p>In this simple case it's not very important, but I have other SQL Statements much more complicated, and for debugging purposes I would like to execute them myself in my sqlite manager and check the results.</p>
  
  <p>Thanks in advance</p>