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
How many enzymes do not have any interactions?
assistant
SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );
human
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
assistant
SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol'
human
What is the id and trade name of the medicines can interact with at least 3 enzymes?
assistant
SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3
human
List the names and the locations that the enzymes can make an effect.
assistant
SELECT name , LOCATION FROM enzyme
human
How many kinds of enzymes are there?
assistant
SELECT count(*) FROM enzyme
human
What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?
assistant
SELECT MAX( OMIM ) FROM enzyme ;