support table query over multiple tables, expand offset/limit type to long wide