What is {words by} of {My Old Kentucky Home}, that has {career} is {lyricist} ?
What are My Old Kentucky Home's words with a lyrical career?
What are the words by My Old Kentucky Home whose career is lyricist?
SELECT ?f WHERE { resource:My_Old_Kentucky_Home property:lyrics_by ?f . ?f property:occupation resource:lyricist }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1153133> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P676>. ?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/P106> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q822146> . }
SELECT ?answer WHERE { wd:Q1153133 wdt:P676 ?answer . ?answer wdt:P106 wd:Q822146}
Stephen Foster