What is the {fictional city} for {present in work} of {The Andy Griffith Show}
What anecdotal city is the Andy Griffith Appear set in
What fictional city is the Andy Griffith Show set in
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:fictional_city . ?i property:present_in_work resource:The_Andy_Griffith_Show }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1441> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q526035> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1964689> } 
 select distinct ?sbj where { ?sbj wdt:P1441 wd:Q526035 . ?sbj wdt:P31 wd:Q1964689 } 
Mayberry