1select ts, t.name, value, tid 2from counter c 3join thread_counter_track t on c.track_id = t.id 4join thread using (utid) 5order by ts;