<human>:  Passing list of parameters to SQL in psycopg2
<bot>: Here is some code to pass a list of parameters `((1, 2, 3),) to sql queue 'SELECT * FROM table WHERE column IN %s;'

cur.mogrify('SELECT * FROM table WHERE column IN %s;', ((1, 2, 3),))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.