What is {member of sports team} of {David Beckham} and {number of matches played}
David Beckham is a member of what sports team and how many matches has he played?
David Beckham is a member of what sports team and how many matches has he played?
SELECT ?d ?q WHERE { resource:David_Beckham property:member_of_sports_team ?c . ?c property:number_of_matches_played/races/starts ?d . . ?c property:member_of_sports_team ?q }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10520> . ?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 . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q10520 p:P54 ?s . ?s ps:P54 ?obj . ?s pq:P1350 ?value1 . }