Stacks 01U7 theorem

Let $X$, $Y$, $Z$ be schemes, and possibly some arrows, satisfying the following conditions:

• $g$ flat
• $f$ flat
Then
• $g*f$ flat