The following query returns a list of key/value pairs:
SELECT ["name:apple", "color:red"] as fruit;
Is there a way to transpose the data so the results would be:
Update
I'm looking for a generalized solution, where the key and value and the array length of the results are unknown i.e: SELECT ["key0:val0", "key1:val1"...] as data;