the five sonatas bwv 1014–1018 are all in four movements in the conventions of the sonata da chiesa, with a slow first movement, followed by a fast movement, then another slow movement before the final allegro, often having a joyful or witty dance-like character. pointed out a uniform structure in the fast movements. they are all fugal in form but can be divided into two distinct and readily identifiable types: