What is the {pharmaceutical product} for {active ingredient in} of {niacin}
Niacin is the active ingredient of what pharmaceutical product?
For what pharmaceutical product is niacin the active ingredient?
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:pharmaceutical_product . resource:niacin property:active_ingredient_in ?x }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q134658> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3780> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q28885102> } 
 select distinct ?obj where { wd:Q134658 wdt:P3780 ?obj . ?obj wdt:P31 wd:Q28885102 } 
Niaspan B3-500-Gr Niacor