what drugs have active moieties which is thiamine ion?
Entity
m.0jxpkyr
Vitamin a/Ascorbic acid/Thiamine ion/Riboflavin/Cyanocobalamin/Cholecalciferol/.alpha.-tocopherol/Docusate/Folic acid/Iron pentacarbonyl/Cupric oxide/Magnesium cation/Selenium/Zinc oxide/Ubidecarenone/Lycopene/Doconexent
class entity
medicine.drug m.0jxpl44
medicine.drug medicine.drug_ingredient
Drug Thiamine ion
none none
medicine.drug.active_moieties
Active moieties
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :medicine.drug . 
VALUES ?x1 { :m.0jxpl44 } 
?x0 :medicine.drug.active_moieties ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.drug (JOIN medicine.drug.active_moieties m.0jxpl44))