what different types of tennis matches has jiří veselý won?
Entity
m.04hdtlb
Men's singles
class class entity
tennis.tennis_match_type tennis.tennis_match m.0g9sqbp
tennis.tennis_match_type tennis.tennis_match tennis.tennis_tournament_champion
Tennis Match Type Tennis Match Jiří Veselý
none none none
tennis.tennis_match.match_format tennis.tennis_match.winner
Match Format Winner
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_match_type . 
?x1 :type.object.type :tennis.tennis_match . 
VALUES ?x2 { :m.0g9sqbp } 
?x1 :tennis.tennis_match.match_format ?x0 . 
?x1 :tennis.tennis_match.winner ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND tennis.tennis_match_type (JOIN (R tennis.tennis_match.match_format) (JOIN tennis.tennis_match.winner m.0g9sqbp)))