What is the {association football team} for {member of sports team} of {Lionel Messi}
What related football group does Lionel Messi play for?
What associated football team does Lionel Messi play for?
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:association_football_team . resource:Lionel_Messi property:member_of_sports_team ?k }
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/Q15944511> } 
 select distinct ?obj where { wd:Q615 wdt:P54 ?obj . ?obj wdt:P31 wd:Q15944511 } 
FC Barcelona C FC Barcelona FC Barcelona B