title: Fix ERROR: "operator does not exist: timestamp without time zone > integer" error
body: <p>Im trying to migrate queries from Google big query to postgresql, and Im getting this error</p>
  
  <blockquote>
    <p>ERROR:  operator does not exist: timestamp without time zone > integer</p>
  </blockquote>
  
  <pre><code>select *, DATE(_modification_time) as modification_date, 
         CASE WHEN t_start&gt;0 THEN DATE(t_start) END as start_date, 
         CASE WHEN _creation_time&gt;0 THEN DATE(_creation_time) END as creation_date, 
         CASE WHEN t_finish&gt;0 THEN DATE(t_finish) END as finish_date, 
         'WMT' as source 
  from public.set_list
  </code></pre>