1[
2 {
3   "statements":"select TOARRAY(orders3.id) as a from default:orders3 order by a",
4   "results": [
5        {
6            "a": [
7                "1222"
8            ]
9        },
10        {
11            "a": [
12                "1234"
13            ]
14        },
15        {
16            "a": [
17                "1235"
18            ]
19        },
20        {
21            "a": [
22                "1236"
23            ]
24        },
25        {
26            "a": [
27                "1373"
28            ]
29        }
30    ]
31  },
32  {
33     "statements":"select TOATOM(TOARRAY(orders.id)) AS a from default:orders ORDER BY a",
34     "results": [
35        {
36            "a": "1200"
37        },
38        {
39            "a": "1234"
40        },
41        {
42            "a": "1235"
43        },
44        {
45            "a": "1236"
46        }
47    ]
48  },
49  {
50    "statements":"select TONUMBER(id) as a from default:orders ORDER BY a",
51    "results": [
52        {
53            "a": 1200
54        },
55        {
56            "a": 1234
57        },
58        {
59            "a": 1235
60        },
61        {
62            "a": 1236
63        }
64    ]
65  },
66  {
67    "statements":"select TOSTRING(TONUMBER(id)) as a from default:orders ORDER BY a",
68    "results": [
69        {
70            "a": "1200"
71        },
72        {
73            "a": "1234"
74        },
75        {
76            "a": "1235"
77        },
78        {
79            "a": "1236"
80        }
81    ]
82  },
83  {
84    "statements":"select TOOBJECT(orders.`shipped-on`) as a from default:orders ORDER BY a",
85    "results": [
86        {},
87        {},
88        {
89            "a": null
90        },
91        {
92            "a": {}
93        }
94    ]
95  },
96  {
97    "statements":"select TOOBJECT(orders.orderlines[1]) as a from default:orders ORDER BY a",
98    "results": [
99        {
100            "a": {
101                "productId": "sugar22",
102                "qty": 1
103            }
104        },
105        {
106            "a": {
107                "productId": "sugar22",
108                "qty": 1
109            }
110        },
111        {
112            "a": {
113                "productId": "sugar22",
114                "qty": 1
115            }
116        },
117        {
118            "a": {
119                "productId": "tea111",
120                "qty": 1
121            }
122        }
123    ]
124  },
125  {
126    "statements":"select TOBOOLEAN(orders.orderlines[1]) as a from default:orders ORDER BY a",
127    "results": [
128        {
129            "a": true
130        },
131        {
132            "a": true
133        },
134        {
135            "a": true
136        },
137        {
138            "a": true
139        }
140    ]
141  },
142  {
143    "statements":"select TOBOOLEAN(orders.`shipped-on`) as a from default:orders ORDER BY a",
144    "results": [
145        {},
146        {},
147        {
148            "a": null
149        },
150        {
151            "a": true
152        }
153    ]
154  }
155]
156