Question: Which TV show's setting is in Massachusetts and is the subsequent work of Fraiser ?
SPARQL query: SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/subsequentWork> <http://dbpedia.org/resource/Frasier> . ?uri <http://dbpedia.org/ontology/location> <http://dbpedia.org/resource/Massachusetts>  . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Answer: The television show whose subsequent work is Frasier and location in Massachusetts is [Cheers].