Task: Text to Code
Input (English): What is the official language spoken in the country whose head of state is Beatrix?
Output (English): SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix" AND T2.IsOfficial  =  "T"