Split and join video in a command with ffmpeg

I would like to use ffmpeg to extract everything from the 20-second to 25-second mark and then the 50-second to 65-second mark of a video, and take those two 5-second clips, concatenate them and generate a 10-second clip.

I know it can be done in three separate commands, but I wonder if there is a single ffmpeg command that could do the same.

Thank you!