The National Contests Behind International Success: A Musical Comparison of the Eurovision Song Contest, the Festival di Sanremo and the Melodifestivalen Jasmijn van Harskamp Abstract: The Eurovision Song Contest is the longest-running annual international music competition. In recent years, especially Italy and Sweden have obtained many successes at the song festival. Both countries select their entries through a popular national contest, respectively the Festival di Sanremo and the Melodifestivalen. Though all three contests have been studied repeatedly in various research areas, very little is known about their music. This thesis analyses the music represented at the Eurovision and at the two national contests in the period between 2011 and 2021. The aim of this study is to investigate the differences and similarities between these contests with respect to the performed entries. In order to analyse this, different sets of XGBoost classifiers were trained on musical features to match songs to the contest they were entered in. The results show a greater similarity between Eurovision and Melodifestivalen songs, than between Eurovision and Sanremo songs. We argue that this is most likely caused by distinct national music styles. Additionally, we attempt to predict the outcome of the Eurovision final from the outcome of the national contests by using the musical features. This problem was approached by training a top ten classifier and by constructing a ranking model. Neither method shows promising results. However, a comparison of the actual voting behaviour of all countries participating in the Eurovision and the predictions based on the national competitions supports our earlier hypothesis about national styles.