In sonata form, the melody will by this time have gone through so many transformations.
Sonata form, also called first-movement form or sonata-allegro form, musical structure that is most strongly associated with the first movement of various Western instrumental genres, notably, sonatas, symphonies, and string quartets.
Maturing in the second half of the 18th century, it provided the instrumental vehicle for much of the most profound musical thought until about the middle of the 19th century, and it continued to figure prominently in the methods of many later composers.
Although sonata form is sometimes called first-movement form, the first movements of multimovement works are not always in sonata form, nor does the form occur only in first movements. Likewise, the variant sonata-allegro form is misleading, for it need not be in a quick tempo such as allegro.
To learn more, see Britannica.
Check out these 17 Tips For Musicians On How To Learn Songs Quickly, Easily, and Effectively shared by Spinditty.