What is the {professional sports team} for {member of sports team} of {Lionel Messi}
Which club is playing for Lionel Messi?
Which club does Lionel Messi play for?
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:professional_sports_team . resource:Lionel_Messi property:member_of_sports_team ?g }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q615> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P54> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q20639856> } 
 select distinct ?obj where { wd:Q615 wdt:P54 ?obj . ?obj wdt:P31 wd:Q20639856 } 
FC Barcelona