Don't Finland, China and Singapore have the highest IQs of any countries? Why can't that be the answer? To me, what you do exactly in school is likely pretty secondary.
I don’t think reliable data exists for making these comparisons, but even if it did, how you perform on an IQ test is strongly influenced by your schooling.
For PISA scores, Finland’s have been declining for 25 years and China only produces scores for the top schools in its top-tier cities (and while US averages don’t look so good in comparison, scores for Massachusetts look good, maybe better).
It feels to me unlikely that PISA scores should be particularly related to ‘country average IQ’ (except by confounders like malnutrition rates) where my understanding is that much of the research has been limited or of such poor quality that the topic has become so toxic as to discourage most potential further research.
No matter how researchers measure this, people on the left will always say they didn't do it properly. I'm personally satisfied that the work that has been done is "good enough" to establish reasonable baselines for many, and maybe most, countries.
That's a wild thing to say given that some of the per-country numbers are taken from mental hospitals and malaria clinics, and others are fabricated entirely because literally no organized IQ testing has been done there. But "good enough"!