How to use multiselect from streamlit with pyodbc sql server

Is it possible to use a multiselect box with pyodbc ? While connecting to SQL SERVER database.

By using the selectbox the function works and it display all the distinct values in the selectbox
But i need to use a multiselect

I know that multiselect takes as argument a list whre this list is given by the return of distinct values of the required field in the db.

How this can be done ??
Its very important to me to know if its possible or not in order to know what to expect from streamlit.