SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/executiveProducer> <http://dbpedia.org/resource/Steven_Moffat> . ?uri <http://dbpedia.org/property/genre> <http://dbpedia.org/resource/Science_fiction> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Which  science fiction show has Steven Moffat as executive producer ?
SELECT DISTINCT ?b WHERE { ?b property:executive_producer resource:Steven_Moffat . ?b rdf:type ontology:Television_Show . ?b property:genre resource:Science_fiction }
Doctor Who, Class (2016 TV series)
The television shows whose executive producer is Steven Moffat and genre is Science fiction are [Doctor Who, Class (2016 TV series)].
The TV show, with Steven Moffat as executive producer and the genre as science fiction, is [Doctor Who, The Class (2016 series)].
The television show whose executive producer is him and music genre is Science fiction are [Doctor Who, Class (2016 TV series)].
The TV show of which he is an executive producer and the musical genre are science fiction [Doctor Who, The Class (2016 series)].