title: Airflow: How to pass prev_execution_date- 2 hour
body: <p>I am using below airflow variables in my sql query &amp; want to pass <em><strong>prev_execution_date- 2 hours</strong></em> in query. Is there any direct way of doing same in airflow</p>
  <p>Query:</p>
  <pre><code>SELECT * FROM {mysql_table_name} WHERE {incremental_column} &gt;= &quot; \
                  &quot;  '{{{{ prev_execution_date.to_datetime_string() }}}}' &quot; \
                  &quot; AND {incremental_column} &lt; &quot; \
                  &quot;  '{{{{ execution_date.to_datetime_string() }}}}';
  </code></pre>