select * from taxi_comp_worksheet_ext as of timestamp to_timestamp('2014-09-22 13:00:00', 'yyyy-mm-dd hh24:mi:ss') where stype=3 ;