I remember seeing some explanation from a English grammar book, written for people speaking another language, which basicaly said "when/while doing something" is just a shorthand of "when/while somebody is doing something", where "somebody is" must appear in the main clause, otherwise this shorthand usage is not valid. For example, it is wrong to say
“I watch TV, when sitting in my sofa.”
because in the main clause there is no "be".
This isn’t quite correct. It’s a bit better if the somebody appears in the main clause. The is doesn’t need to appear in the main clause at all.
Two examples:
An awesome sunset is a routine occurrence when chasing across the treeless Great Plains. (almost entirely ok)
This might sound a little bit odd to some people because the somebody (whoever is chasing) is completely missing from the main clause. But to a lot of people it will sound just fine. In ordinary speech, almost no one would notice.
One day, while looking through his grandparents’ attic, he found some old photographs. (definitely ok)
This one is impeccable. The implied subject of looking is the he of he found. Note that *“he was finding some old photographs” would be wrong.
Traditionally, while and when are called subordinating conjunctions. Some modern grammarians call them prepositions. Whatever you call them, they are followed by a clause: either an ordinary declarative clause (while Kaitlin worked on her paper), an -ing clause (while watching TV), a past-participial clause (when forced to respond), or a verbless clause (while in Rome, while an ice cream man in Hawaii, when drunk). Except in the first case, the subject of the dependent clause has to be figured out from context, and the verb be is implied.
With your first set of examples, either are correct. I believe It is quite reasonable construction. I think you're struggling in that the first part of the sentence sets up an indirect question:
One question you could research is whether female birds mature faster than their male counterparts.
As for the punctuation, this is a style issue. Either of your constructions would fit with The Chicago Manual of Style
In your bonus example, you are stating an indirect question so the punctuation is correct in the latter case.
One question you could research is what impact doing ten jumping jacks a day has on lifespan.
Still this is confused by using what because typically what is a direct question word. You're better off rewriting in this case:
One question you could research is the impact of doing ten jumping jacks a day on lifespan.
Best Answer
Yes, it's correct after you remove "they are". It's understood from context that it's the ants doing the searching.
"while" is just as correct and maybe very slightly more clear.
"whereas" doesn't work here. It is used for contrast between things. For example