title: Python/Sqlalchemy/Sqlite - How to add datetime field and integer seconds (timedelta) in where condition?
body: <p>I have a sqlalchemy/sqlite table:</p>
  <pre><code>class MyTable(Base):
      __tablename__ = 'mytable'
      ...
      field_dt = Column(DateTime)
      field_int = Column(Integer, default=0)
  </code></pre>
  <p>Now I would like to construct the where condition in which I want to check whether field_dt + field_int (seconds) &lt;= utc_now.
  Something like: <code>select(MyTable).where(?)</code>.</p>
  <p>With no sqlalchemy/sqlite I would construct condition like this:</p>
  <pre><code>import datetime as dt
  
  utc_now = dt.datetime(2022,3,2,1,0,10)
  field_dt = dt.datetime(2022,3,1,1,0,5)
  field_int = 60
  
  print(f&quot;  utc_now = {utc_now.isoformat()}&quot;)
  print(f&quot; field_dt = {field_dt.isoformat()}&quot;)
  print(f&quot;field_int = {field_int}&quot;)
  
  if field_dt + dt.timedelta(seconds=field_int) &lt; utc_now:
      print('it is less than utc_now')
  </code></pre>
  <p>Output:</p>
  <pre><code>  utc_now = 2022-03-02T01:00:10
   field_dt = 2022-03-01T01:00:05
  field_int = 60
  it is less than utc_now
  </code></pre>
  <p>How to do the same with sqlalchemy/sqlite</p>