what was the tennis tournament in which r nadal beat federer?
(AND tennis.tennis_tournament (JOIN (R tennis.tennis_match.event) (AND (JOIN (R tennis.tennis_player.matches_won) m.051q39) (JOIN (R tennis.tennis_player.matches_lost) m.01my95))))