Assuming that your numbers are ordered by an auto_incremented column named id
then this query should work:
select numbers
from vista
where id = (
select b.id + 3 from (
select t1.id, t1.numbers t1val, t2.numbers t2val, t3.numbers t3val
from vista t1
join vista t2 on t1.id = t2.id-1
join vista t3 on t1.id = t3.id-2
where t1.id = (select max(id) - 2 from vista)
) a
join (
select t1.id, t1.numbers t1val, t2.numbers t2val, t3.numbers t3val
from vista t1
join vista t2 on t1.id = t2.id-1
join vista t3 on t1.id = t3.id-2
where t1.id < (select max(id) - 2 from vista)
) b
on a.t1val = b.t1val
and a.t2val = b.t2val
and a.t3val = b.t3val
and a.id <> b.id
)
order by id limit 1;
If the id
column doesn't contain a sequence you can generate one with an appropriate row numbering query.
Sample SQL Fiddle