what is the {sport number} for {Lewis Hamilton} has {member of sports team} as {Mercedes GP} ?
What is Lewis Hamilton's Mercedes GP sport number?
What is the { sport number } for { Lewis Hamilton } { sport team member } as { Mercedes GP }?
SELECT ?d WHERE { ?q property:member_of_sports_team resource:Mercedes . ?q property:sport_number ?d . resource:Lewis_Hamilton property:member_of_sports_team ?q }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9673> .
?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> <http://wikidata.dbpedia.org/resource/Q172721> .
?statement <http://www.wikidata.org/entity/P1618> ?value. 
} 

SELECT ?value WHERE { wd:Q9673 p:P54 ?s . ?s ps:P54 wd:Q172721 . ?s pq:P1618 ?value}