Here's the answer:
“wenn ich ein Astronaut wäre, könnte ich in den Weltraum fliegen”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- wäre ich ein Astronaut, könnte ich in den Weltraum fliegen
Fun fact: the hundreds of thousands of people learning German with Memrise get this phrase correct 93.95% of the time!