human
Schema:
medicine (id, name, Trade_Name, FDA_approved)
enzyme (id, name, Location, Product, Chromosome, OMIM, Porphyria)
medicine_enzyme_interaction (enzyme_id, medicine_id, interaction_type)
Please answer with SQL.
assistant
Sure, I understand.
human
Show the id, name, and FDA approval for medicines.
assistant
SELECT id , name , FDA_approved FROM medicine;
human
Only ones that have some interaction with an enzyme.
assistant
SELECT id , name , FDA_approved FROM medicine WHERE id IN ( SELECT medicine_id FROM medicine_enzyme_interaction ) ;