What is {painter} of {Dilbert}, that has {last name} is {Adams} ?
who is painter of dilbert that his final title is adams
who is painter of dilbert that his last name is adams
SELECT ?m WHERE { ?m property:family_name resource:Adams . resource:Dilbert property:creator ?m }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q726431> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P170>. ?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/P734> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q351735> . }
SELECT ?answer WHERE { wd:Q726431 wdt:P170 ?answer . ?answer wdt:P734 wd:Q351735}
Scott Adams