Just remove as from your query:
as
select *from (select* from bars where rownum <= 10 ) tab1inner join (select * from bars where rownum <= 10 ) tab2on tab1.close=tab2.close
I believe the error comes from you needing a semicolon to end the statement. The select looks fine to me otherwise.
select * from ((select* from bars where rownum <= 10 )as tab1inner join (select * from bars where rownum <= 10 )as tab2on tab1.close=tab2.close)