When writing the following query in Doobie :
(SELECT id FROM (VALUES(?),(?),(?)) table(id))
UNION
SELECT id FROM table
I have list of data , e.g. List(1,2,3,4) that is varied-size. How could I interpolate the list of values into SQL VALUES CLAUSE using Doobie?