piano player and diplomat are two titles of which politician?
Entity
m.034wc7
Ignacy Jan Paderewski
class entity entity
government.politician m.080ntlp m.05vyk
government.politician people.profession music.musician_profession
Politician Diplomat piano player
none none none
people.profession.people_with_this_profession people.person.profession
People With This Profession Profession
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 :government.politician . 
VALUES ?x1 { :m.080ntlp } 
VALUES ?x2 { :m.05vyk } 
?x1 :people.profession.people_with_this_profession ?x0 . 
?x0 :people.person.profession ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND government.politician (AND (JOIN (R people.profession.people_with_this_profession) m.080ntlp) (JOIN people.person.profession m.05vyk)))