Then it works as usual because parliament consist mostly of people who don't need to be qualified at all. They vote for prime minister and then that prime minister assembles government with ministers that are qualified specialists. In the end parliament votes if they trust that selection of prime minister and done.
In the end I just came to conclusion that whole voting for parliament members is useless because I can imagine it would not be much worse than random selection from pool of interested people. You also remove issue with people who are handing out places on voting cards because a lot of people just vote on the first person on the list of political party. I can imagine political parties are not going to change status qua :)
That's on the US and its poisonous political culture for letting QAnon get big enough to matter. Now it matters and America and the Republican party are stuck with the ramifications of QAnon having become popular enough to win elections.
From the Central Limit Theorem, we would end up with mostly candidates from the middle of the pool. The fact that 'average' people are in possibly important positions a) enables malicious actors to manipulate them much easier than having more qualified (or smarter people) and b) puts potentially unqualified people in important positions.
I do not suggest that the current state of affairs is better either, but considering, for example that a very large portion of people in the US are Qanons, putting them in any important position is definitely not a good idea.