" WHERE tournament=" + pqxx::to_string(tournament) +
" AND song IS NOT NULL"
" AND parallel=0"
+ " AND chosen='f'"
" )"
" AND (player,song) NOT IN (" // not a song the player has chosen before, or is a random song in this round
" SELECT player,song FROM scores"
" AND song IS NOT NULL" +
" AND ( chosen='t' OR round=" + pqxx::to_string(round) + " )"
" )"
+ " AND playmode='single'"
" ORDER BY feetrating DESC LIMIT 1"
" ) * 1000 AS max_score FROM tournamentparticipation") );