select
name
from table
where
(element = "Ag" and Min <= 0.007 and 0.007 <= Max)
OR
(element = "B" and Min <= 0.002 and 0.002 <= Max)
OR
(element = "Fe" and Min <= 0.06 and 0.06 <= Max)
OR
(element = "Mg" and Min <= 0.025 and 0.025 <= Max)
OR
(element = "Cu" and Min <= 0.01 and 0.01 <= Max)
group by Name
having count(ID) = 5