what tennis tournament did katarina win?
Entity Entity Entity Entity
m.0dm9j4 m.027f158 m.03xyp_ m.02bs4c
Květa Peschke Rohan Bopanna Daniel Nestor Nenad Zimonjić
class class entity
tennis.tennis_tournament_champion tennis.tennis_match m.05rp3d
tennis.tennis_tournament_champion tennis.tennis_match tennis.tennis_tournament_champion
Tennis Tournament Champion Tennis Match katarina
none none none
tennis.tennis_player.matches_won tennis.tennis_player.matches_won
Matches Won Matches Won
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :tennis.tennis_tournament_champion . 
?x1 :type.object.type :tennis.tennis_match . 
VALUES ?x2 { :m.05rp3d } 
?x0 :tennis.tennis_player.matches_won ?x1 . 
?x2 :tennis.tennis_player.matches_won ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tennis.tennis_tournament_champion (JOIN tennis.tennis_player.matches_won (JOIN (R tennis.tennis_player.matches_won) m.05rp3d)))