What is the {steam engine} for {discoverer or inventor} of {James Watt}
James Watt invented what kind of steam engine?
What kind of steam engine was invented by james Watt
SELECT DISTINCT ?d WHERE { ?d property:discoverer_or_inventor resource:James_Watt . ?d rdf:type ontology:steam_engine }
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/P61> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9041> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q12760> } 
 select distinct ?sbj where { ?sbj wdt:P61 wd:Q9041 . ?sbj wdt:P31 wd:Q12760 } 
Smethwick Engine