What is {characters} of {Married... with Children} that is {performer} is {Ed O'Neill} ?
Name the actor being played by Ed O'Neil in Married..with Children
Who did Ed O'Neill play on Married.. with Children?
SELECT ?b WHERE { ?n property:characters ?b . resource:Married..._with_Children property:characters ?n . ?n property:performer resource:Ed_O'Neill }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q208647> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P674> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P175> <http://wikidata.dbpedia.org/resource/Q16758>
} 

SELECT ?obj WHERE { wd:Q208647 p:P674 ?s . ?s ps:P674 ?obj . ?s pq:P175 wd:Q16758 }