I sometimes just use simple string concatanation to generate SQL Statements, guess you could do something like:
=A2 + ": { " + A3 + ", " + A4 + ", " + A5 + ", " + A... +"}"
Than wrap it inside data = []
, or use a fancy formula.. For the second part you should lock the row with $A1