select time,name,v1 v,0 index from table
union all
select time,name,v2 v,1 index from table
union all
select time,name,v3 v,2 index from table
union all
select time,name,v4 v,3 index from table
order by time,name,index
union all
select time,name,v2 v,1 index from table
union all
select time,name,v3 v,2 index from table
union all
select time,name,v4 v,3 index from table
order by time,name,index
union all
select time+15/60,name,v2 v,1 index from table
union all
select time+30/60,name,v3 v,2 index from table
union all
select time+45/60,name,v4 v,3 index from table
order by time,name,index