irate_sql="select irate({}) from (select * from {} order by tbname ) ".format(colname,tbname)
origin_sql="select ts , {} , cast(ts as bigint) from (select ts , {} from {} order by ts desc limit 2 offset 0 ) order by ts".format(colname,colname,tbname)