What is {sport played} of {Bob Pettit}, that has {runtime} is {40} ?
What wear does Sway Pettit play that contains a runtime of 40?
What sport does Bob Pettit play that has a runtime of 40?
SELECT ?s WHERE { FILTER ( CONTAINS ( ?q , '40' ) ) . resource:Bob_Pettit property:sport ?s . ?s property:duration ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q368561> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P641>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2047> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <40> . }
SELECT ?answer WHERE { wd:Q368561 wdt:P641 ?answer . ?answer wdt:P2047 ?x FILTER(contains(?x , '40'))}
basketball