This image shows creating SQL query for dynamic list of values.