Properties of QBO and SAO generated by gravity waves