hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT ALL - col1 * col1 * ( + 96 ) AS col1 FROM tab1 AS cor0
----
-16224
-64896
-9600
query I rowsort
SELECT ALL col2 - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + col0 * 60 + col1 FROM tab1
----
260
3907
4909
query I rowsort
SELECT + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL 97 * - col1 + CAST ( + col1 AS REAL ) - col2 * - tab2.col1 col1 FROM tab2
----
-2139
-4130
-986
query I rowsort
SELECT + 32 * + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b021124a67f03bd690bf85089039c654
onlyif mysql # use DIV operator for integer division
query I rowsort label-6
SELECT DISTINCT 1 DIV - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT 1 / - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab0
----
96
query I rowsort
SELECT + 52 AS col1 FROM tab2
----
52
52
52
query I rowsort
SELECT + col1 * 24 + + col2 - cor0.col1 FROM tab0 AS cor0
----
2011
2175
2232
query I rowsort
SELECT DISTINCT + - col1 * - 64 + + col2 FROM tab2 AS cor0
----
1126
2011
3802
query I rowsort
SELECT ALL - col0 + - col0 + + cor0.col0 AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT col2 + col2 + - tab2.col1 AS col2 FROM tab2
----
-7
23
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col2 * - col2 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT + - cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT tab1.col1 + - col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 92 FROM tab2
----
92
query I rowsort
SELECT DISTINCT 77 FROM tab0, tab2 AS cor0
----
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT DISTINCT CAST( NULL AS SIGNED ) + 49 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 49 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 + - col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 79 + - col0 FROM tab2 AS cor0
----
0
1
72
query I rowsort
SELECT 85 + + 54 FROM tab2 AS cor0
----
139
139
139
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - col2 * + col2 * - col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT ALL + + col1 * - col0 * 14 FROM tab2 AS cor0
----
-18802
-3038
-64428
query I rowsort
SELECT DISTINCT + + col0 * + col2 * + 77 + cor0.col1 AS col2 FROM tab2 AS cor0
----
14584
156215
231171
onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT DISTINCT + + 74 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + + 74 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col0 + + col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - 76 - col2 FROM tab2 AS cor0
----
-102
-103
-114
query I rowsort
SELECT + - 96 AS col0 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - - 51 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT - 37 * - col2 * col1 FROM tab2 AS cor0
----
23902
30969
56758
query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * 91 FROM tab2 cor0
----
2340
2430
3420
query I rowsort
SELECT - 86 AS col2 FROM tab1
----
-86
-86
-86
query I rowsort
SELECT DISTINCT + 56 * col1 * + col1 FROM tab0 AS cor0
----
414176
463736
526904
query I rowsort
SELECT ALL - 80 + - col2 AS col1 FROM tab1 AS cor0
----
-134
-137
-176
query I rowsort
SELECT ALL + - col1 + + col2 * - 89 FROM tab2 AS cor0
----
-2373
-2434
-3399
query I rowsort
SELECT ( - 76 ) FROM tab2
----
-76
-76
-76
query I rowsort
SELECT - 69 FROM tab0, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT ALL 1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT tab2.col2 + col0 * tab2.col0 AS col0 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 42 + - 77 col1 FROM tab0
----
-35
1309
3367
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT col2 DIV + 11 + col0 FROM tab1
----
69
7
88
skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT col2 / + 11 + col0 FROM tab1
----
69
7
88
query I rowsort
SELECT - col1 + + tab1.col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT tab1.col0 * col2 + - 53 FROM tab1
----
109
3595
7627
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 57 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-54
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-54
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 62 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT DISTINCT - 78 * col0 + cor0.col1 FROM tab2 AS cor0
----
-515
-6025
-6145
query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 83 + + col0 FROM tab2 cor0
----
-4
-5
-76
query I rowsort
SELECT + ( - col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + + cor0.col1 * 4 AS col2 FROM tab1 cor0
----
104
40
52
query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 37 FROM tab2 AS cor0
----
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT + CAST( NULL AS SIGNED ) * col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-63
SELECT + CAST ( NULL AS INTEGER ) * col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 1 + 94 AS col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - ( col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT DISTINCT - ( ( cor0.col2 ) ) + col0 DIV - col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT - ( ( cor0.col2 ) ) + col0 / - col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL + col1 + + col0 * - 15 * col1 FROM tab2
----
-20128
-3224
-68971
query I rowsort
SELECT DISTINCT col0 + ( + tab0.col1 + col1 ) AS col2 FROM tab0
----
196
229
271
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-69
SELECT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-69
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 42 * col2 + - col1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-24427
-272610
-7861
query I rowsort
SELECT + + 88 + - col2 AS col0 FROM tab2 AS cor0
----
50
61
62
query I rowsort
SELECT DISTINCT + 40 * + col2 AS col0 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 44 * col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT + col2 * + col1 * - 47 + - 25 * col1 * col2 + col1 FROM tab1 cor0
----
-101062
-41030
-89843
query I rowsort
SELECT col0 + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + 67 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT + - col2 * col1 + 94 AS col0 FROM tab0 cor0
----
-2744
-3
-7368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 96 * + col0 col0 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 97 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
2548
2646
3724
query I rowsort
SELECT ALL ( + cor0.col1 ) * 90 AS col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT + col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + - col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT 52 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-90
SELECT 52 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * 49 + 94 + col0 FROM tab0 AS cor0
----
-1499
-3835
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT cor0.col1 + - 39 FROM tab0, tab2 cor0
----
9 values hashing to 9e2ebfa626777a5d069eed24c862b344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col0 + 2 col1 FROM tab0
----
33
44
98
query I rowsort
SELECT ALL - col0 + col1 + 20 FROM tab0
----
22
82
82
query I rowsort
SELECT cor0.col0 + ( 69 ) * col0 - + col2 * col1 AS col1 FROM tab0 AS cor0
----
-1158
-1232
2353
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT - + col0 * col1 + - 58 DIV + col1 FROM tab2 AS cor0
----
-1346
-218
-4602
skipif mysql # not compatible
query I rowsort label-97
SELECT - + col0 * col1 + - 58 / + col1 FROM tab2 AS cor0
----
-1346
-218
-4602
query I rowsort
SELECT - col0 * ( 99 * + col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-121276
-57057
-784261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col1 * col1 col0 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 89 AS col2 FROM tab0
----
-89
-89
-89
query I rowsort
SELECT 23 AS col1 FROM tab1
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT DISTINCT tab2.col0 DIV cor0.col0 FROM tab2, tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT tab2.col0 / cor0.col0 FROM tab2, tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab1, tab1 AS cor0
----
69
query I rowsort
SELECT 12 * + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2, tab2 AS cor3
----
729 values hashing to 7e800bfb91b7ec224bb10b15c1a1f66f
query I rowsort
SELECT - - col1 * + cor0.col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL + col2 * - 32 FROM tab1 AS cor0
----
-1728
-1824
-3072
query I rowsort
SELECT DISTINCT + col1 + col2 + + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
1019
344
3566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - cor0.col1 * col1 col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT + 84 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT ALL - col0 * col2 DIV 88 FROM tab0
----
-82
-9
0
skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - col0 * col2 / 88 FROM tab0
----
-82
-9
0
query I rowsort
SELECT ALL 34 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT + col0 + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT ( + tab1.col2 + - tab1.col2 ) AS col0 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col1 - + cor0.col2 col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT + 14 * col2 AS col2 FROM tab2 AS cor0
----
364
378
532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab2
----
6
6
6
query I rowsort
SELECT + 15 AS col2 FROM tab0
----
15
15
15
query I rowsort
SELECT ALL - + cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - col2 * col2 + - ( col1 ) * + col1 FROM tab2 cor0
----
-1690
-1733
-4157
query I rowsort
SELECT - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - 68 AS col1 FROM tab1 AS cor0
----
-68
-68
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-125
SELECT ALL + tab1.col2 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + tab1.col2 / col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - + 87 AS col0 FROM tab1 AS cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-127
SELECT - col2 DIV + 99 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-127
SELECT - col2 / + 99 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 78 + - col2 FROM tab0 AS cor0
----
-4
45
77
query I rowsort
SELECT 37 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT - + col2 * - cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col1 * col2 + 70 + + cor0.col0 * col2 FROM tab1 AS cor0
----
-1172
3148
6502
query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 27 * + col0 AS col0 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT + 49 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1546
2917
871
query I rowsort
SELECT - col0 * + col2 + cor0.col2 * - col2 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT + 30 * - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 16de8b59cd5e6f54e5f3d6b991e4252a
query I rowsort
SELECT + 32 * col1 * - ( + col2 ) + + col1 FROM tab2 cor0
----
-20655
-26753
-49029
query I rowsort
SELECT - col0 + - ( col0 ) + col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - col1 * ( - col2 ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col0 col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + + 57 AS col2 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT + col2 * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col2 * col2 * col1 - - col2 AS col0 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT ALL 65 FROM tab0, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + 37 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT CAST( col0 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-149
SELECT CAST ( col0 AS INTEGER ) / col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL 51 * 10 + col1 AS col0 FROM tab2 AS cor0
----
527
541
569
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-152
SELECT ALL - CAST( - col2 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - CAST ( - col2 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT 24 * + col1 AS col1 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT ALL - - 70 FROM tab2 cor0
----
70
70
70
query I rowsort
SELECT ALL 26 * cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 350f2cee479f5b8ae58879fa937728c2
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab0
----
9
9
9
query I rowsort
SELECT ALL - col2 * 97 AS col1 FROM tab0
----
-3201
-7954
-97
query I rowsort
SELECT + ( 65 * - col1 ) FROM tab1
----
-1690
-650
-845
query I rowsort
SELECT DISTINCT - 74 * tab2.col2 FROM tab2
----
-1924
-1998
-2812
query I rowsort
SELECT ALL - ( 70 ) * col1 FROM tab2
----
-1190
-2170
-4130
query I rowsort
SELECT - + 93 + - col0 AS col0 FROM tab0 AS cor0
----
-117
-128
-182
query I rowsort
SELECT ALL 63 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT + - col2 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 44 * + col0 FROM tab2 AS cor0
----
308
3432
3476
onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL + 47 + ( + col2 ) DIV + col0 FROM tab0 AS cor0
----
47
47
48
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + 47 + ( + col2 ) / + col0 FROM tab0 AS cor0
----
47
47
48
query I rowsort
SELECT 43 AS col2 FROM tab1 AS cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT ALL col2 DIV - 68 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-168
SELECT ALL col2 / - 68 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col2 * + 70 + col2 * col0 FROM tab0 AS cor0
----
-1518
-35
1558
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT DISTINCT - col1 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - col1 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - 11 AS col2 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT - ( tab1.col1 ) * col0 + - tab1.col1 + col0 AS col1 FROM tab1
----
-101
-586
-973
query I rowsort
SELECT 33 + col1 AS col0 FROM tab2
----
50
64
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + + ( + col0 * col2 + ( + col0 ) ) col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + 2 * - col0 + cor0.col2 col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col1 + ( col0 ) FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - - col1 + ( + 16 ) FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT ALL 80 + + tab2.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 912501bce7d601e557fa72eacdb63670
query I rowsort
SELECT 64 + - 20 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-181
SELECT DISTINCT - col1 + + ( col2 ) * col1 * + ( - ( col1 ) ) + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - col1 + + ( col2 ) * col1 * + ( - ( col1 ) ) + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 - + ( + 91 ) * cor0.col1 FROM tab1 cor0
----
-1087
-2312
-853
query I rowsort
SELECT col1 * - col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - cor0.col2 + - col0 * col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT col2 * - ( col0 ) + col0 * 48 FROM tab0 AS cor0
----
-3026
1645
360
query I rowsort
SELECT - + col2 * - 19 + cor0.col2 FROM tab0 AS cor0
----
1640
20
660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col1 + col0 col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT - col2 DIV 46 + 6 AS col1 FROM tab2 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-189
SELECT - col2 / 46 + 6 AS col1 FROM tab2 AS cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-190
SELECT ALL + col2 + + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + col2 + + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 + + 20 * + col2 FROM tab2 AS cor0
----
-2961
-421
471
onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT DISTINCT cor0.col1 * col2 + + 46 * col0 + + col1 DIV ( - col1 + + ( ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
1152
4280
5121
skipif mysql # not compatible
query I rowsort label-193
SELECT DISTINCT cor0.col1 * col2 + + 46 * col0 + + col1 / ( - col1 + + ( ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
1152
4280
5121
query I rowsort
SELECT + cor0.col1 + - 74 * col2 FROM tab0 AS cor0
----
-2356
-5977
23
query I rowsort
SELECT col1 + cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-196
SELECT + col0 + CAST( NULL AS SIGNED ) * - 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-196
SELECT + col0 + CAST ( NULL AS INTEGER ) * - 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT ALL col1 DIV - col1 + - col0 + - col0 FROM tab0
----
-179
-49
-71
skipif mysql # not compatible
query I rowsort label-198
SELECT ALL col1 / - col1 + - col0 + - col0 FROM tab0
----
-179
-49
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-199
SELECT ALL + - tab0.col0 + - CAST( - 14 AS SIGNED ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 249e1dcc32acf49226dd2b7db7b16228
skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + - tab0.col0 + - CAST ( - 14 AS INTEGER ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 249e1dcc32acf49226dd2b7db7b16228
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-201
SELECT + col2 * - CAST( - col2 + tab2.col2 AS SIGNED ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-201
SELECT + col2 * - CAST ( - col2 + tab2.col2 AS INTEGER ) AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT tab2.col0 * 95 FROM tab2
----
665
7410
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT DISTINCT + tab0.col2 DIV + ( - tab0.col2 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT + tab0.col2 / + ( - tab0.col2 ) FROM tab0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-204
SELECT CAST( NULL AS SIGNED ) * col1 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-204
SELECT CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-205
SELECT ALL + 29 * + col1 + col1 * - 32 + cor0.col1 DIV col1 col1 FROM tab2 AS cor0
----
-176
-50
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + 29 * + col1 + col1 * - 32 + cor0.col1 / col1 col1 FROM tab2 AS cor0
----
-176
-50
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-206
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT + + CAST ( NULL AS REAL ) - col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-207
SELECT DISTINCT col2 * + 34 + col0 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT col2 * + 34 + col0 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL cor0.col0 * + col1 - ( - 4 ) AS col0 FROM tab0 AS cor0
----
2068
3399
8103
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 49 * cor0.col0 + - col2 FROM tab0 AS cor0
----
1143
1714
4279
query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-212
SELECT + 85 DIV col2 FROM tab0 AS cor0
----
1
2
85
skipif mysql # not compatible
query I rowsort label-212
SELECT + 85 / col2 FROM tab0 AS cor0
----
1
2
85
query I rowsort
SELECT ALL - 16 AS col1 FROM tab1 AS cor0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT 90 * + col2 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT + 6 AS col1 FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - 94 FROM tab1 cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - col0 * + cor0.col1 + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT ALL - - 0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 11 AS col0 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT - 3 AS col1 FROM tab2
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col1 + + cor0.col2 * - col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT - 10 AS col1 FROM tab2
----
-10
-10
-10
query I rowsort
SELECT ALL 41 AS col0 FROM tab0
----
41
41
41
query I rowsort
SELECT - col2 * ( + 5 ) AS col1 FROM tab2 cor0
----
-130
-135
-190
query I rowsort
SELECT + - col1 + + col1 * 35 AS col0 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT ALL - col2 + 11 - 99 AS col2 FROM tab2 AS cor0
----
-114
-115
-126
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + col1 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL - 56 * - col0 AS col0 FROM tab2 AS cor0
----
392
4368
4424
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-236
SELECT - col1 * + 64 + col0 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-236
SELECT - col1 * + 64 + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-237
SELECT ALL 42 + - col0 DIV + col0 AS col1 FROM tab0 cor0
----
41
41
41
skipif mysql # not compatible
query I rowsort label-237
SELECT ALL 42 + - col0 / + col0 AS col1 FROM tab0 cor0
----
41
41
41
query I rowsort
SELECT 45 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
141
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT ALL col1 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-239
SELECT ALL col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT 76 * col1 * col2 FROM tab0 AS cor0
----
215688
567112
7372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-242
SELECT CAST( - col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-242
SELECT CAST ( - col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 47 FROM tab2, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + 23 AS col1 FROM tab1
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-247
SELECT DISTINCT - col1 DIV col1 - + col0 * - col0 * + col0 AS col0 FROM tab0
----
13823
42874
704968
skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT - col1 / col1 - + col0 * - col0 * + col0 AS col0 FROM tab0
----
13823
42874
704968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL <> NULL
----
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 * col2 AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT col2 DIV + col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-253
SELECT col2 / + col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab1.col1 * + col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + col2 + - col2 * + tab2.col0 AS col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL col1 * - col2 + + col2 * - col0 FROM tab0
----
-132
-14760
-3630
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-260
SELECT ALL - col1 + + col1 DIV tab1.col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - col1 + + col1 / tab1.col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT tab0.col1 + + col1 AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 * - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT - tab1.col1 DIV + col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-263
SELECT - tab1.col1 / + col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 * - tab2.col2 * col1 + - col2 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( col0 / + col1 )
----
query I rowsort
SELECT - col0 + tab2.col2 * col1 * col2 AS col0 FROM tab2
----
22592
24469
39806
query I rowsort
SELECT + col0 - - col1 * - col1 FROM tab2
----
-210
-3403
-954
query III rowsort
SELECT * FROM tab0 WHERE col0 <= col1 * - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT col0 + col2 * tab2.col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT + col0 + col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - col0 + tab0.col2 * col2 AS col1 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT col0 NOT IN ( tab0.col1 * col1 + col0 * - col1 )
----
query I rowsort
SELECT + col2 * col2 + + col2 AS col1 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT - + col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-275
SELECT - col2 DIV + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-275
SELECT - col2 / + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT + col1 - + col0 * col2 FROM tab0 AS cor0
----
-706
-7207
62
query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT + col0 * tab2.col2 * col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL - col2 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT DISTINCT col1 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT col1 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - col1 + 41 FROM tab1 AS cor0
----
15
28
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-282
SELECT ALL + - col1 + cor0.col0 * 80 - col1 DIV - 67 AS col2 FROM tab2 AS cor0
----
529
6181
6303
skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + - col1 + cor0.col0 * 80 - col1 / - 67 AS col2 FROM tab2 AS cor0
----
529
6181
6303
query I rowsort
SELECT DISTINCT - - col1 * 86 + col0 AS col2 FROM tab1 AS cor0
----
1198
2239
924
query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 * 76 + col2 * cor0.col2 * - col0 FROM tab2 AS cor0
----
-111188
-3051
-50752
query I rowsort
SELECT - - col1 * col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT col1 DIV - col1 + - col0 + cor0.col1 * col1 FROM tab1 cor0
----
35
672
88
skipif mysql # not compatible
query I rowsort label-287
SELECT col1 / - col1 + - col0 + cor0.col1 * col1 FROM tab1 cor0
----
35
672
88
query I rowsort
SELECT col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab2 cor0
----
0
query I rowsort
SELECT - - cor0.col0 * 23 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT ALL + col2 - + 36 FROM tab2 AS cor0
----
-10
-9
2
query I rowsort
SELECT ALL - - col0 * - 53 + + col1 - col2 FROM tab1 AS cor0
----
-187
-3439
-4323
query I rowsort
SELECT DISTINCT - col2 * + 24 + 82 AS col0 FROM tab1 AS cor0
----
-1214
-1286
-2222
query I rowsort
SELECT ALL - col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col2 + + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT 48 * col2 AS col1 FROM tab0 cor0
----
1584
3936
48
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-301
SELECT DISTINCT + - CAST( 0 AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + - CAST ( 0 AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
1
33
82
query I rowsort
SELECT - 76 * 60 + - col1 FROM tab1 AS cor0
----
-4570
-4573
-4586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-304
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col1 * - 54 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT + - 73 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL ( col2 ) * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL ( - 97 ) + - col0 AS col0 FROM tab0 AS cor0
----
-121
-132
-186
query I rowsort
SELECT + col1 + ( - 46 * col1 ) FROM tab0
----
-3870
-4095
-4365
onlyif mysql # use DIV operator for integer division
query I rowsort label-310
SELECT DISTINCT - col0 DIV - col1 + - col0 FROM tab1
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - col0 / - col1 + - col0 FROM tab1
----
-3
-58
-74
query I rowsort
SELECT DISTINCT + - 23 + col1 FROM tab1 AS cor0
----
-10
-13
3
query I rowsort
SELECT DISTINCT col2 + col1 * - ( cor0.col0 ) FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL 67 + col0 FROM tab0 AS cor0
----
102
156
91
query I rowsort
SELECT ALL + col0 + - col0 * 44 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT - + 61 + - col0 * - ( col1 + cor0.col0 * + col2 ) AS col2 FROM tab2 AS cor0
----
1479
162725
238440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-316
SELECT + col2 + + col2 * + CAST( NULL AS SIGNED ) + + 87 * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-316
SELECT + col2 + + col2 * + CAST ( NULL AS INTEGER ) + + 87 * col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab0 AS cor0
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT + col2 DIV + col1 col2 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-318
SELECT + col2 / + col1 col2 FROM tab1
----
2
5
7
query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / - col0 NOT IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - col2 - col0 * col1 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT ALL tab0.col0 + - col2 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT ALL + + col2 DIV col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-322
SELECT ALL + + col2 / col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + - col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT col1 + + tab0.col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE col0 NOT BETWEEN NULL AND col1
----
query I rowsort
SELECT ALL + col0 - - col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + ( col2 ) + ( 79 ) + col0 AS col2 FROM tab2
----
113
183
196
query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab2
----
52
54
76
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0, tab1 cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT - col0 + + col0 * + 93 FROM tab0
----
2208
3220
8188
query I rowsort
SELECT ALL - tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT 22 AS col0 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-52
query I rowsort
SELECT DISTINCT 31 * - col0 + col0 AS col2 FROM tab0
----
-1050
-2670
-720
query I rowsort
SELECT ALL + ( col1 ) + col1 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + col2 + ( col2 ) col2 FROM tab1
----
206
212
290
query I rowsort
SELECT col2 * - col0 + ( - tab2.col1 ) * tab2.col0 * - 73 FROM tab2
----
15652
333918
95037
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT ( col1 ) * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT 70 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-3578
-7610
-92
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
query I rowsort
SELECT - 71 * col2 AS col0 FROM tab1 AS cor0
----
-3834
-4047
-6816
query I rowsort
SELECT ALL - 55 + 3 * col0 AS col1 FROM tab0 cor0
----
17
212
50
query I rowsort
SELECT ALL + + col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT 57 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-171
-3648
-4560
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT + - col2 DIV ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-348
SELECT + - col2 / ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + cor0.col2 * 91 FROM tab2 cor0
----
2366
2457
3458
query I rowsort
SELECT col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + ( + col1 ) + col0 * 79 AS col1 FROM tab0
----
1982
2862
7122
query I rowsort
SELECT ( + 43 ) AS col1 FROM tab1
----
43
43
43
query I rowsort
SELECT DISTINCT - 79 * col0 AS col1 FROM tab0
----
-1896
-2765
-7031
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-354
SELECT ALL CAST( NULL AS SIGNED ) * - tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-354
SELECT ALL CAST ( NULL AS INTEGER ) * - tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 86 + ( + cor0.col0 ) * 13 FROM tab1 AS cor0
----
1126
125
918
query I rowsort
SELECT 30 AS col0 FROM tab0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * - tab1.col1 - col2 col2 FROM tab1
----
1948
713
905
query I rowsort
SELECT col1 * - col2 * + 76 + col0 AS col1 FROM tab0
----
-215664
-567023
-7337
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT ALL - col0 * - CAST( 41 AS SIGNED ) AS col2 FROM tab1
----
123
2624
3280
skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - col0 * - CAST ( 41 AS INTEGER ) AS col2 FROM tab1
----
123
2624
3280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-360
SELECT + tab0.col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-360
SELECT + tab0.col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - cor0.col0 * + 33 FROM tab1 cor0
----
-2112
-2640
-99
query I rowsort
SELECT ALL col2 * + col0 + cor0.col2 + col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT - col0 * + 59 FROM tab0 AS cor0
----
-1416
-2065
-5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT - + cor0.col1 DIV 95 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-365
SELECT - + cor0.col1 / 95 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-366
SELECT DISTINCT col2 + - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT col2 + - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
0
query I rowsort
SELECT - col0 + + 21 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
442
533
681
query I rowsort
SELECT DISTINCT col1 * 48 + - 86 + + col2 AS col2 FROM tab1 AS cor0
----
1216
451
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-369
SELECT - cor0.col1 * - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-369
SELECT - cor0.col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + - 38 AS col0 FROM tab2 AS cor0
----
-31
40
41
query I rowsort
SELECT DISTINCT + col1 * - 39 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT ALL + col2 * - 65 AS col0 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT - col1 * ( col2 ) * - col0 + + col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-374
SELECT col2 + - col2 * col0 DIV - 87 AS col0 FROM tab1 AS cor0
----
184
55
98
skipif mysql # not compatible
query I rowsort label-374
SELECT col2 + - col2 * col0 / - 87 AS col0 FROM tab1 AS cor0
----
184
55
98
query I rowsort
SELECT 5 AS col1 FROM tab2 cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-377
SELECT col0 * - col0 * col2 + CAST( col2 + col1 * - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1321
-21813
-656902
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-377
SELECT col0 * - col0 * col2 + CAST ( col2 + col1 * - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1321
-21813
-656902
query I rowsort
SELECT + 96 AS col2 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT + ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - 27 AS col1 FROM tab1
----
-27
-27
-27
query I rowsort
SELECT + 27 * col0 + + ( + 94 ) * + col2 FROM tab1 AS cor0
----
11184
5157
7086
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-382
SELECT DISTINCT + col2 / col0 + CAST( NULL AS SIGNED ) / col1 + + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT + col2 / col0 + CAST ( NULL AS INTEGER ) / col1 + + col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT ALL - - col2 + col2 DIV col2 AS col1 FROM tab1 cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-383
SELECT ALL - - col2 + col2 / col2 AS col1 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT ALL 2 * col1 * - ( 12 ) - - col2 AS col2 FROM tab1 AS cor0
----
-183
-216
-570
query I rowsort
SELECT col1 + col0 * - ( col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 64 - + col2 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT - col2 * + cor0.col0 + + cor0.col2 + + col1 FROM tab1 AS cor0
----
-3581
-7571
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 + - cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col0 - - cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col0 + + col2 * - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT + ( - cor0.col2 ) * 12 + cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-12
-396
-984
skipif mysql # not compatible
query I rowsort label-392
SELECT + ( - cor0.col2 ) * 12 + cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT - 18 * cor0.col0 + 77 FROM tab2 AS cor0
----
-1327
-1345
-49
query I rowsort
SELECT - + ( - col1 ) * + 73 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT - cor0.col0 * - col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + 7 * + col2 + + col2 * - col2 AS col2 FROM tab1 cor0
----
-2538
-2850
-8544
query I rowsort
SELECT ALL + 52 AS col1 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT + ( col2 ) + - col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT - - cor0.col1 + col0 DIV - cor0.col0 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-400
SELECT - - cor0.col1 + col0 / - cor0.col0 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT ALL + cor0.col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT DISTINCT + col0 + + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + col0 + + col0 / col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT + 63 FROM tab0, tab0 cor0
----
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT DISTINCT - col1 DIV - ( - col2 ) + - 26 AS col1 FROM tab1
----
-26
skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - col1 / - ( - col2 ) + - 26 AS col1 FROM tab1
----
-26
query I rowsort
SELECT DISTINCT - tab0.col1 * ( col0 + + 24 ) AS col1 FROM tab0
----
-10283
-4128
-5723
query I rowsort
SELECT ALL + 20 AS col1 FROM tab1
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT ALL ( 65 ) DIV col2 FROM tab0
----
0
1
65
skipif mysql # not compatible
query I rowsort label-407
SELECT ALL ( 65 ) / col2 FROM tab0
----
0
1
65
query I rowsort
SELECT + 19 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT - - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 97 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1151
1307
473
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-411
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 * - col1 * 38 AS col1 FROM tab2
----
10982
132278
36518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-413
SELECT CAST( NULL AS SIGNED ) + + 20 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-413
SELECT CAST ( NULL AS INTEGER ) + + 20 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT DISTINCT col1 DIV 72 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT col1 / 72 FROM tab1
----
0
query I rowsort
SELECT - col0 + - 58 FROM tab0 AS cor0
----
-147
-82
-93
query I rowsort
SELECT ALL col1 + 10 AS col0 FROM tab1 AS cor0
----
20
23
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-417
SELECT + col2 + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-417
SELECT + col2 + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 11 col0 FROM tab0 AS cor0
----
75
80
86
query I rowsort
SELECT col1 + 61 * ( - col1 ) - col0 AS col1 FROM tab0
----
-5184
-5549
-5855
query I rowsort
SELECT - 24 + + col0 + col2 FROM tab0
----
12
147
33
query I rowsort
SELECT ALL + 88 + col1 FROM tab0
----
174
179
185
query I rowsort
SELECT - - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + + col0 * 4 * col2 + + 24 AS col1 FROM tab1 AS cor0
----
14616
30744
672
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab1, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col0 * 20 AS col2 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ALL + - col0 + + 59 AS col0 FROM tab0 AS cor0
----
-30
24
35
query I rowsort
SELECT col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col1 + 87 AS col2 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT ALL col2 + + col1 + col2 AS col2 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT col1 DIV col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-432
SELECT col1 / col2 AS col1 FROM tab0
----
1
2
97
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT + 68 * col0 + - tab1.col1 + col1 DIV - col1 AS col2 FROM tab1
----
177
4341
5426
skipif mysql # not compatible
query I rowsort label-434
SELECT + 68 * col0 + - tab1.col1 + col1 / - col1 AS col2 FROM tab1
----
177
4341
5426
query I rowsort
SELECT DISTINCT + 28 * + col0 + - col1 FROM tab2 AS cor0
----
165
2125
2195
query I rowsort
SELECT DISTINCT + col2 - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-437
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + cor0.col0 ) - - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - + cor0.col0 * + col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 * - 2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL 75 + col0 FROM tab2
----
153
154
82
query I rowsort
SELECT - col2 * col2 - col2 * col1 * + 98 AS col0 FROM tab1 AS cor0
----
-131520
-140508
-59109
query I rowsort
SELECT DISTINCT 38 * 17 + col2 * col2 * + ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
1558150
1971862
325546
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT ALL col1 DIV col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-446
SELECT ALL col1 / col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT ALL - + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - 3 * - col0 FROM tab1
----
202
253
35
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
query I rowsort
SELECT ALL + + 45 * + col2 * + col1 AS col1 FROM tab0 cor0
----
127710
335790
4365
query I rowsort
SELECT DISTINCT - 84 + - col0 AS col2 FROM tab2 AS cor0
----
-162
-163
-91
query I rowsort
SELECT DISTINCT cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col1 * - col1 + - 67 FROM tab0 AS cor0
----
7329
8214
9342
query I rowsort
SELECT 86 + + col1 FROM tab2 AS cor0
----
103
117
145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col2 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 75 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-75
query I rowsort
SELECT DISTINCT - col0 + 79 - ( - col0 ) * col0 FROM tab0 AS cor0
----
1269
631
7911
query I rowsort
SELECT cor0.col0 + col0 * 13 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT ALL + - col0 - - 20 * 45 * col1 FROM tab1 cor0
----
11620
23397
8936
query I rowsort
SELECT DISTINCT - col1 * ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 * - ( + col2 ) + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-463
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + + col0 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col1 * col0 col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - 78 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2142
3473
8177
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + + 34 * col0 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 AS cor0
----
65
query I rowsort
SELECT col1 - + 47 AS col2 FROM tab1 AS cor0
----
-21
-34
-37
query I rowsort
SELECT ALL ( - 64 ) FROM tab2 AS cor0
----
-64
-64
-64
query I rowsort
SELECT - + col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col2 * - 27 AS col0 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT ALL col0 * 31 AS col1 FROM tab2
----
217
2418
2449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8
query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab1, tab1 AS cor0
----
51
query I rowsort
SELECT ALL 55 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT + 95 FROM tab2
----
95
query I rowsort
SELECT + col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 94 + - col0 FROM tab1 AS cor0
----
14
30
91
query I rowsort
SELECT + + col1 + - col2 AS col2 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT DISTINCT cor0.col1 + cor0.col1 DIV ( - col1 ) col2 FROM tab2 AS cor0
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT cor0.col1 + cor0.col1 / ( - col1 ) col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL - col2 * col2 + - 95 AS col1 FROM tab2 AS cor0
----
-1539
-771
-824
query I rowsort
SELECT + + 73 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT + + ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col0 AS col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT - + col1 + col0 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + - col0 * - col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT + tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1 AS cor0
----
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-496
SELECT - - CAST( - col1 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-496
SELECT - - CAST ( - col1 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT ( - 51 ) DIV col1 + - 73 FROM tab0 AS cor0
----
-73
-73
-73
skipif mysql # not compatible
query I rowsort label-498
SELECT ( - 51 ) / col1 + - 73 FROM tab0 AS cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + ( - 62 ) AS col2 FROM tab0 cor0
----
62
62
62
query I rowsort
SELECT col0 + - col2 + col0 AS col0 FROM tab1
----
-48
64
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + + col0 + + col2 * col1 col2 FROM tab2
----
1699
812
931
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 * + cor0.col1 * col1 + col2 FROM tab2 AS cor0
----
22869
271544
6754
query I rowsort
SELECT ALL 3 AS col2 FROM tab1
----
3
3
3
query I rowsort
SELECT ALL + col0 * - tab2.col2 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 79 + + col0 * col0 FROM tab1
----
4175
6479
88
query I rowsort
SELECT + col2 * col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col1 + ( + col2 ) * - 70 FROM tab0
----
-167
-2396
-5831
query I rowsort
SELECT ( + 39 + - col0 ) * + 23 AS col1 FROM tab0
----
-1150
345
92
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87
query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 + + col0 * + 30 AS col0 FROM tab0 cor0
----
1051
2752
753
query I rowsort
SELECT - 13 + col1 AS col2 FROM tab2 AS cor0
----
18
4
46
query I rowsort
SELECT ALL ( col0 ) * col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + col0 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + 37 AS col2 FROM tab0
----
37
37
37
query I rowsort
SELECT DISTINCT - col0 + - col0 AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT col1 * + tab1.col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT col1 + 5 AS col0 FROM tab1 AS cor0
----
15
18
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-524
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-524
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-525
SELECT ALL + + cor0.col1 - - CAST( + 93 AS SIGNED ) FROM tab1, tab2, tab0 cor0
----
27 values hashing to 717684c75e62d59bdad9ac34af2c8d1b
skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + + cor0.col1 - - CAST ( + 93 AS INTEGER ) FROM tab1, tab2, tab0 cor0
----
27 values hashing to 717684c75e62d59bdad9ac34af2c8d1b
query I rowsort
SELECT ALL ( 39 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT col0 + 8 AS col0 FROM tab2 AS cor0
----
15
86
87
query I rowsort
SELECT + - cor0.col2 + col1 * + col0 - - col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 56 FROM tab0, tab0 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab2, tab2 AS cor0
----
85
query I rowsort
SELECT 2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT DISTINCT ( + 55 * col2 ) AS col1 FROM tab2
----
1430
1485
2090
query I rowsort
SELECT + + ( + col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 37 * + col2 + col2 - + 89 AS col2 FROM tab1 AS cor0
----
-2033
-2141
-3545
query I rowsort
SELECT - 10 * col1 + col1 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT - col2 + - 41 * + cor0.col1 FROM tab1 AS cor0
----
-1120
-467
-629
query I rowsort
SELECT - tab2.col0 + col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT 19 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT - col1 * - col2 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT - tab0.col1 - + col1 FROM tab0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col1 * + col1 col2 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-543
SELECT ALL + col1 * + CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + col1 * + CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-544
SELECT - cor0.col0 + + CAST( col0 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-544
SELECT - cor0.col0 + + CAST ( col0 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 + col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-620
-7116
159
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - - col1 + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT cor0.col0 + cor0.col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL col2 * + 60 AS col2 FROM tab2 cor0
----
1560
1620
2280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL - + col0 DIV cor0.col2 + col0 * 87 AS col0 FROM tab0 AS cor0
----
2088
3010
7742
skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - + col0 / cor0.col2 + col0 * 87 AS col0 FROM tab0 AS cor0
----
2088
3010
7742
query I rowsort
SELECT + + ( + col1 ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 * col0 - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT + col0 + ( - col2 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + - ( - col2 ) FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-557
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-558
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + - ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 * - cor0.col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + + col0 * + 27 + col0 - col1 * - col0 AS col2 FROM tab0 AS cor0
----
10591
2736
4375
query I rowsort
SELECT ALL - + col2 * + col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + 56 * col2 + col2 AS col1 FROM tab0 cor0
----
1881
4674
57
query I rowsort
SELECT ALL + + col1 * - col2 + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-1056
-1296
-456
query I rowsort
SELECT ALL col1 + col2 * - tab0.col0 * col2 AS col0 FROM tab0
----
-26050
-598345
62
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT - - 29 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT ALL - col2 * - ( + col1 * col1 ) - col1 AS col1 FROM tab0
----
243982
678951
9312
query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT cor0.col2 + col2 * 92 FROM tab2 AS cor0
----
2418
2511
3534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-574
SELECT ALL + ( cor0.col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + ( cor0.col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 9 + col1 FROM tab0 AS cor0
----
100
106
95
query I rowsort
SELECT ALL - 53 * col0 + col0 FROM tab0 cor0
----
-1248
-1820
-4628
query I rowsort
SELECT DISTINCT + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 14 * - col0 AS col1 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT - col1 * 21 AS col2 FROM tab1
----
-210
-273
-546
query I rowsort
SELECT ALL + 3 FROM tab2 AS cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col0 col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT 6 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
-21
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * - col0 col0 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT ALL + 47 * - col0 + - 78 * - 29 - - col0 FROM tab1
----
-1418
-682
2124
query I rowsort
SELECT DISTINCT - col0 * - 94 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985
skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( col0 * col0 AS REAL ) FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + - col0 + + col0 * + 76 FROM tab0 cor0
----
1800
2625
6675
query I rowsort
SELECT + col2 * 43 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT col0 * - col1 + col2 AS col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + 40 AS col0 FROM tab2
----
40
40
40
query I rowsort
SELECT DISTINCT + col0 * col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + col1 * + ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col2 * - 1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT + - col0 DIV 66 col0 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-595
SELECT + - col0 / 66 col0 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-596
SELECT DISTINCT + + col0 * CAST( + ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT + + col0 * CAST ( + ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT ALL - col1 + - ( + 36 ) DIV col0 col1 FROM tab1 cor0
----
-10
-13
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - col1 + - ( + 36 ) / col0 col1 FROM tab1 cor0
----
-10
-13
-38
query I rowsort
SELECT + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 19 FROM tab1
----
19
19
19
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 76 AS col2 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL + 31 AS col1 FROM tab2
----
31
31
31
query I rowsort
SELECT 65 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT ALL + col0 * col2 * ( + 79 * + col1 ) FROM tab1
----
2881920
332748
7887360
onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT DISTINCT - col0 * - col0 + col0 + + col1 DIV - col0 FROM tab1
----
4
4160
6480
skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - col0 * - col0 + col0 + + col1 / - col0 FROM tab1
----
4
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-607
SELECT col0 DIV - 1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-607
SELECT col0 / - 1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 + + col2 + - 39 FROM tab1
----
137
18
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-609
SELECT + col0 + CAST( NULL AS SIGNED ) + - ( - col2 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-609
SELECT + col0 + CAST ( NULL AS INTEGER ) + - ( - col2 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col0 * - 37 AS col1 FROM tab0
----
-1295
-3293
-888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 87 col1 FROM tab1 cor0
----
1131
2262
870
onlyif mysql # use DIV operator for integer division
query I rowsort label-612
SELECT DISTINCT + + col1 DIV 45 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT + + col1 / 45 AS col2 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT ALL + col1 * ( - cor0.col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT + + col0 * ( col1 ) * col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col1 - - col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 36 FROM tab0, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + ( 87 ) - col1 * - ( + ( col1 ) ) AS col0 FROM tab2
----
1048
3568
376
query I rowsort
SELECT - col2 * + cor0.col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-622
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 * col2 + - cor0.col0 col0 FROM tab0 AS cor0
----
-13
1715
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-624
SELECT DISTINCT - ( - col2 ) * col0 + + cor0.col0 DIV + col2 FROM tab1 cor0
----
162
3649
7680
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - ( - col2 ) * col0 + + cor0.col0 / + col2 FROM tab1 cor0
----
162
3649
7680
query I rowsort
SELECT ALL + + 24 + + col2 + - col0 FROM tab1 AS cor0
----
17
40
75
query I rowsort
SELECT ALL - 67 + + col0 + col1 * 20 FROM tab0 AS cor0
----
1677
1842
1908
query I rowsort
SELECT - 32 FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT ALL - - 11 + - col1 AS col0 FROM tab0 AS cor0
----
-75
-80
-86
query I rowsort
SELECT ALL - ( col0 + col0 ) * + col2 AS col2 FROM tab0
----
-14596
-1584
-70
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + - col2 col2 FROM tab1 AS cor0
----
-41
-44
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + cor0.col0 * + col2 * + 57 col2 FROM tab0 AS cor0
----
1994
415904
45111
query I rowsort
SELECT DISTINCT + 15 + col0 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT ALL + ( col2 ) + ( + cor0.col0 * - col2 ) AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 23 + + col2 + 69 * - col2 AS col2 FROM tab1 AS cor0
----
-3649
-3853
-6505
query I rowsort
SELECT ALL + 44 * - col1 * col2 FROM tab1 AS cor0
----
-25080
-54912
-61776
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + + col2 * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-640
SELECT col2 * - col1 * + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-640
SELECT col2 * - col1 * + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-642
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 + - 1 FROM tab0
----
23
34
88
query I rowsort
SELECT col0 * - col1 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-540
-871
598
query I rowsort
SELECT ALL + col0 * 32 + - col1 FROM tab0 AS cor0
----
1023
2757
682
query I rowsort
SELECT ALL + col1 - - col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col2 * 78 AS col0 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT DISTINCT - col2 + 18 + col1 FROM tab2 cor0
----
-3
22
51
query I rowsort
SELECT col1 + col1 * col1 AS col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + 65 FROM tab2, tab0 AS cor0
----
65
query I rowsort
SELECT DISTINCT - + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-53
query I rowsort
SELECT + 93 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT 55 FROM tab2, tab0 AS cor0
----
55
query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab1, tab2 AS cor0
----
-30
query I rowsort
SELECT ALL col1 + 29 AS col0 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT - - 27 + + col2 AS col0 FROM tab2 cor0
----
53
54
65
query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT ALL CAST( col2 AS SIGNED ) col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-658
SELECT ALL CAST ( col2 AS INTEGER ) col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT - col1 + + col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2893
3303
9283
query I rowsort
SELECT + + 58 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
-2030
-423284
-45936
query I rowsort
SELECT + 32 + - col0 + col0 FROM tab1 cor0
----
32
32
32
query I rowsort
SELECT 53 * 59 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cbda75e4f0c3cecb51eed507207a88de
query I rowsort
SELECT DISTINCT - - 45 + col0 AS col0 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT ALL - 51 + + cor0.col1 * 33 FROM tab1 AS cor0
----
279
378
807
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT ALL col2 DIV col2 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-666
SELECT ALL col2 / col2 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ( + col2 + col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col1 * col2 + - col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT tab2.col1 * - col1 + - col1 * col1 AS col2 FROM tab2
----
-1922
-578
-6962
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + col2 col1 FROM tab2
----
0
query I rowsort
SELECT + 23 * - col2 FROM tab2 AS cor0
----
-598
-621
-874
query I rowsort
SELECT ALL col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col1 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + 13 * col0 + col2 AS col2 FROM tab2 AS cor0
----
1040
1065
118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab1, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 - - cor0.col1 * + col1 FROM tab2 AS cor0
----
1922
578
6962
query I rowsort
SELECT ALL 52 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT col1 * ( - col0 ) - col0 AS col2 FROM tab0 cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + ( col1 ) col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - + cor0.col1 * + 37 - col2 AS col1 FROM tab0 AS cor0
----
-3215
-3449
-3590
query I rowsort
SELECT DISTINCT + col1 + - 87 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT DISTINCT - cor0.col2 - + col0 AS col2 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT col1 DIV 31 - col0 * col0 * col1 AS col2 FROM tab0 cor0
----
-118822
-49534
-720809
skipif mysql # not compatible
query I rowsort label-685
SELECT col1 / 31 - col0 * col0 * col1 AS col2 FROM tab0 cor0
----
-118822
-49534
-720809
query I rowsort
SELECT ALL col0 * col2 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT + + col2 + cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-687
SELECT + + col2 + cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL + ( - col2 ) * + col1 * 21 + + tab0.col2 AS col1 FROM tab0
----
-156620
-2036
-59565
query I rowsort
SELECT ( col1 + col1 ) AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * col2 - tab1.col2 * + col0 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT ALL - col2 + col2 - - col1 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - col1 * cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - - col1 - col0 AS col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT cor0.col1 * + col0 * + col0 AS col2 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - col1 * col1 col2 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-699
SELECT - col0 + - col1 DIV cor0.col1 + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-699
SELECT - col0 + - col1 / cor0.col1 + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT tab1.col0 * - col0 FROM tab1 WHERE NOT col2 BETWEEN ( + col2 + + col0 ) AND ( NULL ) AND NOT + col1 > NULL
----
query I rowsort
SELECT 73 AS col1 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT + + cor0.col0 + + cor0.col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + - ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 * 23 AS col1 FROM tab1
----
230
299
598
query I rowsort
SELECT ALL ( + col1 + col1 ) * col0 FROM tab1
----
1280
156
2080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-708
SELECT ALL + CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-708
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 * + tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - + ( - col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2
----
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a3c67fb9fa5a170b7539b79ea701ebb3
query I rowsort
SELECT DISTINCT + + col2 * col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + col1 + + col0 * col2 * - 23 FROM tab0 cor0
----
-167763
-18130
-708
query I rowsort
SELECT ALL - col0 + + col0 * - ( 82 ) FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT - cor0.col0 * cor0.col0 + 71 * + cor0.col2 - + col1 * - col1 FROM tab0 AS cor0
----
6182
8255
9163
query I rowsort
SELECT ALL - - 50 AS col2 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT + 67 + + col2 AS col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT cor0.col2 * col0 + + 10 FROM tab0 cor0
----
45
7308
802
query I rowsort
SELECT DISTINCT - col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL col0 * col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL - col0 + + col1 * - col1 * 96 FROM tab1 AS cor0
----
-16304
-64899
-9664
onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT DISTINCT + + 76 * col1 DIV + col1 FROM tab0 AS cor0
----
76
skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + + 76 * col1 / + col1 FROM tab0 AS cor0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + + col0 col1 FROM tab0 AS cor0
----
116
127
181
query I rowsort
SELECT + col2 * + 77 FROM tab0
----
2541
6314
77
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + col2 * - col0 + - ( ( col1 ) ) FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL ( + col2 ) + 41 FROM tab0 AS cor0
----
123
42
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-732
SELECT col1 DIV - col0 + - cor0.col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-732
SELECT col1 / - col0 + - cor0.col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 87 AS col2 FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT col1 * col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - tab1.col0 + - 90 * col1 AS col0 FROM tab1
----
-1250
-2343
-964
query I rowsort
SELECT ALL - col1 * 65 FROM tab0
----
-5590
-5915
-6305
query I rowsort
SELECT DISTINCT + + col1 + - 9 AS col0 FROM tab2 cor0
----
22
50
8
query I rowsort
SELECT ALL - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col2 ) col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-741
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-741
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT ALL + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-742
SELECT ALL + col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 * 67 * cor0.col1 FROM tab1 AS cor0
----
38190
83616
94068
query I rowsort
SELECT DISTINCT - - col0 * 17 * col1 FROM tab0 AS cor0
----
137683
35088
57715
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT + + col2 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - col1 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + cor0.col2 * col1 + - 29 * col1 FROM tab2 AS cor0
----
-177
-62
153
query I rowsort
SELECT ALL col2 + + 75 * col1 FROM tab1 AS cor0
----
1071
2004
807
query I rowsort
SELECT DISTINCT - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - 53 AS col1 FROM tab0 AS cor0
----
-53
-53
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-753
SELECT 54 DIV cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
skipif mysql # not compatible
query I rowsort label-753
SELECT 54 / cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
query I rowsort
SELECT ALL + col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col1 * - ( col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + 94 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT + cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col1 FROM tab2 cor0
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a
query I rowsort
SELECT ALL - 97 * col1 + - col2 FROM tab1 AS cor0
----
-1027
-1357
-2576
query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) * 60 FROM tab1 AS cor0
----
-3240
-3420
-5760
query I rowsort
SELECT DISTINCT - 55 * ( + col0 ) FROM tab2 AS cor0
----
-385
-4290
-4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT + + 77 DIV 42 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + + 77 / 42 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL + + 55 * + col2 + col0 AS col2 FROM tab2 cor0
----
1492
1508
2169
onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT - 64 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-765
SELECT - 64 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 - + cor0.col1 FROM tab2 AS cor0
----
-113
-196
-69
query I rowsort
SELECT ALL + col1 * + col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 33 + 29 AS col2 FROM tab1 AS cor0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT DISTINCT + cor0.col2 + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
27
42
skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + cor0.col2 + col0 / col1 AS col0 FROM tab2 AS cor0
----
27
42
query I rowsort
SELECT ALL + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT + col0 DIV + 63 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-771
SELECT + col0 / + 63 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + col1 + 71 * col0 FROM tab2 AS cor0
----
528
5597
5626
query I rowsort
SELECT - 11 FROM tab2, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT DISTINCT - col0 + col1 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT + col2 + 88 * col2 + col2 FROM tab0
----
2970
7380
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-776
SELECT CAST( + col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-776
SELECT CAST ( + col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * + 39 FROM tab2 cor0
----
1209
2301
663
query I rowsort
SELECT + - col2 + + col1 * col1 * col0 FROM tab1 cor0
----
13424
1974
6343
query I rowsort
SELECT - ( cor0.col1 ) + - 65 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to ec668f69a360faa081c2fd984ee997c9
query I rowsort
SELECT ALL + cor0.col0 * 43 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 19dab67aab425d7be61650756bbd8a3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-781
SELECT + - ( col0 ) + - col1 DIV 62 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-781
SELECT + - ( col0 ) + - col1 / 62 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT col0 * 76 + - col2 AS col2 FROM tab2
----
505
5902
5966
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT - - col2 * col2 + - ( + col0 * + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-783
SELECT - - col2 * col2 + - ( + col0 * + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col0 + - 56 * - col0 * - col2 - col1 FROM tab2
----
-10398
-109025
-166786
query I rowsort
SELECT DISTINCT col1 * + col0 - - col0 * tab2.col1 FROM tab2
----
2686
434
9204
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 * - col1 + - col1 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT - cor0.col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - + col2 + + ( col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + + col0 AS col1 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT DISTINCT col0 + tab0.col2 DIV 48 AS col2 FROM tab0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT col0 + tab0.col2 / 48 AS col2 FROM tab0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT - tab2.col0 DIV col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-791
SELECT - tab2.col0 / col0 AS col1 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT - 1 DIV - col1 col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-792
SELECT - 1 / - col1 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 97 + tab0.col2 + - ( col0 ) AS col1 FROM tab0
----
-104
-131
-88
skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( col1 AS REAL ) AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT + col1 * col2 + + 0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT col0 + - 56 DIV col1 FROM tab1
----
1
59
76
skipif mysql # not compatible
query I rowsort label-796
SELECT col0 + - 56 / col1 FROM tab1
----
1
59
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-797
SELECT DISTINCT - col2 + CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - col2 + CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-798
SELECT DISTINCT - col0 * CAST( - 48 AS SIGNED ) FROM tab0 cor0
----
1152
1680
4272
skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - col0 * CAST ( - 48 AS INTEGER ) FROM tab0 cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT + col1 DIV - 60 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-799
SELECT + col1 / - 60 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT ALL + col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + col1 / cor0.col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL - - col1 * col0 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT + - col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-803
SELECT + - col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + 54 FROM tab1, tab1 AS cor0
----
54
query I rowsort
SELECT + 44 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT col2 - 37 FROM tab2 AS cor0
----
-10
-11
1
query I rowsort
SELECT + col1 * ( col1 ) - col2 * cor0.col1 FROM tab0 AS cor0
----
4558
819
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 + - 16 FROM tab2 cor0
----
10
11
22
query I rowsort
SELECT col2 + + 18 + + col1 AS col2 FROM tab2 AS cor0
----
103
73
76
query I rowsort
SELECT ALL - col0 + - col0 AS col0 FROM tab0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + col2 * + ( col0 ) col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL - col1 * - 93 AS col2 FROM tab0
----
7998
8463
9021
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 * col0 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT col2 + + 20 DIV col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-815
SELECT col2 + + 20 / col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col0 * + tab0.col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT + - col0 * + col2 + col2 DIV - col2 AS col0 FROM tab0 cor0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-817
SELECT + - col0 * + col2 + col2 / - col2 AS col0 FROM tab0 cor0
----
-36
-7299
-793
query I rowsort
SELECT - - col2 + ( col0 * col0 ) + col0 AS col1 FROM tab1 AS cor0
----
4217
6576
66
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
54
57
96
query I rowsort
SELECT - 34 + + col2 AS col0 FROM tab1
----
20
23
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT - + 46 DIV cor0.col0 FROM tab1 AS cor0
----
-15
0
0
skipif mysql # not compatible
query I rowsort label-821
SELECT - + 46 / cor0.col0 FROM tab1 AS cor0
----
-15
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 52 * - col2 FROM tab0
----
-1716
-4264
-52
query I rowsort
SELECT DISTINCT + 49 FROM tab1, tab2 AS cor0
----
49
query I rowsort
SELECT + 54 FROM tab1, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - ( 52 ) FROM tab2
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + 86 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT DISTINCT - col0 + col1 DIV - ( - col0 * col1 ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - col0 + col1 / - ( - col0 * col1 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 62 AS col0 FROM tab0 AS cor0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT DISTINCT col0 DIV col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT col0 / col1 FROM tab1
----
0
6
query I rowsort
SELECT - - cor0.col1 * - col2 + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT + 43 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT cor0.col0 + 99 FROM tab2, tab1 AS cor0
----
102
163
179
query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
7
query I rowsort
SELECT + 52 FROM tab2
----
52
52
52
query I rowsort
SELECT 79 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6646573ec3d7b7e653272e873993a6b1
onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT ALL + tab1.col0 DIV tab1.col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + tab1.col0 / tab1.col1 FROM tab1
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-838
SELECT - col1 + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-838
SELECT - col1 + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL tab1.col1 * ( col0 ) AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col2 + - cor0.col1 * + 64 FROM tab2 AS cor0
----
-1050
-1957
-3750
query I rowsort
SELECT - col0 * + 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * ( - ( col0 ) ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 97 * cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e57db8dd9545357c2f46cd9edb1d52a1
query I rowsort
SELECT - + col0 * col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - + ( 97 ) + + col2 FROM tab0 cor0
----
-15
-64
-96
query I rowsort
SELECT + col0 + - 20 FROM tab0 AS cor0
----
15
4
69
query I rowsort
SELECT ALL 90 * col1 + 16 FROM tab1 cor0
----
1186
2356
916
query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-852
SELECT ALL - + col2 + col0 * - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - + col2 + col0 * - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 + + col2 * - ( - col2 ) AS col0 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT - - col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 - col2 * - CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + - col1 * + 63 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT ALL - col0 + col1 + col1 AS col1 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT - col0 * 73 FROM tab0 AS cor0
----
-1752
-2555
-6497
query I rowsort
SELECT DISTINCT - col1 * - 22 FROM tab2 AS cor0
----
1298
374
682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT CAST( NULL AS SIGNED ) * - 8 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-861
SELECT CAST ( NULL AS INTEGER ) * - 8 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 68 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-863
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 * + 73 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL + col1 * - tab2.col1 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT DISTINCT - 23 DIV cor0.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT - 23 / cor0.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT ALL col2 * + col1 + ( + 78 ) DIV - col2 FROM tab1
----
1248
1403
569
skipif mysql # not compatible
query I rowsort label-867
SELECT ALL col2 * + col1 + ( + 78 ) / - col2 FROM tab1
----
1248
1403
569
onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT ALL + col1 DIV col0 + - 77 AS col0 FROM tab2
----
-73
-77
-77
skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + col1 / col0 + - 77 AS col0 FROM tab2
----
-73
-77
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 + + col0 * col1 col0 FROM tab2
----
1260
134
4519
query I rowsort
SELECT DISTINCT 10 + tab0.col1 FROM tab0
----
101
107
96
query I rowsort
SELECT - col0 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL ( col0 * 62 ) AS col1 FROM tab1
----
186
3968
4960
query I rowsort
SELECT + col2 + col1 - + col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL + col0 + + col1 + + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT - col0 * 22 + col0 FROM tab0 AS cor0
----
-1869
-504
-735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-877
SELECT ALL + + col0 * + col0 * + ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + + col0 * + col0 * + ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + col2 * 46 * - cor0.col2 AS col1 FROM tab1 cor0
----
-134190
-149511
-424032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-879
SELECT + col2 * - CAST( ( col1 ) * + CAST( NULL AS SIGNED ) AS SIGNED ) + col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-879
SELECT + col2 * - CAST ( ( col1 ) * + CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-880
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * ( col2 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + + col2 * 35 * col0 AS col1 FROM tab2 cor0
----
105070
6615
70980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 * + cor0.col0 + col0 col2 FROM tab2 AS cor0
----
119730
51113
5866
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-884
SELECT ALL - + col2 + - CAST( col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - + col2 + - CAST ( col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT ALL + col1 + + 68 * col2 + col2 FROM tab2 AS cor0
----
1853
1894
2639
query I rowsort
SELECT ALL + - col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - - col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - + col0 * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 * - ( - col2 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 * 16 AS col1 FROM tab1
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col2 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL 55 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT - - col2 * col0 + 17 FROM tab0 cor0
----
52
7315
809
query I rowsort
SELECT DISTINCT col0 + - col1 * - 25 AS col1 FROM tab2 AS cor0
----
1553
504
782
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT col2 + - ( col2 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 83 + + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 54f7ad1a3a1b2ef89482b8b491a1df21
query I rowsort
SELECT DISTINCT - col2 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
-28
-47
-83
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
onlyif mysql # use DIV operator for integer division
query I rowsort label-901
SELECT - cor0.col2 DIV + col2 + col1 col1 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-901
SELECT - cor0.col2 / + col2 + col1 col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL + 41 * cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
1298
2445
735
query I rowsort
SELECT + + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 72 * + col0 + + col1 + 12 * + col0 FROM tab2 AS cor0
----
-389
-4621
-4723
query I rowsort
SELECT ALL - col0 + + 1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL - cor0.col0 + + col2 * - col2 FROM tab1 cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - col1 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT col2 * col1 * - 63 AS col1 FROM tab2
----
-40698
-52731
-96642
query I rowsort
SELECT DISTINCT - 27 FROM tab0, tab1 AS cor0
----
-27
query I rowsort
SELECT tab0.col2 + + ( tab0.col1 ) * - col0 * - tab0.col0 AS col1 FROM tab0
----
118826
49569
720893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col2 FROM tab1
----
20
26
52
query I rowsort
SELECT 95 * col2 + + col2 AS col1 FROM tab0 cor0
----
3168
7872
96
query I rowsort
SELECT + ( - ( col1 ) ) + - col2 + + col0 FROM tab1 AS cor0
----
-29
-3
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT col1 DIV - 65 + + col1 * 53 * + col1 + + col2 AS col0 FROM tab0 cor0
----
392020
438974
498677
skipif mysql # not compatible
query I rowsort label-915
SELECT col1 / - 65 + + col1 * 53 * + col1 + + col2 AS col0 FROM tab0 cor0
----
392020
438974
498677
query I rowsort
SELECT + cor0.col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-917
SELECT + col1 * cor0.col1 * col0 - + 96 DIV col2 AS col1 FROM tab0 AS cor0
----
177502
329219
737008
skipif mysql # not compatible
query I rowsort label-917
SELECT + col1 * cor0.col1 * col0 - + 96 / col2 AS col1 FROM tab0 AS cor0
----
177502
329219
737008
query I rowsort
SELECT col1 * col1 - col0 AS col2 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT ALL ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * + 72 FROM tab0 AS cor0
----
-6159
-6470
-6983
query I rowsort
SELECT col2 - col2 * col2 FROM tab2 cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 - col1 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2, tab1 cor0
----
10
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - cor0.col2 + + cor0.col2 * 57 AS col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT - 2 - col2 * - 38 FROM tab0 AS cor0
----
1252
3114
36
query I rowsort
SELECT ALL - 3 + col1 AS col0 FROM tab2 cor0
----
14
28
56
query I rowsort
SELECT DISTINCT + + col0 - col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT ALL + col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-929
SELECT ALL + col1 / col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col0 * cor0.col1 col2 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT - - col1 - - col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + col0 + - 26 FROM tab1 AS cor0
----
-106
-29
-90
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT - ( + col1 ) * col2 + - 10 + + col0 * tab1.col2 FROM tab1
----
-1252
3068
6422
query I rowsort
SELECT DISTINCT - 69 + col0 * + 48 + - col2 FROM tab2
----
240
3649
3685
query I rowsort
SELECT DISTINCT - + col1 * col2 * + 52 + col0 + 49 FROM tab2 AS cor0
----
-33464
-43468
-79641
onlyif mysql # use DIV operator for integer division
query I rowsort label-937
SELECT ( col2 ) DIV ( 95 ) AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-937
SELECT ( col2 ) / ( 95 ) AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + col2 * + CAST ( + 35 * - col1 AS REAL ) AS col1 FROM tab0
----
-261079
-3298
-99244
query I rowsort
SELECT ALL + ( cor1.col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8
query I rowsort
SELECT DISTINCT 43 + col2 FROM tab1
----
100
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT ALL + col1 DIV col2 AS col0 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + col1 / col2 AS col0 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT - + col2 * + col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + col2 * col0 * - col1 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - 12 * + tab1.col2 AS col1 FROM tab1
----
-1152
-648
-684
query I rowsort
SELECT - - col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col1 * ( - col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col2 FROM tab2 AS cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-948
SELECT DISTINCT col0 * - CAST( col0 AS SIGNED ) * - col1 AS col2 FROM tab1
----
234
40960
83200
skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT col0 * - CAST ( col0 AS INTEGER ) * - col1 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - col0 + 15 * - col1 FROM tab0 AS cor0
----
-1314
-1454
-1490
query I rowsort
SELECT - - cor0.col2 + + 37 AS col0 FROM tab2 AS cor0
----
63
64
75
query I rowsort
SELECT - + 28 AS col2 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT + 17 + - col0 AS col2 FROM tab1 AS cor0
----
-47
-63
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-953
SELECT DISTINCT CAST( + tab0.col1 AS SIGNED ) * - col2 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT CAST ( + tab0.col1 AS INTEGER ) * - col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 + + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + tab2.col0 * + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7ccaf24f2c8d9f29787f37bd29e709d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT + col1 DIV 28 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-957
SELECT + col1 / 28 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT - col2 + 51 FROM tab1 AS cor0
----
-3
-45
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT + cor0.col2 + + cor0.col0 DIV + 58 FROM tab2 cor0
----
27
27
39
skipif mysql # not compatible
query I rowsort label-960
SELECT + cor0.col2 + + cor0.col0 / + 58 FROM tab2 cor0
----
27
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + col0 * 54 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT + col0 * + ( + tab1.col0 + tab1.col2 ) AS col1 FROM tab1
----
14080
171
7744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-964
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-964
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL + - col0 * + 89 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
-4330
-541417
-555432
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
query I rowsort
SELECT DISTINCT + - 51 + - col1 * - col1 * - col0 + + col0 FROM tab1 cor0
----
-13491
-2076
-6387
query I rowsort
SELECT ALL 25 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT 17 FROM tab0, tab2 cor0, tab1 AS cor1
----
17
query I rowsort
SELECT ALL + 48 FROM tab0, tab2 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT + ( - col2 ) * tab2.col2 + + 34 FROM tab2
----
-1410
-642
-695
query I rowsort
SELECT + + 32 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT 62 - + tab0.col2 FROM tab0
----
-20
29
61
query I rowsort
SELECT ( col0 ) - col2 AS col0 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT DISTINCT col0 DIV + 62 col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT col0 / + 62 col0 FROM tab0
----
0
1
query I rowsort
SELECT 0 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - + 42 + 52 * col1 FROM tab1 AS cor0
----
1310
478
634
query I rowsort
SELECT col0 * + col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL tab0.col0 * col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab0
----
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT - col1 DIV + col1 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-982
SELECT - col1 / + col1 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - 69 + + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1370bb7931960b042e18e06757a20c7c
query I rowsort
SELECT + col1 * + col2 + 56 FROM tab0 cor0
----
153
2894
7518
query I rowsort
SELECT 68 * - col2 FROM tab1 AS cor0
----
-3672
-3876
-6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT - col2 DIV + 40 + col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-986
SELECT - col2 / + 40 + col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col1 + + 17 AS col1 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT ALL - + col2 * 80 * col0 FROM tab2 AS cor0
----
-15120
-162240
-240160
onlyif mysql # use DIV operator for integer division
query I rowsort label-989
SELECT DISTINCT cor0.col2 DIV ( col2 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT cor0.col2 / ( col2 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + - col0 + 5 AS col1 FROM tab0 AS cor0
----
-19
-30
-84
query I rowsort
SELECT DISTINCT 34 FROM tab0
----
34
query I rowsort
SELECT 10 FROM tab0
----
10
10
10
query I rowsort
SELECT - col1 * + col0 * - col2 + cor0.col2 * + ( col0 ) * col0 + - 32 AS col0 FROM tab0 AS cor0
----
1313608
4588
87088
query I rowsort
SELECT col0 + - 43 FROM tab2 AS cor0
----
-36
35
36
query I rowsort
SELECT - cor0.col0 * + 82 + col0 + col1 * + 85 AS col1 FROM tab1 AS cor0
----
-4334
-5375
1967
onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT + cor0.col1 DIV 17 + + 22 AS col0 FROM tab2 AS cor0
----
23
23
25
skipif mysql # not compatible
query I rowsort label-996
SELECT + cor0.col1 / 17 + + 22 AS col0 FROM tab2 AS cor0
----
23
23
25
query I rowsort
SELECT - 95 + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-60
697
7203
query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT + 97 DIV col0 + + col2 AS col0 FROM tab0 AS cor0
----
3
37
83
skipif mysql # not compatible
query I rowsort label-999
SELECT + 97 / col0 + + col2 AS col0 FROM tab0 AS cor0
----
3
37
83
query I rowsort
SELECT - 25 * - col0 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT - col1 * col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL 0 + + tab1.col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col2 * - ( + col2 * + col0 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT + col2 * col1 - + 73 * + col1 AS col0 FROM tab0 AS cor0
----
-3440
-6984
819
query I rowsort
SELECT ALL + col1 + - ( col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 27 * + col0 + + 71 FROM tab1
----
152
1799
2231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab1
----
77
77
77
query I rowsort
SELECT DISTINCT 15 * col1 + - col2 * ( col0 ) AS col0 FROM tab2
----
-1143
-2747
276
query I rowsort
SELECT col1 + - col1 * - ( + col0 ) FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL + - col1 + - col0 * + col2 FROM tab0 cor0
----
-132
-7389
-878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1012
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 * col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + 91 FROM tab2 AS cor0
----
91
query I rowsort
SELECT ALL + col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT 55 * ( col0 ) + + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
164
3519
4399
skipif mysql # not compatible
query I rowsort label-1016
SELECT 55 * ( col0 ) + + col0 / - col0 AS col2 FROM tab1 AS cor0
----
164
3519
4399
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT + 43 DIV col0 + col0 - 36 FROM tab0 AS cor0
----
-11
0
53
skipif mysql # not compatible
query I rowsort label-1017
SELECT + 43 / col0 + col0 - 36 FROM tab0 AS cor0
----
-11
0
53
query I rowsort
SELECT - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + cor0.col1 + - col2 + + col1 FROM tab1 AS cor0
----
-2
-37
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT ALL cor0.col1 DIV + cor0.col0 + + col1 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL cor0.col1 / + cor0.col0 + + col1 FROM tab2 AS cor0
----
17
35
59
query I rowsort
SELECT - 92 * + col1 + - col2 FROM tab1 AS cor0
----
-1292
-2446
-977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( + col1 ) ) col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT ALL col0 + 30 DIV - col0 - + col1 * col1 FROM tab2
----
-210
-3403
-958
skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL col0 + 30 / - col0 - + col1 * col1 FROM tab2
----
-210
-3403
-958
query I rowsort
SELECT DISTINCT - tab1.col0 - 92 FROM tab1
----
-156
-172
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1025
SELECT + col1 DIV ( + 37 + col0 ) AS col1 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1025
SELECT + col1 / ( + 37 + col0 ) AS col1 FROM tab0
----
0
1
1
query I rowsort
SELECT DISTINCT - tab0.col0 * + col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT col0 * - 95 FROM tab0
----
-2280
-3325
-8455
query I rowsort
SELECT ALL + ( ( col1 ) ) + + 98 * col0 AS col1 FROM tab0
----
2438
3527
8813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1029
SELECT + 94 / 79 + col2 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1029
SELECT + 94 / 79 + col2 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 72 col0 FROM tab1
----
136
152
75
query I rowsort
SELECT 12 * + col2 * col1 + col0 - 26 AS col0 FROM tab0 cor0
----
1173
34054
89607
query I rowsort
SELECT + + 16 * + col2 + + col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
5008
7936
873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL 40 + + 51 AS col2 FROM tab1
----
91
91
91
query I rowsort
SELECT ALL col0 * + col0 * - col2 + 65 AS col1 FROM tab1
----
-233407
-421
-614335
query I rowsort
SELECT DISTINCT - col1 * 3 + + col1 * col2 FROM tab2
----
1357
595
744
onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT col1 * col1 - col0 DIV + col0 FROM tab1 AS cor0
----
168
675
99
skipif mysql # not compatible
query I rowsort label-1038
SELECT col1 * col1 - col0 / + col0 FROM tab1 AS cor0
----
168
675
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1039
SELECT DISTINCT tab0.col1 + 5 * tab0.col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT tab0.col1 + 5 * tab0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1040
SELECT - tab1.col2 DIV - 69 col1 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1040
SELECT - tab1.col2 / - 69 col1 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT + 56 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
56
query I rowsort
SELECT - ( - tab1.col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT 85 - + col2 AS col0 FROM tab0 cor0
----
3
52
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT DISTINCT - 23 * col1 DIV col0 FROM tab2 AS cor0
----
-101
-17
-4
skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT - 23 * col1 / col0 FROM tab2 AS cor0
----
-101
-17
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 64 ) + - col2 + - ( - col2 + - col1 ) * col0 col2 FROM tab1
----
122
4167
8560
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 * col0 AS col2 FROM tab2
----
238
8112
9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT ALL CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 17 + - 73 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-90
query I rowsort
SELECT ALL + col1 * + col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - 58 * col2 + 9 FROM tab2 AS cor0
----
-1499
-1557
-2195
query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 20 + + col1 AS col0 FROM tab1 cor0
----
30
33
46
query I rowsort
SELECT DISTINCT - - cor1.col0 * - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT col0 DIV + cor0.col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT col0 / + cor0.col2 FROM tab1 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT - ( + col0 ) DIV 91 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1055
SELECT - ( + col0 ) / 91 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 70 * col2 FROM tab2 cor0
----
-1820
-1890
-2660
query I rowsort
SELECT ALL 83 + - col0 * ( ( - col0 ) ) FROM tab1 AS cor0
----
4179
6483
92
query I rowsort
SELECT - col0 + - col2 * - 1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - 15 FROM tab1 AS cor0
----
-15
query I rowsort
SELECT DISTINCT - 76 * col1 FROM tab2 AS cor0
----
-1292
-2356
-4484
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 19 + col2 AS col2 FROM tab1 cor0
----
115
73
76
query I rowsort
SELECT ALL + 6 * - col1 + 9 + ( col2 ) AS col0 FROM tab1 AS cor0
----
-93
27
6
query I rowsort
SELECT ALL - + cor0.col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT col2 * tab0.col1 DIV + col0 + - tab0.col1 * - col1 FROM tab0
----
7514
8364
9411
skipif mysql # not compatible
query I rowsort label-1065
SELECT col2 * tab0.col1 / + col0 + - tab0.col1 * - col1 FROM tab0
----
7514
8364
9411
query I rowsort
SELECT DISTINCT col2 * 23 AS col0 FROM tab1
----
1242
1311
2208
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col2 - - 33 * col0 AS col2 FROM tab2 cor0
----
258
2600
2645
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - cor0.col2 * + 19 AS col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT ALL + col0 DIV - ( col1 ) + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL + col0 / - ( col1 ) + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1074
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + + 65 / cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + + 65 / cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col2 + - col0 * col0 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT ALL + cor0.col1 DIV 1 - ( - col0 * + col1 ) FROM tab2 cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + cor0.col1 / 1 - ( - col0 * + col1 ) FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL - cor0.col1 * + 30 + + col1 AS col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col0 * - 6 - col0 AS col2 FROM tab0 cor0
----
120
175
445
query I rowsort
SELECT DISTINCT + + col2 + + col0 * col1 * ( col2 ) - col2 * 21 AS col2 FROM tab2 AS cor0
----
119132
50274
5319
onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT ALL - - col2 + col1 * col1 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
279
58
98
skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - - col2 + col1 * col1 / cor0.col0 AS col2 FROM tab1 AS cor0
----
279
58
98
query I rowsort
SELECT + + 58 FROM tab2 AS cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT ALL + col1 DIV + 35 AS col0 FROM tab0 cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + col1 / + 35 AS col0 FROM tab0 cor0
----
2
2
2
query I rowsort
SELECT + 3 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + col2 * - 30 FROM tab2
----
-1140
-780
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT ALL + tab1.col1 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL + tab1.col1 / col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col0 * + CAST ( col0 AS REAL ) col1 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * 79 AS col2 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col0 + ( col2 ) AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + + col2 * + 49 FROM tab0 AS cor0
----
1617
4018
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-1095
SELECT - + 99 + col1 DIV + col2 FROM tab1 AS cor0
----
-99
-99
-99
skipif mysql # not compatible
query I rowsort label-1095
SELECT - + 99 + col1 / + col2 FROM tab1 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT + col2 + + col0 + col1 AS col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - + 18 * col1 - col2 AS col1 FROM tab1 AS cor0
----
-237
-330
-522
query I rowsort
SELECT col0 * 18 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1430
1460
153
query I rowsort
SELECT + col2 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + - 70 + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1110
-148
-710
query I rowsort
SELECT + 37 * + col2 * + col1 + 18 FROM tab1 AS cor0
----
21108
46194
51966
query I rowsort
SELECT - col0 * col1 * - cor0.col0 FROM tab1 cor0
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1103
SELECT + CAST( NULL AS SIGNED ) * 78 / + col0 - - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1103
SELECT + CAST ( NULL AS INTEGER ) * 78 / + col0 - - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( col0 ) + ( ( col0 ) ) * col1 * col1 AS col2 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT col1 * + col0 * ( + col0 ) + - col1 * cor0.col0 FROM tab2 AS cor0
----
104754
1302
354354
query I rowsort
SELECT cor0.col0 + - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - 58 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT 43 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT - col0 * + cor0.col1 + - col0 DIV - col0 FROM tab1 AS cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-1109
SELECT - col0 * + cor0.col1 + - col0 / - col0 FROM tab1 AS cor0
----
-1039
-639
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1110
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 FROM tab1
----
NULL
query I rowsort
SELECT 38 * col2 + col2 + - col1 AS col1 FROM tab1 cor0
----
2080
2213
3731
query I rowsort
SELECT 19 - + col0 FROM tab1
----
-45
-61
16
query I rowsort
SELECT + 76 * col1 + col1 FROM tab2 AS cor0
----
1309
2387
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT DISTINCT + + col0 DIV + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1114
SELECT DISTINCT + + col0 / + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + - 70 + cor0.col1 - col2 FROM tab1 AS cor0
----
-117
-153
-98
query I rowsort
SELECT 43 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-46
19
8
query I rowsort
SELECT + + col2 + - col0 * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT DISTINCT - + col2 DIV col0 col0 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - + col2 / col0 col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT - - 13 FROM tab1 AS cor0
----
13
query I rowsort
SELECT col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col2 + col2 * col1 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-244187
-679215
-9507
query I rowsort
SELECT + 33 - + col1 * cor0.col1 FROM tab2 AS cor0
----
-256
-3448
-928
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 - - col2 * col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT + col0 * col0 + - cor0.col1 DIV col1 FROM tab0 AS cor0
----
1224
575
7920
skipif mysql # not compatible
query I rowsort label-1127
SELECT + col0 * col0 + - cor0.col1 / col1 FROM tab0 AS cor0
----
1224
575
7920
query I rowsort
SELECT ALL + + col1 + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT DISTINCT - - col0 + - col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - - col0 + - col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + col2 * + col1 * tab1.col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT tab2.col0 + + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + ( + col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT ALL col0 DIV col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL col0 / col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - 93 FROM tab0 AS cor0
----
-93
query I rowsort
SELECT - 25 FROM tab0, tab1 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT ( + 70 ) * + col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT 60 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT ALL + col1 * ( col2 ) * col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT + col1 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1143
SELECT + col1 / col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1145
SELECT ALL - col1 - + col2 DIV + col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - col1 - + col2 / + col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + 19 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1147
SELECT CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1147
SELECT CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 49 * col2 * + col1 FROM tab1
----
27930
61152
68796
query I rowsort
SELECT - ( col1 + + col0 ) * col2 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT - 62 - col0 FROM tab0 cor0
----
-151
-86
-97
query I rowsort
SELECT - 72 * col0 FROM tab1 AS cor0
----
-216
-4608
-5760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL + col1 * col1 * - tab0.col1 + col2 * - col2 * - col2 - - col1 AS col1 FROM tab0
----
-202112
-600033
-912575
query I rowsort
SELECT ALL col2 * + 26 - + col2 AS col2 FROM tab0
----
2050
25
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1155
SELECT ALL + CAST( - 40 AS SIGNED ) * + col2 * col2 - col1 FROM tab0
----
-137
-269051
-43646
skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + CAST ( - 40 AS INTEGER ) * + col2 * col2 - col1 FROM tab0
----
-137
-269051
-43646
query I rowsort
SELECT - + ( + 94 ) - - col1 * col1 AS col1 FROM tab2 AS cor0
----
195
3387
867
query I rowsort
SELECT + tab0.col0 + ( - col1 ) * - tab0.col1 FROM tab0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 16 + + col0 + tab2.col1 col1 FROM tab2
----
470
553
704
query I rowsort
SELECT ALL + - cor0.col0 + - col0 * + 88 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - col2 * ( - cor0.col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - cor0.col2 * ( - cor0.col1 ) + - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + col0 + 22 * col0 AS col2 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT + col0 - - cor0.col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT col2 + ( 49 ) FROM tab1 AS cor0
----
103
106
145
onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL + - cor0.col1 * col1 + 59 DIV col1 FROM tab2 AS cor0
----
-286
-3480
-960
skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + - cor0.col1 * col1 + 59 / col1 FROM tab2 AS cor0
----
-286
-3480
-960
query I rowsort
SELECT ALL - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col2 + - 21 AS col1 FROM tab2 cor0
----
17
5
6
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * + cor0.col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + col0 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ( col1 ) * + cor0.col0 + - col2 * - col1 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL + + col0 * col2 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT ALL - ( col2 ) DIV col0 + + col1 * col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
1593
663
865
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL - ( col2 ) / col0 + + col1 * col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
1593
663
865
query I rowsort
SELECT ALL - cor0.col2 + + col0 FROM tab2 cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT + 18 + col2 DIV cor0.col2 col2 FROM tab0 AS cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1176
SELECT + 18 + col2 / cor0.col2 col2 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT ALL - - col2 * - col1 + ( - col0 ) FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL - 4 AS col2 FROM tab1
----
-4
-4
-4
query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab1 AS cor0
----
-19
query I rowsort
SELECT - - 23 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1183
SELECT cor0.col1 * CAST( NULL AS DECIMAL ) - + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1183
SELECT cor0.col1 * CAST ( NULL AS REAL ) - + 7 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1185
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1185
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1186
SELECT ALL + + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + + col0 / - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 - - col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - cor0.col1 * + 23 + cor0.col0 FROM tab1 cor0
----
-166
-219
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col2 + 92 FROM tab0 cor0
----
125
174
93
query I rowsort
SELECT DISTINCT - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT col2 + 53 AS col0 FROM tab1 AS cor0
----
107
110
149
query I rowsort
SELECT + col1 * col2 - 43 FROM tab2
----
1491
603
794
query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 - 74 * col0 FROM tab1 AS cor0
----
-165
-4615
-5744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1197
SELECT DISTINCT - col1 + + CAST( + ( col0 ) AS SIGNED ) * - 91 AS col2 FROM tab2 AS cor0
----
-668
-7157
-7206
skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - col1 + + CAST ( + ( col0 ) AS INTEGER ) * - 91 AS col2 FROM tab2 AS cor0
----
-668
-7157
-7206
query I rowsort
SELECT + - col2 * - 13 * 58 FROM tab1 cor0
----
40716
42978
72384
query I rowsort
SELECT ALL col2 * + 21 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT - cor0.col0 * - 12 FROM tab1 cor0
----
36
768
960
query I rowsort
SELECT DISTINCT - 50 FROM tab0, tab2 cor0
----
-50
query I rowsort
SELECT DISTINCT + 84 + + 50 FROM tab0, tab1 cor0
----
134
query I rowsort
SELECT ALL - 83 FROM tab1, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT - - 74 - + col2 AS col2 FROM tab0 AS cor0
----
-8
41
73
query I rowsort
SELECT ALL tab1.col2 * 61 + + tab1.col2 * + col1 AS col0 FROM tab1
----
4047
4698
7104
query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab2, tab2 AS cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - col0 col0 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-1208
SELECT 24 DIV 92 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1208
SELECT 24 / 92 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col1 * col1 + + tab0.col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT 6 + ( col0 ) FROM tab1
----
70
86
9
query I rowsort
SELECT + col0 * col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT ( col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1212
SELECT ( col1 ) / col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 46 * col1 * - ( - col1 * + col1 + + 26 ) FROM tab2 AS cor0
----
1333310
205666
9376870
query I rowsort
SELECT ALL - ( + tab0.col2 ) * + col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 51 FROM tab1
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT 89 + col0 DIV - tab0.col1 AS col1 FROM tab0
----
89
89
89
skipif mysql # not compatible
query I rowsort label-1217
SELECT 89 + col0 / - tab0.col1 AS col1 FROM tab0
----
89
89
89
query I rowsort
SELECT ALL - - 80 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL 86 * - col0 AS col0 FROM tab2 AS cor0
----
-602
-6708
-6794
query I rowsort
SELECT - + col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - 73 * col2 * 47 AS col2 FROM tab0 AS cor0
----
-113223
-281342
-3431
query I rowsort
SELECT ( - col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT ALL + + col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL + + col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + 15 * - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-115200
-2430
-54720
query I rowsort
SELECT - cor0.col0 * + col2 + + 18 AS col1 FROM tab2 AS cor0
----
-171
-2010
-2984
query I rowsort
SELECT + 11 FROM tab0
----
11
11
11
query I rowsort
SELECT + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT 63 DIV - col2 AS col1 FROM tab0
----
-1
-63
0
skipif mysql # not compatible
query I rowsort label-1230
SELECT 63 / - col2 AS col1 FROM tab0
----
-1
-63
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1231
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1232
SELECT CAST( + 9 * col0 AS SIGNED ) FROM tab0
----
216
315
801
skipif mysql # not compatible
query I rowsort label-1232
SELECT CAST ( + 9 * col0 AS INTEGER ) FROM tab0
----
216
315
801
query I rowsort
SELECT 19 * 60 AS col1 FROM tab2
----
1140
1140
1140
query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 60 + col1 + col1 FROM tab2
----
122
178
94
query I rowsort
SELECT - 21 * - 83 AS col0 FROM tab0
----
1743
1743
1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1237
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - tab2.col0 * + tab2.col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1241
SELECT + col2 * cor0.col1 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97
skipif mysql # not compatible
query I rowsort label-1241
SELECT + col2 * cor0.col1 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
2839
7462
97
query I rowsort
SELECT DISTINCT col0 + - col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + 86 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT - - 13 * cor0.col0 + + col1 AS col2 FROM tab2 cor0
----
1044
1073
122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 96 col1 FROM tab1 AS cor0
----
160
176
99
query I rowsort
SELECT ( col1 ) * + col1 + col2 FROM tab2 AS cor0
----
327
3507
988
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 0 * - col0 + col1 FROM tab2 AS cor0
----
17
31
59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT DISTINCT 6 DIV - 68 - - col2 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT 6 / - 68 - - col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + + col2 + col2 FROM tab1 cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1253
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1253
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + 93 - + col0 AS col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT DISTINCT + ( 17 ) AS col2 FROM tab1 AS cor0
----
17
query I rowsort
SELECT + - col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - ( col2 ) * col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * - col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + col1 * - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT ALL + + 54 * + cor0.col2 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
2913
3014
5104
query I rowsort
SELECT 81 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT 77 + cor0.col2 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 3d256a72132bf719185a0b6084d0accb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + - 90 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to f04b5d496485a3d2a324b5702f6ac4c2
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col1 * - 53 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689
query I rowsort
SELECT ALL - ( 18 ) + + col1 FROM tab2 AS cor0
----
-1
13
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 86 + + col2 - 19 col2 FROM tab0 AS cor0
----
-2050
-3028
-7591
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT DISTINCT + col2 + - cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + col2 + - cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 * - col1 + - 7 AS col0 FROM tab2
----
1527
639
830
query I rowsort
SELECT col2 * 4 AS col0 FROM tab2 AS cor0
----
104
108
152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1275
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1275
SELECT CAST ( NULL AS REAL ) FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - 63 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1278
SELECT col2 / + col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + tab2.col0 * col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT cor0.col2 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * col2 col2 FROM tab1
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT DISTINCT col0 DIV + col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT col0 / + col0 FROM tab0
----
1
query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NULL ) IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT - col1 * + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1285
SELECT - col1 * + col0 / - col0 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT tab0.col0 - col0 FROM tab0
----
0
query I rowsort
SELECT col0 * - col0 - - tab2.col0 * + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT tab1.col1 * + col2 / - col1 FROM tab1 WHERE col1 + col0 < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col2 + tab2.col2 * col0 <> NULL
----
query I rowsort
SELECT tab1.col2 * + tab1.col2 - tab1.col0 AS col1 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT ALL - col0 * - col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 * + tab1.col1 * col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT col0 * - col1 * - col1 FROM tab1
----
13520
2028
6400
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE cor0.col2 * col1 NOT IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col0 * - col1 + - col0 + - col0 AS col0 FROM tab0 AS cor0
----
2016
3325
7921
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT cor0.col2 = col2 + - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1300
SELECT col0 - + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1300
SELECT col0 - + col1 / + col1 AS col2 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT + col1 * col0 - col0 DIV col2 AS col1 FROM tab0
----
2064
3360
8098
skipif mysql # not compatible
query I rowsort label-1301
SELECT + col1 * col0 - col0 / col2 AS col1 FROM tab0
----
2064
3360
8098
query I rowsort
SELECT col0 + tab2.col0 * - col1 * col2 AS col2 FROM tab2
----
-119574
-50955
-5852
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT - col1 * col0 DIV col0 + tab1.col1 * col2 AS col1 FROM tab1
----
1235
1378
560
skipif mysql # not compatible
query I rowsort label-1303
SELECT - col1 * col0 / col0 + tab1.col1 * col2 AS col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col1 * col1 - - col2 FROM tab2
----
327
3507
988
query I rowsort
SELECT col1 * col2 - - tab2.col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + tab1.col0 + - tab1.col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col1 * - col1 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
16237
36530
5710
query I rowsort
SELECT + col2 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL - - col1 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + cor0.col1 + - col1 * col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - + col1 + + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT DISTINCT + + col1 + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT + + col1 + col0 / + col1 AS col2 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT ALL - col0 * col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - col2 * col0 + + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col1 - + col0 * + cor0.col0 AS col1 FROM tab1 cor0
----
-4086
-6387
17
query I rowsort
SELECT + cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT - cor0.col1 * col2 DIV + col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1322
SELECT - cor0.col1 * col2 / + col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + 28 * col2 AS col0 FROM tab1 AS cor0
----
-1512
-1596
-2688
onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT ALL - - cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - - cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - ( tab0.col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - 84 + col1 AS col1 FROM tab1 AS cor0
----
-58
-71
-74
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query I rowsort
SELECT - ( cor0.col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 1 + cor0.col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + col0 * col2 + 95 FROM tab0 AS cor0
----
130
7393
887
query I rowsort
SELECT ALL - col2 + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor2.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT + - col2 + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + - cor0.col2 * 5 + + col2 AS col1 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT ALL ( col2 * col0 ) AS col0 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1339
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 * + col2 + - col2 AS col0 FROM tab2
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT DISTINCT - col2 DIV + col0 AS col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - col2 / + col0 AS col0 FROM tab2
----
-3
0
query I rowsort
SELECT col1 * + col2 + tab0.col1 + - col2 FROM tab0
----
193
2891
7471
query I rowsort
SELECT col1 * + col0 + + col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - col2 + - col0 / + col0 - - col1 * - col2 / tab1.col2 AS col2 FROM tab1 WHERE NULL IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1348
SELECT DISTINCT col1 DIV tab1.col0 + + col1 * col2 + - col2 FROM tab1
----
1152
1358
513
skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT col1 / tab1.col0 + + col1 * col2 + - col2 FROM tab1
----
1152
1358
513
query I rowsort
SELECT col1 + - col2 * col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT col0 * + col2 * col0 AS col1 FROM tab0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT DISTINCT - col2 * + col0 DIV + col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - col2 * + col0 / + col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col1 * col1 + + tab1.col1 * - col0 - col0 AS col1 FROM tab1
----
-604
-951
595
query I rowsort
SELECT DISTINCT col0 * - tab0.col1 + col1 FROM tab0 WHERE NOT NULL NOT IN ( + col0 + + col2 * + col1 )
----
query I rowsort
SELECT col0 - - col0 * tab2.col1 AS col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT tab0.col2 * col1 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT + col1 DIV col1 col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1356
SELECT + col1 / col1 col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - tab1.col2 * col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1 WHERE NOT - col1 + col1 <> ( NULL )
----
query I rowsort
SELECT DISTINCT + tab2.col0 - - tab2.col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT col0 * - col1 - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col2 * + tab2.col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT - col2 + + col0 + + col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT ALL - col2 + + col1 * col0 AS col1 FROM tab1
----
24
583
944
query I rowsort
SELECT + tab1.col2 + + tab1.col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT tab1.col2 FROM tab1 WHERE ( col0 * col1 ) <= col0
----
query I rowsort
SELECT - col0 * col0 + - tab1.col0 * col0 FROM tab1
----
-12800
-18
-8192
query I rowsort
SELECT col1 - col2 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col1 FROM tab2
----
26
27
38
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= col1
----
query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE + col0 IN ( col1 )
----
query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT col0 NOT IN ( + col0 - - col2 )
----
query I rowsort
SELECT ALL + col1 - + 62 AS col1 FROM tab1
----
-36
-49
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1376
SELECT DISTINCT col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT col2 - 79 * - col0 * col2 AS col0 FROM tab2 AS cor0
----
14958
160238
237196
query I rowsort
SELECT cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT - - cor0.col2 DIV - 69 + - cor0.col1 + + col1 * 6 * - col0 AS col1 FROM tab2 AS cor0
----
-1333
-27671
-8075
skipif mysql # not compatible
query I rowsort label-1379
SELECT - - cor0.col2 / - 69 + - cor0.col1 + + col1 * 6 * - col0 AS col1 FROM tab2 AS cor0
----
-1333
-27671
-8075
query I rowsort
SELECT - + ( + col1 ) * col0 - + col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT 0 * 3 + + col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 74 + cor0.col2 AS col1 FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT + + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 34 + + 84 AS col2 FROM tab2 cor0
----
118
query I rowsort
SELECT - 19 + col1 FROM tab2 AS cor0
----
-2
12
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT ALL 66 DIV 4 + + col0 + ( - col0 ) FROM tab1 AS cor0
----
16
16
16
skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL 66 / 4 + + col0 + ( - col0 ) FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT ALL - 32 * + 8 FROM tab0 AS cor0
----
-256
-256
-256
query I rowsort
SELECT col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT col1 * col2 - - 45 AS col0 FROM tab0
----
142
2883
7507
onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT + col1 DIV - 10 AS col2 FROM tab2
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-1391
SELECT + col1 / - 10 AS col2 FROM tab2
----
-1
-3
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * 46 col1 FROM tab0
----
-3956
-4186
-4462
query I rowsort
SELECT col0 * 88 AS col0 FROM tab2
----
616
6864
6952
query I rowsort
SELECT - ( cor0.col2 ) * 86 FROM tab2 AS cor0
----
-2236
-2322
-3268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 59 + + 91 FROM tab2
----
32
32
32
query I rowsort
SELECT - ( col0 ) * col0 + 26 * 18 AS col1 FROM tab1
----
-3628
-5932
459
query I rowsort
SELECT ALL ( - tab1.col0 * col2 ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1400
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1400
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * col0 col1 FROM tab0
----
-2256
-3290
-8366
query I rowsort
SELECT + 1 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT + 69 * 10 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 40ad6949643fb0c6a0fcd008fdd41aa6
query I rowsort
SELECT 86 FROM tab0
----
86
86
86
query I rowsort
SELECT - col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT cor0.col0 * - 99 AS col1 FROM tab1 AS cor0
----
-297
-6336
-7920
query I rowsort
SELECT DISTINCT + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * tab2.col2 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT + col2 - - col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT col2 + 10 AS col1 FROM tab1
----
106
64
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( + col1 * - col2 ) col0 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 16 col0 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT - col1 - + 57 AS col1 FROM tab1
----
-67
-70
-83
query I rowsort
SELECT ( - ( cor0.col2 ) + + 28 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 82f7a8245a0d8f8a9280b8a10ce4183c
query I rowsort
SELECT ALL + col2 * 13 AS col1 FROM tab0 cor0
----
1066
13
429
query I rowsort
SELECT DISTINCT - col0 * + 67 AS col0 FROM tab0 AS cor0
----
-1608
-2345
-5963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1420
SELECT DISTINCT - - col1 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - - col1 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + col1 * - col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT - - col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1423
SELECT - - col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - + col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 * col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT DISTINCT - - col2 + col0 DIV col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - - col2 + col0 / col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL col2 + + 13 FROM tab2
----
39
40
51
query I rowsort
SELECT ALL - 5 * 39 FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
243 values hashing to 7ce17713aca7ca7e78e5ce136966b181
query I rowsort
SELECT + 25 + col0 AS col0 FROM tab1
----
105
28
89
query I rowsort
SELECT cor0.col2 * 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 75f9e61ff973806e32e45e6335de6153
query I rowsort
SELECT col2 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + 34 + col0 + cor0.col2 FROM tab0 AS cor0
----
205
70
91
query I rowsort
SELECT + 78 + - col2 AS col0 FROM tab0 AS cor0
----
-4
45
77
query I rowsort
SELECT DISTINCT 17 + - col1 * col2 * + 40 AS col0 FROM tab1
----
-22783
-49903
-56143
query I rowsort
SELECT DISTINCT + + 74 * - col2 + + 99 + + col0 AS col1 FROM tab1 AS cor0
----
-3894
-4055
-6925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1439
SELECT ( 44 ) * - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1439
SELECT ( 44 ) * - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 33 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL - + col2 + cor0.col2 + col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1442
SELECT ALL col2 + + col0 + - col1 DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
170
34
54
skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL col2 + + col0 + - col1 / ( col0 ) AS col2 FROM tab0 AS cor0
----
170
34
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - - ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1445
SELECT ALL - CAST( NULL AS SIGNED ) - col1 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 70 * - 73 * - col1 AS col1 FROM tab2 AS cor0
----
-158410
-301490
-86870
query I rowsort
SELECT ALL - col1 * col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - + 93 FROM tab2 cor0
----
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1449
SELECT DISTINCT - - CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - - CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 98 - - cor0.col1 FROM tab2 AS cor0
----
-39
-67
-81
query I rowsort
SELECT - + 48 + + col1 AS col0 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT ALL + cor0.col0 * ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 49 FROM tab1 cor0
----
49
49
49
query I rowsort
SELECT DISTINCT + + 25 + + cor0.col2 FROM tab2 AS cor0
----
51
52
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT DISTINCT - col1 + - col1 DIV col2 - + col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - col1 + - col1 / col2 - + col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ( - col2 ) + col2 * - col0 * col0 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT DISTINCT - - 15 * col1 + + col2 FROM tab1 AS cor0
----
207
291
444
query I rowsort
SELECT ALL + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + cor0.col0 - + 39 FROM tab2 cor0
----
-32
39
40
query I rowsort
SELECT - col0 - - 48 * - col1 FROM tab2
----
-1495
-2910
-895
query I rowsort
SELECT ALL + + col1 AS col2 FROM tab2 cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1463
SELECT CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1463
SELECT CAST ( NULL AS REAL ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1464
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1464
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 28 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
243 values hashing to 59af3451da9c1ccd44e1c1e08d77ef8b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1467
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 - + col0 * + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 - + col0 * + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 85 * col1 + + ( col0 * col1 ) AS col0 FROM tab0
----
11640
15834
9374
query I rowsort
SELECT col1 + - tab2.col1 * ( - col0 ) + - col2 AS col2 FROM tab2
----
1322
221
4635
query I rowsort
SELECT DISTINCT col1 * + col1 + - 2 * - col2 AS col0 FROM tab2
----
1015
3533
365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT CAST( NULL AS SIGNED ) - + 32 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1472
SELECT CAST ( NULL AS INTEGER ) - + 32 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT + col0 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1473
SELECT + col0 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 49 FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + col1 * - col1 * - 84 + + col1 AS col1 FROM tab1
----
14209
56810
8410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1476
SELECT col1 * CAST( ( col2 ) AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1476
SELECT col1 * CAST ( ( col2 ) AS INTEGER ) FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 * - 30 + - ( col1 ) + - col1 * - col0 FROM tab1 AS cor0
----
1417
832
930
query I rowsort
SELECT DISTINCT - col0 - - 58 * - 56 FROM tab1 AS cor0
----
-3251
-3312
-3328
query I rowsort
SELECT ALL + col1 + + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col1 + ( 29 ) * - col1 AS col2 FROM tab1 cor0
----
-280
-364
-728
query I rowsort
SELECT 24 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL + col0 * col2 * - col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT tab0.col2 * 8 FROM tab0, tab2 AS cor0
----
9 values hashing to 8183d8703260333a722164772e992e55
query I rowsort
SELECT + 82 + + col1 FROM tab2 AS cor0
----
113
141
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT ALL col1 DIV - 9 AS col2 FROM tab0 AS cor0
----
-10
-10
-9
skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL col1 / - 9 AS col2 FROM tab0 AS cor0
----
-10
-10
-9
query I rowsort
SELECT + cor0.col1 * 87 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col1 * 52 AS col2 FROM tab0 AS cor0
----
-4472
-4732
-5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1490
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1491
SELECT - CAST( - cor0.col1 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1491
SELECT - CAST ( - cor0.col1 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab0 cor0
----
-88
query I rowsort
SELECT + col0 * 23 FROM tab0 AS cor0
----
2047
552
805
onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT + + col2 * - ( + col0 ) + + col2 DIV ( + col1 ) AS col1 FROM tab2 cor0
----
-189
-2028
-3000
skipif mysql # not compatible
query I rowsort label-1494
SELECT + + col2 * - ( + col0 ) + + col2 / ( + col1 ) AS col1 FROM tab2 cor0
----
-189
-2028
-3000
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT + col1 DIV tab0.col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1496
SELECT + col1 / tab0.col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + col0 * cor0.col1 - col0 AS col0 FROM tab2 cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - 55 FROM tab0 cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 AS col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 79 * + col2 + col2 FROM tab1
----
4320
4560
7680
query I rowsort
SELECT 17 AS col2 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT + col2 + col0 - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2007
-3359
-7928
query I rowsort
SELECT + 31 * - cor0.col2 FROM tab0 AS cor0
----
-1023
-2542
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT - col0 * CAST( NULL AS SIGNED ) + - 70 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1506
SELECT - col0 * CAST ( NULL AS INTEGER ) + - 70 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * - col2 + + 73 FROM tab2 AS cor0
----
-1371
-603
-656
query I rowsort
SELECT + + col0 + - ( + col1 ) AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT col0 * col0 + - col0 * + col1 FROM tab1 AS cor0
----
-69
3456
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1510
SELECT cor0.col1 * - CAST( col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif mysql # not compatible
query I rowsort label-1510
SELECT cor0.col1 * - CAST ( col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col1 - - col1 AS col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 22 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + - col1 * 84 + col2 FROM tab0 AS cor0
----
-7191
-7562
-8147
query I rowsort
SELECT + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1517
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1517
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT ALL col2 + - col1 DIV ( - 51 * col2 + col0 * + col1 ) AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL col2 + - col1 / ( - 51 * col2 + col0 * + col1 ) AS col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab1
----
33
query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab1
----
45
query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab1, tab1 AS cor0
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT DISTINCT CAST( - 95 AS SIGNED ) AS col0 FROM tab1
----
-95
skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT CAST ( - 95 AS INTEGER ) AS col0 FROM tab1
----
-95
query I rowsort
SELECT cor0.col0 * ( + cor0.col2 ) + + 5 FROM tab0 AS cor0
----
40
7303
797
query I rowsort
SELECT + - 68 * + col0 AS col2 FROM tab2 AS cor0
----
-476
-5304
-5372
query I rowsort
SELECT + - col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 64 AS col0 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col2 + col0 * 98 - + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-519
1178
3332
onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT + + col2 * col0 * 59 + + col1 - - col2 DIV - 47 FROM tab1 AS cor0
----
215241
453131
9583
skipif mysql # not compatible
query I rowsort label-1529
SELECT + + col2 * col0 * 59 + + col1 - - col2 / - 47 FROM tab1 AS cor0
----
215241
453131
9583
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT - col0 * + col0 + + CAST( NULL AS SIGNED ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT - col0 * + col0 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 21 AS col0 FROM tab1
----
210
273
546
query I rowsort
SELECT ALL col2 * col2 + + ( + col2 ) FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT ALL + col1 * + col2 + + ( col0 ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + col0 * col2 + 9 + - col0 AS col2 FROM tab1 AS cor0
----
168
3593
7609
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 * ( - 61 ) AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT cor0.col2 + 44 * + col0 FROM tab2 AS cor0
----
335
3458
3514
query I rowsort
SELECT - + cor0.col1 + ( - col0 + - col0 ) FROM tab1 AS cor0
----
-138
-173
-32
query I rowsort
SELECT - cor0.col0 * + 83 AS col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT DISTINCT + - col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + col0 * col0 + col2 * col1 * 88 AS col2 FROM tab0 AS cor0
----
250320
664577
9761
query I rowsort
SELECT 55 * col0 FROM tab1
----
165
3520
4400
query I rowsort
SELECT - col2 + - 93 FROM tab0 AS cor0
----
-126
-175
-94
query I rowsort
SELECT + + col1 * col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + - col2 + + 40 * col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT ALL - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT DISTINCT cor0.col0 * col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT DISTINCT + - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT + - col0 / col0 AS col2 FROM tab1 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT + col1 DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1550
SELECT + col1 / col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 + cor0.col0 * + col0 col1 FROM tab1 AS cor0
----
-58
4029
6333
query I rowsort
SELECT ALL col2 * - ( col2 ) + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-10256
-2994
-3889
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 60 AS REAL ) AS col2 FROM tab2 AS cor0
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT ALL + - CAST( NULL AS SIGNED ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 54 * col1 + col2 FROM tab1 AS cor0
----
-1350
-483
-606
query I rowsort
SELECT ALL 19 AS col0 FROM tab1 AS cor0
----
19
19
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT - + CAST( NULL AS SIGNED ) * ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1557
SELECT - + CAST ( NULL AS INTEGER ) * ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + col1 + 63 FROM tab0 cor0
----
149
154
160
query I rowsort
SELECT ALL - tab0.col0 * col0 + + col2 * + col0 + 73 AS col0 FROM tab0
----
-1117
-550
289
query I rowsort
SELECT ALL - col1 + - col2 * col2 * col0 AS col2 FROM tab0
----
-132
-26222
-598527
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL col2 + 15 * - col2 * col2 FROM tab1 AS cor0
----
-138144
-43686
-48678
query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab0
----
-46
skipif mysql # not compatible
query I rowsort
SELECT + col1 - - tab2.col0 * - tab2.col2 / - CAST ( col0 AS REAL ) FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1567
SELECT CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1567
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 73 FROM tab0 AS cor0
----
-73
-73
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 96 col1 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT col2 + col2 - + col0 * - col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - col2 + col1 - - col2 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 97 + col2 col1 FROM tab0
----
163
261
99
query I rowsort
SELECT ALL + 39 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - + col2 * - 76 AS col2 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT - col1 * col1 - - col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 + - col2 * + 19 + - col2 FROM tab2
----
-494
-513
-722
query I rowsort
SELECT + col2 * - 40 + + col1 * col0 FROM tab2
----
-177
-863
3562
query I rowsort
SELECT - - col2 * 62 + col1 FROM tab1 AS cor0
----
3374
3544
5965
onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT cor0.col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1580
SELECT cor0.col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1582
SELECT DISTINCT - 53 * + col1 + CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - 53 * + col1 + CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT DISTINCT col2 + - col0 DIV - col2 + 43 col1 FROM tab1 AS cor0
----
101
139
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT col2 + - col0 / - col2 + 43 col1 FROM tab1 AS cor0
----
101
139
97
query I rowsort
SELECT ALL + + col1 + + col0 * + 4 AS col1 FROM tab0 AS cor0
----
182
237
447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT + col1 * + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1585
SELECT + col1 * + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 41 + - col2 AS col1 FROM tab2 AS cor0
----
-67
-68
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + col1 col0 FROM tab1 AS cor0
----
16
19
32
query I rowsort
SELECT - col0 + col2 * col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + + 19 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1199
402
596
query I rowsort
SELECT DISTINCT + - col0 + - col1 + - col2 * - col2 FROM tab0 cor0
----
-131
6544
979
query I rowsort
SELECT DISTINCT + - col0 + col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT + - col1 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - - col0 * col0 - - ( col0 ) FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col1 + + col0 AS col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT - + ( + col1 ) DIV ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-1595
SELECT - + ( + col1 ) / ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT + 42 - + col2 FROM tab2 AS cor0
----
15
16
4
query I rowsort
SELECT ALL - 16 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT DISTINCT 45 + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1293
1449
615
query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + + col2 * 90 AS col0 FROM tab2 AS cor0
----
1664
1701
1976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1601
SELECT + col1 + + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1601
SELECT + col1 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL col1 * 32 + + col0 FROM tab1 AS cor0
----
384
496
835
onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT ALL + col2 * col2 + 71 DIV col1 FROM tab2 AS cor0
----
1448
677
731
skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + col2 * col2 + 71 / col1 FROM tab2 AS cor0
----
1448
677
731
query I rowsort
SELECT ALL 75 AS col2 FROM tab1
----
75
75
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT ALL - + col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL - + col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 27 col1 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT - + 47 * col0 AS col1 FROM tab1 cor0
----
-141
-3008
-3760
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + - col0 + 11 AS col0 FROM tab1 AS cor0
----
-53
-69
8
query I rowsort
SELECT DISTINCT - cor0.col0 * 86 + - col1 AS col2 FROM tab1 AS cor0
----
-284
-5514
-6893
query I rowsort
SELECT - 35 AS col1 FROM tab2 AS cor0
----
-35
-35
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT col1 DIV 52 + col1 AS col0 FROM tab2 AS cor0
----
17
31
60
skipif mysql # not compatible
query I rowsort label-1614
SELECT col1 / 52 + col1 AS col0 FROM tab2 AS cor0
----
17
31
60
query I rowsort
SELECT + 70 FROM tab1 cor0
----
70
70
70
query I rowsort
SELECT ALL + col1 - col1 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT ALL col0 DIV + col0 - col1 AS col1 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL col0 / + col0 - col1 AS col1 FROM tab1
----
-12
-25
-9
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2, tab1 AS cor3
----
13122 values hashing to e172b465122a3dd350877462054ffba5
query I rowsort
SELECT + 76 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - col1 + - ( col0 ) + + cor0.col2 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT + 77 + 97 * col1 AS col0 FROM tab2 AS cor0
----
1726
3084
5800
query I rowsort
SELECT ALL - 21 + col2 AS col2 FROM tab2
----
17
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT + tab0.col0 + - col0 DIV + col1 + + tab0.col1 * - col0 AS col0 FROM tab0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-1623
SELECT + tab0.col0 + - col0 / + col1 + + tab0.col1 * - col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col0 * - col2 + + col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT - 24 + col1 FROM tab2
----
-7
35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1626
SELECT DISTINCT - col1 * 65 DIV col2 + - 55 * - col2 FROM tab0
----
-6250
1646
4438
skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - col1 * 65 / col2 + - 55 * - col2 FROM tab0
----
-6250
1646
4438
query I rowsort
SELECT DISTINCT + 95 * + col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT col1 * + tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT 54 * col0 + col2 + - 72 * + col1 FROM tab2
----
-10
-1827
3080
query I rowsort
SELECT col1 + col0 * - cor0.col0 - col1 * col1 FROM tab1 AS cor0
----
-4186
-6556
-659
query I rowsort
SELECT - - 34 + col2 FROM tab0 AS cor0
----
116
35
67
query I rowsort
SELECT + ( col2 ) + - col0 + + ( - ( - col2 ) ) AS col1 FROM tab1
----
105
112
50
query I rowsort
SELECT ALL col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 81 FROM tab2
----
81
query I rowsort
SELECT ALL + 17 * - col2 * 88 FROM tab0
----
-122672
-1496
-49368
query I rowsort
SELECT 63 * + col2 AS col2 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT + col2 * - col2 * ( col0 ) FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT 58 FROM tab1
----
58
58
58
query I rowsort
SELECT - 19 * + 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d895a0550c70fa858ce325bf68129c38
query I rowsort
SELECT ALL tab1.col2 * - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 + + 81 * - col2 AS col0 FROM tab0
----
-2640
-6560
-80
query I rowsort
SELECT + col2 * + col2 + 3 * - col0 FROM tab0
----
-104
1017
6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT - col2 DIV + tab0.col1 + - col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1643
SELECT - col2 / + tab0.col1 + - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + cor0.col1 * 64 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + ( + cor0.col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + 17 FROM tab2 AS cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT ALL + ( + col0 ) DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + ( + col0 ) / cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 36 * - col1 * col2 FROM tab0 AS cor0
----
-102168
-268632
-3492
query I rowsort
SELECT DISTINCT + 58 * + ( + cor0.col2 ) + 57 AS col0 FROM tab1 AS cor0
----
3189
3363
5625
query I rowsort
SELECT ALL + 82 * + col1 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT DISTINCT + 84 + - cor0.col1 AS col1 FROM tab0 cor0
----
-13
-2
-7
query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT ALL - col2 DIV col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - col2 / col0 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL col2 * - 4 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT - col1 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 78 col1 FROM tab1 AS cor0
----
-78
query I rowsort
SELECT ( + col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + + 68 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT + - col1 + + 54 AS col0 FROM tab0 AS cor0
----
-32
-37
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT - col2 + - col2 DIV - col2 col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1661
SELECT - col2 + - col2 / - col2 col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL - col0 * + ( + col2 + + 43 ) FROM tab0 AS cor0
----
-11125
-1540
-1824
query I rowsort
SELECT DISTINCT 79 - ( col0 ) * 2 * - col1 AS col0 FROM tab1 AS cor0
----
1359
2159
235
query I rowsort
SELECT + - ( - cor0.col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1666
SELECT - 77 * - cor0.col1 - + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1666
SELECT - 77 * - cor0.col1 - + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - 47 + - col2 * + col1 AS col1 FROM tab2
----
-1581
-693
-884
query I rowsort
SELECT - col2 - - col2 * + col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT - ( 33 ) * + cor0.col0 FROM tab2 AS cor0
----
-231
-2574
-2607
query I rowsort
SELECT + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT - col0 DIV + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1676
SELECT - col0 / + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT - col1 DIV tab1.col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1677
SELECT - col1 / tab1.col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT 74 * + tab0.col1 AS col2 FROM tab0
----
6364
6734
7178
query I rowsort
SELECT 28 AS col2 FROM tab2
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT + 91 * col2 DIV + ( + col0 ) FROM tab1
----
109
1638
81
skipif mysql # not compatible
query I rowsort label-1680
SELECT + 91 * col2 / + ( + col0 ) FROM tab1
----
109
1638
81
query I rowsort
SELECT + col1 - col2 * + col2 FROM tab2 cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + col2 * ( + col2 ) col1 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 14 * + col0 col0 FROM tab2 AS cor0
----
18802
3038
64428
query I rowsort
SELECT + col0 * col0 - col0 AS col1 FROM tab1
----
4032
6
6320
query I rowsort
SELECT - col2 + - ( 27 * - col1 ) FROM tab0 AS cor0
----
2289
2375
2618
onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT - col2 DIV - ( 76 ) FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1686
SELECT - col2 / - ( 76 ) FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - cor0.col1 * - ( - 0 * - col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col0 * + col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1690
SELECT + col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * 80 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT ALL + + col0 * ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - - col1 * CAST( NULL AS SIGNED ) + 58 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1693
SELECT - - col1 * CAST ( NULL AS INTEGER ) + 58 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 * 88 + - col2 + - col1 FROM tab2
----
1441
2670
5107
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL col2 + + col1 + 31 * col1 FROM tab0
----
2785
2994
3105
query I rowsort
SELECT + 43 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT DISTINCT col2 * ( col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT col2 * col2 + ( + col1 ) FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col0 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL col2 * - 14 * 84 + col0 AS col0 FROM tab2 cor0
----
-30498
-31745
-44609
query I rowsort
SELECT ( cor0.col0 ) * col0 * + 29 + cor0.col2 * cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
17707
236342
35429
query I rowsort
SELECT ALL - 29 AS col1 FROM tab1 cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - - 80 * 68 + col1 FROM tab2 AS cor0
----
5457
5471
5499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1708
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col1 + + 87 FROM tab1 AS cor0
----
61
74
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 13 * - col1 col0 FROM tab2 AS cor0
----
238
434
826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT - 16 * + 48 + + col2 * - col0 FROM tab0 AS cor0
----
-1560
-803
-8066
query I rowsort
SELECT ALL + cor0.col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col1 * - col2 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 71 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-70
1018
6653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * 90 col0 FROM tab1 AS cor0
----
2790
2790
2790
query I rowsort
SELECT DISTINCT + 9 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT - + 69 * + col1 + col1 FROM tab1 AS cor0
----
-1768
-680
-884
query I rowsort
SELECT ALL 16 + 78 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT ALL - tab0.col2 + + col2 + 92 AS col1 FROM tab0
----
92
92
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1724
SELECT + - CAST( 12 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
36
768
960
skipif mysql # not compatible
query I rowsort label-1724
SELECT + - CAST ( 12 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab0 AS cor0
----
83
query I rowsort
SELECT ALL 8 + col2 * + col1 * - 97 FROM tab0 AS cor0
----
-275278
-723806
-9401
query I rowsort
SELECT ALL cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col1 * cor0.col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 - - ( - col2 * col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT cor0.col2 + col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL ( - col2 ) - + 84 FROM tab2 AS cor0
----
-110
-111
-122
query I rowsort
SELECT 43 * cor0.col0 + 1 * col1 AS col1 FROM tab2 AS cor0
----
332
3413
3414
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1 cor0
----
1
33
82
query I rowsort
SELECT ALL 16 AS col2 FROM tab0
----
16
16
16
query I rowsort
SELECT col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 97 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col1 * + 8 FROM tab2 AS cor0
----
-119
-217
-413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col2 * + col1 col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL - 77 AS col1 FROM tab2 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT ALL - - col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - - col2 / col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col1 - + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT DISTINCT col2 + col2 + col0 DIV tab1.col0 FROM tab1
----
109
115
193
skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT col2 + col2 + col0 / tab1.col0 FROM tab1
----
109
115
193
query I rowsort
SELECT ALL + col2 + col0 * + col1 + col2 FROM tab0
----
2130
3397
8263
query I rowsort
SELECT ALL - col2 + col0 * + col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL + col2 + - tab2.col0 * col2 + col0 * - col1 FROM tab2
----
-379
-4307
-6604
query I rowsort
SELECT - col1 * col2 + - cor0.col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - col1 - + tab0.col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - col0 * col0 + - col1 AS col2 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT tab2.col0 + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT col1 + - col1 * + col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT col2 * col1 DIV col1 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1754
SELECT col2 * col1 / col1 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT col2 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col1 + col2 col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 + + col2 col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 * col1 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + col1 * - col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - col0 + - cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + + col2 * col2 + - cor0.col1 * - col1 FROM tab1 AS cor0
----
3349
3592
9385
onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT ALL - + col2 + col2 * cor0.col0 + col1 DIV + col1 FROM tab1 cor0
----
109
3592
7585
skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL - + col2 + col2 * cor0.col0 + col1 / + col1 FROM tab1 cor0
----
109
3592
7585
query I rowsort
SELECT + col2 + + col1 * col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col2 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL 88 + - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2828
-3161
-9128
query I rowsort
SELECT 19 + col1 FROM tab0 AS cor0
----
105
110
116
query I rowsort
SELECT DISTINCT + 14 + + col1 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
146
2876
7565
query I rowsort
SELECT + col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 98 + - col2 FROM tab0 cor0
----
16
65
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL 84 * + col2 AS col0 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT DISTINCT col1 + - col1 * col1 DIV col2 FROM tab0 AS cor0
----
-138
-9
-9312
skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT col1 + - col1 * col1 / col2 FROM tab0 AS cor0
----
-138
-9
-9312
query I rowsort
SELECT ALL col0 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT DISTINCT col0 DIV + col1 + + col2 * + col0 FROM tab1 AS cor0
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT col0 / + col1 + + col2 * + col0 FROM tab1 AS cor0
----
162
3654
7686
query I rowsort
SELECT DISTINCT + - col2 * - col2 * col1 + + col2 + col0 * cor0.col0 FROM tab1 cor0
----
126304
36643
75879
query I rowsort
SELECT DISTINCT - col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col1 + col0 * + cor0.col0 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col2 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL tab2.col0 + + tab2.col0 * - col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 + + col2 * col2 FROM tab0
----
1122
2
6806
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <> NULL
----
query I rowsort
SELECT ALL - col2 - - col0 * - col0 AS col2 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - col1 * tab0.col2 + col0 * - tab0.col0 * - col0 AS col1 FROM tab0
----
10986
42778
697507
query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND - col1 - col2
----
query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( + col0 ) <= ( + col1 )
----
17
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT col1 DIV - col2 col0 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1798
SELECT col1 / - col2 col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT - tab1.col2 * tab1.col0 - col1 FROM tab1 WHERE ( NULL ) BETWEEN - col0 / + col0 AND ( col0 + - col0 )
----
query I rowsort
SELECT - tab2.col1 * tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 + - col0 * - tab2.col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - tab1.col2 - + col2 AS col0 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT 76 * + col1 + + col0 * col0 FROM tab1 AS cor0
----
1985
4856
7388
onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT - col1 DIV col0 - col0 AS col1 FROM tab2
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-1804
SELECT - col1 / col0 - col0 AS col1 FROM tab2
----
-11
-78
-79
query I rowsort
SELECT - - 21 * - col2 + col2 FROM tab0 cor0
----
-1640
-20
-660
onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT DISTINCT + col1 * - tab0.col2 + + col1 DIV - col0 AS col1 FROM tab0
----
-2841
-7463
-99
skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + col1 * - tab0.col2 + + col1 / - col0 AS col1 FROM tab0
----
-2841
-7463
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col2 FROM tab1
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col1 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT - col2 + cor0.col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT col2 * col0 DIV + col2 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-1812
SELECT col2 * col0 / + col2 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----
query I rowsort
SELECT ALL + col2 + + tab2.col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col0 - + col2 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col1 + col1 * col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + col2 + - col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT - tab2.col0 * col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 * col0 + col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 * - col0 * col2 + col1 / col0 + + tab0.col1 * col2 )
----
query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL cor0.col1 + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL tab2.col1 - - col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ae5946db6904798b8afac35f5777bb79
query I rowsort
SELECT - col1 * col1 + col1 * 83 FROM tab1 AS cor0
----
1482
730
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col1 ) + + 34 * + col0 col2 FROM tab1 AS cor0
----
2166
2707
76
query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 36 FROM tab1
----
36
query I rowsort
SELECT + cor1.col0 FROM tab0, tab2, tab2 cor0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT - col1 * + col2 + + ( + col2 ) - tab1.col0 * ( 63 ) AS col1 FROM tab1
----
-1539
-4545
-6192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col1 FROM tab0
----
178
48
70
query I rowsort
SELECT 43 - col1 FROM tab1
----
17
30
33
query I rowsort
SELECT ALL tab2.col0 * col0 + + 6 FROM tab2
----
55
6090
6247
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1836
SELECT + CAST( + 71 AS SIGNED ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1836
SELECT + CAST ( + 71 AS INTEGER ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT 33 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT - + col1 * + col0 + + col0 DIV + 78 FROM tab0 AS cor0
----
-2064
-3395
-8098
skipif mysql # not compatible
query I rowsort label-1838
SELECT - + col1 * + col0 + + col0 / + 78 FROM tab0 AS cor0
----
-2064
-3395
-8098
query I rowsort
SELECT - col1 - 77 * + col0 * col0 FROM tab2 AS cor0
----
-3804
-468527
-480574
query I rowsort
SELECT DISTINCT - + 1 * 83 * - col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT col0 + + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + + cor0.col0 + - col2 + cor0.col0 AS col2 FROM tab1 cor0
----
-48
64
71
query I rowsort
SELECT DISTINCT 13 FROM tab2, tab1 AS cor0
----
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL 33 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT CAST( NULL AS SIGNED ) * + 8 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1846
SELECT CAST ( NULL AS INTEGER ) * + 8 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 66 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * 94 + - col2 + 62 col1 FROM tab2 AS cor0
----
-7484
-7485
-7496
query I rowsort
SELECT - ( + col1 ) - + col1 * 58 AS col2 FROM tab2 AS cor0
----
-1003
-1829
-3481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + col0 col0 FROM tab1 cor0
----
-29
32
48
query I rowsort
SELECT - cor0.col1 * + cor0.col0 + col1 * + ( - col1 ) - - col1 AS col1 FROM tab1 AS cor0
----
-1196
-728
-730
query I rowsort
SELECT col1 * - 84 FROM tab1 AS cor0
----
-1092
-2184
-840
query I rowsort
SELECT - - cor0.col2 + - cor0.col1 * - col1 * col0 + - ( col2 * - col0 ) FROM tab1 AS cor0
----
10105
21296
2244
query I rowsort
SELECT 64 + - 9 FROM tab0
----
55
55
55
query I rowsort
SELECT DISTINCT 29 * - col0 AS col2 FROM tab1
----
-1856
-2320
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + tab1.col1 * - col1 + - col2 - - col0 FROM tab1
----
-185
-727
-93
query I rowsort
SELECT col1 + - col1 + + tab1.col2 * - 73 FROM tab1
----
-3942
-4161
-7008
query I rowsort
SELECT + 67 FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT ( 99 ) AS col2 FROM tab2 cor0
----
99
99
99
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + col0 + col0 * - 91 FROM tab2 AS cor0
----
-630
-7020
-7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT DISTINCT + col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1865
SELECT ALL + cor0.col0 + - col0 * - 26 * ( col2 + CAST( 81 AS SIGNED ) ) FROM tab1 cor0
----
10533
229696
368240
skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + cor0.col0 + - col0 * - 26 * ( col2 + CAST ( 81 AS INTEGER ) ) FROM tab1 cor0
----
10533
229696
368240
query I rowsort
SELECT DISTINCT - - ( + col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col1 + - col0 * 13 - 88 FROM tab1 AS cor0
----
-101
-1115
-910
query I rowsort
SELECT ALL - + 19 AS col0 FROM tab0 cor0
----
-19
-19
-19
query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + col1 * - col1 + + col0 - - col2 FROM tab2 AS cor0
----
-172
-3377
-927
query I rowsort
SELECT + ( col2 ) * col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT + CAST( col0 AS SIGNED ) * + tab1.col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1873
SELECT + CAST ( col0 AS INTEGER ) * + tab1.col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT - col2 DIV 15 AS col2 FROM tab1
----
-3
-3
-6
skipif mysql # not compatible
query I rowsort label-1874
SELECT - col2 / 15 AS col2 FROM tab1
----
-3
-3
-6
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 74 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-3996
-4218
-7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 49 col0 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT DISTINCT - + col2 * - col1 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT + + col1 * + col0 - + 43 FROM tab0 AS cor0
----
2021
3352
8056
query I rowsort
SELECT DISTINCT - + 37 * cor0.col2 + 97 * col0 FROM tab2 AS cor0
----
-320
6257
6604
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + col2 * col0 DIV 53 + col0 * - col0 AS col2 FROM tab2 cor0
----
-46
-6046
-6185
skipif mysql # not compatible
query I rowsort label-1881
SELECT + col2 * col0 / 53 + col0 * - col0 AS col2 FROM tab2 cor0
----
-46
-6046
-6185
query I rowsort
SELECT + 94 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT ALL + cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT DISTINCT + col0 DIV + CAST( 52 AS SIGNED ) + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6401
9
skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + col0 / + CAST ( 52 AS INTEGER ) + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4097
6401
9
query I rowsort
SELECT DISTINCT - col0 + + 61 FROM tab2 AS cor0
----
-17
-18
54
query I rowsort
SELECT DISTINCT + + col2 * + ( + col0 * cor0.col1 ) AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col0 * ( cor0.col0 ) + cor0.col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT + col0 DIV + col0 + + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1888
SELECT + col0 / + col0 + + col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT col0 * - col1 + 83 * - col2 AS col2 FROM tab1 AS cor0
----
-4560
-5371
-9008
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + cor0.col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - + 32 * - col0 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT DISTINCT 32 FROM tab0 AS cor0
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT ALL + CAST( + cor0.col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + CAST ( + cor0.col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 75 + - 25 * col2 AS col1 FROM tab0 AS cor0
----
-100
-2125
-900
query I rowsort
SELECT + 17 AS col2 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT ALL + - 22 + + 3 FROM tab0 AS cor0
----
-19
-19
-19
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * 14 + col2 + col0 FROM tab1 AS cor0
----
1520
813
919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 69 FROM tab0
----
69
query I rowsort
SELECT - 32 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08
query I rowsort
SELECT ALL 88 * + col1 FROM tab1
----
1144
2288
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1908
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
NULL
query I rowsort
SELECT col1 + - ( col2 ) FROM tab2
----
-21
33
4
query I rowsort
SELECT - col2 * 15 AS col0 FROM tab2 AS cor0
----
-390
-405
-570
query I rowsort
SELECT ALL + col2 * - 19 FROM tab1 cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL + cor0.col1 + + col2 * + col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col2 + ( + 66 ) AS col2 FROM tab1 cor0
----
120
123
162
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT ALL + col1 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + col1 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + + col2 + + 36 AS col2 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT tab0.col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - ( 65 ) AS col2 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 96 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT + - col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL 44 AS col1 FROM tab1
----
44
44
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT DISTINCT - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT - cor0.col0 / - col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + 67 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT ALL - col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + cor0.col0 * 63 FROM tab1, tab2 AS cor0
----
9 values hashing to ba45810a663baade9fea50f5266ad33e
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT + + 27 AS col0 FROM tab0 AS cor0
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL + + col0 DIV + col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + + col0 / + col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 83 * + col0 FROM tab1 AS cor0
----
249
5312
6640
onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT - 86 DIV col1 FROM tab1 AS cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-1941
SELECT - 86 / col1 FROM tab1 AS cor0
----
-3
-6
-8
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
64
query I rowsort
SELECT col1 + + col1 + ( ( col2 ) ) FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT + 55 * col0 * - col0 FROM tab2 AS cor0
----
-2695
-334620
-343255
query I rowsort
SELECT + 21 + col2 * - col0 + - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-15558
-8167
-9423
query I rowsort
SELECT ALL - 50 + - col2 FROM tab2 AS cor0
----
-76
-77
-88
query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 78 FROM tab1, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT cor0.col0 * - 93 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT ALL - - 1 * col2 + - cor0.col1 * 8 DIV + col1 AS col1 FROM tab2 cor0
----
18
19
30
skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - - 1 * col2 + - cor0.col1 * 8 / + col1 AS col1 FROM tab2 cor0
----
18
19
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 17 col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT 60 AS col1 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL col0 * col2 + col0 + col0 AS col1 FROM tab2 cor0
----
203
2184
3160
query I rowsort
SELECT cor0.col1 + + ( col2 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 28 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2384
-2459
-2681
onlyif mysql # use DIV operator for integer division
query I rowsort label-1963
SELECT tab2.col1 DIV 67 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1963
SELECT tab2.col1 / 67 FROM tab2
----
0
0
0
query I rowsort
SELECT - + 72 * col1 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT + col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - 39 + col1 * + col0 AS col0 FROM tab1
----
1001
39
601
query I rowsort
SELECT + + 2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT + col2 * col2 + col1 AS col2 FROM tab2
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1969
SELECT - CAST( NULL AS SIGNED ) * - 21 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1969
SELECT - CAST ( NULL AS INTEGER ) * - 21 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT col0 + ( ( - col0 ) + col2 ) * cor0.col0 FROM tab1 AS cor0
----
-384
1360
156
query I rowsort
SELECT ALL - - col2 * - col1 + - col2 * col1 - col2 FROM tab1 AS cor0
----
-1197
-2592
-2862
onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT cor0.col1 DIV - col0 AS col2 FROM tab2 cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1973
SELECT cor0.col1 / - col0 AS col2 FROM tab2 cor0
----
-4
0
0
query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 * - 3 FROM tab1 AS cor0
----
27648
8748
9747
query I rowsort
SELECT ALL + col0 + ( - col1 ) FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT + CAST( NULL AS SIGNED ) * ( cor0.col2 ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1976
SELECT + CAST ( NULL AS INTEGER ) * ( cor0.col2 ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( + 8 ) + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1542
-654
-845
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 * + col2 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT DISTINCT - - 28 FROM tab1 AS cor0
----
28
query I rowsort
SELECT ALL - + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - col0 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - 15 FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT - 65 AS col2 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT - col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 31 * col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1803
-489
-934
query I rowsort
SELECT - + 88 AS col1 FROM tab0 cor0
----
-88
-88
-88
query I rowsort
SELECT - - col2 + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + col0 * - 77 FROM tab2 cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL - 50 AS col2 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT DISTINCT tab2.col1 * - col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 23 FROM tab2
----
23
query I rowsort
SELECT tab0.col2 + - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) - + col0 * 78 FROM tab2 AS cor0
----
-488
-5999
-6107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 - + ( - cor0.col0 ) * - cor0.col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 90 * - col1 FROM tab2
----
1530
2790
5310
query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - col1 * - ( 79 ) FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT - col0 * 90 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 + col2 * - col1 FROM tab0 cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col2 + 69 FROM tab0
----
102
151
70
query I rowsort
SELECT ALL col1 + 33 * - col0 + - tab1.col2 FROM tab1
----
-127
-2159
-2723
query I rowsort
SELECT DISTINCT + - 88 FROM tab2 AS cor0
----
-88
query I rowsort
SELECT col0 * + col2 + 65 AS col2 FROM tab1 AS cor0
----
227
3713
7745
query I rowsort
SELECT ALL + cor0.col2 * + col1 + + col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT ( - 34 * col1 ) FROM tab1
----
-340
-442
-884
query I rowsort
SELECT ALL - 25 * + col2 AS col1 FROM tab2
----
-650
-675
-950
query I rowsort
SELECT ( + 84 + - col2 ) * 73 AS col2 FROM tab0
----
146
3723
6059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2019
SELECT DISTINCT col0 + 58 * col0 + + CAST( + col0 AS SIGNED ) FROM tab2
----
420
4680
4740
skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT col0 + 58 * col0 + + CAST ( + col0 AS INTEGER ) FROM tab2
----
420
4680
4740
query I rowsort
SELECT - 19 FROM tab1
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT + CAST( - col2 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2021
SELECT + CAST ( - col2 AS INTEGER ) FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT ALL + tab1.col1 + col2 + col2 DIV 93 FROM tab1
----
110
67
80
skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + tab1.col1 + col2 + col2 / 93 FROM tab1
----
110
67
80
query I rowsort
SELECT DISTINCT + 63 * - col1 FROM tab1 cor0
----
-1638
-630
-819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - + col2 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT - col1 + - col2 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-2026
SELECT - col1 + - col2 / CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-15
-20
-28
query I rowsort
SELECT - col2 * col1 + + col0 AS col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - 28 + - col1 FROM tab2 cor0
----
-45
-59
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2029
SELECT DISTINCT - ( col0 ) * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - ( col0 ) * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + col0 * + col2 + + col0 * - 28 * cor0.col2 FROM tab2 AS cor0
----
-5481
-58812
-87058
query I rowsort
SELECT ALL col1 + col1 * 18 + col2 FROM tab1 AS cor0
----
247
343
548
onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT ALL - col1 - col0 * - cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - col1 - col0 * - cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 57 + col2 FROM tab2 AS cor0
----
-19
-30
-31
query I rowsort
SELECT - - col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - + col1 + + col1 * ( + 0 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + ( + 49 ) AS col0 FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT + - 42 * - 38 + col2 AS col1 FROM tab1 AS cor0
----
1650
1653
1692
query I rowsort
SELECT DISTINCT col0 + + col2 * + col0 * 8 FROM tab0 AS cor0
----
315
58473
6360
query I rowsort
SELECT ALL - ( - 43 + + tab1.col0 ) AS col2 FROM tab1
----
-21
-37
40
query I rowsort
SELECT ALL ( col2 ) * + col2 AS col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT ALL - 25 DIV col1 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - 25 / col1 FROM tab2
----
-1
0
0
query I rowsort
SELECT + col2 + + 25 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT DISTINCT + - col2 + + col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - col2 + col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - 23 * + col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col0 * col0 * 38 FROM tab2 AS cor0
----
1862
231192
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT col1 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2052
SELECT col1 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + col2 * cor0.col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT 58 + cor0.col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
220
3706
7738
skipif mysql # not compatible
query I rowsort label-2054
SELECT 58 + cor0.col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
220
3706
7738
query I rowsort
SELECT - 94 * cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
115150
54144
744574
query I rowsort
SELECT DISTINCT + 29 * + tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
1015
2581
696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab2
----
-63
-63
-63
query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab0, tab2, tab0 AS cor0
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( + 75 ) col0 FROM tab1 cor0
----
129
132
171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT - col0 + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-2060
SELECT - col0 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - + col1 + col1 - + ( + col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + col0 * - 4 + 3 FROM tab0 AS cor0
----
-137
-353
-93
query I rowsort
SELECT - col0 + - ( 93 ) AS col1 FROM tab1 AS cor0
----
-157
-173
-96
query I rowsort
SELECT - col0 * - col0 + + 68 * col1 AS col2 FROM tab0 AS cor0
----
14109
6424
7821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 * col2 + col1 col2 FROM tab0 AS cor0
----
-1
-2785
-7453
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2066
SELECT - col1 * - col1 * + ( - col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2066
SELECT - col1 * - col1 * + ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + - col2 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col1 + 73 AS col2 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT + col2 + ( col1 * + col0 + col1 ) FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT cor0.col2 + + 30 FROM tab2, tab2 cor0
----
9 values hashing to d577b7c4b2251372cbdc2cd31a5582d7
query I rowsort
SELECT DISTINCT col1 * col1 + 26 FROM tab1
----
126
195
702
query I rowsort
SELECT ALL - 82 + col0 FROM tab2
----
-3
-4
-75
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 34 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT + ( - 64 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 19 col0 FROM tab0 AS cor0
----
-1691
-456
-665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2078
SELECT + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT 58 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col0 FROM tab1, tab1 AS cor0
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2083
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT col2 + 53 AS col0 FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT 49 * + tab2.col2 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 9aa80e2b571f526f6101b9c742081465
query I rowsort
SELECT tab2.col1 * - 73 AS col1 FROM tab2
----
-1241
-2263
-4307
query I rowsort
SELECT ALL - 0 AS col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT + 11 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT - col1 * 88 FROM tab2
----
-1496
-2728
-5192
query I rowsort
SELECT - ( - 33 ) * + col1 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
246328
3202
93687
query I rowsort
SELECT + 49 + - col2 AS col0 FROM tab0 AS cor0
----
-33
16
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2093
SELECT - - CAST( NULL AS SIGNED ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2093
SELECT - - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT ALL + col2 + - col2 DIV col1 + + 71 AS col0 FROM tab2
----
107
97
98
skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL + col2 + - col2 / col1 + + 71 AS col0 FROM tab2
----
107
97
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 * col1 col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL 16 AS col2 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT + + cor0.col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + 17 AS col1 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( + 48 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT - + cor0.col1 + - 89 AS col2 FROM tab0 AS cor0
----
-175
-180
-186
query I rowsort
SELECT - col0 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT col0 + - col0 + - col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - col2 + col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
1389
591
671
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT + col2 * - CAST( NULL AS SIGNED ) + 37 * col1 + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2105
SELECT + col2 * - CAST ( NULL AS INTEGER ) + 37 * col1 + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT ( + cor0.col0 ) + + CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2106
SELECT ( + cor0.col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - ( + col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 65 + - 17 AS col2 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT - 87 FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT 44 * - col0 + 57 + + col2 AS col2 FROM tab2
----
-224
-3349
-3381
query I rowsort
SELECT + - ( col2 ) + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2112
SELECT DISTINCT 92 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
30
skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 92 / + col0 AS col1 FROM tab1 AS cor0
----
1
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT + + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2114
SELECT + + col1 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + 4 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2116
SELECT - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT col0 + + 62 FROM tab2
----
140
141
69
query I rowsort
SELECT cor0.col1 * + 23 + + col2 FROM tab1 AS cor0
----
287
395
652
query I rowsort
SELECT DISTINCT + col0 * - 6 * + ( - col1 ) + - ( - col2 ) * + col1 AS col0 FROM tab2
----
2139
29146
8704
query I rowsort
SELECT + - col1 + 61 FROM tab0 AS cor0
----
-25
-30
-36
query I rowsort
SELECT + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - 45 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT + 30 FROM tab1 cor0
----
30
query I rowsort
SELECT + col1 * + col1 + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
147
252
704
query I rowsort
SELECT ALL - ( - 44 ) FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT 77 * col2 AS col0 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT + 85 * ( col0 ) * - col2 + ( + col1 ) * + col1 FROM tab1 AS cor0
----
-13094
-309980
-652631
onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL - + col0 DIV col2 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - + col0 / col2 col0 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL + - 97 FROM tab1 cor0
----
-97
-97
-97
query I rowsort
SELECT - col2 * + ( col2 * 76 ) + 88 * col1 AS col2 FROM tab1 AS cor0
----
-219328
-246044
-699272
query I rowsort
SELECT + - ( col1 ) * - col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT - + col0 DIV - col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2132
SELECT - + col0 / - col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT - 25 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 54 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL + ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + ( + col1 ) + - cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ( - col2 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 + tab2.col0 AS col2 FROM tab2
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col2 FROM tab2 cor0
----
72
query I rowsort
SELECT ( cor0.col1 ) * - col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + 87 * col1 + + col0 FROM tab0 AS cor0
----
7506
8006
8474
query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + 16 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT - col1 * tab0.col2 * + 8 FROM tab0
----
-22704
-59696
-776
query I rowsort
SELECT + col0 + - col0 - + 87 * col0 FROM tab0
----
-2088
-3045
-7743
query I rowsort
SELECT DISTINCT - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col2 * + col0 - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * cor0.col0 col0 FROM tab2, tab1 AS cor0
----
-120
-2560
-3200
query I rowsort
SELECT DISTINCT col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT ALL - CAST( NULL AS DECIMAL ) * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - CAST ( NULL AS REAL ) * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - ( + col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - 29 + tab0.col0 AS col0 FROM tab0
----
-5
6
60
query I rowsort
SELECT + 23 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT + 64 + + col0 DIV cor0.col1 FROM tab0 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-2156
SELECT + 64 + + col0 / cor0.col1 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT ALL + 1 + col2 AS col2 FROM tab1 cor0
----
55
58
97
query I rowsort
SELECT ALL + - col2 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - + 5 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab2
----
6
query I rowsort
SELECT col0 + 66 FROM tab0
----
101
155
90
query I rowsort
SELECT + 87 * + col0 + - col1 AS col0 FROM tab0
----
2002
2948
7652
query I rowsort
SELECT ALL + col0 + + 49 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1196
-1316
-1783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2165
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * col1 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT col0 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT ALL - - col0 DIV + 53 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - - col0 / + 53 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT col2 * 66 FROM tab1 cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT + col0 * col1 * col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT col0 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col0 + - 74 - col2 AS col0 FROM tab1 AS cor0
----
-125
-67
-90
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col2 * cor0.col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - + col0 - - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - col0 - ( - col2 ) FROM tab1
----
29
3
77
query I rowsort
SELECT - 30 + col2 FROM tab2
----
-3
-4
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT + 4 DIV + col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2177
SELECT + 4 / + col1 col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT - ( col1 ) DIV ( col1 ) - + col2 FROM tab2
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-2178
SELECT - ( col1 ) / ( col1 ) - + col2 FROM tab2
----
-27
-28
-39
query I rowsort
SELECT ALL + col0 - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT - tab1.col1 * - tab1.col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT col2 * col1 * col0 FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT DISTINCT col0 + col2 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT col0 + col2 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT - tab2.col1 DIV + 86 - - col2 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2183
SELECT - tab2.col1 / + 86 - - col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + ( + col1 ) col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - + col2 + - 93 FROM tab2 AS cor0
----
-119
-120
-131
query I rowsort
SELECT col0 + ( + ( cor0.col0 ) + cor0.col2 ) * - col1 FROM tab1 cor0
----
-1146
-1479
-2208
query I rowsort
SELECT + col0 + + 92 AS col0 FROM tab0 AS cor0
----
116
127
181
query I rowsort
SELECT ALL cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col1 + col1 * - col1 AS col1 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT - col2 * col0 + col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT + tab1.col2 * + col2 * col0 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + 98 * tab1.col0 FROM tab1
----
294
6272
7840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * + col0 col2 FROM tab1
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * col0 col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col1 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col1 * + tab1.col0 + col1 * - col2 FROM tab1
----
-1326
-208
70
query I rowsort
SELECT + 54 + + col2 * - col1 AS col0 FROM tab1
----
-1194
-1350
-516
query I rowsort
SELECT ALL - col2 + col1 + ( col0 ) FROM tab1 AS cor0
----
-25
-3
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 2 * + col2 col1 FROM tab1 cor0
----
18432
5832
6498
query I rowsort
SELECT + col2 * ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col1 + + cor0.col2 * 96 FROM tab0 AS cor0
----
-1
3082
7781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 * + col0 col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2205
SELECT + cor0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2205
SELECT + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col1 + col0 + col1 * col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
22927
271655
6765
query I rowsort
SELECT ALL col1 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col0 + + col1 * col1 * - col2 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT - 56 * cor0.col2 + - 29 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to b66bf78377bbf03127a18f7e3a0eefa5
query I rowsort
SELECT col1 * + col0 + 70 AS col0 FROM tab1
----
1110
148
710
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT + col1 * 7 AS col2 FROM tab0 AS cor0
----
602
637
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT col1 DIV - col1 + + 75 AS col0 FROM tab1 AS cor0
----
74
74
74
skipif mysql # not compatible
query I rowsort label-2214
SELECT col1 / - col1 + + 75 AS col0 FROM tab1 AS cor0
----
74
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 56 * 89 + col0 col2 FROM tab0 AS cor0
----
5008
5019
5073
query I rowsort
SELECT col1 * - col2 + - col2 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 5 AS col2 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL - ( + col0 ) * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT ALL - cor0.col0 + col2 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - cor0.col0 + col2 / - col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 94 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-3554
-68
-7586
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2222
SELECT - + col1 * - cor0.col2 - col2 * - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
121056
33060
77220
skipif mysql # not compatible
query I rowsort label-2222
SELECT - + col1 * - cor0.col2 - col2 * - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
121056
33060
77220
query I rowsort
SELECT DISTINCT - - ( + col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 75 * + col0 * col0 FROM tab1 AS cor0
----
307200
480000
675
query I rowsort
SELECT cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0, tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT - 90 FROM tab2 AS cor0
----
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2228
SELECT ALL col2 DIV col2 - col1 FROM tab1 cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL col2 / col2 - col1 FROM tab1 cor0
----
-12
-25
-9
query I rowsort
SELECT + + ( + col1 ) * col2 + 21 AS col2 FROM tab0 AS cor0
----
118
2859
7483
query I rowsort
SELECT ALL 36 + 58 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT ( 42 ) FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT - - col1 * + col1 - - cor0.col2 AS col0 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col0 * 46 AS col2 FROM tab0 AS cor0
----
-1104
-1610
-4094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col0 * col2 col1 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT DISTINCT 46 DIV cor0.col0 FROM tab2 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT 46 / cor0.col0 FROM tab2 AS cor0
----
0
6
query I rowsort
SELECT ALL - - col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * - col1 + 16 col2 FROM tab0 AS cor0
----
532
562
598
query I rowsort
SELECT DISTINCT col2 * col2 + - col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 75 col1 FROM tab2
----
106
134
92
query I rowsort
SELECT ( + tab1.col1 ) * col1 + ( + col0 ) + + tab1.col2 FROM tab1
----
221
345
733
query I rowsort
SELECT - + ( col1 ) + - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col2 * + col1 + col2 * ( col0 ) FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT - + 97 * - col2 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
2430
494
684
query I rowsort
SELECT - col2 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + - col0 * col1 + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - 57 - + col2 AS col0 FROM tab0 AS cor0
----
-139
-58
-90
query I rowsort
SELECT + col0 - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - col1 + - 81 FROM tab0
----
-167
-172
-178
query I rowsort
SELECT ALL tab1.col0 + col2 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 + - col0 col2 FROM tab2 AS cor0
----
-120
-121
-49
query I rowsort
SELECT + - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 89 * - col2 + + col1 + 56 * - col1 FROM tab0 AS cor0
----
-1793
-5246
2293
query I rowsort
SELECT + 48 * - col1 AS col2 FROM tab0
----
-4128
-4368
-4656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - col1 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - col0 * + col0 * col2 AS col1 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT + - col2 + - col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col1 * - 62 * col1 FROM tab0
----
-458552
-513422
-583358
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2, tab0 AS cor0
----
52
query I rowsort
SELECT 69 FROM tab2
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 46 col1 FROM tab2 AS cor0
----
1426
2714
782
query I rowsort
SELECT DISTINCT - 84 FROM tab2, tab2 AS cor0
----
-84
query I rowsort
SELECT ALL + cor0.col0 * 54 FROM tab0 cor0
----
1296
1890
4806
query I rowsort
SELECT ALL + 58 + col0 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT + + col0 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + cor0.col0 + + col0 * + col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT DISTINCT - 79 DIV col2 - col2 * + col0 FROM tab1 AS cor0
----
-163
-3649
-7680
skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - 79 / col2 - col2 * + col0 FROM tab1 AS cor0
----
-163
-3649
-7680
query I rowsort
SELECT DISTINCT 14 * col1 * - cor0.col2 FROM tab1 AS cor0
----
-17472
-19656
-7980
onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT + col2 * cor0.col2 + col1 * 99 DIV - col1 FROM tab0 AS cor0
----
-98
6625
990
skipif mysql # not compatible
query I rowsort label-2275
SELECT + col2 * cor0.col2 + col1 * 99 / - col1 FROM tab0 AS cor0
----
-98
6625
990
query I rowsort
SELECT DISTINCT + col2 + - 18 * col0 AS col2 FROM tab0 AS cor0
----
-1520
-399
-629
query I rowsort
SELECT ALL col2 + + col0 + col2 FROM tab0 cor0
----
253
37
90
query I rowsort
SELECT ALL ( + cor0.col2 ) * col2 + - col1 * - cor0.col0 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2279
SELECT ALL - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col0 * - col0 + + col1 * 71 FROM tab0 AS cor0
----
-1460
5530
5662
query I rowsort
SELECT DISTINCT ( 63 ) + col2 AS col0 FROM tab1 AS cor0
----
117
120
159
query I rowsort
SELECT ALL - ( col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - ( 23 ) + - col2 * - col0 FROM tab2 AS cor0
----
166
2005
2979
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + + 55 AS col0 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT - ( col1 ) * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT DISTINCT - 35 + col1 DIV + cor0.col1 FROM tab1 cor0
----
-34
skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - 35 + col1 / + cor0.col1 FROM tab1 cor0
----
-34
query I rowsort
SELECT ALL + 56 * - col1 AS col1 FROM tab1 AS cor0
----
-1456
-560
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - ( - 22 ) AS col1 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT ALL + 79 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col1 * 70 FROM tab2
----
1190
2170
4130
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3
query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0
----
45
query I rowsort
SELECT col0 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + 17 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
17
query I rowsort
SELECT - - col0 + - 27 * + col1 FROM tab2 AS cor0
----
-1515
-380
-830
query I rowsort
SELECT DISTINCT col2 + 15 FROM tab0 cor0
----
16
48
97
query I rowsort
SELECT ALL col2 * 27 FROM tab1 AS cor0
----
1458
1539
2592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2301
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + - col0 * + col1 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + - col0 * + col1 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 2 col2 FROM tab0 AS cor0
----
-1
31
80
query I rowsort
SELECT DISTINCT 47 - + col1 FROM tab0
----
-39
-44
-50
query I rowsort
SELECT - 98 * col2 AS col2 FROM tab0 cor0
----
-3234
-8036
-98
query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab1
----
55
query I rowsort
SELECT ALL col1 - tab0.col2 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT col0 * col1 + + col0 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 36 col2 FROM tab1
----
10
23
26
query I rowsort
SELECT ALL + col1 + col2 * 88 * col1 FROM tab1
----
109837
123578
50170
onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT + col1 + 25 DIV + 10 col1 FROM tab2 cor0
----
19
33
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2310
SELECT + col1 + 25 / + 10 col1 FROM tab2 cor0
----
19
33
61
query I rowsort
SELECT DISTINCT col1 * + 66 FROM tab0 AS cor0
----
5676
6006
6402
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197
query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 + ( - 50 ) FROM tab2 AS cor0
----
-76
-77
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT col0 * - ( + 90 ) AS col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT ALL + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + - col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + - cor0.col0 + cor0.col1 * 3 * col1 AS col1 FROM tab0 AS cor0
----
22164
24754
28192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT ALL + - col0 * + CAST( + 17 AS SIGNED ) + col2 * 34 FROM tab0 AS cor0
----
-561
1275
714
skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + - col0 * + CAST ( + 17 AS INTEGER ) + col2 * 34 FROM tab0 AS cor0
----
-561
1275
714
query I rowsort
SELECT - col1 * + cor0.col2 + col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col2 * col2 + + 68 * col2 FROM tab2 cor0
----
2444
2565
4028
query I rowsort
SELECT ALL - col2 + 81 * col0 FROM tab2 AS cor0
----
540
6292
6361
query I rowsort
SELECT + cor0.col1 + + col2 + - 17 FROM tab2 AS cor0
----
38
41
68
query I rowsort
SELECT - + 64 * - col2 + - col2 AS col2 FROM tab1 cor0
----
3402
3591
6048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 27 + 69 col1 FROM tab0 cor0
----
96
96
96
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - cor0.col1 + 2 AS col1 FROM tab0 AS cor0
----
-84
-89
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - - 2 * col2 + col0 * + 44 AS col1 FROM tab2 AS cor0
----
3484
3552
362
query I rowsort
SELECT DISTINCT + + cor0.col2 * + 49 AS col2 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT + - col2 + 30 FROM tab0 AS cor0
----
-3
-52
29
query I rowsort
SELECT DISTINCT 51 * col2 AS col1 FROM tab1 AS cor0
----
2754
2907
4896
query I rowsort
SELECT - - 4 * 66 + col2 AS col0 FROM tab0 AS cor0
----
265
297
346
query I rowsort
SELECT ALL 46 * - cor0.col2 + + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2079
-2394
-2730
query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT tab2.col2 + + col2 DIV col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-2339
SELECT tab2.col2 + + col2 / col0 FROM tab2
----
26
30
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT DISTINCT - col1 * - col2 * CAST( + col2 * - col0 AS SIGNED ) FROM tab2 cor0
----
-158193
-1939292
-3110952
skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - col1 * - col2 * CAST ( + col2 * - col0 AS INTEGER ) FROM tab2 cor0
----
-158193
-1939292
-3110952
query I rowsort
SELECT + 31 AS col2 FROM tab1 cor0
----
31
31
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col2 col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2343
SELECT DISTINCT + 0 - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT + 0 - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * col0 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT - col2 DIV + 54 + + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-2345
SELECT - col2 / + 54 + + col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 + 50 AS col2 FROM tab1 AS cor0
----
-4
-46
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 + - col2 * ( - col1 ) - col1 col2 FROM tab2
----
1418
572
749
query I rowsort
SELECT DISTINCT + 27 - tab1.col0 FROM tab1
----
-37
-53
24
query I rowsort
SELECT col1 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT col2 * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + cor0.col1 + - 72 * + col0 * + col0 FROM tab1 AS cor0
----
-294922
-460813
-674
query I rowsort
SELECT ALL - - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + col0 * - col0 AS col0 FROM tab2
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT DISTINCT 15 DIV col1 - 4 FROM tab0
----
-4
skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 15 / col1 - 4 FROM tab0
----
-4
query I rowsort
SELECT + 62 - + col2 * - 17 AS col0 FROM tab1
----
1031
1694
980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + + cor0.col2 + - col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - 40 FROM tab0, tab2 AS cor0
----
-40
query I rowsort
SELECT - ( 19 + + col2 ) AS col0 FROM tab1
----
-115
-73
-76
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT + 93 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL - 67 AS col1 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT + 32 * + col0 AS col0 FROM tab2
----
224
2496
2528
query I rowsort
SELECT DISTINCT + ( col0 + - 93 ) FROM tab2
----
-14
-15
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT DISTINCT - 75 + + cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-68
-70
-73
skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - 75 + + cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
-68
-70
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT - col0 DIV - col0 + + col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2368
SELECT - col0 / - col0 + + col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL - col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 12 col2 FROM tab1 AS cor0
----
-120
-156
-312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2371
SELECT - col0 + ( 49 ) DIV col0 FROM tab1 AS cor0
----
-64
-80
13
skipif mysql # not compatible
query I rowsort label-2371
SELECT - col0 + ( 49 ) / col0 FROM tab1 AS cor0
----
-64
-80
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT DISTINCT col1 + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT DISTINCT col1 + - ( + ( col1 ) ) FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 - - 54 FROM tab1 AS cor0
----
28
41
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 + - 14 FROM tab2 AS cor0
----
-31
-45
-73
query I rowsort
SELECT ALL + + 81 * - 13 AS col0 FROM tab2 AS cor0
----
-1053
-1053
-1053
onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT ALL - + col1 DIV + 61 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - + col1 / + 61 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 14 * - 24 + col1 FROM tab0 cor0
----
-239
-245
-250
query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + ( - col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab1.col1 * 69 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
1794
690
897
query I rowsort
SELECT ( col1 * - col0 ) + 72 AS col2 FROM tab2
----
-1271
-145
-4530
query I rowsort
SELECT ( - col0 ) + col0 * 1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT DISTINCT ( + 41 ) DIV - col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT ( + 41 ) / - col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT - 1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT - + 56 * - 30 - cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to b96daf78c5955681d3990faa1bd302ea
query I rowsort
SELECT + + col0 + 92 * - col2 FROM tab2 AS cor0
----
-2314
-2477
-3417
query I rowsort
SELECT 83 AS col2 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT - - col0 * cor0.col0 - + 37 FROM tab0 AS cor0
----
1188
539
7884
query I rowsort
SELECT - 12 AS col2 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT - 74 + + col1 AS col1 FROM tab1 AS cor0
----
-48
-61
-64
query I rowsort
SELECT - 14 + col1 AS col2 FROM tab0 AS cor0
----
72
77
83
query I rowsort
SELECT - - 61 + col1 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT 3 + cor0.col0 * ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1340
-214
-4599
query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT + - cor0.col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2399
SELECT + - cor0.col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - + ( + cor0.col0 ) * + col2 * + 33 FROM tab2 AS cor0
----
-6237
-66924
-99066
query I rowsort
SELECT ALL + - col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col2 * col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT + col2 * - CAST( - ( cor0.col1 ) AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2403
SELECT + col2 * - CAST ( - ( cor0.col1 ) AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 94 + cor0.col2 col1 FROM tab2 AS cor0
----
-1560
-2887
-5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT - col2 * 71 DIV - 87 + + col0 * col2 FROM tab2 AS cor0
----
2049
211
3033
skipif mysql # not compatible
query I rowsort label-2405
SELECT - col2 * 71 / - 87 + + col0 * col2 FROM tab2 AS cor0
----
2049
211
3033
query I rowsort
SELECT + col0 * col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ( cor0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT + cor0.col0 DIV col0 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2410
SELECT + cor0.col0 / col0 + col0 / col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - - col0 + + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - col0 - - col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - tab1.col0 * tab1.col1 + - tab1.col2 * - col2 FROM tab1
----
2609
2838
8176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 + + col1 col2 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ( - col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ( tab1.col1 ) * col2 AS col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 68 * col0 col1 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT - 67 AS col1 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + 33 FROM tab0 AS cor0
----
130
2871
7495
query I rowsort
SELECT ALL + - col2 * col2 + col2 + 1 * col0 FROM tab1 AS cor0
----
-2859
-3128
-9040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT ALL + cor0.col2 - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + cor0.col2 - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 48 + - col1 FROM tab0 AS cor0
----
-38
-43
-49
query I rowsort
SELECT DISTINCT - 87 + col2 * col1 FROM tab1 AS cor0
----
1161
1317
483
onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT ALL - - ( - col1 ) + - 53 + + col1 DIV col0 FROM tab2 AS cor0
----
-112
-70
-80
skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - - ( - col1 ) + - 53 + + col1 / col0 FROM tab2 AS cor0
----
-112
-70
-80
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + + col0 + col0 + 79 FROM tab1 AS cor0
----
207
239
85
query I rowsort
SELECT - cor1.col2 - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 17f7899e0948870d43b9e7e157cef513
query I rowsort
SELECT ALL - col1 + - cor0.col0 * cor0.col0 * - col2 AS col0 FROM tab1 cor0
----
233462
460
614387
query I rowsort
SELECT - 45 FROM tab2, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT + ( + col2 ) + + ( - col1 ) AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL + cor0.col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - + col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 33 + 84 * col2 AS col0 FROM tab1 AS cor0
----
4569
4821
8097
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ( col0 ) * - col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 39 AS col2 FROM tab0
----
39
39
39
query I rowsort
SELECT + 67 + col0 FROM tab2
----
145
146
74
query I rowsort
SELECT - ( - tab2.col0 ) + 2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a6d551fd8eacb9e118bf12e0a610b8c
query I rowsort
SELECT ALL + 18 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT + 69 DIV + col1 FROM tab1
----
2
5
6
skipif mysql # not compatible
query I rowsort label-2446
SELECT + 69 / + col1 FROM tab1
----
2
5
6
query I rowsort
SELECT - col1 - 12 AS col0 FROM tab2 AS cor0
----
-29
-43
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT + 18 DIV 9 AS col2 FROM tab1
----
2
2
2
skipif mysql # not compatible
query I rowsort label-2449
SELECT + 18 / 9 AS col2 FROM tab1
----
2
2
2
query I rowsort
SELECT + 85 + + col2 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
244153
679127
9494
query I rowsort
SELECT ALL + col1 * cor0.col1 + - col0 * ( cor0.col2 ) FROM tab0 AS cor0
----
6604
9374
983
onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT DISTINCT tab1.col1 DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT tab1.col1 / col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + + col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT DISTINCT - tab1.col2 * col0 + ( col1 ) DIV col1 AS col0 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT - tab1.col2 * col0 + ( col1 ) / col1 AS col0 FROM tab1
----
-161
-3647
-7679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2455
SELECT DISTINCT 31 * - col1 + - CAST( col0 AS SIGNED ) FROM tab2
----
-1907
-606
-968
skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT 31 * - col1 + - CAST ( col0 AS INTEGER ) FROM tab2
----
-1907
-606
-968
query I rowsort
SELECT + 38 FROM tab2, tab0, tab2 cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - + col2 col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT ALL - - col0 * cor0.col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + ( + col2 ) + col1 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT DISTINCT - col0 DIV tab0.col1 + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - col0 / tab0.col1 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT 3 * - col1 + col0 * + col2 AS col2 FROM tab0
----
-256
534
7025
query I rowsort
SELECT + 38 + - 76 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + cor0.col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - 88 * col1 + ( + ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-1064
-2285
-816
query I rowsort
SELECT + col2 + col1 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col0 FROM tab0 cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT DISTINCT - + col0 + col2 * - CAST( NULL AS SIGNED ) * - 32 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT - + col0 + col2 * - CAST ( NULL AS INTEGER ) * - 32 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 + col0 * + col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT - 77 FROM tab0, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL - 29 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT + col2 - ( + col1 + + col2 ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col1 * + 17 + + col2 FROM tab2
----
-251
-500
-977
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT DISTINCT col0 DIV 96 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT col0 / 96 AS col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT ALL col2 DIV + ( + 84 ) + col0 * col1 + + 30 * col2 AS col1 FROM tab2 AS cor0
----
1027
2483
5382
skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL col2 / + ( + 84 ) + col0 * col1 + + 30 * col2 AS col1 FROM tab2 AS cor0
----
1027
2483
5382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT - col0 * + CAST( NULL AS SIGNED ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2478
SELECT - col0 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * 31 + cor0.col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab1 AS cor0, tab1 cor1
----
91
query I rowsort
SELECT - col1 * 29 + col2 AS col2 FROM tab1 cor0
----
-233
-281
-700
query I rowsort
SELECT + col0 * - ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT + col0 DIV tab2.col0 + col0 AS col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2484
SELECT + col0 / tab2.col0 + col0 AS col1 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL - col0 * - col1 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + ( + 58 ) FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT 9 * 11 AS col2 FROM tab2 AS cor0
----
99
query I rowsort
SELECT - cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 21 * + cor0.col1 + - col2 col2 FROM tab1 AS cor0
----
153
177
492
query I rowsort
SELECT + - ( 83 ) * + col0 AS col0 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + + ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 41 AS col0 FROM tab0 AS cor0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 * 36 col2 FROM tab2 AS cor0
----
2520
2520
2520
query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 20 * + col1 AS col0 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL ( col1 ) + - cor0.col2 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 17 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
119
1326
1343
onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT - + col1 + col0 * col0 DIV col1 AS col2 FROM tab2 cor0
----
-30
350
44
skipif mysql # not compatible
query I rowsort label-2501
SELECT - + col1 + col0 * col0 / col1 AS col2 FROM tab2 cor0
----
-30
350
44
query I rowsort
SELECT - col0 - - tab2.col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col0 * col0 + + col2 AS col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + 5 * + col1 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT ALL - ( - col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + col0 * cor0.col1 col2 FROM tab2 cor0
----
1288
162
4547
query I rowsort
SELECT DISTINCT 41 + + col1 AS col2 FROM tab2 AS cor0
----
100
58
72
query I rowsort
SELECT ALL + ( 78 ) AS col2 FROM tab0 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT cor0.col0 + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-2509
SELECT cor0.col0 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + col1 * 37 + - col2 + - col0 AS col0 FROM tab1
----
249
305
905
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * col2 * ( col1 + + col1 ) col0 FROM tab1 AS cor0
----
-151629
-239536
-64916
onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT - col2 + + 51 DIV - cor0.col0 col1 FROM tab2 cor0
----
-26
-34
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2516
SELECT - col2 + + 51 / - cor0.col0 col1 FROM tab2 cor0
----
-26
-34
-38
query I rowsort
SELECT ALL - col0 * ( col0 ) - col2 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT ( 19 ) * tab2.col1 FROM tab2
----
1121
323
589
query I rowsort
SELECT + 60 + 62 * + col0 AS col2 FROM tab0
----
1548
2230
5578
query I rowsort
SELECT - col1 * - 4 AS col2 FROM tab1
----
104
40
52
query I rowsort
SELECT DISTINCT + col2 * - 16 FROM tab1
----
-1536
-864
-912
query I rowsort
SELECT DISTINCT + col2 * col1 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT + 63 AS col2 FROM tab0 AS cor0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col2 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - ( - col1 ) * 55 AS col1 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT + - cor0.col2 + + cor0.col1 * + 96 FROM tab1 cor0
----
1152
2442
903
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 * cor0.col0 - col0 col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT ALL + + ( - col0 ) * 99 + + col0 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col1 * - cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT + + 94 AS col1 FROM tab0 cor0
----
94
query I rowsort
SELECT ALL - 73 + col0 FROM tab1 AS cor0
----
-70
-9
7
query I rowsort
SELECT DISTINCT 9 * - col1 * col1 FROM tab1
----
-1521
-6084
-900
query I rowsort
SELECT - tab1.col1 + 27 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e7277d0186a5bbe3204f55f3a16fc9d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT ALL tab0.col0 DIV tab0.col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL tab0.col0 / tab0.col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + col0 col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + 17 + col1 FROM tab2 AS cor0
----
34
48
76
query I rowsort
SELECT ALL - col2 * tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - + col0 * - col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col2 * ( - cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 + 94 * col2 AS col2 FROM tab1 AS cor0
----
5102
5368
9037
query I rowsort
SELECT cor0.col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col1 * ( + 11 * col2 + - 12 ) FROM tab1 AS cor0
----
13572
15132
6150
query I rowsort
SELECT ALL - + col2 + + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * + ( col2 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT - col0 * CAST( - 27 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2403
648
945
skipif mysql # not compatible
query I rowsort label-2548
SELECT - col0 * CAST ( - 27 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT + 6 * col2 * - col1 AS col0 FROM tab0
----
-17028
-44772
-582
query I rowsort
SELECT ALL col1 + 90 * - col2 FROM tab2 AS cor0
----
-2281
-2399
-3403
query I rowsort
SELECT - col2 * + col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - 79 AS col2 FROM tab2 AS cor0
----
-79
-79
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT CAST( + 57 AS SIGNED ) * - col0 + 1 FROM tab0 AS cor0
----
-1367
-1994
-5072
skipif mysql # not compatible
query I rowsort label-2553
SELECT CAST ( + 57 AS INTEGER ) * - col0 + 1 FROM tab0 AS cor0
----
-1367
-1994
-5072
query I rowsort
SELECT - - 5 * - col0 * + col0 + - ( 28 ) * col2 FROM tab1 AS cor0
----
-1557
-22076
-34688
query I rowsort
SELECT + 24 + + col1 FROM tab1 AS cor0
----
34
37
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT col2 DIV + 21 - col0 * + col1 FROM tab1 AS cor0
----
-1036
-638
-76
skipif mysql # not compatible
query I rowsort label-2556
SELECT col2 / + 21 - col0 * + col1 FROM tab1 AS cor0
----
-1036
-638
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT + 48 * col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2557
SELECT + 48 * col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - col0 + 66 * + 16 AS col1 FROM tab0 AS cor0
----
1632
2281
8977
query I rowsort
SELECT + cor0.col1 * + col2 + + col2 + col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT - col1 * + col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL ( - tab1.col0 ) FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + - col2 - col1 * - col2 col0 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2563
SELECT DISTINCT col1 - CAST( - tab0.col0 AS SIGNED ) AS col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT col1 - CAST ( - tab0.col0 AS INTEGER ) AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + col0 - 56 AS col0 FROM tab0
----
-21
-32
33
query I rowsort
SELECT ALL col1 * - 22 - - tab2.col2 AS col2 FROM tab2
----
-1272
-336
-655
query I rowsort
SELECT col2 + col1 - col2 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT + col1 + + col0 DIV col1 - col0 AS col2 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-2567
SELECT + col1 + + col0 / col1 - col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 + 14 * tab2.col1 * + tab2.col0 - + col1 * - col0 FROM tab2
----
17143
3066
67002
query I rowsort
SELECT DISTINCT col0 + col2 - + col2 * + col1 AS col1 FROM tab2
----
-1430
-529
-803
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT - cor0.col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 + col0 * + 41 AS col2 FROM tab1 AS cor0
----
177
2681
3376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * col2 + - col2 * - col2 AS col0 FROM tab0
----
14186
3927
98
query I rowsort
SELECT ALL + - col0 + col2 + col1 * col2 FROM tab1 AS cor0
----
1264
1455
563
query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( - 16 ) - + col2 FROM tab0 AS cor0
----
-17
-66
15
query I rowsort
SELECT ALL + - col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab2 AS cor0
----
-93
query I rowsort
SELECT DISTINCT + - col0 * + col2 + - col2 FROM tab0 cor0
----
-36
-7380
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT ALL - + 89 / + col1 + - col2 - + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - + 89 / + col1 + - col2 - + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + 13 AS col2 FROM tab1 AS cor0
----
23
26
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT - + CAST( NULL AS SIGNED ) + col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2585
SELECT - + CAST ( NULL AS INTEGER ) + col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + ( ( + col1 ) ) + col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - 10 FROM tab0 AS cor0
----
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col0 ) - + col1 * col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab2 AS cor0
----
-30
query I rowsort
SELECT - - col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT - 33 DIV col2 FROM tab0 AS cor0
----
-1
-33
0
skipif mysql # not compatible
query I rowsort label-2595
SELECT - 33 / col2 FROM tab0 AS cor0
----
-1
-33
0
query I rowsort
SELECT - 83 * col0 FROM tab2 AS cor0
----
-581
-6474
-6557
onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT ALL - 4 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
-3
33
82
skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - 4 / col2 + col2 AS col2 FROM tab0 AS cor0
----
-3
33
82
query I rowsort
SELECT + ( cor0.col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + - 11 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-50
-831
-832
query I rowsort
SELECT + col1 * col1 + - cor0.col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * 47 FROM tab1 AS cor0
----
2951
3664
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab2 AS cor0
----
4
query I rowsort
SELECT + - col0 + + col2 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2607
SELECT + col2 + - CAST( - col2 AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
-2862
-3192
-9120
skipif mysql # not compatible
query I rowsort label-2607
SELECT + col2 + - CAST ( - col2 AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - - col0 + - ( col2 ) * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + 20 col1 FROM tab0 AS cor0
----
102
21
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT 96 - col0 AS col2 FROM tab0
----
61
7
72
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 * 99 * 80 FROM tab0 AS cor0
----
190080
277200
704880
query I rowsort
SELECT ALL - + col1 + - ( col1 * + col2 ) FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT ALL - col1 DIV + col2 + col0 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - col1 / + col2 + col0 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - - col2 * 59 AS col1 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + col2 * ( 0 ) + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col1 * - 0 AS col2 FROM tab2 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT ALL - col2 + CAST( NULL AS SIGNED ) + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + col1 + + 48 AS col0 FROM tab0 AS cor0
----
134
139
145
query I rowsort
SELECT ALL col0 * cor0.col0 + + 45 FROM tab0 AS cor0
----
1270
621
7966
onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT - col2 DIV - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2627
SELECT - col2 / - ( + col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL col1 + + 5 * + 57 AS col0 FROM tab1 cor0
----
295
298
311
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col2 * ( + col1 * - col0 ) AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT col0 * + 30 AS col2 FROM tab1 cor0
----
1920
2400
90
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col0 + + 27 * + cor0.col1 FROM tab2 cor0
----
1515
380
830
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT ALL - cor0.col0 + col2 * + col2 - 22 DIV col2 FROM tab1 AS cor0
----
2913
3185
9136
skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL - cor0.col0 + col2 * + col2 - 22 / col2 FROM tab1 AS cor0
----
2913
3185
9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col0 FROM tab1 AS cor0
----
97
query I rowsort
SELECT - 43 + - col2 AS col0 FROM tab1 AS cor0
----
-100
-139
-97
query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT tab1.col0 + 37 FROM tab1
----
101
117
40
query I rowsort
SELECT - tab0.col1 + col0 * col2 - col0 AS col1 FROM tab0
----
-97
682
7118
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0, tab2, tab1 cor0
----
61
query I rowsort
SELECT DISTINCT + 66 FROM tab0
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - col0 DIV + cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
161
3647
7679
skipif mysql # not compatible
query I rowsort label-2644
SELECT - col0 / + cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
161
3647
7679
query I rowsort
SELECT 69 + - col0 FROM tab2 AS cor0
----
-10
-9
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab1 AS cor0
----
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT ALL col2 * + col0 - + CAST( NULL AS SIGNED ) * + ( + col1 * col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL col2 * + col0 - + CAST ( NULL AS INTEGER ) * + ( + col1 * col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * col0 col1 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT ALL + - 39 + col1 AS col1 FROM tab0 cor0
----
47
52
58
query I rowsort
SELECT DISTINCT + - 87 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-49
-60
-61
query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT + - 0 * + col1 + col1 + + 30 DIV ( + cor0.col0 + + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2652
SELECT + - 0 * + col1 + col1 + + 30 / ( + cor0.col0 + + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - cor0.col1 * ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2654
SELECT + CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2654
SELECT + CAST ( NULL AS REAL ) + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - - col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 + cor0.col1 * col2 AS col2 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT + - 23 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca
query I rowsort
SELECT col0 * + cor0.col0 + 89 * col0 + - 61 FROM tab1 cor0
----
13459
215
9731
query I rowsort
SELECT col2 * 95 AS col1 FROM tab0
----
3135
7790
95
query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT + col0 - ( + col0 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * - 7 + col2 * col0 + + cor0.col2 col2 FROM tab0 AS cor0
----
162
7506
951
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2668
SELECT - tab0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2668
SELECT - tab0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * ( col2 ) AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 38 FROM tab2 cor0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + col1 + col2 * cor0.col1 * 72 col1 FROM tab1 AS cor0
----
101138
41074
89893
query I rowsort
SELECT col0 * + 45 FROM tab2
----
315
3510
3555
query I rowsort
SELECT - 42 FROM tab1, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT col2 * ( col2 ) AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ( cor0.col2 ) + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - cor0.col0 + - col2 + + 98 * 19 * + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - cor0.col0 + - col2 + + 98 * 19 * + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - ( - col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT ALL - + 67 DIV - col1 + col0 FROM tab2 AS cor0
----
79
82
9
skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL - + 67 / - col1 + col0 FROM tab2 AS cor0
----
79
82
9
query I rowsort
SELECT DISTINCT + + col1 + + col1 + col0 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT - + col1 + col2 * cor0.col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - 0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 57 + - cor0.col2 FROM tab2 AS cor0
----
19
30
31
query I rowsort
SELECT DISTINCT ( 72 ) + cor0.col2 FROM tab2 cor0
----
110
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 15 col1 FROM tab1, tab0, tab2 cor0
----
-15
query I rowsort
SELECT ALL 68 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT DISTINCT + col1 + - col2 * 37 AS col2 FROM tab2 AS cor0
----
-1389
-903
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT + + col2 DIV col1 + - col2 * 76 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2660
-554648
-60192
skipif mysql # not compatible
query I rowsort label-2687
SELECT + + col2 / col1 + - col2 * 76 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2660
-554648
-60192
query I rowsort
SELECT ALL col1 * col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT - CAST( + col1 AS SIGNED ) col0 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2689
SELECT - CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + 51 AS col2 FROM tab0
----
51
51
51
query I rowsort
SELECT - - 91 FROM tab2 AS cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT ALL - CAST( NULL AS SIGNED ) + tab2.col2 * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL - CAST ( NULL AS INTEGER ) + tab2.col2 * col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT + cor0.col2 DIV - 90 + ( tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif mysql # not compatible
query I rowsort label-2693
SELECT + cor0.col2 / - 90 + ( tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + col1 + + ( - col2 * col1 ) + col1 AS col2 FROM tab1 AS cor0
----
-1222
-1352
-550
query I rowsort
SELECT + cor0.col0 * - col1 - + 66 * - col0 AS col1 FROM tab1 cor0
----
120
3584
4240
query I rowsort
SELECT ALL - col2 * col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT col0 - - col1 AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col2 FROM tab1
----
32
32
32
query I rowsort
SELECT - col2 * 34 + col2 FROM tab1
----
-1782
-1881
-3168
query I rowsort
SELECT ALL tab1.col0 - ( 95 ) FROM tab1
----
-15
-31
-92
query I rowsort
SELECT + col0 * - cor0.col2 - + col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + + col2 - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT - col0 DIV col1 + + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-2705
SELECT - col0 / col1 + + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
26
4
7
query I rowsort
SELECT - col0 + 31 AS col0 FROM tab0 AS cor0
----
-4
-58
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - ( col1 ) + + col2 col0 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + + 17 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT ALL 94 AS col0 FROM tab1
----
94
94
94
query I rowsort
SELECT ALL cor0.col0 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - - col0 * + col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - cor0.col0 * ( col0 * + col0 ) + 76 AS col0 FROM tab2 AS cor0
----
-267
-474476
-492963
query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT ( - col2 * col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT + 5 AS col1 FROM tab1
----
5
5
5
query I rowsort
SELECT DISTINCT + 23 FROM tab2, tab1 cor0, tab2 AS cor1
----
23
query I rowsort
SELECT ALL 80 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT - col2 - + col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL ( - col0 ) * - col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 86 FROM tab1
----
86
86
86
query I rowsort
SELECT col1 + 79 AS col2 FROM tab0
----
165
170
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + cor0.col2 col1 FROM tab1, tab1 cor0
----
9 values hashing to 707b92bfa2e49b01f294b4557662a316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2724
SELECT col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2724
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 * col1 col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - col1 * + ( + 7 ) FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT ALL - cor0.col2 - col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col0 + 84 FROM tab2 AS cor0
----
162
163
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT DISTINCT - - col2 DIV + cor0.col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT - - col2 / + cor0.col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + tab2.col1 * + col1 AS col0 FROM tab2
----
289
3481
961
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col1 )
----
query I rowsort
SELECT ALL + col1 * col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - tab2.col2 * - tab2.col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 - col0 FROM tab0
----
0
query I rowsort
SELECT - col2 + - col0 * col1 AS col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + col1 + - tab1.col0 * tab1.col0 FROM tab1
----
-4086
-6387
17
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL + col2 + col2 * - col2 + - col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT + col2 - - col0 DIV col1 AS col0 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-2741
SELECT + col2 - - col0 / col1 AS col0 FROM tab1
----
102
54
63
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2 / - col2 )
----
query I rowsort
SELECT DISTINCT + tab0.col1 * - tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + tab0.col1 * - col1 + col1 FROM tab0
----
-7310
-8190
-9312
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col2 )
----
query I rowsort
SELECT DISTINCT col2 + tab1.col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 - + col1 * - col1 * - col2 FROM tab2
----
-10944
-25920
-90480
query I rowsort
SELECT - col1 * - col2 AS col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col2 FROM tab2
----
1343
217
4602
query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col1 + col2 IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT 70 + + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1413
287
4672
query I rowsort
SELECT DISTINCT + 19 + col0 FROM tab0 cor0
----
108
43
54
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT ( col1 ) DIV cor0.col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2756
SELECT ( col1 ) / cor0.col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ( ( cor1.col0 ) ) FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col2 col0 FROM tab2 cor0
----
1430
1485
2090
query I rowsort
SELECT 94 + cor0.col1 * 70 FROM tab0 AS cor0
----
6114
6464
6884
query I rowsort
SELECT DISTINCT - tab1.col2 - col0 * col0 FROM tab1
----
-4153
-63
-6496
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT ALL tab0.col0 + tab0.col2 DIV col1 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL tab0.col0 + tab0.col2 / col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col1 * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT 19 AS col1 FROM tab1
----
19
19
19
query I rowsort
SELECT + col2 + + cor0.col0 + + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT cor0.col1 * col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - - 91 + + cor0.col0 * + 81 + col2 AS col2 FROM tab0 AS cor0
----
2068
2927
7382
query I rowsort
SELECT DISTINCT 12 FROM tab1 AS cor0
----
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT + 72 * - col1 + - 26 DIV - ( - col0 + col2 ) col2 FROM tab2 AS cor0
----
-1224
-2231
-4248
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2772
SELECT + 72 * - col1 + - 26 / - ( - col0 + col2 ) col2 FROM tab2 AS cor0
----
-1224
-2231
-4248
onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT ALL - col0 DIV col1 + - 62 * 34 DIV + col1 FROM tab1 AS cor0
----
-168
-216
-81
skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - col0 / col1 + - 62 * 34 / + col1 FROM tab1 AS cor0
----
-168
-216
-81
query I rowsort
SELECT DISTINCT + + col0 - - col2 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + 38 * col2 + - col0 * col0 FROM tab1 cor0
----
-1930
-2752
2043
query I rowsort
SELECT + - col0 + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - + col0 + - col0 + + ( cor0.col1 ) * + col1 * - ( col2 * - col0 ) FROM tab2 AS cor0
----
181615
7059312
867420
query I rowsort
SELECT 86 + - col0 AS col0 FROM tab2 cor0
----
7
79
8
query I rowsort
SELECT DISTINCT + col1 + - col1 * col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + col2 * col0 + col2 * + col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT + 4 * col2 FROM tab2 cor0
----
104
108
152
query I rowsort
SELECT + - col1 + + col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 32 AS col1 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT - col1 * + 57 AS col0 FROM tab2 cor0
----
-1767
-3363
-969
query I rowsort
SELECT - col2 + - 22 + col2 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + col1 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 + - 72 AS col0 FROM tab2 AS cor0
----
-13
-41
-55
query I rowsort
SELECT DISTINCT - + col0 * - 87 + + col0 AS col0 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 59 * + col1 AS col2 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT - 50 + - col1 FROM tab2 AS cor0
----
-109
-67
-81
query I rowsort
SELECT ALL - col1 * 68 AS col0 FROM tab1 AS cor0
----
-1768
-680
-884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 + - col1 col2 FROM tab1 AS cor0
----
37
50
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT - + CAST( NULL AS DECIMAL ) + col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2796
SELECT - + CAST ( NULL AS REAL ) + col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT ALL ( cor0.col0 ) * col2 DIV col1 col1 FROM tab1 AS cor0
----
364
590
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL ( cor0.col0 ) * col2 / col1 col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT DISTINCT - + 60 * 88 + - col1 * 98 AS col2 FROM tab1 AS cor0
----
-6260
-6554
-7828
query I rowsort
SELECT ALL - ( + 51 ) + col1 AS col0 FROM tab0 AS cor0
----
35
40
46
query I rowsort
SELECT - 24 * - 98 AS col1 FROM tab2
----
2352
2352
2352
skipif mysql # not compatible
query I rowsort
SELECT - 9 * - col0 + + CAST ( 13 AS REAL ) AS col2 FROM tab1 cor0
----
40
589
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT ( col2 ) DIV - col0 - 92 * - 24 AS col2 FROM tab0
----
2207
2208
2208
skipif mysql # not compatible
query I rowsort label-2803
SELECT ( col2 ) / - col0 - 92 * - 24 AS col2 FROM tab0
----
2207
2208
2208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * col1 col2 FROM tab2
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT ALL - CAST( NULL AS DECIMAL ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - CAST ( NULL AS REAL ) + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 8 * + ( - tab0.col1 ) + - col1 * - ( - col2 ) AS col0 FROM tab0
----
-2150
-6734
679
query I rowsort
SELECT ALL - - 63 * col0 AS col2 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT ALL - tab1.col2 + - ( col2 + - col0 ) FROM tab1
----
-105
-112
-50
query I rowsort
SELECT DISTINCT col2 * col0 + tab0.col0 * - 86 AS col0 FROM tab0
----
-1272
-2975
-356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2810
SELECT ( ( col2 ) + + CAST( 1 AS SIGNED ) ) FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2810
SELECT ( ( col2 ) + + CAST ( 1 AS INTEGER ) ) FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab2.col1 col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL + 19 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL col2 / col0 AS col2 FROM tab1 WHERE ( NOT NULL BETWEEN ( NULL ) AND NULL ) AND ( col1 - - col2 ) IN ( tab1.col2 )
----
query I rowsort
SELECT - cor0.col2 + + col2 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col0 + col1 * col0 FROM tab1 cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT CAST( - 47 AS SIGNED ) * + tab2.col2 FROM tab2
----
-1222
-1269
-1786
skipif mysql # not compatible
query I rowsort label-2817
SELECT CAST ( - 47 AS INTEGER ) * + tab2.col2 FROM tab2
----
-1222
-1269
-1786
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - ( col2 + col0 ) * - col0 * col1 AS col1 FROM tab1
----
183040
4446
77440
query I rowsort
SELECT ALL - 95 * - col1 AS col2 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT DISTINCT + col1 + + 37 FROM tab0 AS cor0
----
123
128
134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + tab0.col1 col0 FROM tab0
----
143
148
154
query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col0 * + col1 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
119808
51192
5873
skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col0 * + col1 + col0 + + col0 AS col1 FROM tab2 AS cor0
----
119808
51192
5873
query I rowsort
SELECT ALL - 27 AS col2 FROM tab2 cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + ( - 97 ) AS col2 FROM tab0 AS cor0
----
97
query I rowsort
SELECT + - ( - col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + 6 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
17496
19494
55296
query I rowsort
SELECT DISTINCT - 45 + + col2 FROM tab0 AS cor0
----
-12
-44
37
query I rowsort
SELECT col2 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT 55 + + 65 + - col1 AS col1 FROM tab1
----
107
110
94
query I rowsort
SELECT ALL col2 + 20 * + col0 + + col0 FROM tab0
----
1951
537
736
onlyif mysql # use DIV operator for integer division
query I rowsort label-2834
SELECT + + 45 + col2 DIV col0 FROM tab0 AS cor0
----
45
45
46
skipif mysql # not compatible
query I rowsort label-2834
SELECT + + 45 + col2 / col0 FROM tab0 AS cor0
----
45
45
46
query I rowsort
SELECT - cor0.col0 + col0 - + col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT - col2 * + col2 DIV col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2836
SELECT - col2 * + col2 / col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL - col1 + col2 - col1 * + col1 FROM tab2
----
-268
-3514
-965
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT DISTINCT - col2 DIV + col0 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT - col2 / + col0 FROM tab0
----
-1
0
query I rowsort
SELECT col1 + col2 - - col0 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT tab2.col1 * col2 DIV + col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2840
SELECT tab2.col1 * col2 / + col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 / - col2 + col2 + - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col1 * - col1 + + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL + tab0.col1 + col2 * col2 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL + tab1.col0 - + col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 + + tab2.col0 AS col0 FROM tab2
----
104
117
34
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT col1 DIV col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2849
SELECT col1 / col0 FROM tab2 WHERE NOT - col2 BETWEEN ( col2 * + col1 ) AND NULL
----
0
0
4
query I rowsort
SELECT - col1 * col2 + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col1 + tab1.col2 AS col1 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT ALL col2 DIV col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL col2 / col0 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * + col1 - + tab0.col1 col0 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + + col0 * + col2 col1 FROM tab2
----
2704
4446
918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 * + col2 col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab2 WHERE ( - col1 ) IN ( - col0 * col1 + col2 * col0 )
----
query I rowsort
SELECT ALL col0 * + col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + + col2 * col0 + - col0 * - col0 + col2 FROM tab1 AS cor0
----
14176
225
7801
query I rowsort
SELECT - + col0 * - col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col2 * cor0.col1 * col0 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( ( + col2 ) AS REAL ) + cor0.col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
query I rowsort
SELECT col2 + col0 + + col2 AS col1 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 + col1 + col2 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT - 77 * col1 AS col2 FROM tab1
----
-1001
-2002
-770
query I rowsort
SELECT ALL + 95 * + col0 FROM tab1 AS cor0
----
285
6080
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + col1 col0 FROM tab2 AS cor0
----
55
58
85
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT DISTINCT - - col1 * col0 + cor0.col1 * col1 + col1 DIV + col2 FROM tab0 cor0
----
12901
16381
9462
skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT - - col1 * col0 + cor0.col1 * col1 + col1 / + col2 FROM tab0 cor0
----
12901
16381
9462
query I rowsort
SELECT col1 + 38 FROM tab2 AS cor0
----
55
69
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 51 + - cor0.col1 col1 FROM tab1 AS cor0
----
-179
-3274
-4093
query I rowsort
SELECT DISTINCT 62 + col0 * col0 * + ( - col2 + + col2 * col2 ) FROM tab0 AS cor0
----
52611344
608318
62
query I rowsort
SELECT DISTINCT - + 40 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT ALL + + col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 40 ) + - col0 col1 FROM tab2 AS cor0
----
-118
-119
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT DISTINCT - col0 + col0 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - col0 + col0 + - col2 / - col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL 21 * + tab0.col0 FROM tab0
----
1869
504
735
query I rowsort
SELECT + 75 AS col1 FROM tab0
----
75
75
75
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 74 AS col0 FROM tab1 cor0
----
-74
-74
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2885
SELECT CAST( NULL AS SIGNED ) + - 71 / + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2885
SELECT CAST ( NULL AS INTEGER ) + - 71 / + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 25 FROM tab1
----
25
25
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * col2 - col2 col2 FROM tab0
----
3234
8036
98
query I rowsort
SELECT DISTINCT + - col0 + + 70 AS col1 FROM tab2 AS cor0
----
-8
-9
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT DISTINCT + col1 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 95 * col2 col0 FROM tab1 AS cor0
----
-5184
-5472
-9216
query I rowsort
SELECT ALL col0 + - 37 * col0 FROM tab2 AS cor0
----
-252
-2808
-2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col1 + - col0 col1 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - col2 - - 38 AS col0 FROM tab2 AS cor0
----
0
11
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT - col1 + col0 + + cor0.col0 DIV col0 AS col1 FROM tab2 cor0
----
-23
20
63
skipif mysql # not compatible
query I rowsort label-2894
SELECT - col1 + col0 + + cor0.col0 / col0 AS col1 FROM tab2 cor0
----
-23
20
63
query I rowsort
SELECT DISTINCT + col0 * - 26 + + col1 AS col2 FROM tab1 AS cor0
----
-1654
-2067
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT DISTINCT + + col2 + - CAST( col1 AS SIGNED ) DIV col1 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + + col2 + - CAST ( col1 AS INTEGER ) / col1 FROM tab0 cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( + 36 ) col2 FROM tab2 AS cor0
----
1116
2124
612
onlyif mysql # use DIV operator for integer division
query I rowsort label-2899
SELECT tab2.col2 DIV - col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2899
SELECT tab2.col2 / - col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL col0 * + col1 - - col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT 16 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT DISTINCT col1 - + col1 DIV 65 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT col1 - + col1 / 65 AS col0 FROM tab1
----
10
13
26
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT DISTINCT tab2.col0 * - tab2.col1 * col0 + + col2 * - col0 FROM tab2
----
-109099
-1708
-360984
query I rowsort
SELECT col0 + + tab0.col0 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT cor0.col0 * ( ( + col1 ) ) - cor0.col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT ALL + + col1 DIV 12 + col1 AS col2 FROM tab0 AS cor0
----
105
93
98
skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL + + col1 / 12 + col1 AS col2 FROM tab0 AS cor0
----
105
93
98
query I rowsort
SELECT + col2 + - ( - col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - col2 * + ( - cor0.col2 ) * col1 + col1 + col1 FROM tab2 AS cor0
----
22661
24582
40002
query I rowsort
SELECT - col2 - ( col2 * col0 ) FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT col1 + - 88 FROM tab2 AS cor0
----
-29
-57
-71
query I rowsort
SELECT ALL + 69 * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b3ca073f7dfc7033ccbb2e2cf6ac7ec6
query I rowsort
SELECT col0 + 22 AS col0 FROM tab0
----
111
46
57
query I rowsort
SELECT + - col1 * ( - col0 ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col2 * cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL col0 + 58 AS col0 FROM tab1
----
122
138
61
query I rowsort
SELECT ALL col0 * col0 + - 97 * col0 FROM tab1
----
-1360
-2112
-282
query I rowsort
SELECT ALL tab1.col0 + 98 FROM tab1
----
101
162
178
query I rowsort
SELECT - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( - col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col0 * 4 + + 86 FROM tab1
----
-170
-234
74
query I rowsort
SELECT ( + 46 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT + col2 DIV + col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2923
SELECT + col2 / + col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT - col1 * 54 AS col2 FROM tab1
----
-1404
-540
-702
query I rowsort
SELECT - cor0.col2 + 18 AS col1 FROM tab1 AS cor0
----
-36
-39
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT + ( col1 ) * + col2 + + col0 * col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT DISTINCT - - col1 DIV col2 + - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - - col1 / col2 + - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab2 AS cor0
----
86
query I rowsort
SELECT + col2 + - cor0.col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 92 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT col2 * 86 + - col1 * - col0 * 72 FROM tab2 AS cor0
----
17946
333580
99964
query I rowsort
SELECT 24 AS col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT 81 FROM tab0 cor0
----
81
81
81
query I rowsort
SELECT DISTINCT 44 * + col1 - - col0 * col2 * cor0.col0 FROM tab1 AS cor0
----
1630
233912
614972
query I rowsort
SELECT DISTINCT - - ( col0 ) * + col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - ( 23 ) AS col0 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + 36 + + 69 AS col0 FROM tab2 AS cor0
----
105
query I rowsort
SELECT DISTINCT - - col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - col2 + + col2 * - ( + 9 * - col2 ) FROM tab1 AS cor0
----
26190
29184
82848
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT + + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2945
SELECT + + col2 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - col1 * - col2 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - col2 + - col1 * col0 AS col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - 92 + col1 AS col2 FROM tab1 AS cor0
----
-66
-79
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT - + col2 * col2 DIV col0 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-2954
SELECT - + col2 * col2 / col0 FROM tab0 AS cor0
----
-45
-75
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT DISTINCT - col1 * col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - col1 * col1 / + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - - 72 AS col1 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col2 + - col0 + + 42 FROM tab1 AS cor0
----
35
58
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2959
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 + 4 * + col2 FROM tab2 AS cor0
----
130
135
190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2961
SELECT DISTINCT - - col2 + + CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - - col2 + + CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 - + col1 * col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + cor0.col0 + - 66 * cor0.col1 + - col0 FROM tab1 AS cor0
----
-1716
-660
-858
query I rowsort
SELECT + col0 + - col1 * cor0.col2 * col0 FROM tab0 cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * - col1 - cor0.col2 col0 FROM tab0 cor0
----
-7773
-8272
-8731
query I rowsort
SELECT ( + col1 ) * 45 * + col2 + cor0.col2 FROM tab2 AS cor0
----
29108
37692
69056
query I rowsort
SELECT col2 * col2 + + ( + col1 * cor0.col1 ) AS col1 FROM tab0 AS cor0
----
15005
8485
9410
query I rowsort
SELECT ALL 19 AS col1 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL + 76 + tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 507c5993ea173f014f01821c8f09f002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2972
SELECT ALL CAST( col0 * col0 AS SIGNED ) + + 28 AS col0 FROM tab0
----
1253
604
7949
skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL CAST ( col0 * col0 AS INTEGER ) + + 28 AS col0 FROM tab0
----
1253
604
7949
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT DISTINCT + col1 DIV col0 AS col2 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + col1 / col0 AS col2 FROM tab2
----
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT DISTINCT + - col1 * + col1 * + ( - col1 ) + CAST( NULL AS SIGNED ) * + col2 + - cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + - col1 * + col1 * + ( - col1 ) + CAST ( NULL AS INTEGER ) * + col2 + - cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col2 * 97 * + 70 FROM tab1 AS cor0
----
366660
387030
651840
query I rowsort
SELECT - - cor0.col0 * + col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - + 72 + + 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-53
query I rowsort
SELECT + cor0.col0 * col1 - - 56 * col1 FROM tab0 AS cor0
----
13195
6880
8827
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT + col2 + + col0 DIV ( col1 ) FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-2979
SELECT + col2 + + col0 / ( col1 ) FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT + 33 * cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f5f1340ad942041cc6cc4e0c6d287040
query I rowsort
SELECT ALL - ( - 96 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT DISTINCT - tab1.col0 * + 72 FROM tab1
----
-216
-4608
-5760
query I rowsort
SELECT DISTINCT + 26 FROM tab0, tab0 AS cor0
----
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL 86 + - 90 FROM tab2 AS cor0
----
-4
-4
-4
query I rowsort
SELECT DISTINCT - 44 FROM tab0, tab2 AS cor0
----
-44
query I rowsort
SELECT ALL col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - cor0.col0 * 7 AS col1 FROM tab2 AS cor0
----
-49
-546
-553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab2
----
-26
-27
-38
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT DISTINCT 14 * tab2.col2 AS col1 FROM tab2
----
364
378
532
query I rowsort
SELECT ( ( col2 ) ) * - 30 AS col0 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT col1 * - col0 - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL + col2 * col2 - + col1 * + col2 FROM tab2
----
-108
-858
798
query I rowsort
SELECT ALL ( cor0.col0 + + 93 ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7042237e42519838c793372854b26963
query I rowsort
SELECT col2 * col1 + + ( - col2 ) * tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + + 75 FROM tab2 AS cor0
----
75
query I rowsort
SELECT ALL - 30 * col1 AS col0 FROM tab1 cor0
----
-300
-390
-780
query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab1 AS cor0
----
7
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL - 17 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT - 90 * + col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT 80 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3006
SELECT col2 + + CAST( col1 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif mysql # not compatible
query I rowsort label-3006
SELECT col2 + + CAST ( col1 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col2 * ( ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3008
SELECT - tab0.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3008
SELECT - tab0.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col0 + - 56 * - tab1.col1 FROM tab1
----
1459
624
808
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL - tab0.col2 + ( - 94 + col0 ) DIV - col0 FROM tab0
----
-31
-82
0
skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - tab0.col2 + ( - 94 + col0 ) / - col0 FROM tab0
----
-31
-82
0
query I rowsort
SELECT ALL 39 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3012
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + col0 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT DISTINCT - col0 + ( cor0.col2 ) FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - col0 ) + col0 col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 * - 14 AS col0 FROM tab1 AS cor0
----
-204
-262
-367
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 5 ) col2 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + col2 + 24 AS col0 FROM tab0 cor0
----
106
25
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 69 * - col1 col2 FROM tab1 AS cor0
----
-1794
-690
-897
query I rowsort
SELECT + col2 * - 94 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 15 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT DISTINCT + cor0.col2 + - 41 FROM tab1, tab0, tab1 AS cor0
----
13
16
55
query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + - col0 * - cor0.col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT - + col1 + - col0 DIV - ( - col0 * col2 ) FROM tab0 AS cor0
----
-86
-91
-98
skipif mysql # not compatible
query I rowsort label-3031
SELECT - + col1 + - col0 / - ( - col0 * col2 ) FROM tab0 AS cor0
----
-86
-91
-98
query I rowsort
SELECT ALL cor0.col0 + 28 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 76c7cece6933bd75b139fd0465fcd36b
query I rowsort
SELECT ALL 10 + col0 * col2 FROM tab1
----
172
3658
7690
query I rowsort
SELECT ALL tab1.col2 + col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - col2 * - cor0.col2 + col2 * 43 FROM tab2 AS cor0
----
190
432
442
query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - ( col1 ) + ( - 17 ) FROM tab0 AS cor0
----
-103
-108
-114
onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT DISTINCT - col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT - col1 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3040
SELECT - col1 / + col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - ( cor0.col1 ) + 31 AS col0 FROM tab2 cor0
----
-28
0
14
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + - col1 + - 95 * col2 AS col2 FROM tab1 cor0
----
-5156
-5425
-9133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3044
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 + col1 AS col2 FROM tab0 cor0
----
2
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3046
SELECT DISTINCT - col1 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - col1 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT + col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-3047
SELECT + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * ( col0 + col0 ) AS col0 FROM tab1 AS cor0
----
1280
156
2080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3049
SELECT col2 * - CAST( + col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-3049
SELECT col2 * - CAST ( + col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - 56 col1 FROM tab0 AS cor0
----
-138
-57
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT + col0 * CAST( + 46 * col2 AS SIGNED ) FROM tab1 cor0
----
167808
353280
7452
skipif mysql # not compatible
query I rowsort label-3051
SELECT + col0 * CAST ( + 46 * col2 AS INTEGER ) FROM tab1 cor0
----
167808
353280
7452
query I rowsort
SELECT ALL - col1 + + 37 FROM tab0 AS cor0
----
-49
-54
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT ALL col1 + + cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL col1 + + cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ALL - cor0.col0 * - ( col2 ) * cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT cor0.col2 * + 41 AS col0 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT ALL - - cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3057
SELECT ALL 24 * col1 / CAST( NULL AS SIGNED ) + col2 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL 24 * col1 / CAST ( NULL AS INTEGER ) + col2 + - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * col0 + 89 AS col2 FROM tab1
----
1129
167
729
query I rowsort
SELECT - col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - col0 + col0 * col0 * - col1 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 11 * + tab0.col2 + - 14 AS col2 FROM tab0
----
-3
349
888
query I rowsort
SELECT DISTINCT + ( - 73 ) * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT - + col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + + 96 + 72 + col0 FROM tab2 AS cor0
----
175
246
247
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3067
SELECT ALL + col1 + + cor0.col1 + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + col1 + + cor0.col1 + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - ( + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 40 * + col1 + col1 * - 44 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT 43 * - col1 FROM tab2 AS cor0
----
-1333
-2537
-731
query I rowsort
SELECT - 74 * - col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-11988
-269952
-568320
query I rowsort
SELECT + + 81 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - col1 + col1 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT ALL - col2 * 46 + col1 FROM tab1 AS cor0
----
-2458
-2612
-4403
query I rowsort
SELECT DISTINCT + col2 + 97 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2 AS cor0
----
38
query I rowsort
SELECT - + col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL ( + 66 ) + cor0.col1 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT 55 + - col1 FROM tab0 AS cor0
----
-31
-36
-42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3082
SELECT DISTINCT - 7 + + col0 * + CAST( NULL AS SIGNED ) * - 38 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - 7 + + col0 * + CAST ( NULL AS INTEGER ) * - 38 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + cor0.col1 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL - 9 + col1 AS col0 FROM tab1 cor0
----
1
17
4
query I rowsort
SELECT - 34 + col1 FROM tab2
----
-17
-3
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT DISTINCT + CAST( col0 * - col1 AS SIGNED ) + - ( - 43 + + col1 ) AS col2 FROM tab0
----
-2107
-3449
-8147
skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + CAST ( col0 * - col1 AS INTEGER ) + - ( - 43 + + col1 ) AS col2 FROM tab0
----
-2107
-3449
-8147
query I rowsort
SELECT ALL 58 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3089
SELECT col1 DIV - col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-3089
SELECT col1 / - col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT ALL + 75 * - col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT DISTINCT + - 79 AS col0 FROM tab2 AS cor0
----
-79
query I rowsort
SELECT ALL - 45 * - col2 * - 28 FROM tab2 AS cor0
----
-32760
-34020
-47880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + 12 FROM tab1
----
12
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col2 FROM tab1, tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 1 FROM tab2
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT DISTINCT CAST( 91 * + col2 AS SIGNED ) col1 FROM tab2
----
2366
2457
3458
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT CAST ( 91 * + col2 AS INTEGER ) col1 FROM tab2
----
2366
2457
3458
query I rowsort
SELECT ( 5 ) + tab0.col2 FROM tab0
----
38
6
87
query I rowsort
SELECT 59 FROM tab2
----
59
59
59
query I rowsort
SELECT ALL + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT + col2 - cor0.col1 DIV 20 AS col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-3101
SELECT + col2 - cor0.col1 / 20 AS col2 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT ALL - + cor0.col0 * col1 + 7 FROM tab1 AS cor0
----
-1033
-633
-71
query I rowsort
SELECT DISTINCT ( + col0 ) - - cor0.col2 * ( - col0 ) * + col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL col2 * - 66 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT + col0 + 16 FROM tab2 AS cor0
----
23
94
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT + cor0.col1 DIV col0 col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3106
SELECT + cor0.col1 / col0 col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + col0 * 8 FROM tab2 cor0
----
56
624
632
query I rowsort
SELECT DISTINCT - - cor0.col2 * - 52 * col1 FROM tab1 AS cor0
----
-29640
-64896
-73008
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) * + tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - ( 15 ) AS col2 FROM tab2
----
-15
-15
-15
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778
query I rowsort
SELECT ALL + + col1 - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + cor0.col1 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 * 75 FROM tab0 AS cor0
----
-1800
-2625
-6675
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3120
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) * col0 + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) * col0 + col2 FROM tab2
----
NULL
query I rowsort
SELECT - cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT 33 DIV + col1 + 70 FROM tab2 AS cor0
----
70
71
71
skipif mysql # not compatible
query I rowsort label-3122
SELECT 33 / + col1 + 70 FROM tab2 AS cor0
----
70
71
71
query I rowsort
SELECT 17 FROM tab1, tab1 cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT col2 + - col2 * col2 AS col1 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT 83 FROM tab1, tab1 cor0, tab2 AS cor1
----
83
query I rowsort
SELECT DISTINCT col1 * + col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + 96 + - col2 AS col1 FROM tab0
----
14
63
95
query I rowsort
SELECT tab2.col2 + - col2 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - tab2.col2 ) col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + 34 + + col1 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT ALL + 58 * + col0 - + col1 * - col1 FROM tab2 AS cor0
----
1367
4871
8005
query I rowsort
SELECT DISTINCT + 55 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT + col2 + - CAST( 55 + col1 * + 0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-17
-28
-29
skipif mysql # not compatible
query I rowsort label-3134
SELECT + col2 + - CAST ( 55 + col1 * + 0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-17
-28
-29
query I rowsort
SELECT DISTINCT - col0 + tab0.col1 AS col1 FROM tab0
----
2
62
query I rowsort
SELECT col2 * col2 + 13 FROM tab2
----
1457
689
742
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 + 22 * - col2 AS col2 FROM tab1 AS cor0
----
-1185
-1190
-2032
query I rowsort
SELECT ALL + col1 * 33 FROM tab0 AS cor0
----
2838
3003
3201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT + CAST( col0 AS SIGNED ) * col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-3141
SELECT + CAST ( col0 AS INTEGER ) * col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT cor0.col2 * + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 819103d3cf87b5ea7ab7d6e1018478a0
query I rowsort
SELECT col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 10 ) col1 FROM tab0
----
-10
query I rowsort
SELECT + 68 + col2 FROM tab1 AS cor0
----
122
125
164
query I rowsort
SELECT 56 * - col2 FROM tab1
----
-3024
-3192
-5376
query I rowsort
SELECT 68 - 87 FROM tab1
----
-19
-19
-19
query I rowsort
SELECT ALL - col0 * - col2 - + col1 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT col0 + - col2 - col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - - col2 + + col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT cor0.col1 * + col0 * + 92 + col2 * col2 AS col1 FROM tab1 AS cor0
----
10092
104896
62129
query I rowsort
SELECT col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3153
SELECT 89 - + col2 * CAST( col1 AS SIGNED ) col2 FROM tab1
----
-1159
-1315
-481
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3153
SELECT 89 - + col2 * CAST ( col1 AS INTEGER ) col2 FROM tab1
----
-1159
-1315
-481
query I rowsort
SELECT 44 + col1 AS col1 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT 78 + col2 FROM tab1 AS cor0
----
132
135
174
query I rowsort
SELECT + + 66 + - cor0.col1 FROM tab2 AS cor0
----
35
49
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * - col1 col0 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT - col0 * col2 + - 5 FROM tab1 AS cor0
----
-167
-3653
-7685
query I rowsort
SELECT ALL - col1 + col0 * - col0 + col1 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3160
SELECT DISTINCT - col2 DIV + col2 AS col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - col2 / + col2 AS col2 FROM tab1
----
-1
query I rowsort
SELECT + col2 * tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col1 * col0 + col1 * + col0 + + col1 AS col2 FROM tab2
----
2703
465
9263
query I rowsort
SELECT + + col0 + col2 * col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 4 + col2 FROM tab0 AS cor0
----
37
5
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * + col2 col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col1 - - col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * - col2 + col1 * + col0 FROM tab1
----
-2609
-2838
-8176
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col1 / - col2 + col1 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT ALL + col2 * col2 * CAST( - ( + col0 ) * + col0 AS SIGNED ) + col0 FROM tab1
----
-13307840
-26241
-58982320
skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + col2 * col2 * CAST ( - ( + col0 ) * + col0 AS INTEGER ) + col0 FROM tab1
----
-13307840
-26241
-58982320
query I rowsort
SELECT ALL - - col2 * + col0 + ( col2 ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT ALL - - cor0.col2 * + col0 + CAST( NULL AS DECIMAL ) + + ( + col2 + - 25 ) * - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - - cor0.col2 * + col0 + CAST ( NULL AS REAL ) + + ( + col2 + - 25 ) * - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - 91 + col0 * + col2 AS col1 FROM tab2 cor0
----
1937
2911
98
query I rowsort
SELECT DISTINCT + ( col1 ) * 52 AS col2 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT - cor0.col2 + col2 * - col1 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col2 + + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col0 + + col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - tab1.col1 * - col1 col0 FROM tab1
----
43
622
73
query I rowsort
SELECT ALL col2 - - col2 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 * + col2 * + col1 + col0 + col2 AS col0 FROM tab1
----
100016
36601
4269
query I rowsort
SELECT DISTINCT tab1.col2 - + col1 FROM tab1
----
28
47
83
query I rowsort
SELECT col1 + + tab0.col2 AS col1 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT + col0 DIV + tab1.col1 AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3184
SELECT + col0 / + tab1.col1 AS col2 FROM tab1
----
0
6
6
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT col0 + col1 + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----
query I rowsort
SELECT + cor0.col2 + + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883
query I rowsort
SELECT ALL - cor0.col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----
query I rowsort
SELECT ALL + col2 * - col2 + + col0 AS col0 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT tab0.col2 + - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - col2 / + tab2.col1 AS col1 FROM tab2 WHERE NULL < - col1
----
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + tab2.col0 * + tab2.col0 AS col2 FROM tab2
----
49
6084
6241
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= col2
----
query I rowsort
SELECT col1 - + col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - col0 - col1 AS col0 FROM tab1
----
-29
-74
-93
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 > NULL
----
query I rowsort
SELECT col2 FROM tab1 WHERE col0 * + col2 * col0 <= tab1.col1 * - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT - col1 DIV col0 AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3200
SELECT - col1 / col0 AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT col1 + tab2.col0 * col0 AS col0 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT - - col2 * 74 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT DISTINCT + - 80 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1454
566
757
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab2
----
16
16
16
query I rowsort
SELECT col0 * col0 + + col0 + 99 FROM tab1 AS cor0
----
111
4259
6579
onlyif mysql # use DIV operator for integer division
query I rowsort label-3208
SELECT - 88 + col0 * cor0.col1 DIV + col0 FROM tab2 cor0
----
-29
-57
-71
skipif mysql # not compatible
query I rowsort label-3208
SELECT - 88 + col0 * cor0.col1 / + col0 FROM tab2 cor0
----
-29
-57
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT - + 67 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-22
0
skipif mysql # not compatible
query I rowsort label-3209
SELECT - + 67 / col0 AS col2 FROM tab1 AS cor0
----
-1
-22
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - - 23 + + col0 FROM tab0 AS cor0
----
112
47
58
query I rowsort
SELECT + - ( + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT ALL - CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 92 * + col1 AS col2 FROM tab0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT ALL 43 DIV - col0 FROM tab1
----
-14
0
0
skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL 43 / - col0 FROM tab1
----
-14
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col0 FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT CAST( - col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3217
SELECT CAST ( - col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-3219
SELECT DISTINCT - col0 + + col2 + 61 DIV col0 FROM tab0 AS cor0
----
-33
-7
11
skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - col0 + + col2 + 61 / col0 FROM tab0 AS cor0
----
-33
-7
11
query I rowsort
SELECT col2 * ( col0 ) + + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col0 - - 83 FROM tab0 cor0
----
107
118
172
onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT col2 DIV col2 + col2 + - col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
58
73
98
skipif mysql # not compatible
query I rowsort label-3222
SELECT col2 / col2 + col2 + - col2 / - col0 AS col1 FROM tab1 AS cor0
----
58
73
98
query I rowsort
SELECT cor0.col1 * - ( col2 ) + + cor0.col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT - col0 * - 10 AS col2 FROM tab0 AS cor0
----
240
350
890
onlyif mysql # use DIV operator for integer division
query I rowsort label-3225
SELECT - col1 * col0 + - 55 DIV + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-3225
SELECT - col1 * col0 + - 55 / + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col0 + 47 + - 83 FROM tab1 AS cor0
----
-100
-116
-39
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 + CAST ( col2 AS REAL ) FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col1 * col2 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3230
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) * - col0 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) * - col0 * col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT col0 + CAST( NULL AS DECIMAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3231
SELECT col0 + CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + 93 - - 35 AS col1 FROM tab1 AS cor0
----
182
185
224
query I rowsort
SELECT + tab1.col1 + col2 - + col0 * + 88 AS col1 FROM tab1
----
-184
-5565
-6931
onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT - col1 DIV 7 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3234
SELECT - col1 / 7 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-29
query I rowsort
SELECT 28 + col0 AS col0 FROM tab1 cor0
----
108
31
92
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0
query I rowsort
SELECT col0 * - col2 + 91 * col0 AS col0 FROM tab0 AS cor0
----
1392
3150
801
query I rowsort
SELECT col0 + 54 * - 9 * col2 FROM tab2 AS cor0
----
-12558
-13115
-18389
query I rowsort
SELECT DISTINCT - col0 * + col2 + - ( col1 ) + + 18 AS col0 FROM tab0 AS cor0
----
-114
-7371
-860
query I rowsort
SELECT DISTINCT + col0 + tab0.col2 + col1 * - col1 AS col1 FROM tab0 WHERE ( NOT NULL NOT IN ( tab0.col2 * - col1 + col2 ) AND NOT NULL = NULL ) AND NOT NULL IN ( + col1 )
----
query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1
----
-29
query I rowsort
SELECT - + 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT + - col1 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT col1 * 75 * - col1 FROM tab0
----
-554700
-621075
-705675
query I rowsort
SELECT DISTINCT col0 * 20 FROM tab1
----
1280
1600
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT ALL col1 DIV - col1 + + col2 AS col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL col1 / - col1 + + col2 AS col0 FROM tab2
----
25
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3247
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 72 + + col2 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 72 + + col2 AS col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 38 col2 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT DISTINCT - 9 FROM tab0, tab1 AS cor0
----
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT ALL - CAST( NULL AS SIGNED ) + + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - CAST ( NULL AS INTEGER ) + + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - col0 ) * - col0 * + col1 + + col1 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT ALL col1 * col1 * col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - 22 * + col0 FROM tab2 cor0
----
-154
-1716
-1738
query I rowsort
SELECT + col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 89 AS col2 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT ALL + tab2.col2 * ( col0 ) * tab2.col2 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT + col1 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col1 * - col1 + + 72 FROM tab0 AS cor0
----
7468
8353
9481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3260
SELECT + - col0 * - CAST( NULL AS SIGNED ) + - 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3260
SELECT + - col0 * - CAST ( NULL AS INTEGER ) + - 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT col1 + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3261
SELECT col1 + col1 / + col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + + cor0.col2 + - col0 * cor0.col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT - cor0.col0 * col1 + cor0.col0 * col2 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT - + col0 * 95 AS col1 FROM tab1 AS cor0
----
-285
-6080
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT - col1 + - CAST( - 0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3265
SELECT - col1 + - CAST ( - 0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + cor0.col1 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 83 + 77 * - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-118035
-49659
-64366
query I rowsort
SELECT ALL - 41 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT + + col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 30 + - 53 col0 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT cor0.col0 * + col2 * + col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 * col0 + + col1 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT + - col2 + cor0.col2 * + col1 * col2 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT + col0 * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * col1 * col0 FROM tab1 cor0
----
208
40950
83187
query I rowsort
SELECT - col2 * - col0 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + - col2 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / cor0.col2 NOT IN ( col0 ) OR NOT ( NULL ) NOT IN ( + cor0.col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT DISTINCT + + col1 * - cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + + col1 * - cor0.col1 / - col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + - col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3283
SELECT col0 / + cor0.col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - + col1 * + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col2 * col0 * col0 )
----
query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1 WHERE + col0 <> col2
----
54
57
96
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( - col1 ) <= ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT + col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3288
SELECT + col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col2 * col0 + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT + tab1.col2 * col2 * - col1 - - tab1.col1 AS col0 FROM tab1
----
-119795
-32480
-75790
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * col0 * + tab0.col0 AS col2 FROM tab0
----
118826
50625
727535
query I rowsort
SELECT ALL - col2 * col0 * col1 + + col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT - col2 - + col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL col0 + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT DISTINCT - cor0.col1 + + col2 DIV cor0.col2 AS col2 FROM tab0 cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - cor0.col1 + + col2 / cor0.col2 AS col2 FROM tab0 cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - 56 FROM tab2
----
-56
query I rowsort
SELECT - col0 * col1 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - col1 - tab2.col2 AS col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col1 - - col2 * + col0 AS col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT - col2 + col2 * col1 DIV + tab1.col2 AS col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-3305
SELECT - col2 + col2 * col1 / + tab1.col2 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 + col1 - col2 * + tab1.col0 AS col0 FROM tab1
----
-3581
-7571
-82
query I rowsort
SELECT DISTINCT col1 + col1 - + col1 AS col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT - col0 DIV - col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3308
SELECT - col0 / - col1 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab0.col0 col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col0 * + tab0.col1 - + col2 FROM tab0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT + col2 DIV col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3311
SELECT + col2 / col0 FROM tab2
----
0
0
3
query I rowsort
SELECT - + col1 - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 - col1 AS col0 FROM tab1
----
-1357
-1484
-637
onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT ALL - tab0.col1 - col2 DIV + col2 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - tab0.col1 - col2 / + col2 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + col1 + 11 FROM tab2 AS cor0
----
28
42
70
query I rowsort
SELECT ALL + 1 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab1
----
-1
query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT col1 + + 40 AS col1 FROM tab1
----
50
53
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT col1 * CAST( NULL AS SIGNED ) / - tab1.col1 + - col1 * + CAST( + col1 AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3323
SELECT col1 * CAST ( NULL AS INTEGER ) / - tab1.col1 + - col1 * + CAST ( + col1 AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + 92 AS col0 FROM tab0
----
116
127
181
query I rowsort
SELECT + col0 * + col1 + - col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + col2 + - 64 * - col1 AS col0 FROM tab2 AS cor0
----
1126
2011
3802
query I rowsort
SELECT ALL - col1 - 96 FROM tab0 AS cor0
----
-182
-187
-193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3328
SELECT ALL + col2 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + col2 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT CAST( ( + col0 ) AS SIGNED ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3330
SELECT CAST ( ( + col0 ) AS INTEGER ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - + 57 FROM tab0 cor0
----
-57
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - tab2.col0 * - col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 4 + - col1 + - col0 AS col2 FROM tab0
----
-106
-128
-176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
query I rowsort
SELECT ALL + col2 + - col1 * col1 AS col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT ALL + col1 + 29 AS col1 FROM tab2
----
46
60
88
query I rowsort
SELECT + 46 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - col1 + col1 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT col1 * col0 + + col2 * col0 * - col0 FROM tab0
----
-16944
-641423
2170
query I rowsort
SELECT DISTINCT + + col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - col0 - + col0 * + 83 AS col1 FROM tab2 AS cor0
----
-574
-6396
-6478
query I rowsort
SELECT DISTINCT cor0.col1 + col2 + + cor0.col0 AS col1 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT - - ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 31 - + col1 AS col2 FROM tab0 AS cor0
----
-55
-60
-66
query I rowsort
SELECT - 72 * + col0 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + - cor0.col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - - col1 + col2 * + 56 AS col1 FROM tab2 AS cor0
----
1515
1543
2145
query I rowsort
SELECT DISTINCT + - col2 * - col1 + 62 * - cor0.col1 FROM tab0 AS cor0
----
-2494
-5917
1820
query I rowsort
SELECT DISTINCT col2 * + col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * tab0.col1 col2 FROM tab0
----
6880
7280
7760
query I rowsort
SELECT DISTINCT ( - col2 + + col0 ) * - col0 * col1 FROM tab2
----
-239304
-55063
4340
query I rowsort
SELECT + 96 * - col1 + - col1 AS col1 FROM tab2 cor0
----
-1649
-3007
-5723
query I rowsort
SELECT - 62 * cor0.col2 + col0 FROM tab1 AS cor0
----
-3345
-3470
-5872
onlyif mysql # use DIV operator for integer division
query I rowsort label-3362
SELECT ALL - col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + col0 + - 99 AS col0 FROM tab1 AS cor0
----
-102
-163
-179
onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT ALL - col0 DIV - col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL - col0 / - col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - col0 * - ( + ( col2 ) ) FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 93 col1 FROM tab0 cor0
----
2232
3255
8277
query I rowsort
SELECT ALL + col2 + ( + col1 ) FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 18 col1 FROM tab1 AS cor0
----
180
234
468
query I rowsort
SELECT ALL + 20 FROM tab2
----
20
20
20
query I rowsort
SELECT col2 + - col1 * ( - 87 + + tab1.col0 ) FROM tab1
----
187
2238
287
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col2 FROM tab0, tab0 cor0
----
24
35
89
query I rowsort
SELECT col1 + 2 FROM tab2 cor0
----
19
33
61
query I rowsort
SELECT DISTINCT - col1 + 0 * col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3377
SELECT + CAST( NULL AS SIGNED ) + - 53 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3377
SELECT + CAST ( NULL AS INTEGER ) + - 53 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT ALL + - CAST( 17 AS SIGNED ) AS col0 FROM tab1 cor0
----
-17
-17
-17
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + - CAST ( 17 AS INTEGER ) AS col0 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT - 54 FROM tab2 AS cor0
----
-54
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
19
query I rowsort
SELECT - cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - + col1 + 46 + col1 AS col2 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT - col0 * col2 - + col1 * 11 FROM tab1 AS cor0
----
-3758
-448
-7823
query I rowsort
SELECT - + col0 + ( + col0 * ( ( col2 ) ) + col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - cor0.col1 * + col0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT - col2 * cor0.col2 + cor0.col2 - + 80 AS col0 FROM tab0 AS cor0
----
-1136
-6722
-80
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * - col2 + + cor0.col0 * - 57 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1929
-345228
-355053
onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT - ( - col2 ) DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3389
SELECT - ( - col2 ) / - col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3390
SELECT DISTINCT + tab0.col0 * col1 + col2 * col1 DIV - 9 AS col0 FROM tab0
----
1749
3385
7270
skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + tab0.col0 * col1 + col2 * col1 / - 9 AS col0 FROM tab0
----
1749
3385
7270
onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT DISTINCT - col2 * col2 DIV col0 col2 FROM tab1 AS cor0
----
-115
-50
-972
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - col2 * col2 / col0 col2 FROM tab1 AS cor0
----
-115
-50
-972
query I rowsort
SELECT + - ( col1 ) + + 90 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT ALL 53 FROM tab2, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL + 21 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT ALL 40 * col1 + col1 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * col1 + col2 + - tab2.col1 * + 16 AS col1 FROM tab2
----
2563
492
55
query I rowsort
SELECT ALL - ( + 4 ) FROM tab0 cor0
----
-4
-4
-4
query I rowsort
SELECT ALL + 80 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT - + col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - cor0.col0 * + 26 + - col1 AS col1 FROM tab0 AS cor0
----
-1007
-2405
-710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col0 * - col1 col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + col1 + 36 * + col1 FROM tab2 cor0
----
1147
2183
629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + + col1 col0 FROM tab0 AS cor0
----
81
86
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * tab1.col0 + cor0.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0ab33aad61d16a6e43f57540c8b1d7e6
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT ( + 19 ) FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT col2 + 16 FROM tab0 AS cor0
----
17
49
98
query I rowsort
SELECT - - cor1.col0 * 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6d325149e90af2faf0c31f064e65c424
query I rowsort
SELECT DISTINCT + 4 * - col2 FROM tab1
----
-216
-228
-384
query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL 46 AS col0 FROM tab1 AS cor0
----
46
46
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 * + ( cor0.col1 ) col0 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - tab1.col2 * 86 FROM tab1
----
-4644
-4902
-8256
query I rowsort
SELECT + cor0.col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - - cor0.col1 + + col1 AS col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT col2 DIV ( + col2 ) col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3420
SELECT col2 / ( + col2 ) col0 FROM tab0
----
1
1
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT - col1 * + col0 + + col0 - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 30 + + col1 * col1 + - col0 * + 52 col2 FROM tab1 AS cor0
----
-260
-3528
-4381
query I rowsort
SELECT ALL col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * ( - 59 ) * cor0.col0 FROM tab2 AS cor0
----
11151
119652
177118
query I rowsort
SELECT ALL + col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col2 + + 82 * 7 - + col2 FROM tab1 AS cor0
----
382
460
466
onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT - col0 DIV + col0 + + cor0.col0 - col2 FROM tab0 cor0
----
-10
33
6
skipif mysql # not compatible
query I rowsort label-3428
SELECT - col0 / + col0 + + cor0.col0 - col2 FROM tab0 cor0
----
-10
33
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT + col2 + col1 + cor0.col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
115
73
80
skipif mysql # not compatible
query I rowsort label-3429
SELECT + col2 + col1 + cor0.col0 / + col1 AS col1 FROM tab1 AS cor0
----
115
73
80
query I rowsort
SELECT ALL + + 61 * cor0.col1 + + col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-455
182
40
query I rowsort
SELECT ALL + ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - + col2 * col2 - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT - col2 * - 78 AS col1 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT ALL + 85 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1258
-132
-4517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 85 ) + - col1 col1 FROM tab1 cor0
----
59
72
75
query I rowsort
SELECT ALL 97 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
26
27
38
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2, tab2
----
13122 values hashing to 64149d87168afa1efb910e2303950f1c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 col0 FROM tab1 AS cor0
----
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col1 + + cor0.col2 * col0 * cor0.col1 col0 FROM tab2 AS cor0
----
-16740
26486
79768
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT + 11 DIV + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c4b0583375419e71eefacba50f615e31
skipif mysql # not compatible
query I rowsort label-3442
SELECT + 11 / + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c4b0583375419e71eefacba50f615e31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT col1 DIV + 67 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3443
SELECT col1 / + 67 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - 53 * + col1 AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT 83 + + col0 * col2 AS col1 FROM tab1
----
245
3731
7763
query I rowsort
SELECT col0 * + col1 * + col0 + 93 * col0 AS col1 FROM tab0
----
122080
51768
729088
query I rowsort
SELECT DISTINCT + 35 FROM tab1, tab0 AS cor0, tab0 cor1
----
35
query I rowsort
SELECT ( 55 + + col2 ) FROM tab2
----
81
82
93
query I rowsort
SELECT - - col1 + + col2 * 83 * 63 FROM tab0 AS cor0
----
172643
428869
5326
query I rowsort
SELECT ALL + col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col2 + - col1 AS col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT - 42 FROM tab1
----
-42
-42
-42
query I rowsort
SELECT tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3454
SELECT DISTINCT + col2 + CAST( + cor0.col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + col2 + CAST ( + cor0.col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT col0 * col2 * - 57 FROM tab0 AS cor0
----
-1995
-415986
-45144
onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT ALL - - col2 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - - col2 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col0 + 90 FROM tab1 AS cor0
----
154
170
93
query I rowsort
SELECT ALL - col2 * 58 FROM tab0 cor0
----
-1914
-4756
-58
query I rowsort
SELECT DISTINCT - col1 + - 15 FROM tab0 AS cor0
----
-101
-106
-112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col0 FROM tab1
----
38
query I rowsort
SELECT - 95 * col0 + col0 AS col1 FROM tab0
----
-2256
-3290
-8366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 - col0 col0 FROM tab0
----
-35
19
30
query I rowsort
SELECT 27 + col2 FROM tab0
----
109
28
60
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT DISTINCT + 48 FROM tab2
----
48
query I rowsort
SELECT ALL + 50 * col0 * + 55 FROM tab0
----
244750
66000
96250
query I rowsort
SELECT ALL - 74 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28
query I rowsort
SELECT 93 - col0 FROM tab0
----
4
58
69
query I rowsort
SELECT DISTINCT + tab0.col1 * + 96 FROM tab0
----
8256
8736
9312
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT ALL + cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + cor0.col2 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT 41 FROM tab2 AS cor0
----
41
query I rowsort
SELECT + 58 + col2 AS col0 FROM tab1 AS cor0
----
112
115
154
query I rowsort
SELECT col0 + col1 * + col0 + - cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - ( + col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * 49 + + cor0.col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) + + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - ( - 62 ) + col1 FROM tab1 cor0
----
72
75
88
query I rowsort
SELECT DISTINCT - 51 * - 88 AS col2 FROM tab1 AS cor0
----
4488
onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT DISTINCT - col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab2 AS cor0
----
-53
query I rowsort
SELECT + col1 * col1 + + col2 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT ALL - + CAST( NULL AS SIGNED ) + col1 * col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - + CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col2 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 87 * - cor0.col1 + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT DISTINCT + cor1.col0 * cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
4096
6400
9
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL ( - col2 ) * col0 * + ( - col1 ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT 87 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3495
SELECT DISTINCT col1 DIV col2 col2 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT col1 / col2 col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL - col0 * + col2 + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col0 + + 67 * + col0 FROM tab2 AS cor0
----
476
5304
5372
query I rowsort
SELECT DISTINCT col1 + col1 * + col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
70
query I rowsort
SELECT + cor0.col1 * cor0.col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + 47 * col2 AS col1 FROM tab1 cor0
----
2484
2622
4416
query I rowsort
SELECT DISTINCT - - col0 * - 24 FROM tab1 AS cor0
----
-1536
-1920
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * col1 - - col0 col1 FROM tab0
----
-7286
-8101
-9277
query I rowsort
SELECT col0 + + tab2.col1 + + col2 AS col0 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col0 + + 11 AS col0 FROM tab1
----
-53
-69
8
query I rowsort
SELECT ALL + tab2.col0 * - 7 * - 31 + - col1 * 69 AS col0 FROM tab2
----
-620
12855
15970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT DISTINCT - col0 * CAST( NULL AS DECIMAL ) + - 58 col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - col0 * CAST ( NULL AS REAL ) + - 58 col2 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3510
SELECT col0 DIV 11 FROM tab2 AS cor0
----
0
7
7
skipif mysql # not compatible
query I rowsort label-3510
SELECT col0 / 11 FROM tab2 AS cor0
----
0
7
7
query I rowsort
SELECT - - ( - 66 ) * col1 FROM tab1 cor0
----
-1716
-660
-858
query I rowsort
SELECT - col1 + - ( cor0.col2 ) * - ( 63 ) * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-183680
-204640
-580525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 24 + tab1.col0 col2 FROM tab1
----
1299
1432
2384
query I rowsort
SELECT DISTINCT col0 + col2 * col2 * + col1 AS col1 FROM tab0
----
132
611973
93678
query I rowsort
SELECT ALL col0 + - 64 AS col1 FROM tab2
----
-57
14
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT ALL 48 DIV 90 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 48 / 90 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT ALL - col1 * - col1 + - 51 DIV + col2 col0 FROM tab0
----
7395
8281
9358
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - col1 * - col1 + - 51 / + col2 col0 FROM tab0
----
7395
8281
9358
onlyif mysql # use DIV operator for integer division
query I rowsort label-3518
SELECT ALL - col0 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - col0 / - col2 col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3519
SELECT ALL col0 * - 36 + + col1 DIV + tab1.col0 FROM tab1
----
-100
-2304
-2880
skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL col0 * - 36 + + col1 / + tab1.col0 FROM tab1
----
-100
-2304
-2880
query I rowsort
SELECT ALL - col2 + ( col2 * - col2 + col0 ) FROM tab2
----
-1403
-624
-749
query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab0, tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT + CAST( NULL AS SIGNED ) * + 5 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3523
SELECT + CAST ( NULL AS INTEGER ) * + 5 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - ( col1 ) ) + + col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT col0 DIV col0 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-3525
SELECT col0 / col0 + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT + 2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3527
SELECT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3527
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
55
query I rowsort
SELECT ( - col0 ) * col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT - CAST( NULL AS SIGNED ) * - 5 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3530
SELECT - CAST ( NULL AS INTEGER ) * - 5 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab2
----
40
40
40
query I rowsort
SELECT col2 * ( col2 + + ( col1 ) * col2 ) AS col2 FROM tab0
----
618608
94743
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT DISTINCT 86 DIV col1 AS col2 FROM tab2
----
1
2
5
skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT 86 / col1 AS col2 FROM tab2
----
1
2
5
query I rowsort
SELECT - ( + col2 ) * + tab1.col0 * + ( - col0 * + col1 ) AS col0 FROM tab1
----
12636
2334720
7987200
query I rowsort
SELECT ALL col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2
----
60
query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1
----
35
query I rowsort
SELECT col2 * - tab0.col2 + + col2 * - 9 AS col0 FROM tab0
----
-10
-1386
-7462
query I rowsort
SELECT - tab1.col1 + - col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + - col0 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - - 63 + + col1 FROM tab2 AS cor0
----
122
80
94
query I rowsort
SELECT ALL cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col1 + + 12 * 86 AS col0 FROM tab1 AS cor0
----
1006
1019
1022
onlyif mysql # use DIV operator for integer division
query I rowsort label-3544
SELECT DISTINCT + + col1 + + col2 DIV 12 FROM tab1 AS cor0
----
14
21
30
skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + + col1 + + col2 / 12 FROM tab1 AS cor0
----
14
21
30
query I rowsort
SELECT + col2 * 30 AS col2 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT cor0.col2 * col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL - + col1 * + ( + cor0.col1 ) AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * - col1 - + col1 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT col1 * 61 FROM tab1 cor0
----
1586
610
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3551
SELECT col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + 23 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT + + 26 DIV - col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3553
SELECT + + 26 / - col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT 42 * cor0.col1 AS col1 FROM tab0 cor0
----
3612
3822
4074
query I rowsort
SELECT + col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab2 AS cor0
----
27
query I rowsort
SELECT - col2 * + col0 * - 90 + + col2 FROM tab1 cor0
----
14634
328377
691296
query I rowsort
SELECT - 69 + - col0 * col0 + tab2.col0 FROM tab2
----
-111
-6075
-6231
query I rowsort
SELECT + 57 + col2 FROM tab1 AS cor0
----
111
114
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3560
SELECT DISTINCT cor0.col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT cor0.col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 * 43 AS col0 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT - col1 * - ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 22 AS col1 FROM tab0
----
22
22
22
query I rowsort
SELECT ALL + 81 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT - + 90 AS col0 FROM tab1, tab0, tab0 AS cor0
----
-90
query I rowsort
SELECT DISTINCT ( + col0 ) * tab1.col2 + col2 - col1 AS col0 FROM tab1
----
190
3695
7763
query I rowsort
SELECT ALL - 48 * - tab0.col0 FROM tab0
----
1152
1680
4272
query I rowsort
SELECT 55 * + col1 AS col2 FROM tab2
----
1705
3245
935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT - col0 * - 14 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT ALL - ( cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * ( 48 ) * - col2 + - 56 AS col1 FROM tab2
----
-144152
-9128
-97400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT col0 DIV 85 AS col1 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT col0 / 85 AS col1 FROM tab0
----
0
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT CAST( - 99 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
skipif mysql # not compatible
query I rowsort label-3577
SELECT CAST ( - 99 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-2574
-2673
-3762
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0, tab1 cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT DISTINCT - 71 FROM tab0, tab0 cor0
----
-71
query I rowsort
SELECT ALL col2 * - col0 + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-2132
-223
-3119
query I rowsort
SELECT ALL col0 * - col2 + col1 * - ( + col2 ) - - col2 * 84 FROM tab1 AS cor0
----
-864
2970
570
query I rowsort
SELECT DISTINCT - 32 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-8
3
57
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + + col0 * CAST ( - col1 * - col0 AS REAL ) FROM tab0 cor0
----
118790
49512
720722
query I rowsort
SELECT ALL + - col1 + col0 + cor0.col0 FROM tab2 AS cor0
----
-17
141
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - + col0 * + col2 col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col0 + 58 AS col2 FROM tab0
----
-31
23
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif mysql # not compatible
query I rowsort label-3590
SELECT CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 65 FROM tab0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 - + col1 col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT col0 + - col2 * - col0 * + 50 + - col0 * 44 * col0 AS col0 FROM tab2 cor0
----
-124425
-166218
7301
query I rowsort
SELECT - cor0.col0 + - col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT ALL - col0 + cor0.col1 AS col0 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT + + 60 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3598
SELECT + + 60 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 20 AS col0 FROM tab1 cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 13 * col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT + - 20 FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + col1 * - col1 * 34 + col2 FROM tab1 AS cor0
----
-22930
-3343
-5650
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57
query I rowsort
SELECT DISTINCT col1 * - 66 * + tab1.col1 + col2 AS col0 FROM tab1
----
-11058
-44562
-6543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT + - col2 + - col1 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-3606
SELECT + - col2 + - col1 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT - - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - + col0 * 51 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT - col1 * + cor0.col1 + - 23 * col1 AS col0 FROM tab2 AS cor0
----
-1674
-4838
-680
query I rowsort
SELECT col0 + cor0.col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 70 FROM tab0 cor0
----
70
query I rowsort
SELECT DISTINCT - col1 + 71 AS col2 FROM tab1 AS cor0
----
45
58
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col0 + 31 AS col2 FROM tab0 cor0
----
-4
-58
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3615
SELECT ALL - CAST( ( - col2 ) AS SIGNED ) / CAST( NULL AS DECIMAL ) + 15 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - CAST ( ( - col2 ) AS INTEGER ) / CAST ( NULL AS REAL ) + 15 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab2.col0 - - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 023677f2362ebf8bd60cb629f4090df4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + ( - col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab1, tab2 AS cor0
----
97
query I rowsort
SELECT DISTINCT 76 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT + + col1 + + col1 DIV + col1 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3621
SELECT + + col1 + + col1 / + col1 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT - ( 58 ) + + col2 * col0 DIV + col2 FROM tab1 AS cor0
----
-55
22
6
skipif mysql # not compatible
query I rowsort label-3625
SELECT - ( 58 ) + + col2 * col0 / + col2 FROM tab1 AS cor0
----
-55
22
6
query I rowsort
SELECT DISTINCT 19 + col1 * 85 AS col1 FROM tab1
----
1124
2229
869
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab2
----
88
88
88
query I rowsort
SELECT ALL - 11 AS col0 FROM tab0 AS cor0
----
-11
-11
-11
query I rowsort
SELECT DISTINCT + + ( + col1 ) + + 21 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT 82 + col0 FROM tab0 AS cor0
----
106
117
171
onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT ALL col2 DIV + col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL col2 / + col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + col0 col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - - 17 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT - col2 + + col1 * cor0.col2 AS col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT + + col1 + + col2 * - 24 AS col2 FROM tab2 AS cor0
----
-565
-617
-895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3636
SELECT + col0 + - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3636
SELECT + col0 + - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - + col0 * - 47 AS col2 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT + col0 * + col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - + col0 + + 92 FROM tab0 AS cor0
----
3
57
68
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT - + col1 + col0 * + 50 FROM tab2 cor0
----
319
3841
3933
query I rowsort
SELECT + 91 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3644
SELECT + col0 + CAST( 72 + col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
14596
3816
5950
skipif mysql # not compatible
query I rowsort label-3644
SELECT + col0 + CAST ( 72 + col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
14596
3816
5950
query I rowsort
SELECT ALL + + col0 * col1 + + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL + 50 FROM tab2 AS cor0
----
50
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 77 * - 2 col2 FROM tab2 AS cor0
----
154
query I rowsort
SELECT 57 * col0 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2 AS cor0
----
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT - + col0 * col1 DIV col2 FROM tab1 AS cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-3653
SELECT - + col0 * col1 / col2 FROM tab1 AS cor0
----
-1
-10
-11
query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab0 AS cor0
----
43
query I rowsort
SELECT - col1 * 97 * col2 AS col1 FROM tab0 AS cor0
----
-275286
-723814
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + ( col2 ) - col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL ( + col1 ) * 12 FROM tab1 AS cor0
----
120
156
312
onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT + col0 + + col1 + - col1 DIV + 35 FROM tab1 cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-3658
SELECT + col0 + + col1 + - col1 / + 35 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - 22 AS col1 FROM tab1 cor0
----
-22
-22
-22
query I rowsort
SELECT ALL + ( - col0 ) * 71 + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-2607
-308
-3510
query I rowsort
SELECT DISTINCT + + 95 AS col2 FROM tab2 AS cor0
----
95
query I rowsort
SELECT DISTINCT + 99 + col1 FROM tab1 AS cor0
----
109
112
125
query I rowsort
SELECT + col0 + - cor0.col2 * 16 - col0 FROM tab2 AS cor0
----
-416
-432
-608
query I rowsort
SELECT - 89 AS col0 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 47 + col2 + 90 AS col0 FROM tab1 AS cor0
----
100
139
97
query I rowsort
SELECT col1 - col0 FROM tab1 cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 * - col2 - 62 col0 FROM tab1
----
-132
1264
146
query I rowsort
SELECT ALL col1 - - col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT - 68 + - 16 DIV + col0 + col2 DIV + col0 AS col0 FROM tab2
----
-67
-68
-68
skipif mysql # not compatible
query I rowsort label-3671
SELECT - 68 + - 16 / + col0 + col2 / + col0 AS col0 FROM tab2
----
-67
-68
-68
query I rowsort
SELECT - col0 + ( - col0 ) * - col0 FROM tab1
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * col0 * tab1.col0 + - col1 col1 FROM tab1
----
360438
563187
766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT ALL CAST( NULL AS SIGNED ) / col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL CAST ( NULL AS INTEGER ) / col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT DISTINCT col1 * col1 + col1 * + ( - col1 ) - col2 DIV - 10 FROM tab1
----
5
9
skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT col1 * col1 + col1 * + ( - col1 ) - col2 / - 10 FROM tab1
----
5
9
query I rowsort
SELECT DISTINCT ( col0 ) - col2 * + 67 AS col1 FROM tab2
----
-1664
-1802
-2467
query I rowsort
SELECT DISTINCT - col1 - + col2 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col2 + + col2 + - col1 * - col0 FROM tab2
----
1419
271
4654
query I rowsort
SELECT + 3 * + col0 + - col2 - 20 FROM tab2
----
-26
179
188
query I rowsort
SELECT - 62 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 91 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT - 11 AS col1 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT ALL 8 FROM tab1
----
8
8
8
query I rowsort
SELECT ALL - col0 * col0 + 20 AS col0 FROM tab2
----
-29
-6064
-6221
query I rowsort
SELECT ALL - 16 + col2 FROM tab0
----
-15
17
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT ALL 95 * + col0 DIV col0 FROM tab1
----
95
95
95
skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL 95 * + col0 / col0 FROM tab1
----
95
95
95
query I rowsort
SELECT + ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 col0 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL 72 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - cor0.col2 * - 64 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 508671d5b6e60b4d0041b14769f75da2
query I rowsort
SELECT ALL - 21 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT 72 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3697
SELECT DISTINCT + ( col1 ) DIV - col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT + ( col1 ) / - col2 FROM tab1
----
0
query I rowsort
SELECT ALL - ( - col0 + col2 * - col1 ) FROM tab2
----
1612
725
844
query I rowsort
SELECT - 73 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
6278
6643
7081
query I rowsort
SELECT DISTINCT - + col2 + - col0 * col0 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT + 32 + col1 + cor0.col1 * 82 FROM tab0 AS cor0
----
7170
7585
8083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + col2 col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ( col0 ) + cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - col2 * 46 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT - - cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col0 * col1 * - col0 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT ALL + 23 DIV - col0 AS col2 FROM tab1 AS cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + 23 / - col0 AS col2 FROM tab1 AS cor0
----
-7
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + - col0 * col2 FROM tab0 AS cor0
----
-132
-14760
-3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col2 + 34 col2 FROM tab0 AS cor0
----
131
2872
7496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT DISTINCT cor0.col0 * + col2 + - col2 DIV + col0 FROM tab0 AS cor0
----
35
7298
791
skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT cor0.col0 * + col2 + - col2 / + col0 FROM tab0 AS cor0
----
35
7298
791
query I rowsort
SELECT + ( + col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT ALL - col0 DIV - ( - tab0.col1 ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - col0 / - ( - tab0.col1 ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( + 79 AS REAL ) AS col0 FROM tab2 AS cor0
----
-553
-6162
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT + - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3716
SELECT + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( cor0.col0 ) ) col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3719
SELECT - + CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-3719
SELECT - + CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT DISTINCT - + ( - 89 ) DIV col0 - - col0 FROM tab2 AS cor0
----
19
79
80
skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - + ( - 89 ) / col0 - - col0 FROM tab2 AS cor0
----
19
79
80
query I rowsort
SELECT cor0.col2 + ( - col0 ) + - 3 FROM tab1 AS cor0
----
-10
13
48
query I rowsort
SELECT col0 + + col2 * col0 + col1 * - col2 FROM tab0 cor0
----
-2022
-27
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT col1 DIV + cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3723
SELECT col1 / + cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT ALL tab0.col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - + cor0.col0 * + col2 - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * + col0 - col1 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT ALL CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 67 * 62 + + col2 FROM tab0 AS cor0
----
-4072
-4121
-4153
query I rowsort
SELECT + + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + 15 * col0 * 57 AS col1 FROM tab2 cor0
----
5985
66690
67545
query I rowsort
SELECT - col2 * + cor0.col0 + col0 FROM tab1 cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3734
SELECT ALL col1 DIV 50 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL col1 / 50 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT ALL col0 * - cor0.col2 * ( - col0 ) AS col0 FROM tab2 cor0
----
1323
158184
237158
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col0 * + col0 + + 30 FROM tab0 AS cor0
----
1255
606
7951
query I rowsort
SELECT DISTINCT col0 * 27 - + 0 FROM tab0 cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT + col2 + - ( col1 + col0 ) AS col0 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ALL - col0 * + col1 + - 67 - - cor0.col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + col0 * - 7 + col1 + col1 FROM tab2 AS cor0
----
-428
-519
13
query I rowsort
SELECT ALL col1 * + ( cor0.col1 ) FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT DISTINCT - col2 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - col2 / ( col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + + col1 * ( - col0 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col1 + + col1 * 12 AS col1 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL col2 * - col1 + 42 AS col0 FROM tab0 AS cor0
----
-2796
-55
-7420
query I rowsort
SELECT DISTINCT + cor0.col2 + ( + col1 * col1 ) AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL col1 * ( - 93 ) AS col0 FROM tab2 cor0
----
-1581
-2883
-5487
query I rowsort
SELECT + col0 * col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col2 - tab1.col2 * - col0 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col2 + + col1 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT ALL col1 + col0 DIV + ( 28 ) AS col1 FROM tab0
----
86
94
98
skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL col1 + col0 / + ( 28 ) AS col1 FROM tab0
----
86
94
98
query I rowsort
SELECT DISTINCT - cor0.col2 * - ( col2 ) + col0 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-118824
-48447
-714087
onlyif mysql # use DIV operator for integer division
query I rowsort label-3758
SELECT - + col2 * + col1 + col0 * col1 * - col0 + col2 DIV col0 FROM tab2 AS cor0
----
-106743
-2353
-360490
skipif mysql # not compatible
query I rowsort label-3758
SELECT - + col2 * + col1 + col0 * col1 * - col0 + col2 / col0 FROM tab2 AS cor0
----
-106743
-2353
-360490
query I rowsort
SELECT ALL col2 * + 45 AS col1 FROM tab2
----
1170
1215
1710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 * + 71 AS col0 FROM tab1 AS cor0
----
213
4544
5680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL col0 DIV col2 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL col0 / col2 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT + - col1 - col2 * - 47 FROM tab0 cor0
----
-50
1465
3763
query I rowsort
SELECT DISTINCT col2 - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col2 + col2 * - 82 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT ALL - 28 + col2 FROM tab1 AS cor0
----
26
29
68
query I rowsort
SELECT + - 80 + col1 AS col1 FROM tab1 cor0
----
-54
-67
-70
query I rowsort
SELECT + col1 - - col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - col2 - ( col1 ) FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + 2 FROM tab2 AS cor0
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT ALL - col1 * + col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - col1 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - tab1.col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT + 92 + col1 * col2 FROM tab1 AS cor0
----
1340
1496
662
query I rowsort
SELECT + 73 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT ALL - 70 + col1 DIV - 65 AS col2 FROM tab0
----
-71
-71
-71
skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 70 + col1 / - 65 AS col2 FROM tab0
----
-71
-71
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT col0 * + col2 DIV ( - col2 ) + - col2 col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3776
SELECT col0 * + col2 / ( - col2 ) + - col2 col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + - col2 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT - col1 * - col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + cor0.col1 - + cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 8 FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + 32 * col2 + + 32 FROM tab2 AS cor0
----
1248
864
896
onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT ALL - col0 + col2 DIV + col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - col0 + col2 / + col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col1 col0 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + col2 DIV - col0 + + col1 * + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-36480
-4230
-99841
skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col2 / - col0 + + col1 * + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-36480
-4230
-99841
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT + 98 * - col0 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-2351
-3429
-8721
skipif mysql # not compatible
query I rowsort label-3785
SELECT + 98 * - col0 + col0 / col0 AS col1 FROM tab0 AS cor0
----
-2351
-3429
-8721
query I rowsort
SELECT + col1 * + tab0.col0 + - col2 * ( - col1 ) * + col2 AS col2 FROM tab0
----
3492
619983
95718
query I rowsort
SELECT - col1 + - 73 FROM tab2
----
-104
-132
-90
query I rowsort
SELECT ALL + - ( + 55 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + 84 AS col1 FROM tab0
----
84
84
84
query I rowsort
SELECT DISTINCT ( 12 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
12
query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT tab1.col1 + col0 + - col2 * 49 FROM tab1
----
-2617
-2719
-4611
query I rowsort
SELECT DISTINCT tab1.col2 + - col0 + col2 FROM tab1
----
105
112
50
query I rowsort
SELECT DISTINCT col0 * tab0.col2 + col1 * + ( + col1 ) FROM tab0
----
15579
8188
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3796
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3796
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT DISTINCT - - col0 DIV col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - - col0 / col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT + - 71 + col0 FROM tab0 cor0
----
-36
-47
18
query I rowsort
SELECT ALL + 22 * - col0 AS col0 FROM tab2 cor0
----
-154
-1716
-1738
query I rowsort
SELECT + col0 * col2 + 12 FROM tab2 AS cor0
----
201
2040
3014
query I rowsort
SELECT + + col2 + col2 - col0 AS col2 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT DISTINCT + 89 FROM tab2 AS cor0
----
89
query I rowsort
SELECT ALL + - 21 * col1 + col1 FROM tab2 AS cor0
----
-1180
-340
-620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 72 ) col0 FROM tab2, tab2 cor0
----
-72
query I rowsort
SELECT cor1.col2 FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT + col2 * col1 + col2 * col0 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) * col0 + col0 FROM tab0 cor0
----
-2007
-3359
-7928
query I rowsort
SELECT ALL + col0 * - col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ALL - col2 * ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 * tab0.col1 * + col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL 24 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + + 55 - ( col0 ) * - 68 AS col0 FROM tab1 AS cor0
----
259
4407
5495
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3813
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT - + 71 * + col2 * col1 AS col1 FROM tab2 AS cor0
----
-108914
-45866
-59427
query I rowsort
SELECT DISTINCT + col0 - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - col0 * + 27 + + col1 FROM tab2 AS cor0
----
-158
-2047
-2116
query I rowsort
SELECT + 3 * ( + col2 ) FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT DISTINCT - ( - 2 ) + + cor0.col1 FROM tab1 AS cor0
----
12
15
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT DISTINCT CAST( ( - cor0.col1 ) AS SIGNED ) * col0 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT CAST ( ( - cor0.col1 ) AS INTEGER ) * col0 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( + col0 ) * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ( col1 * - col0 + col0 ) FROM tab1
----
-576
-75
-960
query I rowsort
SELECT col1 * - 14 + col2 * + 90 AS col1 FROM tab0 AS cor0
----
-1268
1766
6106
query I rowsort
SELECT ( + 72 ) FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT - 40 * 58 FROM tab2 AS cor0
----
-2320
-2320
-2320
query I rowsort
SELECT - ( col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * 82 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT + 30 + - 63 AS col1 FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT 80 AS col1 FROM tab0 AS cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT - cor1.col1 DIV 36 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
243 values hashing to 4621fcc9d3a19948ae979ff38b574aa9
skipif mysql # not compatible
query I rowsort label-3830
SELECT - cor1.col1 / 36 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
243 values hashing to 4621fcc9d3a19948ae979ff38b574aa9
query I rowsort
SELECT + ( - col0 ) * col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL - col1 + col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT DISTINCT + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + cor0.col0 / col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col2 * - col0 - 88 FROM tab1 AS cor0
----
3560
74
7592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT - - col1 * ( + 34 ) * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3838
SELECT - - col1 * ( + 34 ) * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 * col0 + col1 col0 FROM tab1 AS cor0
----
180234
281613
422
query I rowsort
SELECT - 71 * col0 AS col2 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT + col1 * 86 * col1 FROM tab0 AS cor0
----
636056
712166
809174
query I rowsort
SELECT + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col1 * + 14 FROM tab0
----
1204
1274
1358
query I rowsort
SELECT ALL ( + 92 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT ALL - col2 DIV - col2 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - col2 / - col2 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col1 * - col1 + col1 * col2 FROM tab2 AS cor0
----
-124
-1947
357
query I rowsort
SELECT ALL 20 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - tab2.col0 * - tab2.col0 * tab2.col0 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to b76ab3daee7cfca7e3be368c23274752
query I rowsort
SELECT col2 + ( tab1.col0 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
1
33
82
query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab0, tab0 AS cor0
----
-6
query I rowsort
SELECT - + cor0.col2 * + ( - 67 ) + - col1 AS col1 FROM tab1 AS cor0
----
3592
3809
6419
query I rowsort
SELECT - col2 * ( - col2 * + col1 ) FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT 81 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3857
SELECT CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3857
SELECT CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + col1 * - 35 AS col0 FROM tab1
----
-350
-455
-910
query I rowsort
SELECT col0 + col1 + + col1 AS col0 FROM tab0
----
196
229
271
query I rowsort
SELECT DISTINCT ( col1 ) * + col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - ( + 19 * col0 ) FROM tab1
----
-1216
-1520
-57
query I rowsort
SELECT DISTINCT tab2.col0 * + col1 - col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT - + 13 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-48
-7311
-805
query I rowsort
SELECT - - cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + 1 * col2 + - ( - ( col1 ) ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + 2 + col0 * - col0 FROM tab2 AS cor0
----
-47
-6082
-6239
query I rowsort
SELECT - 15 + col2 * 75 AS col0 FROM tab1
----
4035
4260
7185
onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT - col0 DIV col1 + - 12 AS col1 FROM tab2 AS cor0
----
-12
-13
-16
skipif mysql # not compatible
query I rowsort label-3869
SELECT - col0 / col1 + - 12 AS col1 FROM tab2 AS cor0
----
-12
-13
-16
query I rowsort
SELECT ALL col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3871
SELECT DISTINCT + col1 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + col1 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 5 * col2 col2 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT - 30 AS col2 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL + col2 * - col1 - - col2 AS col0 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2, tab0, tab0 AS cor0, tab2 AS cor1
----
84
query I rowsort
SELECT - col0 * 85 * col0 AS col2 FROM tab1
----
-348160
-544000
-765
query I rowsort
SELECT col2 * col2 + - cor0.col2 FROM tab2 cor0
----
1406
650
702
query I rowsort
SELECT - col0 * cor0.col0 + 0 * col1 * col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - + 32 + - col2 + col2 FROM tab0 AS cor0
----
-32
query I rowsort
SELECT ALL - tab2.col1 + + col1 * 66 AS col1 FROM tab2
----
1105
2015
3835
onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT 25 DIV - col2 FROM tab0
----
-25
0
0
skipif mysql # not compatible
query I rowsort label-3881
SELECT 25 / - col2 FROM tab0
----
-25
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT ALL - + 40 + col1 FROM tab1 AS cor0
----
-14
-27
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + col2 * 48 col2 FROM tab0
----
-4345
-5812
-9361
query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0, tab1, tab1 AS cor0
----
-71
query I rowsort
SELECT ALL - 98 * col1 * col0 + - col1 FROM tab1
----
-101933
-62730
-7670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3887
SELECT - col2 * col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3887
SELECT - col2 * col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + col1 + cor0.col1 AS col0 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 57 * col0 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT ALL + col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 66 * - col0 + col0 FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT ALL - ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT DISTINCT - - 62 DIV - col2 - - col0 AS col1 FROM tab1 AS cor0
----
2
63
80
skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT - - 62 / - col2 - - col0 AS col1 FROM tab1 AS cor0
----
2
63
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT + + 72 * + cor0.col0 + col0 * 51 DIV col2 FROM tab0 AS cor0
----
1765
4305
6463
skipif mysql # not compatible
query I rowsort label-3894
SELECT + + 72 * + cor0.col0 + col0 * 51 / col2 FROM tab0 AS cor0
----
1765
4305
6463
query I rowsort
SELECT ALL + col0 * ( - col0 ) FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col1 * - ( - col2 ) AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col1 * - ( + col1 ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT ALL + col1 * 57 FROM tab0 AS cor0
----
4902
5187
5529
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT DISTINCT - + col1 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT - + col1 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + + col1 - + col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col1 * + ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * - col1 * - 45 AS col0 FROM tab0 AS cor0
----
332820
372645
423405
query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col0 * - col2 * + 25 AS col0 FROM tab1 AS cor0
----
-192000
-4050
-91200
query I rowsort
SELECT 79 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT ALL + col0 + col1 * - tab0.col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT - 10 - - tab1.col1 FROM tab1
----
0
16
3
query I rowsort
SELECT DISTINCT - 66 + col0 * 16 AS col2 FROM tab2
----
1182
1198
46
query I rowsort
SELECT ALL + 53 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2011
-3342
-8046
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT DISTINCT ( cor0.col1 ) DIV col0 + - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT ( cor0.col1 ) / col0 + - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 85 + cor0.col1 col1 FROM tab0 AS cor0
----
183
204
258
query I rowsort
SELECT ALL + col2 * col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - 51 * col2 AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT - col1 + + 55 * + col1 - + 72 AS col1 FROM tab1 AS cor0
----
1332
468
630
query I rowsort
SELECT + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 8 col1 FROM tab2 cor0
----
56
624
632
query I rowsort
SELECT 76 + 87 * col2 FROM tab1 AS cor0
----
4774
5035
8428
query I rowsort
SELECT ALL 37 AS col0 FROM tab0 AS cor0
----
37
37
37
query I rowsort
SELECT ALL col2 * - 22 + - col2 - 23 AS col0 FROM tab2
----
-621
-644
-897
query I rowsort
SELECT col0 * - cor0.col1 + + 50 AS col1 FROM tab0 AS cor0
----
-2014
-3345
-8049
onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT - ( + ( + tab0.col0 ) + - col0 ) * - col0 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3923
SELECT - ( + ( + tab0.col0 ) + - col0 ) * - col0 / col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 + col2 col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL - col2 * ( + col1 ) + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT ALL + col0 * 29 DIV col1 + col0 FROM tab2 AS cor0
----
116
13
213
skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + col0 * 29 / col1 + col0 FROM tab2 AS cor0
----
116
13
213
query I rowsort
SELECT ALL col2 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT DISTINCT cor0.col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT cor0.col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL col0 + - 25 * col0 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT DISTINCT tab0.col2 DIV col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT tab0.col2 / col1 AS col0 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3932
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3932
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT DISTINCT col0 DIV cor0.col0 + ( col2 + 14 ) AS col0 FROM tab1 AS cor0
----
111
69
72
skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT col0 / cor0.col0 + ( col2 + 14 ) AS col0 FROM tab1 AS cor0
----
111
69
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * + col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 * - col0 + col1 FROM tab0 cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT ALL - cor0.col2 DIV ( - 64 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - cor0.col2 / ( - 64 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + 39 FROM tab2 cor0
----
1209
2301
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT - + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3938
SELECT - + col2 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT - col1 DIV + col1 + - col2 * + col0 AS col2 FROM tab0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-3939
SELECT - col1 / + col1 + - col2 * + col0 AS col2 FROM tab0
----
-36
-7299
-793
query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT + + col0 DIV + col1 + + col1 AS col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-3942
SELECT + + col0 / + col1 + + col1 AS col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT 52 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d
query I rowsort
SELECT ALL - 4 + col1 FROM tab1
----
22
6
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT 99 + - col0 DIV 4 FROM tab1
----
79
83
99
skipif mysql # not compatible
query I rowsort label-3945
SELECT 99 + - col0 / 4 FROM tab1
----
79
83
99
query I rowsort
SELECT + col1 * col0 + - ( col1 ) AS col1 FROM tab1
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT ALL + col1 DIV - cor0.col0 + - ( + 17 + + col1 * ( col0 ) ) FROM tab2 cor0
----
-1360
-238
-4619
skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + col1 / - cor0.col0 + - ( + 17 + + col1 * ( col0 ) ) FROM tab2 cor0
----
-1360
-238
-4619
query I rowsort
SELECT ALL - col1 * + col1 + - col1 * ( - col1 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT - 78 DIV col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-3949
SELECT - 78 / col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
25
9
query I rowsort
SELECT ALL + - col2 * - cor0.col1 + col2 * col0 AS col1 FROM tab2 cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT - - col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - 25 * col1 + + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1768
6077
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 93 col0 FROM tab1 AS cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + - ( - col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT ALL - + cor0.col0 DIV - col1 - ( + col2 ) FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - + cor0.col0 / - col1 - ( + col2 ) FROM tab1 AS cor0
----
-51
-54
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT + + col1 DIV - 42 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3957
SELECT + + col1 / - 42 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 + - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ( - 50 ) FROM tab2
----
-50
-50
-50
query I rowsort
SELECT - + ( col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - col0 + col2 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT DISTINCT + col0 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + col0 / col1 FROM tab0
----
0
query I rowsort
SELECT ALL + 66 + + col0 FROM tab2
----
144
145
73
query I rowsort
SELECT ALL col2 * col1 * col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT - 39 * cor0.col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT col0 + - cor0.col1 * col1 AS col0 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + 8 * + col0 - + col1 FROM tab0 AS cor0
----
106
183
621
onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT - col1 DIV + col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-3968
SELECT - col1 / + col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT DISTINCT + - col1 * - col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - - col1 + 76 * - col1 FROM tab2 cor0
----
-1275
-2325
-4425
query I rowsort
SELECT ALL - + 27 + + cor0.col2 * col0 FROM tab1 AS cor0
----
135
3621
7653
query I rowsort
SELECT - col0 * + col1 + - ( + 26 ) * col1 FROM tab2 AS cor0
----
-1023
-1785
-6136
query I rowsort
SELECT - col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col1 col2 FROM tab2 AS cor0
----
101
129
87
query I rowsort
SELECT - ( cor0.col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT col1 + + col0 DIV 75 AS col0 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-3976
SELECT col1 + + col0 / 75 AS col0 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT + + col0 * - col0 * + 26 FROM tab0 AS cor0
----
-14976
-205946
-31850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3978
SELECT ALL - CAST( - col2 * col2 AS SIGNED ) + 31 AS col1 FROM tab0
----
1120
32
6755
skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - CAST ( - col2 * col2 AS INTEGER ) + 31 AS col1 FROM tab0
----
1120
32
6755
query I rowsort
SELECT + 65 * - col2 FROM tab1
----
-3510
-3705
-6240
query I rowsort
SELECT 73 + + col1 AS col0 FROM tab1 AS cor0
----
83
86
99
query I rowsort
SELECT col2 * + col2 + + 71 * 98 FROM tab0 AS cor0
----
13682
6959
8047
query I rowsort
SELECT + - col0 * col1 - + 67 AS col0 FROM tab0 AS cor0
----
-2131
-3462
-8166
query I rowsort
SELECT DISTINCT 16 + + col1 FROM tab2
----
33
47
75
query I rowsort
SELECT ALL + - ( col1 ) + cor0.col1 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 + + 88 + col2 col2 FROM tab1 cor0
----
223
226
265
query I rowsort
SELECT DISTINCT - + col2 * - col1 - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT col2 + 62 AS col2 FROM tab0 AS cor0
----
144
63
95
query I rowsort
SELECT 23 FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302
query I rowsort
SELECT DISTINCT 24 FROM tab2, tab1 AS cor0
----
24
query I rowsort
SELECT 61 AS col1 FROM tab2
----
61
61
61
query I rowsort
SELECT DISTINCT 76 * 22 * - col0 + col0 AS col2 FROM tab1
----
-106944
-133680
-5013
query I rowsort
SELECT - 19 * col0 AS col2 FROM tab0 AS cor0
----
-1691
-456
-665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT DISTINCT ( - 92 + - col2 ) * tab0.col0 DIV col0 FROM tab0
----
-125
-174
-93
skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT ( - 92 + - col2 ) * tab0.col0 / col0 FROM tab0
----
-125
-174
-93
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 * col2 AS REAL ) + ( col2 ) + - col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 84 * 17 + - col1 * 77 FROM tab1
----
-574
427
658
onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT col1 + ( + col0 ) DIV - 76 + - 35 * col0 FROM tab2 AS cor0
----
-214
-2672
-2749
skipif mysql # not compatible
query I rowsort label-3998
SELECT col1 + ( + col0 ) / - 76 + - 35 * col0 FROM tab2 AS cor0
----
-214
-2672
-2749
query I rowsort
SELECT ALL tab1.col0 * + col0 + tab1.col1 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) - + tab0.col1 col0 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4001
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) * - 76 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) * - 76 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT + + col1 DIV cor0.col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-4003
SELECT + + col1 / cor0.col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT DISTINCT - col0 + 1 DIV 11 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - col0 + 1 / 11 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 - cor0.col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - + cor0.col2 + + 26 AS col1 FROM tab1 AS cor0
----
-28
-31
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + + col1 * + col0 * + col2 col0 FROM tab2 AS cor0
----
118118
5022
50388
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT ALL col2 * - CAST( col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL col2 * - CAST ( col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - 29 + + tab1.col2 * 27 AS col1 FROM tab1
----
1429
1510
2563
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4010
SELECT col1 * - col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-4010
SELECT col1 * - col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT 40 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT - col0 + + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT col1 - - col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col1 * + col1 - + col0 * + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-40860
-83031
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT + col1 DIV ( col0 ) FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4015
SELECT + col1 / ( col0 ) FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT - - cor0.col1 * 10 + col2 AS col1 FROM tab2 AS cor0
----
208
337
616
query I rowsort
SELECT tab1.col1 + + ( - col0 + col2 ) FROM tab1
----
29
3
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT DISTINCT + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT ALL col2 + + col2 - col2 * col2 AS col1 FROM tab2
----
-1368
-624
-675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT - col1 * CAST( NULL AS SIGNED ) + 4 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4021
SELECT - col1 * CAST ( NULL AS INTEGER ) + 4 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 - col0 AS col0 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT - col0 - col0 DIV + tab2.col1 FROM tab2
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-4023
SELECT - col0 - col0 / + tab2.col1 FROM tab2
----
-7
-79
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 * 5 col0 FROM tab0
----
-34
-354
-78
query I rowsort
SELECT - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 * - col1 - 35 AS col2 FROM tab0 cor0
----
2803
62
7427
query I rowsort
SELECT 39 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT cor0.col2 * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 91 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 * col1 col2 FROM tab2 AS cor0
----
22793
271492
6700
onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT DISTINCT col2 + + col2 DIV + col1 - 29 AS col1 FROM tab0 cor0
----
-28
4
53
skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT col2 + + col2 / + col1 - 29 AS col1 FROM tab0 cor0
----
-28
4
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT - CAST( NULL AS DECIMAL ) + cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4033
SELECT - CAST ( NULL AS REAL ) + cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * - 97 AS col2 FROM tab0 AS cor0
----
2328
3395
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + + col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col1 * - 28 * col2 + - 21 * cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
-68579
36120
38857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4037
SELECT ALL - CAST( NULL AS SIGNED ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - CAST ( NULL AS INTEGER ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 55 ) FROM tab1 AS cor0
----
-55
-55
-55
query I rowsort
SELECT col1 + tab0.col1 AS col1 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL - - ( col0 ) * + col1 - + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT 71 * - col0 + - col1 FROM tab0 AS cor0
----
-1790
-2582
-6410
query I rowsort
SELECT DISTINCT + 20 + + col2 * - col2 FROM tab1 AS cor0
----
-2896
-3229
-9196
query I rowsort
SELECT ALL + 92 + + col2 AS col1 FROM tab1 AS cor0
----
146
149
188
query I rowsort
SELECT ALL + 90 + + col2 * col0 FROM tab0 AS cor0
----
125
7388
882
query I rowsort
SELECT ALL - col2 * - col0 + col2 * + ( col0 ) * - col2 + - 82 AS col0 FROM tab0 AS cor0
----
-25426
-591220
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT + + 21 DIV + col2 + col2 AS col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4046
SELECT + + 21 / + col2 + col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - + 74 + col1 * + col0 FROM tab1 AS cor0
----
4
566
966
query I rowsort
SELECT ALL + col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + 70 * + 23 + col2 FROM tab1 AS cor0
----
1664
1667
1706
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT ALL - col0 DIV + col2 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - col0 / + col2 AS col0 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col2 * + col0 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + 52 + + col1 AS col1 FROM tab2 cor0
----
111
69
83
query I rowsort
SELECT - - 6 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT col0 + + col0 * 20 + + col2 AS col0 FROM tab2 AS cor0
----
1664
1697
174
query I rowsort
SELECT DISTINCT - + col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 + + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT + col0 + + 82 DIV 79 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4060
SELECT + col0 + + 82 / 79 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT + cor0.col1 * - 17 FROM tab2 cor0
----
-1003
-289
-527
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT cor0.col2 DIV - 26 AS col0 FROM tab0 cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-4064
SELECT cor0.col2 / - 26 AS col0 FROM tab0 cor0
----
-1
-3
0
query I rowsort
SELECT + 90 - 20 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
67
query I rowsort
SELECT ALL + ( col1 + col2 ) * - col2 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT DISTINCT - + col2 * col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 55 + col0 * + col1 col1 FROM tab1 AS cor0
----
23
585
985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4071
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4071
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 14 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
1328
369
491
query I rowsort
SELECT ALL - - 21 - col0 AS col0 FROM tab2 AS cor0
----
-57
-58
14
query I rowsort
SELECT - ( ( col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 34 * + col2 AS col2 FROM tab0
----
1122
2788
34
query I rowsort
SELECT + 46 FROM tab2
----
46
46
46
query I rowsort
SELECT 96 * + col2 AS col1 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT - + cor0.col0 + + col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL - ( col2 ) * 11 + - 94 FROM tab1 AS cor0
----
-1150
-688
-721
query I rowsort
SELECT ALL - 96 * - col2 AS col1 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT + 36 + - col1 FROM tab1 AS cor0
----
10
23
26
query I rowsort
SELECT - - 48 AS col2 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT - - col1 + + col0 * ( + 71 ) FROM tab2 AS cor0
----
528
5597
5626
query I rowsort
SELECT - col1 + + col1 - - 91 * col2 AS col0 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT ALL - - col1 DIV - ( - 7 ) AS col1 FROM tab1 cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - col1 / - ( - 7 ) AS col1 FROM tab1 cor0
----
1
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + + col1 + col0 col2 FROM tab0 AS cor0
----
167
7478
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT + col1 DIV col0 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4088
SELECT + col1 / col0 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - + col1 * 51 * 69 FROM tab1 AS cor0
----
-35190
-45747
-91494
query I rowsort
SELECT col0 + 80 * 15 FROM tab1 AS cor0
----
1203
1264
1280
query I rowsort
SELECT - col1 * - 58 + - ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
480
585
832
query I rowsort
SELECT + col2 + col0 * 16 FROM tab0 AS cor0
----
1506
417
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 89 col0 FROM tab1 AS cor0
----
-102
-115
-99
query I rowsort
SELECT ALL + col1 * cor0.col1 * + 90 FROM tab0 AS cor0
----
665640
745290
846810
query I rowsort
SELECT - - cor0.col1 - 40 AS col1 FROM tab1 AS cor0
----
-14
-27
-30
query I rowsort
SELECT col0 + - 51 * cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
11074
234780
68572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT - - col2 * col0 + cor0.col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14080
171
7744
skipif mysql # not compatible
query I rowsort label-4097
SELECT - - col2 * col0 + cor0.col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 AS col0 FROM tab0, tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT CAST( NULL AS SIGNED ) * cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4099
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT DISTINCT col1 * - col2 + 43 AS col2 FROM tab1
----
-1205
-1361
-527
query I rowsort
SELECT 33 - 8 AS col0 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT + - ( + col1 ) * col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT 13 + col2 DIV - col0 FROM tab1 AS cor0
----
-5
12
13
skipif mysql # not compatible
query I rowsort label-4105
SELECT 13 + col2 / - col0 FROM tab1 AS cor0
----
-5
12
13
query I rowsort
SELECT - ( - col1 ) * col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT 88 FROM tab0, tab0 AS cor0
----
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 11 + + col0 col1 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT ALL - - col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 * col0 col0 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col2 - + 44 * col1 FROM tab1 AS cor0
----
-1090
-383
-476
query I rowsort
SELECT ALL - + col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 35 ) + + col0 col2 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT ALL + 24 AS col0 FROM tab2
----
24
24
24
query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col2 FROM tab0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT DISTINCT col2 * col0 DIV - ( + col0 ) FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT col2 * col0 / - ( + col0 ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + 98 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4126
SELECT + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4126
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - col2 + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 * - ( 39 ) ) + col2 + - col0 col1 FROM tab2
----
-253
-3094
-3122
query I rowsort
SELECT ALL - col1 - + col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + + cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * cor0.col1 * ( 20 ) col0 FROM tab0 AS cor0
----
29240
30940
32980
query I rowsort
SELECT + cor0.col2 - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT ALL + col2 + - col1 + 68 DIV + 27 FROM tab2 AS cor0
----
-2
-31
23
skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + col2 + - col1 + 68 / + 27 FROM tab2 AS cor0
----
-2
-31
23
query I rowsort
SELECT - 1 * - col2 - + cor0.col2 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT ALL 16 DIV col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL 16 / col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT - col1 + - col1 * - cor0.col0 * 65 FROM tab1 cor0
----
41590
5044
67587
query I rowsort
SELECT + + col0 * - col1 - 1 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT DISTINCT - + col0 + col1 - cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + col1 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - cor0.col2 + - 18 FROM tab2 AS cor0
----
-44
-45
-56
query I rowsort
SELECT ALL - col0 + 23 * 80 * + col1 FROM tab1 cor0
----
18336
23840
47837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 22 + - col0 col2 FROM tab2 AS cor0
----
-1376
-453
-689
query I rowsort
SELECT cor0.col2 + - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT + col1 DIV col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4146
SELECT + col1 / col0 AS col1 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL + cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT ALL - cor0.col2 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL - cor0.col2 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT - - col0 DIV + col0 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4150
SELECT - - col0 / + col0 col1 FROM tab1 AS cor0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT 26 * + col0 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1 AS cor0
----
59
query I rowsort
SELECT + + 86 AS col2 FROM tab1 cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col1 * cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL + - col1 * 39 AS col0 FROM tab1 cor0
----
-1014
-390
-507
onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT DISTINCT col2 DIV cor0.col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT col2 / cor0.col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT + 57 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1d6306f216c759692cd9a50966ae3340
query I rowsort
SELECT 32 FROM tab1
----
32
32
32
query I rowsort
SELECT ALL + - cor0.col1 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT ALL + col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - 36 FROM tab1 cor0
----
-36
query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2 AS cor0
----
22
query I rowsort
SELECT ALL col1 * col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT tab1.col0 - - col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT ALL CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col2 * col2 * cor0.col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT tab2.col1 * + 56 * tab2.col1 FROM tab2
----
16184
194936
53816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT - col1 + + col2 * + CAST( 44 AS SIGNED ) FROM tab2 cor0
----
1085
1157
1655
skipif mysql # not compatible
query I rowsort label-4172
SELECT - col1 + + col2 * + CAST ( 44 AS INTEGER ) FROM tab2 cor0
----
1085
1157
1655
onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT - ( col2 ) DIV col2 + 80 * + col0 FROM tab1
----
239
5119
6399
skipif mysql # not compatible
query I rowsort label-4173
SELECT - ( col2 ) / col2 + 80 * + col0 FROM tab1
----
239
5119
6399
query I rowsort
SELECT DISTINCT col2 + + col1 - col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + 70 AS col2 FROM tab0
----
70
70
70
query I rowsort
SELECT + 87 + + tab2.col0 + + 70 AS col0 FROM tab2
----
164
235
236
query I rowsort
SELECT - 71 AS col2 FROM tab2
----
-71
-71
-71
query I rowsort
SELECT - 12 + + col1 + ( col0 ) * - col2 AS col1 FROM tab1
----
-148
-3650
-7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT + col1 DIV - col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4179
SELECT + col1 / - col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
64
query I rowsort
SELECT ( + col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 + - col1 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + cor0.col2 * - ( 22 ) col2 FROM tab1 AS cor0
----
-684
-864
216
query I rowsort
SELECT DISTINCT 1 + + col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 58 + cor0.col2 col0 FROM tab0 AS cor0
----
1425
2031
5244
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4187
SELECT ALL + + CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 50 * - 76 + col1 * + 44 col1 FROM tab1 cor0
----
4240
4372
4944
query I rowsort
SELECT ALL - - col0 * 37 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT DISTINCT - + col1 + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - cor0.col2 * - col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col2 + + col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL col0 + 16 * - col2 - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
288
54
6075
query I rowsort
SELECT ALL 90 FROM tab0
----
90
90
90
query I rowsort
SELECT col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT ALL CAST( - 12 AS SIGNED ) + col2 * col1 FROM tab1 AS cor0
----
1236
1392
558
skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL CAST ( - 12 AS INTEGER ) + col2 * col1 FROM tab1 AS cor0
----
1236
1392
558
query I rowsort
SELECT ALL + col2 + col1 * cor0.col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + ( - col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - cor0.col1 * 30 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT - 7 FROM tab2 AS cor0
----
-7
-7
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4202
SELECT ALL + CAST( NULL AS SIGNED ) * + 50 + + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + CAST ( NULL AS INTEGER ) * + 50 + + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 93 * col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-5019
-5237
-8848
query I rowsort
SELECT DISTINCT - 25 + 37 FROM tab2 AS cor0
----
12
query I rowsort
SELECT + + 77 * col1 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2479
-8215
-914
query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + + 76 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-6536
-6916
-7372
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 78 AS REAL ) FROM tab1 AS cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT col2 DIV col1 + + tab0.col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4209
SELECT col2 / col1 + + tab0.col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT - col1 * - col1 * col0 - + col0 AS col2 FROM tab1
----
13440
2025
6336
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col1 * col1 * + col1 + col1 FROM tab2
----
205438
29822
4930
query I rowsort
SELECT + col0 * + col0 * tab1.col2 + col1 FROM tab1
----
233482
512
614413
query I rowsort
SELECT + col0 * col2 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + col2 * - col0 + + tab2.col0 + tab2.col0 AS col1 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT - tab1.col0 + col2 AS col0 FROM tab1
----
-7
16
51
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + col0 ) < + col2
----
64
10
57
80
13
96
query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * tab0.col0 * col2 + + col0 - col1 FROM tab0
----
3333
664116
68050
query I rowsort
SELECT ALL - col0 * + col2 + - col1 * - col2 AS col1 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT ALL - col0 * - col0 AS col2 FROM tab0 WHERE - col2 <> ( NULL )
----
query I rowsort
SELECT + col0 + + col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 col1 FROM tab2
----
-41
-52
20
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col0 * col1 )
----
query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col1 * - col2 + tab0.col1 AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT col0 * col1 + col1 * col0 FROM tab0
----
16198
4128
6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + col0 col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT - col1 - col2 * col0 AS col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT - col2 + col0 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT col1 < ( col0 )
----
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT tab0.col1 DIV col1 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4236
SELECT tab0.col1 / col1 AS col0 FROM tab0
----
1
1
1
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT - tab2.col1 * col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col0 * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 + col0 * + col2 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + col0 - - col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab0 WHERE col1 NOT IN ( col0 * + col2 )
----
-119
-173
-98
query I rowsort
SELECT ALL tab1.col1 + + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col0 + tab0.col1 * - col2 * col2 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT ALL - tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL - col1 * col0 + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col2 * + cor0.col1 - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 * - col0 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * + col1 col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 * - col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col2 + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4255
SELECT DISTINCT + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + cor0.col2 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 * col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
15579
8188
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT DISTINCT + + cor0.col1 + - col2 DIV col1 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + + cor0.col1 + - col2 / col1 FROM tab1 AS cor0
----
24
5
6
query I rowsort
SELECT ALL - - cor0.col2 - + col0 * - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - col2 * cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT DISTINCT + col1 DIV col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + col1 / col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT col0 * col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT - - col0 DIV ( 64 ) col1 FROM tab2 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4263
SELECT - - col0 / ( 64 ) col1 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + col0 + + 42 * - 86 AS col1 FROM tab0 AS cor0
----
-3523
-3577
-3588
query I rowsort
SELECT col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - cor0.col2 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - - 36 * ( col0 ) FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT + col1 + col0 * col1 + 72 DIV col1 AS col2 FROM tab1 AS cor0
----
1058
106
657
skipif mysql # not compatible
query I rowsort label-4268
SELECT + col1 + col0 * col1 + 72 / col1 AS col2 FROM tab1 AS cor0
----
1058
106
657
query I rowsort
SELECT DISTINCT + 88 * - col2 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448
query I rowsort
SELECT - - col1 * col2 + + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + + col2 * + col2 + + col1 FROM tab2 cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT + col2 DIV - 5 AS col2 FROM tab0
----
-16
-6
0
skipif mysql # not compatible
query I rowsort label-4272
SELECT + col2 / - 5 AS col2 FROM tab0
----
-16
-6
0
query I rowsort
SELECT ALL cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT cor3.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
query I rowsort
SELECT + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col0 * + tab0.col0 + tab0.col0 FROM tab0
----
1260
19032
649611
query I rowsort
SELECT DISTINCT tab0.col0 + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - col1 * + col0 + + col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT col2 < ( NULL )
----
query I rowsort
SELECT + col1 * - tab1.col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - - 98 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT col2 / + col0 FROM tab2 WHERE NOT - col0 / col1 NOT IN ( + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= - col2 / col0
----
query I rowsort
SELECT ALL - tab2.col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT DISTINCT - col1 DIV + col0 AS col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - col1 / + col0 AS col0 FROM tab2
----
-4
0
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
17
31
59
query I rowsort
SELECT - col0 + 24 * - 60 FROM tab0 cor0
----
-1464
-1475
-1529
query I rowsort
SELECT + 42 AS col1 FROM tab1
----
42
42
42
query I rowsort
SELECT ALL + ( - col0 ) * - col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT + - col2 + col2 * - ( - col2 ) FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
77
query I rowsort
SELECT - col1 * 98 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4296
SELECT DISTINCT - tab1.col2 * + CAST( col2 AS SIGNED ) * + col2 FROM tab1
----
-157464
-185193
-884736
skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - tab1.col2 * + CAST ( col2 AS INTEGER ) * + col2 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT + col1 * col2 + 8 FROM tab1
----
1256
1412
578
query I rowsort
SELECT col2 * 95 + col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT + ( - ( cor0.col0 ) ) * col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL + + col2 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + + col2 / - col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 91 - + col1 AS col0 FROM tab0
----
-6
0
5
query I rowsort
SELECT DISTINCT 3 * col2 * + col2 - col0 * + tab0.col0 AS col2 FROM tab0
----
-1222
12251
2691
query I rowsort
SELECT ALL col0 + + tab1.col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - tab0.col2 + 62 AS col2 FROM tab0
----
-20
29
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4305
SELECT ALL + col2 DIV - cor0.col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
168
675
99
skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + col2 / - cor0.col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
168
675
99
query I rowsort
SELECT ALL - col1 * 90 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT DISTINCT - + 19 AS col1 FROM tab1 AS cor0
----
-19
query I rowsort
SELECT ALL col0 + 83 AS col2 FROM tab2 AS cor0
----
161
162
90
query I rowsort
SELECT ALL - 83 FROM tab2 AS cor0
----
-83
-83
-83
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----
query I rowsort
SELECT ALL + col0 + col1 + + col0 FROM tab1
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT ALL + 8 DIV + col1 + + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + 8 / + col1 + + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL 60 * col0 + - col0 AS col0 FROM tab2
----
413
4602
4661
query I rowsort
SELECT - - col0 * col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT - - col2 * - cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL + ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT DISTINCT + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + cor0.col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col2 * + ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - - col1 + 78 AS col0 FROM tab1 AS cor0
----
104
88
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4321
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 15 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL + cor0.col1 * 77 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT + col2 * CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4325
SELECT + col2 * CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 5 FROM tab0
----
-5
query I rowsort
SELECT + 96 AS col2 FROM tab1
----
96
96
96
query I rowsort
SELECT ALL col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * - col2 + + col1 * col1 col1 FROM tab1 AS cor0
----
-3605
-7607
460
query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - col2 * col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
207936
737280
8748
query I rowsort
SELECT + - col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT DISTINCT + - col2 + col1 DIV - col0 AS col0 FROM tab2 cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + - col2 + col1 / - col0 AS col0 FROM tab2 cor0
----
-26
-31
-38
query I rowsort
SELECT col0 * cor0.col1 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT col1 * col2 + col1 * col0 * col0 AS col0 FROM tab0 AS cor0
----
118922
52374
728273
query I rowsort
SELECT DISTINCT col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT ALL + tab2.col0 DIV - col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + tab2.col0 / - col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - - col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + - col0 * + col2 col1 FROM tab2
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + - col0 - col0 * col0 * col2 FROM tab2 AS cor0
----
-1330
-158262
-237237
query I rowsort
SELECT ALL - - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - col0 * col0 - + col0 FROM tab1 cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL 2 + - col2 * + col2 * - col1 AS col0 FROM tab1 AS cor0
----
119810
32492
75818
query I rowsort
SELECT - + 67 + - col1 FROM tab2 AS cor0
----
-126
-84
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT DISTINCT 62 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT 62 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 20 + + col0 AS col0 FROM tab2 AS cor0
----
27
98
99
query I rowsort
SELECT ALL - - 73 FROM tab2 cor0
----
73
73
73
query I rowsort
SELECT DISTINCT + 23 * col2 AS col2 FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT ALL - + col0 + + col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * 78 * tab1.col1 - - col2 * col1 AS col1 FROM tab1
----
14430
54132
8370
query I rowsort
SELECT DISTINCT + col1 * col2 - - col0 AS col1 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT - col0 DIV - col0 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4359
SELECT - col0 / - col0 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT - ( - ( + tab2.col2 ) ) * col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * col0 + + tab2.col2 * - col2 + tab2.col1 * - col0 FROM tab2
----
-3250
-757
215
onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT + 28 DIV col1 FROM tab1
----
1
2
2
skipif mysql # not compatible
query I rowsort label-4362
SELECT + 28 / col1 FROM tab1
----
1
2
2
query I rowsort
SELECT ALL 2 - + col1 AS col2 FROM tab2
----
-15
-29
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT + 72 DIV + col0 + col1 - col0 AS col0 FROM tab0
----
2
64
65
skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + 72 / + col0 + col1 - col0 AS col0 FROM tab0
----
2
64
65
query I rowsort
SELECT DISTINCT col1 - + 40 AS col0 FROM tab0
----
46
51
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + + col1 col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT 82 * col2 + col2 FROM tab0
----
2739
6806
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 * - col0 col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + col2 * + col1 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL - ( - col1 ) * + col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 64 * + col1 + - col1 FROM tab1
----
1638
630
819
query I rowsort
SELECT 72 AS col2 FROM tab0
----
72
72
72
query I rowsort
SELECT - + cor0.col1 + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT ALL + col2 DIV + col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + col2 / + col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT - + ( - cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab1 AS cor0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4379
SELECT col2 * col2 + - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4379
SELECT col2 * col2 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col2 ) * - col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + cor0.col0 + col2 * 32 AS col1 FROM tab1 AS cor0
----
1725
1760
2992
query I rowsort
SELECT + col2 * - col1 * 66 AS col0 FROM tab2 AS cor0
----
-101244
-42636
-55242
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * + 78 - - col2 col0 FROM tab1 AS cor0
----
109566
44517
97440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + ( - col1 ) col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * + 62 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL + 55 * col2 FROM tab1
----
2970
3135
5280
query I rowsort
SELECT ALL 4 AS col2 FROM tab1, tab0 cor0, tab2 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT ALL - col0 * tab1.col1 DIV col2 AS col2 FROM tab1
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - col0 * tab1.col1 / col2 AS col2 FROM tab1
----
-1
-10
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4389
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 * - 63 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT + 51 * - col1 * col0 AS col2 FROM tab0 cor0
----
-105264
-173145
-413049
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col0 + + 57 FROM tab0
----
-32
22
33
query I rowsort
SELECT - ( - col0 * col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - cor0.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT ( col2 * - col1 ) AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + 57 FROM tab1 AS cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 95 col2 FROM tab0 AS cor0
----
3135
7790
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT + ( col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4400
SELECT + ( col1 ) / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 + - col0 * + col2 col2 FROM tab1 cor0
----
-3562
-7594
-76
query I rowsort
SELECT DISTINCT - - 72 * col1 AS col1 FROM tab1 AS cor0
----
1872
720
936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT DISTINCT - 30 DIV cor0.col2 FROM tab0 AS cor0
----
-30
0
skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - 30 / cor0.col2 FROM tab0 AS cor0
----
-30
0
query I rowsort
SELECT + 67 AS col2 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT ALL - col2 + col1 * col0 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT ALL - 30 + col1 * - col0 FROM tab0 AS cor0
----
-2094
-3425
-8129
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1 AS cor0
----
68
query I rowsort
SELECT - ( col2 ) * + col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 * + 72 FROM tab0 AS cor0
----
-6225
-6634
-6985
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + ( ( - col2 ) ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ( + col0 + col2 * - col2 ) FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT ALL ( + tab1.col1 ) + + tab1.col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col0 * col2 + tab2.col2 * col2 FROM tab2
----
2704
4446
918
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ALL 95 * - 18 + col2 FROM tab1
----
-1614
-1653
-1656
query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
85
query I rowsort
SELECT 44 AS col1 FROM tab2 AS cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT DISTINCT - 73 DIV cor0.col2 FROM tab0 AS cor0
----
-2
-73
0
skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - 73 / cor0.col2 FROM tab0 AS cor0
----
-2
-73
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4421
SELECT - col0 / + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 51 * + col0 FROM tab0 AS cor0
----
1224
1785
4539
query I rowsort
SELECT - 36 + + col2 FROM tab0 AS cor0
----
-3
-35
46
query I rowsort
SELECT ALL - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + cor0.col2 + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col2 + 80 * col1 FROM tab2 AS cor0
----
1322
2453
4694
query I rowsort
SELECT - - 24 + col2 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT + col2 * col1 + col1 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT + ( - col2 ) + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 23 * - col2 + - cor0.col2 * 39 AS col1 FROM tab1 AS cor0
----
-3348
-3534
-5952
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
query I rowsort
SELECT 44 + + col0 FROM tab2 AS cor0
----
122
123
51
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23
query I rowsort
SELECT - tab1.col1 * 28 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ecd1132838adf34d1df922ccad739f9b
query I rowsort
SELECT ALL - tab2.col2 + + 45 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 983e08c55c667da1e5630fa67d5d938b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 29 col2 FROM tab2 AS cor0
----
107
108
36
query I rowsort
SELECT - col1 * - 82 AS col0 FROM tab1 cor0
----
1066
2132
820
query I rowsort
SELECT DISTINCT col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * 3 AS col1 FROM tab1 AS cor0
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT col1 / - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT - col2 * - 71 AS col2 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + + col0 * ( ( - col1 ) + col0 ) FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT DISTINCT + + cor0.col2 * ( col0 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 + 96 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT DISTINCT + col1 * + 53 * - col2 AS col2 FROM tab1 AS cor0
----
-30210
-66144
-74412
query I rowsort
SELECT + col0 - tab1.col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 + + col2 * ( + col1 ) AS col0 FROM tab2
----
1798
5015
935
query I rowsort
SELECT DISTINCT + - col0 + + 88 FROM tab1 AS cor0
----
24
8
85
query I rowsort
SELECT + col1 + - 88 AS col0 FROM tab2 cor0
----
-29
-57
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 52 col2 FROM tab1 AS cor0
----
116
132
55
query I rowsort
SELECT col2 + - col2 * 46 FROM tab0 AS cor0
----
-1485
-3690
-45
query I rowsort
SELECT col0 + 78 * ( + tab2.col2 * 97 ) AS col0 FROM tab2
----
196794
204289
287587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4456
SELECT DISTINCT - col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT 72 FROM tab0, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT ALL - col0 DIV + 1 col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL - col0 / + 1 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - 95 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT 74 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1
query I rowsort
SELECT - col2 - col0 * - col0 FROM tab0
----
1224
543
7839
query I rowsort
SELECT ALL col0 * - 47 * col0 AS col1 FROM tab1
----
-192512
-300800
-423
query I rowsort
SELECT col1 * - 45 AS col2 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT ALL + col0 * col0 + + 52 AS col2 FROM tab0 AS cor0
----
1277
628
7973
query I rowsort
SELECT 92 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + ( col1 ) + - 76 FROM tab1 AS cor0
----
-50
-63
-66
query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT ( - col0 * + col2 + + 63 ) AS col0 FROM tab1
----
-3585
-7617
-99
query I rowsort
SELECT ALL + col1 + 93 * - tab2.col0 AS col2 FROM tab2
----
-620
-7195
-7330
query I rowsort
SELECT 37 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL 73 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 73 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 71 * - col0 FROM tab1 cor0
----
213
4544
5680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT + 69 + 85 DIV cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2a2ccb8c22ad11d9f6ac77f1b2cd4de2
skipif mysql # not compatible
query I rowsort label-4476
SELECT + 69 + 85 / cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2a2ccb8c22ad11d9f6ac77f1b2cd4de2
query I rowsort
SELECT ALL - + 52 AS col2 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + 60 FROM tab2 AS cor0
----
-229
-3421
-901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 + - col0 col1 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + - col2 + + col0 + + col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT - + cor0.col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 39 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT - ( col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 + + ( 11 ) col1 FROM tab0 cor0
----
13
175
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col0 + col1 col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT + cor0.col0 - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * + col2 + + 6 * 73 + + col0 AS col0 FROM tab2 AS cor0
----
-1512
-2485
256
query I rowsort
SELECT ALL + 52 * col0 + 4 AS col0 FROM tab0 cor0
----
1252
1824
4632
query I rowsort
SELECT - ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab0
----
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4493
SELECT DISTINCT - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT col0 * + col1 + ( - cor0.col0 ) + + col2 FROM tab2 cor0
----
1302
237
4550
query I rowsort
SELECT ALL cor0.col2 * col1 * + 63 FROM tab0 AS cor0
----
178794
470106
6111
query I rowsort
SELECT + + col2 * - col1 + + ( + cor0.col2 + 34 ) AS col2 FROM tab0 AS cor0
----
-2771
-62
-7346
query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + cor0.col2 + ( - cor0.col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( + 99 ) + col0 * 62 AS col1 FROM tab2 AS cor0
----
-2239
1136
2262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT - cor0.col2 + 29 DIV - col2 FROM tab0 cor0
----
-30
-33
-82
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - cor0.col2 + 29 / - col2 FROM tab0 cor0
----
-30
-33
-82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa
query I rowsort
SELECT + + col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4505
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4505
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 38 * col0 FROM tab1 cor0
----
114
2432
3040
query I rowsort
SELECT + tab1.col2 + 2 * col0 + 48 AS col0 FROM tab1
----
108
233
304
query I rowsort
SELECT 0 + - col1 + - col0 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT col2 + 88 AS col2 FROM tab2
----
114
115
126
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col1 + + col0 col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL - col2 * tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 35 FROM tab2 AS cor0
----
35
query I rowsort
SELECT ALL - 15 + + col1 AS col1 FROM tab0 AS cor0
----
71
76
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT - CAST( - col1 AS SIGNED ) * + col2 + - 99 FROM tab1 AS cor0
----
1149
1305
471
skipif mysql # not compatible
query I rowsort label-4515
SELECT - CAST ( - col1 AS INTEGER ) * + col2 + - 99 FROM tab1 AS cor0
----
1149
1305
471
query I rowsort
SELECT DISTINCT col2 * col0 * + col0 AS col2 FROM tab1 cor0
----
233472
486
614400
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ALL 88 AS col2 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT - col1 + - 76 * - col0 FROM tab2 AS cor0
----
501
5869
5987
query I rowsort
SELECT col0 * 62 FROM tab1 AS cor0
----
186
3968
4960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 + + col1 col1 FROM tab1 AS cor0
----
15
18
31
query I rowsort
SELECT DISTINCT - - col0 + col1 * + 65 AS col1 FROM tab0 AS cor0
----
5614
6004
6340
query I rowsort
SELECT + - 15 + - col0 AS col0 FROM tab1 AS cor0
----
-18
-79
-95
query I rowsort
SELECT ALL + col0 + col2 - col2 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + + 74 + - col1 AS col0 FROM tab2 AS cor0
----
15
43
57
query I rowsort
SELECT col1 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col2 * col0 - 42 FROM tab2 AS cor0
----
-2070
-231
-3044
query I rowsort
SELECT DISTINCT - col1 * col0 - - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 * + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
-1
-13933
-1857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4531
SELECT DISTINCT + + col1 * col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + + col1 * col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + ( - 96 * + tab1.col2 ) + col1 * ( - col1 ) * - 76 AS col2 FROM tab1
----
2128
3628
46192
query I rowsort
SELECT DISTINCT - col2 * tab1.col0 + col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT - 69 * cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 9a7175a49d90f4e506dc7800eea5ee2c
query I rowsort
SELECT DISTINCT col0 * + col0 - col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT + 30 FROM tab2
----
30
30
30
query I rowsort
SELECT DISTINCT + 80 - col0 FROM tab0
----
-9
45
56
query I rowsort
SELECT DISTINCT - 80 * col2 - - col1 FROM tab0
----
-2554
-6469
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT - col2 + col1 * - col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4539
SELECT - col2 + col1 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
query I rowsort
SELECT DISTINCT - col0 * + 92 FROM tab0 cor0
----
-2208
-3220
-8188
query I rowsort
SELECT - 84 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT - - col1 + 63 FROM tab2 cor0
----
122
80
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT ( 82 ) DIV cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b4b86dffaf13649aa01d1b0cdaee23a3
skipif mysql # not compatible
query I rowsort label-4544
SELECT ( 82 ) / cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b4b86dffaf13649aa01d1b0cdaee23a3
query I rowsort
SELECT col2 + ( - cor0.col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - col0 * - 90 AS col1 FROM tab2 AS cor0
----
630
7020
7110
query I rowsort
SELECT - 25 * col0 AS col1 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - + 36 AS col2 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT + col0 * - 83 FROM tab2 cor0
----
-581
-6474
-6557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4550
SELECT CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-4550
SELECT CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT + CAST( NULL AS SIGNED ) * 23 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4551
SELECT + CAST ( NULL AS INTEGER ) * 23 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 17 * col2 FROM tab1 AS cor0
----
-1632
-918
-969
query I rowsort
SELECT - - 34 AS col0 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + col0 * 66 FROM tab0
----
1584
2310
5874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + 9 col1 FROM tab1 AS cor0
----
1257
1413
579
query I rowsort
SELECT - 51 * - col2 FROM tab1 cor0
----
2754
2907
4896
query I rowsort
SELECT + + 30 + - col0 + col1 * col0 FROM tab2 AS cor0
----
1294
240
4554
query I rowsort
SELECT - col2 * - col1 * - 21 FROM tab0 AS cor0
----
-156702
-2037
-59598
query I rowsort
SELECT 73 + + col2 * + 90 + col1 AS col1 FROM tab0 AS cor0
----
260
3129
7544
query I rowsort
SELECT ALL - 26 + + col2 FROM tab0 AS cor0
----
-25
56
7
query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 26 * + col0 FROM tab0 AS cor0
----
-2314
-624
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT col0 DIV - col2 + - col0 AS col1 FROM tab1
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-4563
SELECT col0 / - col2 + - col0 AS col1 FROM tab1
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 93 * - col2 + + col0 * + col0 FROM tab1
----
-1205
-2528
-5013
query I rowsort
SELECT 73 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ALL + 87 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * col0 + col0 col2 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT 61 + col2 * col0 AS col1 FROM tab1
----
223
3709
7741
query I rowsort
SELECT ALL + ( - 19 * + tab0.col1 ) + ( 46 ) + col0 AS col2 FROM tab0
----
-1564
-1594
-1762
query I rowsort
SELECT - ( + col1 ) + - 92 AS col2 FROM tab2
----
-109
-123
-151
query I rowsort
SELECT ALL col2 + + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * 88 col1 FROM tab1 AS cor0
----
4778
5026
8461
query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - 58 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - col2 + col1 + ( - col0 ) FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT 53 * col0 * - ( tab2.col0 ) FROM tab2
----
-2597
-322452
-330773
query I rowsort
SELECT ALL - 14 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT + col2 DIV col2 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + col2 / col2 AS col0 FROM tab1
----
1
query I rowsort
SELECT 11 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT - col1 + - 20 * - col0 AS col0 FROM tab0
----
1689
394
603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
query I rowsort
SELECT + - col2 * col0 * cor0.col2 + col1 + col2 FROM tab0 AS cor0
----
-26017
-598263
63
query I rowsort
SELECT col2 + + ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
130
155
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4588
SELECT col0 - CAST( NULL AS SIGNED ) / - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4588
SELECT col0 - CAST ( NULL AS INTEGER ) / - col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4590
SELECT CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4590
SELECT CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT 50 DIV + col1 AS col2 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4591
SELECT 50 / + col1 AS col2 FROM tab2
----
0
1
2
query I rowsort
SELECT - col2 + - col2 + col1 FROM tab1
----
-104
-179
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * - col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - ( - col1 ) * cor0.col1 + + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + + col2 * + 3 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 + + col2 * cor0.col0 col1 FROM tab2 cor0
----
2045
206
3019
query I rowsort
SELECT + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 91 * + col0 + - col1 + + 59 FROM tab1
----
306
5873
7326
query I rowsort
SELECT + col2 * + col1 + col1 * + 22 AS col1 FROM tab2 AS cor0
----
1020
1519
2832
onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT 16 + + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
16
17
20
skipif mysql # not compatible
query I rowsort label-4601
SELECT 16 + + cor0.col0 / + col1 FROM tab2 AS cor0
----
16
17
20
query I rowsort
SELECT + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col2 + - col1 * cor0.col1 * 89 AS col1 FROM tab1 AS cor0
----
-15137
-60218
-8957
query I rowsort
SELECT + col2 + 61 AS col2 FROM tab2 cor0
----
87
88
99
query I rowsort
SELECT DISTINCT + 46 + col2 AS col2 FROM tab1
----
100
103
142
query I rowsort
SELECT - + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col2 + - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 33 col0 FROM tab0 AS cor0
----
122
57
68
query I rowsort
SELECT ALL + 79 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT 64 * 38 + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
1028
1184
1862
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 68 * + col1 + + col1 * + col2 * + 89 FROM tab0 AS cor0
----
15229
258430
670306
query I rowsort
SELECT ALL tab1.col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + + 96 AS col1 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT col0 + 93 * - col1 FROM tab2 AS cor0
----
-1502
-2876
-5409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT DISTINCT cor0.col1 DIV + 5 col2 FROM tab1 AS cor0
----
2
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT cor0.col1 / + 5 col2 FROM tab1 AS cor0
----
2
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT + col1 + + col2 DIV col2 col0 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4617
SELECT + col1 + + col2 / col2 col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - col0 * col1 - col2 AS col2 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT - 42 FROM tab0 cor0
----
-42
-42
-42
query I rowsort
SELECT ALL - col1 * col0 + col1 * - tab2.col1 * - col1 AS col0 FROM tab2
----
200777
29574
3570
query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT col1 DIV col0 + - col0 FROM tab1
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-4624
SELECT col1 / col0 + - col0 FROM tab1
----
-64
-80
5
query I rowsort
SELECT ALL - cor0.col0 + + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8e2d2d35b0aeae8bb4f81dcc791d8691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4626
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) + - cor0.col2 * + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) + - cor0.col2 * + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 - ( + 34 ) FROM tab1 cor0
----
-130
-88
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 + col0 col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 19 col1 FROM tab0 AS cor0
----
-1558
-19
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT ALL + ( cor0.col2 ) + + CAST( NULL AS SIGNED ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + ( cor0.col2 ) + + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( col0 ) AS col1 FROM tab0
----
24
35
89
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT + 64 + col1 FROM tab0
----
150
155
161
query I rowsort
SELECT - col2 + col1 - tab0.col0 FROM tab0
----
-80
29
61
query I rowsort
SELECT + col0 + 83 AS col0 FROM tab2
----
161
162
90
query I rowsort
SELECT col0 * + 35 + + 62 AS col2 FROM tab1
----
167
2302
2862
query I rowsort
SELECT cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + ( + 89 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4639
SELECT + tab0.col1 * - CAST( col0 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4639
SELECT + tab0.col1 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + col0 + col2 ) col1 FROM tab1
----
16896
3078
6897
query I rowsort
SELECT DISTINCT - col2 - col1 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - 47 AS col2 FROM tab1
----
-2538
-2679
-4512
query I rowsort
SELECT ALL - tab2.col2 - col0 FROM tab2
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - 64 - + col2 * + col0 col0 FROM tab2
----
-1917
-3692
-5434
query I rowsort
SELECT col1 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + + ( - col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT + 63 DIV cor0.col2 + - cor0.col2 * 25 FROM tab0 AS cor0
----
-2050
-824
38
skipif mysql # not compatible
query I rowsort label-4648
SELECT + 63 / cor0.col2 + - cor0.col2 * 25 FROM tab0 AS cor0
----
-2050
-824
38
query I rowsort
SELECT ALL 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT 51 FROM tab1, tab2 AS cor0
----
51
query I rowsort
SELECT col1 * ( col1 ) + 56 AS col1 FROM tab1
----
156
225
732
query I rowsort
SELECT 89 FROM tab1, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL + + col1 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4654
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 26 * col2 + col1 FROM tab2 AS cor0
----
-617
-671
-971
query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4657
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - col1 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT DISTINCT + 29 + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-6
28
29
skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT + 29 + col0 / - col2 AS col0 FROM tab0 AS cor0
----
-6
28
29
query I rowsort
SELECT 71 + + col2 AS col0 FROM tab2 AS cor0
----
109
97
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col0 FROM tab1, tab2, tab1 cor0
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT DISTINCT - ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT - ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL 1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL 89 AS col0 FROM tab0
----
89
89
89
query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 * + col1 - + col1 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT ALL 18 * col1 AS col0 FROM tab0 cor0
----
1548
1638
1746
query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab2 AS cor0
----
60
query I rowsort
SELECT - 63 FROM tab2
----
-63
-63
-63
query I rowsort
SELECT - + col0 * col1 * ( + col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + col2 * - col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT DISTINCT 72 * - col0 AS col0 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT ALL + + col2 + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 + ( + 97 ) + col2 AS col0 FROM tab2 AS cor0
----
131
201
214
query I rowsort
SELECT DISTINCT - col0 - ( + cor0.col1 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - cor0.col2 * - 58 AS col1 FROM tab1 AS cor0
----
3132
3306
5568
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + + col1 + - ( - col0 ) * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT ALL + - cor0.col2 * - 89 FROM tab0 cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - - col2 + 2 FROM tab1 AS cor0
----
56
59
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT ALL cor0.col1 + CAST( NULL AS DECIMAL ) / - 44 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL cor0.col1 + CAST ( NULL AS REAL ) / - 44 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - 8 FROM tab0 AS cor0
----
78
83
89
query I rowsort
SELECT ALL col2 + 11 FROM tab2 AS cor0
----
37
38
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL - + col0 DIV 15 + col2 FROM tab0 AS cor0
----
-1
32
77
skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - + col0 / 15 + col2 FROM tab0 AS cor0
----
-1
32
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4686
SELECT col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT DISTINCT + + col2 * CAST( col0 * - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + + col2 * CAST ( col0 * - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + col1 * col0 + - ( - col1 ) * - 99 - - col0 FROM tab2 AS cor0
----
-1161
-261
-2845
skipif mysql # not compatible
query I rowsort
SELECT + - col1 * CAST ( cor0.col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 - col1 col1 FROM tab0 AS cor0
----
-133
-143
-262
query I rowsort
SELECT ALL + col1 * - ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * col0 * col2 AND col1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 + col0 + + col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT + col2 + + col1 * col1 * col0 FROM tab1
----
13616
2082
6457
query I rowsort
SELECT ALL col2 * - tab0.col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 + - col2 * col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-26160
-598525
-70
query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT ALL col0 FROM tab0 WHERE + tab0.col0 * - col0 NOT BETWEEN ( NULL ) AND - col0 + col0 * + col1
----
query I rowsort
SELECT ALL col0 + + tab1.col0 AS col0 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT - cor0.col1 DIV + col0 + col0 AS col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-4702
SELECT - cor0.col1 / + col0 + col0 AS col0 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT + cor0.col0 + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL col2 + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - + col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col1 * - col1 + - col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT - + col1 * col0 + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4709
SELECT - + col1 * col0 + col0 / + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT - col2 * - col1 DIV cor0.col1 + - col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4710
SELECT - col2 * - col1 / cor0.col1 + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - - col0 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 85 + + col2 * + cor0.col0 FROM tab0 AS cor0
----
-50
707
7213
query I rowsort
SELECT col0 - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + 46 * - cor0.col0 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f8cbdb0bc108c214dd3a728fc7499f11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT DISTINCT + - 2 DIV cor0.col0 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + - 2 / cor0.col0 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col0 * - col2 + - 83 FROM tab2 AS cor0
----
-2111
-272
-3085
query I rowsort
SELECT DISTINCT + + col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - + col1 + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL col1 * 40 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT + - cor0.col2 + - ( col2 ) AS col1 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - col0 - + ( + 43 ) FROM tab0 AS cor0
----
-132
-67
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + col1 * - col1 + - col0 col1 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT ALL col2 * ( + col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 * + col0 * 49 + col0 - col2 * col1 AS col2 FROM tab2 AS cor0
----
1571
296660
305242
query I rowsort
SELECT ALL - 92 AS col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT ALL col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 + + 1 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + - cor0.col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col2 * col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - col2 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT col2 + - 70 FROM tab0 AS cor0
----
-37
-69
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + - col2 col0 FROM tab2
----
-106
-94
-95
query I rowsort
SELECT + col2 * - col0 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL 47 * col1 FROM tab0
----
4042
4277
4559
query I rowsort
SELECT DISTINCT tab1.col0 + + 34 * + 46 FROM tab1, tab1 cor0
----
1567
1628
1644
query I rowsort
SELECT + tab2.col1 * col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT tab2.col0 + col2 * tab2.col0 * col0 AS col2 FROM tab2
----
1330
158262
237237
query I rowsort
SELECT ALL + tab0.col0 - col1 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + col0 < ( col2 * tab2.col1 )
----
query I rowsort
SELECT tab1.col1 * + col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE + col0 * + col2 <> NULL
----
query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab2 WHERE NULL NOT IN ( tab2.col1 )
----
query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 + col1 * tab1.col1 FROM tab1
----
110
182
702
query I rowsort
SELECT ALL - col0 - + col1 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - tab1.col1 + col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 + + col1 * tab1.col0 AS col1 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col0 + + col0 col1 FROM tab1
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + + col0 col2 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT ALL tab1.col0 + col0 AS col2 FROM tab1
----
128
160
6
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= - col2 * + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT col1 DIV - tab1.col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4761
SELECT col1 / - tab1.col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT col2 - + col0 FROM tab1 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT col2 + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 * - col2 FROM tab0 WHERE NOT col2 * col1 NOT BETWEEN NULL AND ( - col2 )
----
query I rowsort
SELECT ALL + col2 - col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT col1 + col0 * - col0 * col2 FROM tab2
----
-1292
-158125
-237141
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL BETWEEN col1 + - col1 AND ( NULL )
----
query I rowsort
SELECT col1 + + col2 * + tab2.col0 + col0 * - col0 AS col2 FROM tab2
----
-3222
-3997
171
query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT - col2 DIV col0 + col2 * + col0 + tab1.col2 AS col1 FROM tab1
----
198
3705
7775
skipif mysql # not compatible
query I rowsort label-4771
SELECT - col2 / col0 + col2 * + col0 + tab1.col2 AS col1 FROM tab1
----
198
3705
7775
query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - tab0.col1 + col1 FROM tab0
----
0
query I rowsort
SELECT - col1 * col0 * col2 + + col0 * + col0 AS col0 FROM tab1
----
-32384
-4203
-93440
query I rowsort
SELECT col2 + col1 + 89 AS col1 FROM tab0
----
187
208
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT DISTINCT - ( + tab1.col1 ) + + 6 DIV col2 AS col0 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - ( + tab1.col1 ) + + 6 / col2 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 - col0 AS col0 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT col0 DIV - col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4778
SELECT col0 / - col1 AS col0 FROM tab1
----
-6
-6
0
query I rowsort
SELECT ALL col1 * col2 + col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT col0 * + col1 - - col1 DIV - 73 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4782
SELECT col0 * + col1 - - col1 / - 73 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 83 * + col1 AS col1 FROM tab1
----
1079
2158
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT tab0.col0 + col0 DIV + ( col1 ) AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4784
SELECT tab0.col0 + col0 / + ( col1 ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ( col0 ) * col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 16 + col0 AS col1 FROM tab2
----
23
94
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT ALL col0 DIV + col0 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL col0 / + col0 + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT + - col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * + col1 + - ( - col2 ) FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col2 + 3 AS col2 FROM tab0 AS cor0
----
36
4
85
query I rowsort
SELECT DISTINCT - cor0.col1 + + ( + 19 * + col2 ) AS col0 FROM tab1 AS cor0
----
1000
1073
1811
query I rowsort
SELECT - cor0.col0 + - col1 + + col2 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT DISTINCT col0 + ( - col1 ) * + col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT ALL + cor0.col0 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + cor0.col0 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - col1 * ( 96 ) FROM tab0
----
-8232
-8647
-9277
query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + - col0 * col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT ALL + cor0.col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + cor0.col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col1 - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col0 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT + ( ( col1 ) ) + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4804
SELECT + ( ( col1 ) ) + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + cor0.col0 col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 41 * - 39 + + col0 FROM tab0
----
1623
1634
1688
onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT col0 * col1 + col0 DIV tab1.col2 FROM tab1
----
1040
641
78
skipif mysql # not compatible
query I rowsort label-4807
SELECT col0 * col1 + col0 / tab1.col2 FROM tab1
----
1040
641
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4808
SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4808
SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT ALL - col0 DIV ( + col1 * col1 ) AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - col0 / ( + col1 * col1 ) AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - 37 * 32 AS col1 FROM tab1 AS cor0
----
-1184
-1184
-1184
query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) * col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 22 * - col0 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT + + ( 91 ) * cor0.col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT - - 96 * col1 FROM tab2 AS cor0
----
1632
2976
5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT DISTINCT + col0 * 54 DIV + col0 AS col1 FROM tab0 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + col0 * 54 / + col0 AS col1 FROM tab0 AS cor0
----
54
query I rowsort
SELECT DISTINCT - + 62 AS col2 FROM tab0 AS cor0
----
-62
query I rowsort
SELECT + col0 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - 10 AS col2 FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ALL - ( + col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT ALL - - col2 * cor0.col0 DIV col1 FROM tab0 cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - - col2 * cor0.col0 / col1 FROM tab0 cor0
----
0
80
9
query I rowsort
SELECT - 56 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT DISTINCT - 46 * col2 AS col2 FROM tab2 AS cor0
----
-1196
-1242
-1748
query I rowsort
SELECT + col2 + - 27 FROM tab0
----
-26
55
6
query I rowsort
SELECT col1 * 78 - + col0 AS col2 FROM tab0
----
6684
7009
7531
query I rowsort
SELECT + cor1.col2 * + 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9b5ba014968f631979fc3cf03b41203a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) * 66 + - ( col0 ) col2 FROM tab1 cor0
----
-201
-4288
-5360
query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab2 AS cor0
----
23
query I rowsort
SELECT ALL + 88 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + ( + col2 ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + ( col1 ) + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4833
SELECT + + ( col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4833
SELECT + + ( col1 ) / col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT DISTINCT - + 79 FROM tab2 AS cor0
----
-79
query I rowsort
SELECT ALL - 14 * + col1 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT ALL - - col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * col1 col2 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT - - 16 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT ALL - 17 + col1 FROM tab0 AS cor0
----
69
74
80
query I rowsort
SELECT + col1 * col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL 72 AS col1 FROM tab1
----
72
72
72
query I rowsort
SELECT ALL - 24 FROM tab2
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT - col1 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4843
SELECT - col1 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT + 0 + col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + cor0.col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT cor0.col2 + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - ( + col2 ) AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + col1 + + 35 + col0 FROM tab2 cor0
----
131
172
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT - col1 + - col0 DIV col1 AS col1 FROM tab2
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - col1 + - col0 / col1 AS col1 FROM tab2
----
-21
-31
-60
query I rowsort
SELECT DISTINCT cor0.col2 + 3 FROM tab1, tab2 AS cor0
----
29
30
41
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT - col1 * + col2 * col0 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4857
SELECT DISTINCT - col1 DIV col2 AS col0 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - col1 / col2 AS col0 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL ( col1 ) * col2 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - col0 * col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT 67 * cor0.col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT DISTINCT + - 53 + col1 + + col2 FROM tab1 AS cor0
----
14
27
56
query I rowsort
SELECT - ( cor0.col1 ) + col2 * col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT + 62 + + col0 * + col0 + - col1 AS col2 FROM tab2 cor0
----
6087
6286
80
query I rowsort
SELECT ALL - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 44 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT DISTINCT - ( - col1 ) DIV col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - ( - col1 ) / col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT DISTINCT + 4 DIV 97 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + 4 / 97 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col0 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab1 AS cor0
----
44
query I rowsort
SELECT col2 * 72 + cor0.col1 FROM tab0 AS cor0
----
169
2462
5995
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT 47 DIV col1 AS col2 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-4872
SELECT 47 / col1 AS col2 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT - - col1 + + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT DISTINCT - col2 + + 22 DIV + 22 AS col0 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT - col2 + + 22 / + 22 AS col0 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT ( tab0.col1 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2, tab2 cor3
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT DISTINCT - CAST( 66 + + col0 AS SIGNED ) * col0 FROM tab0
----
-13795
-2160
-3535
skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - CAST ( 66 + + col0 AS INTEGER ) * col0 FROM tab0
----
-13795
-2160
-3535
query I rowsort
SELECT DISTINCT + 96 * - col2 AS col1 FROM tab2
----
-2496
-2592
-3648
query I rowsort
SELECT 21 * tab1.col1 * col1 FROM tab1
----
14196
2100
3549
query I rowsort
SELECT + 67 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - - col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 * col0 col2 FROM tab2
----
-434
-4836
-4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT DISTINCT col2 DIV ( + col2 ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT col2 / ( + col2 ) AS col0 FROM tab0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4885
SELECT ALL CAST( NULL AS SIGNED ) + + 24 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL CAST ( NULL AS INTEGER ) + + 24 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 + - col1 * 48 AS col1 FROM tab1
----
-1410
-4128
-8304
query I rowsort
SELECT col1 + col2 * tab1.col0 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT - 71 AS col0 FROM tab0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT - 33 FROM tab2
----
-33
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT 4 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + + 97 + cor0.col0 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT DISTINCT + col0 + col2 + col2 * + 90 FROM tab0 AS cor0
----
126
3027
7551
query I rowsort
SELECT ALL - - 50 AS col0 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - cor0.col2 + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT - col2 DIV - 25 - col1 FROM tab0 AS cor0
----
-85
-88
-97
skipif mysql # not compatible
query I rowsort label-4897
SELECT - col2 / - 25 - col1 FROM tab0 AS cor0
----
-85
-88
-97
query I rowsort
SELECT col1 - 78 FROM tab2 AS cor0
----
-19
-47
-61
query I rowsort
SELECT DISTINCT col1 + ( - 54 ) * col1 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT - col2 * + col1 * - col0 - col1 AS col0 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT ALL + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - - col2 + - ( cor0.col1 ) * + col1 AS col2 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col2 * + ( 34 ) + col1 * cor0.col1 FROM tab1 AS cor0
----
2038
2512
3433
onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT + + col1 + cor0.col0 DIV - 67 FROM tab1 AS cor0
----
10
12
26
skipif mysql # not compatible
query I rowsort label-4905
SELECT + + col1 + cor0.col0 / - 67 FROM tab1 AS cor0
----
10
12
26
query I rowsort
SELECT ALL tab0.col1 * - ( + col1 ) FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT + 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT + - col2 * 97 + col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) - + col2 * ( 6 ) AS col0 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT ALL - cor0.col0 + - 78 FROM tab2 AS cor0
----
-156
-157
-85
query I rowsort
SELECT - + col1 + ( col0 ) FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4913
SELECT - col0 DIV + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-4913
SELECT - col0 / + col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT - 86 * col2 * col2 + + 64 FROM tab0 AS cor0
----
-22
-578200
-93590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 86 col2 FROM tab2 AS cor0
----
103
117
145
query I rowsort
SELECT ALL + cor0.col0 * - 20 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT - 38 - - 55 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT ALL 3 + col1 * + col2 FROM tab0 AS cor0
----
100
2841
7465
query I rowsort
SELECT DISTINCT - + ( 25 ) AS col0 FROM tab1 AS cor0
----
-25
query I rowsort
SELECT cor0.col0 + 79 AS col0 FROM tab0 AS cor0
----
103
114
168
query I rowsort
SELECT ALL - - ( col1 ) + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col0 * col2 - - col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + ( col1 ) - + cor0.col1 * ( - col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT + + col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT - - col0 + + col2 * - 68 FROM tab1 AS cor0
----
-3669
-3812
-6448
query I rowsort
SELECT cor0.col0 * - col0 * - ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT - col0 + col1 * ( - col2 ) * + col0 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - cor0.col1 + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + + col0 + cor0.col2 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + cor0.col0 + - col1 * - 24 FROM tab1 AS cor0
----
304
392
627
query I rowsort
SELECT DISTINCT col1 + 62 * cor0.col1 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT 16 AS col1 FROM tab2
----
16
16
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 * col2 + + col1 ) col2 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col1 * col0 + col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - ( tab0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col2 * 17 AS col2 FROM tab0
----
1394
17
561
query I rowsort
SELECT - ( 37 * col2 ) + + 3 * col1 AS col0 FROM tab1
----
-1920
-2079
-3513
query I rowsort
SELECT ALL + tab1.col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * 17 * - col2 + + ( + col0 ) * col2 AS col0 FROM tab2
----
-3024
-32448
-48032
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1
query I rowsort
SELECT ALL + tab1.col2 + - col0 * col0 + tab1.col0 AS col1 FROM tab1
----
-3975
-6224
48
query I rowsort
SELECT - - 57 FROM tab1 cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + - 86 * + cor0.col0 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-14952
-2856
-3045
query I rowsort
SELECT + ( + cor0.col2 ) + 10 * col1 AS col1 FROM tab1 AS cor0
----
157
226
314
query I rowsort
SELECT + col1 * - col2 * 53 AS col0 FROM tab1 AS cor0
----
-30210
-66144
-74412
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 80 * - col2 AS col0 FROM tab1 AS cor0
----
4320
4560
7680
query I rowsort
SELECT ALL - - col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4953
SELECT - + col1 + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4953
SELECT - + col1 + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col1 + - col1 * + 66 FROM tab1 AS cor0
----
-1742
-670
-871
query I rowsort
SELECT + 21 - col2 * - 34 AS col0 FROM tab0 AS cor0
----
1143
2809
55
query I rowsort
SELECT + 97 * cor0.col0 + col0 * 19 AS col0 FROM tab0 AS cor0
----
10324
2784
4060
query I rowsort
SELECT ALL - cor0.col1 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * + col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 FROM tab2
----
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT col0 * CAST( + 67 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
42880
5226
69680
skipif mysql # not compatible
query I rowsort label-4964
SELECT col0 * CAST ( + 67 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
42880
5226
69680
query I rowsort
SELECT + - 37 AS col1 FROM tab0 AS cor0
----
-37
-37
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT ALL - ( - col0 ) + - col1 DIV col1 col2 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - ( - col0 ) + - col1 / col1 col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT 93 * + cor0.col0 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT + 78 + 44 FROM tab0 AS cor0
----
122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT + + 29 * + col0 AS col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 88 - cor0.col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 88 - cor0.col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT - col0 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - 89 * col2 - col1 AS col1 FROM tab0 AS cor0
----
-186
-3023
-7389
query I rowsort
SELECT ALL - + col0 * + col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4978
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col0 * col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col0 * col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL + col0 DIV + col0 - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + col0 / + col0 - col0 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + 17 + cor0.col2 AS col0 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT + 72 + col2 AS col1 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT DISTINCT + - cor0.col0 * 14 + - col0 AS col0 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT ALL - col1 * + 70 AS col2 FROM tab2 AS cor0
----
-1190
-2170
-4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT DISTINCT + CAST( 78 AS SIGNED ) DIV col1 AS col2 FROM tab2 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + CAST ( 78 AS INTEGER ) / col1 AS col2 FROM tab2 cor0
----
1
2
4
query I rowsort
SELECT - col0 + + 62 * + col0 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT - + 89 AS col0 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab1 AS cor0
----
-90
query I rowsort
SELECT DISTINCT - cor0.col2 * 69 AS col0 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT ( + col0 ) * - cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT 20 + + col1 AS col0 FROM tab2 AS cor0
----
37
51
79
query I rowsort
SELECT - 18 AS col1 FROM tab0 AS cor0
----
-18
-18
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + col2 + 60 col1 FROM tab2 AS cor0
----
131
132
143
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4995
SELECT ( col0 ) + col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4995
SELECT ( col0 ) + col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col1 * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - col1 * col0 + 85 FROM tab1 AS cor0
----
-555
-955
7
query I rowsort
SELECT - cor0.col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( ( cor0.col0 ) ) col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5002
SELECT ALL col1 + - col1 - CAST( col0 AS SIGNED ) * - col2 AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL col1 + - col1 - CAST ( col0 AS INTEGER ) * - col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 * col1 + 99 FROM tab2
----
-190
-3382
-862
query I rowsort
SELECT - col1 * 93 + col2 FROM tab0 AS cor0
----
-7965
-8381
-9020
query I rowsort
SELECT col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - col1 * 53 + 48 AS col2 FROM tab2
----
-1595
-3079
-853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT + tab2.col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5007
SELECT + tab2.col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + 33 * + col0 FROM tab0
----
1154
2855
759
query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2, tab1 AS cor0
----
58
query I rowsort
SELECT 52 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * - col2 * col0 col1 FROM tab1 cor0
----
-142272
-299520
-6318
query I rowsort
SELECT - 88 AS col1 FROM tab2 AS cor0
----
-88
-88
-88
query I rowsort
SELECT + ( + col1 ) * 67 AS col2 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT + col1 * - col0 * + col2 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT - col2 + 8 DIV + 57 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5015
SELECT - col2 + 8 / + 57 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col1 + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - col1 * + 61 - col1 * + col2 FROM tab1 AS cor0
----
-455
182
40
query I rowsort
SELECT + 67 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - - col0 + - ( + 32 ) * - col1 AS col1 FROM tab0 AS cor0
----
2776
3001
3139
query I rowsort
SELECT col2 + + ( + 63 ) AS col0 FROM tab1 AS cor0
----
117
120
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT + col0 DIV + col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5022
SELECT + col0 / + col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT cor1.col2 + 85 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f2c49ebb8582503783685d9f8c7395c9
query I rowsort
SELECT ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT + col2 + col0 * ( + col1 ) * col1 FROM tab2
----
22869
271544
6754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT + col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-5028
SELECT + col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
12
6
87
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT col0 + - ( col0 ) FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT tab2.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - 83 FROM tab1
----
-83
query I rowsort
SELECT + 78 FROM tab2
----
78
78
78
query I rowsort
SELECT + 93 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT - + 55 + + 14 AS col2 FROM tab0 AS cor0
----
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 37 ) * - col0 col2 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT ALL - 50 FROM tab1, tab2 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT ( - 10 ) * - col1 AS col1 FROM tab1
----
100
130
260
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL + ( - col1 ) * col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + ( - col1 ) * col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + ( cor0.col0 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 5 col1 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT DISTINCT 13 + tab2.col2 FROM tab2
----
39
40
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5045
SELECT DISTINCT tab0.col0 - + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT tab0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL - 91 * - ( + tab1.col1 * - 11 ) AS col0 FROM tab1
----
-10010
-13013
-26026
query I rowsort
SELECT col2 + col2 * col1 * ( + col1 * - 95 ) AS col1 FROM tab1
----
-1541184
-3467826
-541443
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT ALL - col0 DIV col2 col2 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - col0 / col2 col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - - 84 AS col0 FROM tab0, tab2, tab0 cor0
----
84
query I rowsort
SELECT DISTINCT + tab0.col2 * col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - - 57 * - col0 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT - col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT 68 DIV cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5054
SELECT 68 / cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT + tab2.col0 * - 38 - + col2 FROM tab2
----
-293
-2990
-3040
query I rowsort
SELECT 43 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + col0 + ( cor0.col2 ) * + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT col0 + col0 * tab2.col0 AS col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT + col2 * + 27 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 55 AS col1 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT - col2 * - col1 * + col2 + - 45 * - col2 AS col1 FROM tab2
----
23814
26258
41054
query I rowsort
SELECT - col2 + + col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT col0 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 * - col0 + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 * + col0 + + col0 * - col1 col0 FROM tab2 AS cor0
----
1106
153582
235815
query I rowsort
SELECT DISTINCT - + 19 - - col2 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT col2 * - 85 + col1 AS col2 FROM tab1 AS cor0
----
-4564
-4835
-8147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT DISTINCT CAST( NULL AS SIGNED ) * 72 + - col0 * 18 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 72 + - col0 * 18 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + ( - 23 ) AS col1 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - + ( cor0.col0 ) + + col1 * 0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 * - 56 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1402
-503
-632
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT DISTINCT + col2 DIV 79 - - col2 AS col0 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + col2 / 79 - - col2 AS col0 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT + + col0 + - col1 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT ALL + cor0.col0 + + col2 + 9 AS col2 FROM tab0 AS cor0
----
180
45
66
query I rowsort
SELECT - col2 * + 16 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT ALL - col0 - - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5080
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT - col2 + 92 DIV cor0.col0 FROM tab2 AS cor0
----
-14
-25
-37
skipif mysql # not compatible
query I rowsort label-5083
SELECT - col2 + 92 / cor0.col0 FROM tab2 AS cor0
----
-14
-25
-37
query I rowsort
SELECT ALL 50 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + + col1 + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + 12 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT ALL + col0 * - col0 * + col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col0 * 73 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT ALL + col1 + - cor0.col2 + + col0 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT ALL 76 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL col0 * - ( 20 ) * - col1 AS col2 FROM tab1
----
12800
1560
20800
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT tab2.col0 * tab2.col2 + ( - col2 ) AS col2 FROM tab2
----
162
2002
2964
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + col2 - + CAST ( col2 AS REAL ) * - col2 * - 4 FROM tab0 AS cor0
----
-19598
-3564
31
query I rowsort
SELECT ALL - + col0 * col1 * + 33 FROM tab0 AS cor0
----
-112035
-267267
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT + col0 + col1 * - CAST( col0 + cor0.col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1171
-1553
-8005
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5097
SELECT + col0 + col1 * - CAST ( col0 + cor0.col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1171
-1553
-8005
query I rowsort
SELECT DISTINCT + + 87 * col2 AS col0 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT DISTINCT - ( - col0 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 41 + cor0.col0 AS col2 FROM tab1 cor0
----
105
121
44
query I rowsort
SELECT DISTINCT + 64 FROM tab0 AS cor0
----
64
query I rowsort
SELECT - col0 + + col0 * - cor0.col0 * 90 AS col0 FROM tab2 AS cor0
----
-4417
-547638
-561769
query I rowsort
SELECT 35 * col1 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - ( + tab1.col1 ) FROM tab1, tab0 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 76 * + 4 + col0 - + ( tab0.col2 ) FROM tab0
----
295
311
338
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1, tab1 AS cor0
----
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 21 col0 FROM tab2
----
1239
357
651
query I rowsort
SELECT DISTINCT 17 * + col2 + - tab1.col1 - 9 FROM tab1
----
1610
883
950
query I rowsort
SELECT ALL col2 * + col2 + - 77 FROM tab0
----
-76
1012
6647
query I rowsort
SELECT 38 * - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eace425ba2b76abb8f0af969af56031e
query I rowsort
SELECT DISTINCT + col2 * col0 * - col1 + col2 * col0 AS col2 FROM tab0
----
-3360
-656820
-67320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT - + 63 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5114
SELECT - + 63 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - 14 + + col1 AS col1 FROM tab0 AS cor0
----
72
77
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT DISTINCT + - col1 + - col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT + - col1 + - col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-89
-92
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5117
SELECT col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - - 30 FROM tab2 AS cor0
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab0 cor0
----
0
query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT DISTINCT - col1 + - col0 * - 70 * 25 FROM tab2 AS cor0
----
12219
136441
138233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + ( col1 ) col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - 8 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT col0 + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + col0 * col0 * - tab2.col1 AS col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT 41 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT tab2.col1 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5128
SELECT tab2.col1 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL - col0 * 1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 * - col1 + 99 AS col2 FROM tab2 AS cor0
----
-118
-1244
-4503
query I rowsort
SELECT DISTINCT + - col1 + - ( - 19 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1226
-1533
-83
query I rowsort
SELECT ( 47 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + col0 * col2 + col1 * - col1 FROM tab2 AS cor0
----
-1453
-772
2713
query I rowsort
SELECT + col2 + + ( cor0.col2 ) FROM tab1 cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT DISTINCT - col0 DIV + cor0.col1 + col0 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT - col0 / + cor0.col1 + col0 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT ALL + - col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( col0 ) col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL + + 76 + cor0.col0 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT ALL - + ( 17 ) FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL + cor0.col0 + - 14 * + col1 FROM tab0 AS cor0
----
-1180
-1185
-1323
query I rowsort
SELECT DISTINCT + 93 * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
263934
693966
9021
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + - col0 * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - ( col0 ) - - col1 FROM tab0 AS cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col2 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT ALL - col1 * ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT + + 49 + 18 FROM tab1 cor0
----
67
query I rowsort
SELECT ALL - col2 + + col1 - + col0 AS col0 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT + - 1 + - col2 AS col0 FROM tab1 cor0
----
-55
-58
-97
query I rowsort
SELECT DISTINCT col0 + col0 * col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL 54 * + cor0.col2 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT ALL 22 * cor0.col1 FROM tab1 AS cor0
----
220
286
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT DISTINCT col2 + - col0 DIV cor0.col2 col2 FROM tab1 AS cor0
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT col2 + - col0 / cor0.col2 col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT ALL col2 + + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - 49 * col0 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT tab2.col1 * 48 + tab2.col1 * + col1 + col0 AS col0 FROM tab2
----
1184
2456
6391
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5163
SELECT DISTINCT col1 * col0 * + col2 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT col1 * col0 * + col2 - + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + col1 col0 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT col2 * col0 + ( - col2 * + col0 ) FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + cor0.col0 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ec406c6df0172b47fc8cec4bca03561
query I rowsort
SELECT col2 * col1 * - 46 FROM tab2 AS cor0
----
-29716
-38502
-70564
query I rowsort
SELECT - + col1 * col0 + + 71 FROM tab0 AS cor0
----
-1993
-3324
-8028
query I rowsort
SELECT + + col1 * - col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 + cor0.col0 * 13 FROM tab0 AS cor0
----
1239
345
456
query I rowsort
SELECT 21 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c
query I rowsort
SELECT + col0 + - 13 AS col1 FROM tab1 AS cor0
----
-10
51
67
query I rowsort
SELECT + - 46 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2
----
20
query I rowsort
SELECT + col0 + ( + col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT ( cor2.col1 ) + cor1.col1 FROM tab0, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
9 values hashing to cdd61993e198773b18d4b6827ca81a9e
query I rowsort
SELECT ALL - + col1 * 20 AS col0 FROM tab1 cor0
----
-200
-260
-520
query I rowsort
SELECT - + col2 + + col1 * ( col2 * + col0 ) FROM tab1 cor0
----
36423
4158
99744
query I rowsort
SELECT 49 * col2 FROM tab2
----
1274
1323
1862
query I rowsort
SELECT + ( - col0 ) * - col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - ( 67 ) FROM tab0, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL + 18 + col0 AS col0 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT - - 25 * col0 * + col0 FROM tab2 AS cor0
----
1225
152100
156025
query I rowsort
SELECT DISTINCT + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT 77 DIV col0 + col0 + col2 FROM tab0 AS cor0
----
171
38
60
skipif mysql # not compatible
query I rowsort label-5186
SELECT 77 / col0 + col0 + col2 FROM tab0 AS cor0
----
171
38
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT + cor0.col0 DIV col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5187
SELECT + cor0.col0 / col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - 32 FROM tab2, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT - + cor0.col2 * + ( + ( col2 ) ) + + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - + col2 + + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col0 * + tab1.col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col2 * - 37 + 53 * col0 AS col0 FROM tab2 AS cor0
----
-628
2781
3172
query I rowsort
SELECT ALL - + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 + + cor0.col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - + col1 + - col0 * - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - - col1 * col2 + 65 FROM tab2 AS cor0
----
1599
711
902
query I rowsort
SELECT + col0 + 77 FROM tab1 cor0
----
141
157
80
query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col1 * + col2 * + 10 FROM tab2
----
-15340
-6460
-8370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT ALL + - cor0.col2 * + cor0.col1 * - col0 - - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + - cor0.col2 * + cor0.col1 * - col0 - - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 84 AS col0 FROM tab0 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT ALL col2 DIV 23 + col2 * + col1 + + ( + col0 ) * col2 AS col1 FROM tab1
----
1568
4220
8932
skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL col2 / 23 + col2 * + col1 + + ( + col0 ) * col2 AS col1 FROM tab1
----
1568
4220
8932
query I rowsort
SELECT + col0 + + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5206
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * tab2.col1 + 48 FROM tab2
----
1391
265
4650
query I rowsort
SELECT col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 - + 68 AS col0 FROM tab0
----
-33
-44
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT col2 / col0 AS col1 FROM tab0
----
0
1
query I rowsort
SELECT 45 * + col2 AS col2 FROM tab2
----
1170
1215
1710
query I rowsort
SELECT + - col0 * - col1 + ( 44 ) AS col0 FROM tab1 AS cor0
----
1084
122
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5213
SELECT col0 / col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - + cor0.col1 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-5215
SELECT DISTINCT col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL ( + cor0.col1 ) + + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - 76 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT + 93 + col2 * - tab0.col2 * tab0.col1 AS col1 FROM tab0
----
-4
-611791
-93561
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT ALL 78 DIV - tab1.col0 FROM tab1
----
-1
-26
0
skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL 78 / - tab1.col0 FROM tab1
----
-1
-26
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT CAST( + col1 AS SIGNED ) + + col1 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-5220
SELECT CAST ( + col1 AS INTEGER ) + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL + ( 74 * - col1 ) FROM tab0
----
-6364
-6734
-7178
query I rowsort
SELECT DISTINCT col0 - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - 53 + 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + + col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + cor0.col2 * - col2 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT 3 * - col2 * 45 + - col2 AS col2 FROM tab1 cor0
----
-13056
-7344
-7752
query I rowsort
SELECT DISTINCT - col0 + 60 FROM tab1 cor0
----
-20
-4
57
query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0, tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT - col1 * 74 + col0 AS col2 FROM tab2
----
-1179
-2287
-4288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 54 * col1 col2 FROM tab0
----
4668
5003
5273
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) AS col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5233
SELECT ALL - col0 * col2 + + col2 * CAST( + cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - col0 * col2 + + col2 * CAST ( + cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 54 * + col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT ALL 72 AS col2 FROM tab2 AS cor0
----
72
72
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT - 17 * - 37 * + col2 + CAST( NULL AS DECIMAL ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5236
SELECT - 17 * - 37 * + col2 + CAST ( NULL AS REAL ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 92 + - col0 FROM tab0 AS cor0
----
3
57
68
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab1, tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - 37 + - col1 AS col1 FROM tab0 AS cor0
----
-123
-128
-134
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col1 * col2 * + col1 FROM tab0 AS cor0
----
243492
671121
8184
query I rowsort
SELECT DISTINCT + 50 * col2 AS col1 FROM tab2 AS cor0
----
1300
1350
1900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + ( 64 ) * + col0 col1 FROM tab0 AS cor0
----
-1155
-2403
-528
query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - col0 + - col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - 30 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
201720
30
32670
query I rowsort
SELECT DISTINCT 63 + + col2 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT - 40 AS col1 FROM tab2 AS cor0
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT DISTINCT + col2 + col2 DIV col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT + col2 + col2 / col2 FROM tab1 AS cor0
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + + cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT 97 DIV + cor0.col1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-5253
SELECT 97 / + cor0.col1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT ALL + 39 * - col2 + + ( + 73 ) FROM tab1 AS cor0
----
-2033
-2150
-3671
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 18 ) + + col1 col2 FROM tab1
----
28
31
44
query I rowsort
SELECT ALL + col1 + - tab0.col2 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT col1 + col2 DIV + col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5257
SELECT col1 + col2 / + col2 FROM tab0
----
87
92
98
query I rowsort
SELECT + 7 AS col1 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT ALL - - 78 * + col1 AS col0 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT - col0 * col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + ( - ( + col0 ) * - col2 ) - col2 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT col0 DIV col0 + - col2 * tab1.col1 FROM tab1
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-5262
SELECT col0 / col0 + - col2 * tab1.col1 FROM tab1
----
-1247
-1403
-569
query I rowsort
SELECT + col2 * 49 + - 24 AS col1 FROM tab0 AS cor0
----
1593
25
3994
query I rowsort
SELECT - col2 + + col2 + cor0.col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - col1 * 36 FROM tab0 AS cor0
----
3096
3276
3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-5266
SELECT DISTINCT col2 DIV ( col1 + - col2 ) AS col0 FROM tab2 AS cor0
----
-1
0
6
skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT col2 / ( col1 + - col2 ) AS col0 FROM tab2 AS cor0
----
-1
0
6
query I rowsort
SELECT - - col2 + ( ( col1 ) ) * 54 AS col1 FROM tab0 AS cor0
----
4677
4996
5239
query I rowsort
SELECT DISTINCT + col0 * ( col1 + col2 ) FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT + col2 + col0 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT + col2 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col2 * - 12 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT - col2 * + 91 FROM tab0 AS cor0
----
-3003
-7462
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( col1 ) col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - + col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col2 * 19 AS col2 FROM tab0 AS cor0
----
1558
19
627
query I rowsort
SELECT col2 + + 87 * 52 FROM tab2 AS cor0
----
4550
4551
4562
onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT ALL - col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - col1 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - col2 - - col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT col0 - - ( + 20 ) FROM tab2
----
27
98
99
query I rowsort
SELECT ALL - - col0 + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT - col0 + ( col0 ) * 83 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
601
6422
6516
query I rowsort
SELECT + ( - col1 ) - col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT ALL col2 * + col0 + col2 + + CAST( + col2 + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-60
7371
772
skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL col2 * + col0 + col2 + + CAST ( + col2 + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-60
7371
772
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 - - col1 AS col2 FROM tab0 AS cor0
----
133
143
262
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col1 AS REAL ) * col1 + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT col0 + col1 * col2 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + col2 + + col0 * ( - tab2.col0 ) * - col0 AS col2 FROM tab2
----
370
474578
493077
query I rowsort
SELECT - cor0.col0 * col1 + + col1 + + 98 * + col1 AS col1 FROM tab2 AS cor0
----
1239
2852
340
query I rowsort
SELECT col2 + + 43 - + col2 AS col0 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 * cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT col1 + ( + tab1.col2 + col0 ) AS col1 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT col1 * - col1 * 10 AS col1 FROM tab0
----
-73960
-82810
-94090
query I rowsort
SELECT + tab1.col0 * - 37 * tab1.col2 AS col0 FROM tab1
----
-134976
-284160
-5994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT + ( 59 ) + - col2 FROM tab2
----
21
32
33
query I rowsort
SELECT DISTINCT - 60 FROM tab1
----
-60
query I rowsort
SELECT DISTINCT 75 FROM tab1, tab0 AS cor0
----
75
query I rowsort
SELECT DISTINCT + ( + 31 ) FROM tab2 AS cor0
----
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT - col0 DIV col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5300
SELECT - col0 / col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT ALL + - col2 * + 5 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT - col2 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 col2 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT 86 + - 30 AS col2 FROM tab2 AS cor0
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT ALL + cor0.col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + cor0.col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT 54 + 13 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + ( 4 ) * + col2 AS col2 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT 13 * + tab1.col0 + 56 * - col0 AS col2 FROM tab1
----
-129
-2752
-3440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( col2 * - col0 ) col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT ( col2 ) + col2 * + 74 - - cor0.col1 FROM tab1 cor0
----
4076
4285
7213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col2 col2 FROM tab0 AS cor0
----
-36
13
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT ( + col1 ) + + col0 * - col2 DIV col2 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-5313
SELECT ( + col1 ) + + col0 * - col2 / col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + 53 * - 21 FROM tab1, tab2 AS cor0
----
9 values hashing to 1f010fbb7d2b4ccc6675a1b1dcba37a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT DISTINCT cor0.col1 + + CAST( col2 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT cor0.col1 + + CAST ( col2 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - cor0.col0 * ( + col0 ) * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 cor0, tab1 AS cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT col0 * cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL col0 * - col2 + + col2 * + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * 57 AS col2 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT + col2 + - ( col2 ) * - col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + cor0.col2 * + 0 * + col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT - col1 * - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5324
SELECT - col1 * - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 81 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT 95 * col0 AS col0 FROM tab1
----
285
6080
7600
query I rowsort
SELECT ALL 1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL + col2 DIV + col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + col2 / + col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1, tab0 cor0
----
-48
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - 21 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT + col0 * ( 7 ) FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT col1 * + ( 77 ) AS col0 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT - col1 * 45 + - col1 AS col2 FROM tab2
----
-1426
-2714
-782
query I rowsort
SELECT + - col2 + 38 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1098
-659
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT DISTINCT CAST( - tab2.col2 AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT CAST ( - tab2.col2 AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5337
SELECT CAST( 90 AS SIGNED ) FROM tab2
----
90
90
90
skipif mysql # not compatible
query I rowsort label-5337
SELECT CAST ( 90 AS INTEGER ) FROM tab2
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT DISTINCT - col1 DIV - 75 + - tab1.col1 + 9 AS col2 FROM tab1
----
-1
-17
-4
skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - col1 / - 75 + - tab1.col1 + 9 AS col2 FROM tab1
----
-1
-17
-4
query I rowsort
SELECT ALL 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT - col2 + cor0.col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - + 13 + col1 * - col0 FROM tab1 AS cor0
----
-1053
-653
-91
query I rowsort
SELECT - - col1 * 77 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
118118
49742
64449
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT CAST( ( col0 ) AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5343
SELECT CAST ( ( col0 ) AS INTEGER ) FROM tab0
----
24
35
89
query I rowsort
SELECT col1 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col0 + - col1 * 2 FROM tab1
----
-49
44
54
query I rowsort
SELECT col2 + tab2.col0 - - 39 AS col0 FROM tab2
----
143
156
73
query I rowsort
SELECT + 26 - col1 AS col2 FROM tab1
----
0
13
16
query I rowsort
SELECT + + ( - col1 ) * + 49 FROM tab0 cor0
----
-4214
-4459
-4753
query I rowsort
SELECT + - col2 + + col0 * ( - ( - col2 ) ) + + 65 * - 20 AS col0 FROM tab0 AS cor0
----
-1266
-541
5916
query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2, tab1 AS cor0
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL cor0.col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 20 + col0 FROM tab2 cor0
----
27
98
99
query I rowsort
SELECT ALL 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + + 95 * - col2 - col0 FROM tab2 AS cor0
----
-2548
-2572
-3689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5357
SELECT ALL col2 + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL col2 + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 45 - - cor0.col1 FROM tab1 AS cor0
----
55
58
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 46 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-105
-63
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5361
SELECT ALL + 47 + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + 47 + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5362
SELECT DISTINCT col2 * - col1 * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT col2 * - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col0 + + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT 65 * - col1 AS col2 FROM tab1 cor0
----
-1690
-650
-845
onlyif mysql # use DIV operator for integer division
query I rowsort label-5365
SELECT cor0.col1 DIV col1 - + cor0.col0 DIV col1 FROM tab2 cor0
----
-3
0
1
skipif mysql # not compatible
query I rowsort label-5365
SELECT cor0.col1 / col1 - + cor0.col0 / col1 FROM tab2 cor0
----
-3
0
1
query I rowsort
SELECT ( + col0 ) - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + 71 ) + + col2 col0 FROM tab2 AS cor0
----
19
30
91
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + cor0.col1 * + ( 92 ) AS col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT ALL + col0 * - cor0.col1 + col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT ALL + + col0 * - CAST( NULL AS SIGNED ) + + ( + col0 ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + + col0 * - CAST ( NULL AS INTEGER ) + + ( + col0 ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 + 83 AS col0 FROM tab2 cor0
----
45
56
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5374
SELECT ALL - cor0.col0 * - CAST( NULL AS SIGNED ) + + col0 * col1 / CAST( col1 AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - cor0.col0 * - CAST ( NULL AS INTEGER ) + + col0 * col1 / CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 85 FROM tab2, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT DISTINCT col1 * - 59 AS col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT ALL - + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 10 + ( + col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
152
3638
7670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT - CAST( 53 AS SIGNED ) FROM tab1 AS cor0
----
-53
-53
-53
skipif mysql # not compatible
query I rowsort label-5380
SELECT - CAST ( 53 AS INTEGER ) FROM tab1 AS cor0
----
-53
-53
-53
query I rowsort
SELECT - 25 FROM tab0, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT - ( 36 ) AS col0 FROM tab1 cor0
----
-36
-36
-36
query I rowsort
SELECT + cor0.col2 + 35 FROM tab2 cor0
----
61
62
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT ALL - col2 DIV + 13 FROM tab0 AS cor0
----
-2
-6
0
skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - col2 / + 13 FROM tab0 AS cor0
----
-2
-6
0
query I rowsort
SELECT 86 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT ALL - 61 FROM tab1 cor0
----
-61
-61
-61
query I rowsort
SELECT + col0 * - col1 * + col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - - col0 * col2 + - 62 AS col2 FROM tab1 AS cor0
----
100
3586
7618
query I rowsort
SELECT + col1 - col0 * ( + ( - cor0.col0 ) + + 92 ) AS col0 FROM tab1 AS cor0
----
-1782
-241
-947
query I rowsort
SELECT ALL - col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT DISTINCT - + col1 DIV - col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - + col1 / - col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT + - col1 * + col2 + ( - col0 * col2 ) FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT col1 + - col1 * - 42 AS col0 FROM tab1 AS cor0
----
1118
430
559
onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT ALL - col0 - col0 DIV - 57 col1 FROM tab1 cor0
----
-3
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - col0 - col0 / - 57 col1 FROM tab1 cor0
----
-3
-63
-79
query I rowsort
SELECT + - cor0.col2 * + col1 + col2 * col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL 32 FROM tab1 AS cor0
----
32
32
32
query I rowsort
SELECT ALL + 19 AS col0 FROM tab0
----
19
19
19
query I rowsort
SELECT - col0 + + tab0.col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 72 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + + col2 - ( col1 ) col0 FROM tab2
----
-35
-92
4
query I rowsort
SELECT - 5 + + col1 FROM tab1 cor0
----
21
5
8
query I rowsort
SELECT col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL col1 * col1 + tab2.col2 * col2 AS col1 FROM tab2
----
1690
1733
4157
query I rowsort
SELECT + 76 + + cor0.col1 * - 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a03ca49f591ac0619ad1c19b8290e932
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to e660b5944e34dd8d75740286862b3252
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
query I rowsort
SELECT DISTINCT col2 * 92 FROM tab0
----
3036
7544
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT ALL + CAST( - 57 AS SIGNED ) * - tab0.col0 + CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab0
----
13172
3432
5390
skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + CAST ( - 57 AS INTEGER ) * - tab0.col0 + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab0
----
13172
3432
5390
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5412
SELECT ALL col1 + + ( col2 * + CAST( col0 AS SIGNED ) ) + col2 * - col0 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL col1 + + ( col2 * + CAST ( col0 AS INTEGER ) ) + col2 * - col0 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 30 AS col0 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT ALL - col1 * + 75 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT DISTINCT - - 29 AS col1 FROM tab2 AS cor0
----
29
query I rowsort
SELECT + - col0 + + col2 * col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - 14 + col2 FROM tab1 AS cor0
----
40
43
82
query I rowsort
SELECT - 0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col2 * tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * col2 + + 19 FROM tab1 AS cor0
----
-2897
-3230
-9197
query I rowsort
SELECT DISTINCT - - col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * - col0 col1 FROM tab1 AS cor0
----
-156
-3328
-4160
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 58 * + col2 col2 FROM tab2 AS cor0
----
-1508
-1566
-2204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5429
SELECT DISTINCT col2 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT col2 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT - - col1 * 7 DIV col1 AS col1 FROM tab2 AS cor0
----
7
7
7
skipif mysql # not compatible
query I rowsort label-5430
SELECT - - col1 * 7 / col1 AS col1 FROM tab2 AS cor0
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT - + cor0.col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5432
SELECT - + cor0.col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 * col2 + cor0.col2 * col2 AS col0 FROM tab1 cor0
----
-399
1536
2754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT col2 DIV 60 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5434
SELECT col2 / 60 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * 65 AS col1 FROM tab0 AS cor0
----
-1560
-2275
-5785
onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT DISTINCT col0 + col0 * col0 + - cor0.col0 DIV col2 AS col0 FROM tab1 AS cor0
----
12
4159
6480
skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT col0 + col0 * col0 + - cor0.col0 / col2 AS col0 FROM tab1 AS cor0
----
12
4159
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 * col1 * - 91 AS col2 FROM tab2 AS cor0
----
-122213
-19747
-418782
query I rowsort
SELECT ALL + + cor0.col2 * + 41 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT - col0 * col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 54 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT - 63 + + col0 * col2 AS col0 FROM tab0
----
-28
7235
729
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL + col2 * 64 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT ALL col1 + 68 FROM tab1 cor0
----
78
81
94
query I rowsort
SELECT cor0.col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - + col0 + 8 FROM tab1 AS cor0
----
-56
-72
5
query I rowsort
SELECT DISTINCT + col1 + - 36 - col2 FROM tab2 AS cor0
----
-3
-32
-57
query I rowsort
SELECT DISTINCT + cor0.col1 + 3 AS col0 FROM tab1, tab0, tab0 cor0
----
100
89
94
query I rowsort
SELECT - col2 * 83 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT - + 80 FROM tab0 AS cor0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT + col0 DIV 9 - - col2 AS col0 FROM tab0 AS cor0
----
35
4
91
skipif mysql # not compatible
query I rowsort label-5452
SELECT + col0 / 9 - - col2 AS col0 FROM tab0 AS cor0
----
35
4
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5453
SELECT - - CAST( col1 AS SIGNED ) * col2 + + 55 FROM tab2 AS cor0
----
1589
701
892
skipif mysql # not compatible
query I rowsort label-5453
SELECT - - CAST ( col1 AS INTEGER ) * col2 + + 55 FROM tab2 AS cor0
----
1589
701
892
query I rowsort
SELECT - 65 * col1 + col0 FROM tab2 AS cor0
----
-1026
-2008
-3757
query I rowsort
SELECT tab0.col1 + - tab0.col2 * col0 AS col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + col0 + - ( tab1.col1 + col0 ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 * - col2 + 80 + + 65 AS col1 FROM tab1 AS cor0
----
307
3793
7825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 col1 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * cor0.col0 + 76 col2 FROM tab0 AS cor0
----
111
7374
868
query I rowsort
SELECT DISTINCT - + col1 - + col0 * - ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 5 + - tab0.col1 AS col1 FROM tab0
----
-81
-86
-92
query I rowsort
SELECT - col0 + - tab1.col1 AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab2, tab2 cor0
----
29
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT - col0 + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col1 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT DISTINCT - 23 * cor0.col1 FROM tab0 cor0
----
-1978
-2093
-2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT ALL col2 DIV - col0 col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL col2 / - col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT 72 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1176
-1332
-498
query I rowsort
SELECT + ( tab1.col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT 46 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1453
2740
820
query I rowsort
SELECT 47 + col1 * + col2 FROM tab2 AS cor0
----
1581
693
884
query I rowsort
SELECT - ( col0 ) + - col2 AS col1 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col1 col2 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 - col2 col2 FROM tab0 cor0
----
-25
24
56
query I rowsort
SELECT ALL col1 * + tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT 42 + + col2 FROM tab0 AS cor0
----
124
43
75
query I rowsort
SELECT ALL - col1 * - 60 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT - + ( col1 ) * col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT ALL + + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL 0 + - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1, tab0 AS cor0
----
76
query I rowsort
SELECT ALL + - col1 * - col2 + - 51 AS col0 FROM tab0 AS cor0
----
2787
46
7411
query I rowsort
SELECT DISTINCT - col0 * col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 46 * + col2 col2 FROM tab2 AS cor0
----
1249
1274
1827
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT ALL - col1 * - col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - cor0.col1 * 12 FROM tab2, tab1 AS cor0
----
9 values hashing to 79010721ce21028df0190e564f85f0c3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT col1 * + col1 DIV + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5493
SELECT col1 * + col1 / + col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab2, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT 66 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + col0 + - ( - 54 ) * + col0 AS col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT + col2 + ( ( + col2 ) ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT col0 * col2 * + tab1.col0 - - tab1.col0 AS col2 FROM tab1
----
233536
489
614480
query I rowsort
SELECT - cor0.col2 * + 82 AS col2 FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab0, tab1 AS cor0
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT ALL - col1 * col1 DIV col2 AS col1 FROM tab0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - col1 * col1 / col2 AS col1 FROM tab0
----
-100
-224
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2, tab1
----
13122 values hashing to 8d1590b6b749702472d2ace192b5e4a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT - - 17 DIV - col1 FROM tab1 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5505
SELECT - - 17 / - col1 FROM tab1 cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT - col1 + - col2 DIV col0 col0 FROM tab2 AS cor0
----
-17
-34
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5506
SELECT - col1 + - col2 / col0 col0 FROM tab2 AS cor0
----
-17
-34
-59
query I rowsort
SELECT - 37 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT ALL ( + col1 ) + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - 9 + col1 * - col2 + + col1 AS col1 FROM tab0
----
-2761
-7380
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5510
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT + 28 * + cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
1782
2227
58
query I rowsort
SELECT DISTINCT 51 FROM tab2 AS cor0
----
51
query I rowsort
SELECT - 82 + - ( col2 * 26 ) FROM tab2 AS cor0
----
-1070
-758
-784
query I rowsort
SELECT DISTINCT + 59 * col0 + 44 * + 96 * - col2 FROM tab2
----
-105222
-113635
-155851
query I rowsort
SELECT - ( col2 ) * tab1.col2 + col1 AS col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT ALL tab1.col2 + + col1 AS col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5519
SELECT + ( - col0 ) * ( col2 ) + - col2 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5519
SELECT + ( - col0 ) * ( col2 ) + - col2 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 * col0 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + + cor0.col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + col1 * ( - 20 ) + col0 FROM tab1 AS cor0
----
-136
-180
-517
query I rowsort
SELECT col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col1 * ( ( - col1 ) ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 * col1 * 61 + col0 * ( + col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
-208936
105006
2522
query I rowsort
SELECT ALL - + col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - cor0.col0 * ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT 52 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT ALL - col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 + - 91 FROM tab1 AS cor0
----
-34
-37
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 col0 FROM tab2
----
14
query I rowsort
SELECT DISTINCT + col2 + + ( + col2 ) * cor0.col2 + 41 * + ( + col2 ) * - 81 FROM tab2 AS cor0
----
-124716
-85644
-88911
query I rowsort
SELECT DISTINCT 68 * + col2 FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT + 53 * col2 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col0 - 96 FROM tab0 AS cor0
----
1129
480
7825
query I rowsort
SELECT ALL 96 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT ALL ( + col1 ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - ( + col2 ) + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2
----
-48
query I rowsort
SELECT DISTINCT col2 + - tab2.col0 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL col2 + - col0 * + col1 AS col2 FROM tab1
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT DISTINCT 46 * - col1 * + CAST( NULL AS SIGNED ) + - ( + col0 ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT 46 * - col1 * + CAST ( NULL AS INTEGER ) + - ( + col0 ) AS col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT + col1 + + tab1.col1 DIV - col0 + + col2 col1 FROM tab1
----
109
67
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5546
SELECT + col1 + + tab1.col1 / - col0 + + col2 col1 FROM tab1
----
109
67
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT + col2 DIV col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5547
SELECT + col2 / col0 FROM tab0
----
0
0
1
query I rowsort
SELECT + ( + cor0.col2 ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + - cor0.col2 - + 17 AS col2 FROM tab1 AS cor0
----
-113
-71
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT + col1 DIV + col1 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5550
SELECT + col1 / + col1 AS col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col1 FROM tab1, tab2, tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL 17 FROM tab2 AS cor0
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 5 FROM tab1
----
5
query I rowsort
SELECT + 36 * tab0.col1 + + col0 FROM tab0
----
3120
3365
3527
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + - ( col2 ) * - ( 61 + - col1 ) AS col1 FROM tab0 AS cor0
----
-2369
-739
61
query I rowsort
SELECT ALL + 8 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
650
670
83
query I rowsort
SELECT cor0.col2 + ( - col2 * + col2 ) + - col2 * col0 * - col0 FROM tab1 cor0
----
-2376
230280
605280
query I rowsort
SELECT DISTINCT + - 34 FROM tab2 AS cor0
----
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5564
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT - col0 + 45 FROM tab1 AS cor0
----
-19
-35
42
query I rowsort
SELECT 55 AS col0 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT + - 47 AS col2 FROM tab1 AS cor0
----
-47
query I rowsort
SELECT ALL + 15 AS col2 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT ALL 27 * - 70 FROM tab2
----
-1890
-1890
-1890
query I rowsort
SELECT - + 69 * 96 + - col2 AS col1 FROM tab0 AS cor0
----
-6625
-6657
-6706
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + ( col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - - 88 AS col2 FROM tab2 AS cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT ALL - 2 * - cor0.col1 DIV + col1 AS col2 FROM tab1 cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL - 2 * - cor0.col1 / + col1 AS col2 FROM tab1 cor0
----
2
2
2
query I rowsort
SELECT - 74 * 73 FROM tab2 AS cor0
----
-5402
-5402
-5402
query I rowsort
SELECT ALL + + col1 * - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL ( cor0.col1 ) + - col1 * + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + ( + col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + - col2 * + col1 col2 FROM tab1 AS cor0
----
-1232
-1388
-554
onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT DISTINCT 78 + - ( + col2 ) DIV col0 FROM tab0 AS cor0
----
77
78
skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 78 + - ( + col2 ) / col0 FROM tab0 AS cor0
----
77
78
query I rowsort
SELECT ALL - col1 * + 4 AS col1 FROM tab1 cor0
----
-104
-40
-52
query I rowsort
SELECT - + 96 * - col1 + col0 * col0 AS col1 FROM tab2 AS cor0
----
11748
3025
7873
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 * - tab0.col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col1 * cor0.col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + - col0 * col0 + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT - cor0.col1 - - 53 AS col2 FROM tab0 AS cor0
----
-33
-38
-44
query I rowsort
SELECT - 50 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT ALL - col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT ALL - + 64 + - col1 FROM tab0 AS cor0
----
-150
-155
-161
query I rowsort
SELECT + + 23 FROM tab2 AS cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col2 col2 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT + cor0.col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL col2 * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT - + 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT - - tab1.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + - 5 AS col0 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT + 31 * col1 AS col2 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT DISTINCT + - col1 * col0 + + col2 * col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1284
-3297
-889
query I rowsort
SELECT + col2 * + col0 + + col2 * col1 FROM tab2 AS cor0
----
1026
3562
3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 8 col0 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT ALL - col2 - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL col2 + - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 - + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 + + col1 * col0 AS col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 + col2 + + 50 AS col0 FROM tab0 AS cor0
----
148
169
223
query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 * + 0 FROM tab0 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT + - col2 * col0 + - col1 DIV 47 FROM tab2 AS cor0
----
-189
-2029
-3002
skipif mysql # not compatible
query I rowsort label-5614
SELECT + - col2 * col0 + - col1 / 47 FROM tab2 AS cor0
----
-189
-2029
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5615
SELECT - - CAST( - 5 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-12
-83
-84
skipif mysql # not compatible
query I rowsort label-5615
SELECT - - CAST ( - 5 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-12
-83
-84
query I rowsort
SELECT tab1.col2 + + ( - col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col1 + - col0 * - col0 FROM tab0
----
1128
490
7830
query I rowsort
SELECT ALL 39 * - col2 AS col1 FROM tab2
----
-1014
-1053
-1482
query I rowsort
SELECT + 50 * + 85 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 174c2a13844ba8027483bd6971460a20
onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT - col2 + ( + col2 ) DIV col0 AS col0 FROM tab2 cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-5621
SELECT - col2 + ( + col2 ) / col0 AS col0 FROM tab2 cor0
----
-24
-26
-38
query I rowsort
SELECT col1 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + - col0 + + col1 * ( - col2 ) AS col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT col2 - + ( - col1 + + cor0.col1 * + col0 ) FROM tab2 AS cor0
----
-1288
-159
-4517
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT + cor0.col0 + + cor0.col0 DIV + col0 FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5625
SELECT + cor0.col0 + + cor0.col0 / + col0 FROM tab2 cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + - col2 - + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 col1 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( col2 AS REAL ) FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT ALL + - cor0.col0 * CAST( - col2 + col0 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
-12
-6
2
skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL + - cor0.col0 * CAST ( - col2 + col0 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
-12
-6
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT ALL + - cor0.col1 * - 0 DIV 44 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + - cor0.col1 * - 0 / 44 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * 46 - col0 col1 FROM tab0 AS cor0
----
3846
4006
4330
query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT - col1 DIV col0 + col0 AS col2 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-5636
SELECT - col1 / col0 + col0 AS col2 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5637
SELECT DISTINCT + - col1 + CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT + - col1 + CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL - - col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col2 - col2 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT cor0.col1 + 23 AS col0 FROM tab2 AS cor0
----
40
54
82
query I rowsort
SELECT 56 AS col2 FROM tab1 cor0
----
56
56
56
query I rowsort
SELECT - ( col0 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2 AS cor0
----
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT + CAST( 70 AS SIGNED ) FROM tab1 AS cor0
----
70
70
70
skipif mysql # not compatible
query I rowsort label-5644
SELECT + CAST ( 70 AS INTEGER ) FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT - ( + col0 ) * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 + cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
1300
1456
622
query I rowsort
SELECT ALL - 69 AS col0 FROM tab0 AS cor0
----
-69
-69
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + 22 * + col2 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT DISTINCT - + col1 * + col1 + ( + 17 ) FROM tab2 AS cor0
----
-272
-3464
-944
query I rowsort
SELECT + ( + 11 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - - col2 + + col0 * - 35 FROM tab1 AS cor0
----
-2183
-2704
-51
query I rowsort
SELECT - - col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 93 AS col0 FROM tab1 AS cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT ALL + 3 DIV - col2 + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + 3 / - col2 + col0 - + col0 AS col1 FROM tab0 AS cor0
----
-3
0
0
query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - - col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT ALL col1 + col2 * 40 DIV - col1 AS col1 FROM tab1 AS cor0
----
-218
-282
-57
skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL col1 + col2 * 40 / - col1 AS col1 FROM tab1 AS cor0
----
-218
-282
-57
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab2 cor0
----
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT - + col2 DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-5661
SELECT - + col2 / - col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + 68 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
1029
3549
357
query I rowsort
SELECT - ( col2 ) + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT DISTINCT + 43 * - col0 + 63 DIV - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-1032
-1505
-3827
skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + 43 * - col0 + 63 / - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-1032
-1505
-3827
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT 11 DIV - col1 - + tab1.col1 AS col0 FROM tab1
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-5665
SELECT 11 / - col1 - + tab1.col1 AS col0 FROM tab1
----
-11
-13
-26
query I rowsort
SELECT - col0 + + 92 AS col2 FROM tab0
----
3
57
68
query I rowsort
SELECT ALL - 55 + col0 + - col2 AS col0 FROM tab0
----
-21
-48
-64
query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2, tab1, tab2 AS cor0
----
65
query I rowsort
SELECT - col1 + + col1 * + 30 * - 82 FROM tab1 cor0
----
-24610
-31993
-63986
query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT DISTINCT - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT - col0 / + col1 AS col2 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab1
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - 31 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT - col1 * + col1 + + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + - col1 + + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0
----
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5679
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5679
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT ALL tab0.col0 DIV + tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL tab0.col0 / + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col1 * + col1 * col0 + - ( col2 ) * + col0 FROM tab0 cor0
----
176712
329280
729711
query I rowsort
SELECT ALL + + col0 * - 87 + col0 + - 55 FROM tab1 AS cor0
----
-313
-5559
-6935
query I rowsort
SELECT DISTINCT - ( col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - ( 56 ) + + col2 AS col1 FROM tab0 AS cor0
----
138
57
89
query I rowsort
SELECT ALL - ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL col0 * 15 + col1 AS col1 FROM tab0
----
1426
446
622
query I rowsort
SELECT DISTINCT + 34 FROM tab1, tab2 AS cor0
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( - col2 ) ) + ( + col2 + col0 * col2 ) col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 + col1 * tab0.col2 * col1 AS col0 FROM tab0
----
244101
679124
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ( col0 ) * + col2 AS col0 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT col2 + 99 DIV tab2.col1 AS col2 FROM tab2
----
27
30
43
skipif mysql # not compatible
query I rowsort label-5692
SELECT col2 + 99 / tab2.col1 AS col2 FROM tab2
----
27
30
43
query I rowsort
SELECT ALL + 65 + - tab0.col2 * - col0 FROM tab0
----
100
7363
857
query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab1, tab1 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5695
SELECT + col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5695
SELECT + col2 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT DISTINCT + 77 DIV 94 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT + 77 / 94 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col2 * col0 + col0 * col1 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT + col2 * col2 + col0 DIV col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
15006
8486
9411
skipif mysql # not compatible
query I rowsort label-5698
SELECT + col2 * col2 + col0 / col0 + cor0.col1 * col1 FROM tab0 AS cor0
----
15006
8486
9411
query I rowsort
SELECT ( col1 ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - col1 * 15 AS col2 FROM tab2 AS cor0
----
-255
-465
-885
onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT ALL - cor0.col1 DIV 79 + - cor0.col0 col1 FROM tab0 cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - cor0.col1 / 79 + - cor0.col0 col1 FROM tab0 cor0
----
-25
-36
-90
query I rowsort
SELECT + - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col1 * + col0 + - col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - - col0 * 68 - col0 AS col0 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT - cor0.col0 + ( - col2 + col1 ) AS col2 FROM tab2 AS cor0
----
-100
-3
-45
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + - CAST ( - cor0.col0 AS REAL ) * - col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL col0 * 89 - 11 AS col2 FROM tab2 AS cor0
----
612
6931
7020
query I rowsort
SELECT ALL - col0 + col1 * + 46 FROM tab0 cor0
----
3932
4097
4427
query I rowsort
SELECT col1 + col2 * ( col1 ) AS col0 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5710
SELECT DISTINCT - col1 * CAST( ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - col1 * CAST ( ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 + 47 AS col1 FROM tab1 AS cor0
----
57
60
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5712
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 49 AS col0 FROM tab1 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT ALL - + cor0.col2 DIV 66 - - col0 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - + cor0.col2 / 66 - - col0 FROM tab0 AS cor0
----
24
35
88
query I rowsort
SELECT ALL ( col1 ) * + col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 85 col1 FROM tab0
----
-50
-61
4
query I rowsort
SELECT 45 + - cor0.col1 FROM tab0 cor0
----
-41
-46
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT ALL - 21 DIV - col2 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - 21 / - col2 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 + 16 col1 FROM tab2 AS cor0
----
68
70
92
query I rowsort
SELECT + + col2 * col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - cor0.col2 - - col1 * + 35 FROM tab1 AS cor0
----
293
359
856
query I rowsort
SELECT + + col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT 82 * - tab0.col0 + + tab0.col0 * + 64 - - col0 FROM tab0
----
-1513
-408
-595
query I rowsort
SELECT ALL - 61 + cor0.col0 * 42 * - 63 - col0 AS col0 FROM tab0 AS cor0
----
-235644
-63589
-92706
onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT DISTINCT - ( col0 ) DIV + 33 + cor0.col0 FROM tab2 AS cor0
----
7
76
77
skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT - ( col0 ) / + 33 + cor0.col0 FROM tab2 AS cor0
----
7
76
77
query I rowsort
SELECT - col1 + + col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + 39 * - col0 * col2 AS col0 FROM tab0
----
-1365
-284622
-30888
query I rowsort
SELECT + col1 + + 79 * - col1 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab1
----
0
query I rowsort
SELECT - 18 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + - ( cor0.col2 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT ALL + 74 DIV col2 + col1 AS col2 FROM tab1
----
11
13
27
skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + 74 / col2 + col1 AS col2 FROM tab1
----
11
13
27
query I rowsort
SELECT ALL col0 + - tab2.col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT + col1 + col2 + 70 AS col1 FROM tab2
----
125
128
155
query I rowsort
SELECT + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT + - col1 * col0 + + ( - col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5738
SELECT + - col1 * col0 + + ( - col0 ) / col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ( - tab2.col0 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - col0 * + 0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 54 FROM tab1, tab2 AS cor0
----
54
query I rowsort
SELECT ALL + tab1.col0 * col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ( - col2 + - tab0.col1 * 80 ) FROM tab0
----
-6913
-7362
-7761
query I rowsort
SELECT DISTINCT + col2 * + col1 * tab1.col2 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT ALL ( - 15 ) FROM tab0
----
-15
-15
-15
query I rowsort
SELECT - tab0.col1 + - col1 AS col0 FROM tab0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5748
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 * tab1.col2 * tab1.col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - 53 + cor0.col0 FROM tab0 AS cor0
----
-18
-29
36
query I rowsort
SELECT - 8 FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT + + ( col2 ) + col0 AS col0 FROM tab0 cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT + + CAST( NULL AS SIGNED ) + - 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5753
SELECT + + CAST ( NULL AS INTEGER ) + - 43 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT CAST( - col2 AS SIGNED ) col0 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5754
SELECT CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab0 AS cor0
----
46
query I rowsort
SELECT - ( - col2 ) - + ( - col0 ) FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5758
SELECT - ( col2 ) * ( 19 ) + col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1104
-1723
-2864
skipif mysql # not compatible
query I rowsort label-5758
SELECT - ( col2 ) * ( 19 ) + col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1104
-1723
-2864
query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - cor0.col2 + cor0.col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col1 * col1 + - ( col1 ) FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT + + 39 FROM tab1 cor0
----
39
39
39
query I rowsort
SELECT + col0 + cor0.col2 * + cor0.col1 - col1 * - col1 AS col1 FROM tab0 AS cor0
----
10258
15832
9541
query I rowsort
SELECT col0 + col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + col0 - - col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT col1 * col0 + ( 63 ) AS col1 FROM tab0 AS cor0
----
2127
3458
8162
query I rowsort
SELECT - 73 + - col1 AS col0 FROM tab1 AS cor0
----
-83
-86
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT DISTINCT - tab1.col2 DIV + col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - tab1.col2 / + col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL - - cor0.col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 * col2 AS col1 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + cor0.col1 * col0 * col0 + col1 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + - col1 * + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + + cor0.col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT cor0.col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col2 * + col2 + - col1 * + col0 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT + cor0.col0 + - col0 * - col2 * + col2 AS col0 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col1 + col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2146
251
3036
query I rowsort
SELECT DISTINCT - col0 * col0 + col1 * + col2 FROM tab1 cor0
----
-3526
-5152
1395
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col1 + + cor0.col2 * col2 AS col0 FROM tab0 cor0
----
15005
8485
9410
query I rowsort
SELECT + col0 + + col1 * col1 AS col2 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * col2 AS col1 FROM tab2
----
1566
2090
2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 - + col2 col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + col2 + - tab2.col2 FROM tab2
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + col0 / + col0 + col2 / - col0 )
----
query I rowsort
SELECT ALL + tab1.col2 * + col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT - col1 * col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col0 FROM tab1 WHERE NULL <= - col0 * + col0
----
query I rowsort
SELECT ALL - col1 * - tab2.col2 + + col1 AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT - col0 * - col2 + - col2 FROM tab2
----
162
2002
2964
query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col2
----
query I rowsort
SELECT ALL + col1 + col2 * - tab0.col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab2
----
-14
-156
-158
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - col2 NOT IN ( col0 )
----
query I rowsort
SELECT tab1.col1 * col0 + - col1 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT DISTINCT + col1 - col1 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * - 90 FROM tab2 AS cor0
----
1568
2817
5336
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 AS col1 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL + col0 * col0 + - tab2.col1 AS col2 FROM tab2
----
18
6025
6224
query I rowsort
SELECT ( - cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT ALL - col1 DIV - cor0.col1 + - ( - 32 ) * + col0 FROM tab2 AS cor0
----
225
2497
2529
skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - col1 / - cor0.col1 + - ( - 32 ) * + col0 FROM tab2 AS cor0
----
225
2497
2529
query I rowsort
SELECT DISTINCT - 7 + + col2 AS col1 FROM tab2 AS cor0
----
19
20
31
query I rowsort
SELECT ALL 81 AS col0 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + + 83 FROM tab1 AS cor0
----
245
3731
7763
query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( tab0.col0 )
----
query I rowsort
SELECT ALL + col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - col2 col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + col2 + col2 * + col0 * + col0 FROM tab1
----
233529
540
614496
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 / + col0 + col2 )
----
query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) = ( - tab2.col1 * + col1 )
----
query I rowsort
SELECT tab2.col2 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * col0 + col0 + + tab0.col0 * + col1 AS col0 FROM tab0
----
15486
2880
3465
query I rowsort
SELECT ALL + col1 * - col1 + + tab1.col1 FROM tab1
----
-156
-650
-90
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col0 * + col0 IN ( - col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + tab1.col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 * + col0 + col2 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN - col0 AND NULL
----
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - col2 * + cor0.col0 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE ( col1 * + col0 ) NOT IN ( + col1 )
----
6110
6279
76
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= ( col1 )
----
query I rowsort
SELECT ALL col1 * + col1 * + col2 FROM tab1
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col2 * col1 + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT + tab0.col0 * + tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - tab1.col1 * col1 * col2 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - tab0.col2 * tab0.col0 * - col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col1 / col0 + col0 <> NULL
----
query I rowsort
SELECT ALL tab1.col1 * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT ALL tab0.col2 DIV - col2 FROM tab0 WHERE col0 IN ( col0 )
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL tab0.col2 / - col2 FROM tab0 WHERE col0 IN ( col0 )
----
-1
-1
-1
query I rowsort
SELECT - tab0.col2 * + col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT DISTINCT col1 DIV - col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT col1 / - col2 FROM tab1
----
0
query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col1 * col1 AND - col0 + + col2
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - col1 * + col2 NOT IN ( col1 - + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col1 + - col2 * + col1 - - tab1.col0 FROM tab1
----
-1181
-1427
-516
query I rowsort
SELECT - ( 27 * - col1 + - col2 ) FROM tab2
----
1619
497
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT DISTINCT + - cor0.col1 * + 96 + - col0 AS col1 FROM tab1 AS cor0
----
-1024
-1328
-2499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT + CAST( NULL AS SIGNED ) / + col2 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5854
SELECT + CAST ( NULL AS INTEGER ) / + col2 + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5855
SELECT + col1 * + col2 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5855
SELECT + col1 * + col2 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + 13 col0 FROM tab0 AS cor0
----
-73
-78
-84
query I rowsort
SELECT ALL - col0 * col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT ALL ( - 47 ) * col1 DIV + ( 8 ) - cor0.col0 AS col0 FROM tab2 AS cor0
----
-178
-189
-424
skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL ( - 47 ) * col1 / + ( 8 ) - cor0.col0 AS col0 FROM tab2 AS cor0
----
-178
-189
-424
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT ALL col2 DIV col0 + + col2 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL col2 / col0 + + col2 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT DISTINCT 46 + cor0.col2 AS col1 FROM tab0 AS cor0
----
128
47
79
query I rowsort
SELECT DISTINCT - col0 * - col2 * + col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - + col1 * - col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 + cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT + 92 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5867
SELECT + col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5867
SELECT + col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 60 * tab0.col1 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT - col0 * - col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col0 * col0 + col0 + - col2 * - col0 AS col0 FROM tab2 cor0
----
-3160
-3978
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT + col1 DIV + col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5871
SELECT + col1 / + col0 FROM tab2
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT ALL col0 * + col1 - col1 DIV col0 FROM tab1 AS cor0
----
1040
640
70
skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL col0 * + col1 - col1 / col0 FROM tab1 AS cor0
----
1040
640
70
query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * 72 col0 FROM tab0
----
6216
6641
7019
query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + 99 FROM tab2 AS cor0
----
1543
775
828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT + col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5877
SELECT + col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * 50 FROM tab1 AS cor0
----
2700
2850
4800
query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT ALL + + col2 DIV - col2 - - cor0.col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + + col2 / - col2 - - cor0.col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - + col1 + col1 * - col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 12 * - col1 AS col1 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT + + 62 + - col0 FROM tab2 cor0
----
-16
-17
55
query I rowsort
SELECT DISTINCT + ( - 51 ) AS col1 FROM tab0 cor0
----
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT + col0 DIV + 76 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5888
SELECT + col0 / + 76 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL tab0.col0 + + 7 AS col1 FROM tab0
----
31
42
96
query I rowsort
SELECT DISTINCT - tab1.col0 + + col1 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + tab2.col1 + ( col0 ) FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 1 col2 FROM tab2
----
-18
-32
-60
query I rowsort
SELECT ALL tab2.col1 - + ( - ( col1 ) ) FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT col2 - ( col1 ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col0 + col1 + - col1 FROM tab2
----
7
78
79
query I rowsort
SELECT + tab1.col2 + + col0 * col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT 76 + col0 AS col2 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT ALL - 27 * 64 AS col1 FROM tab1 AS cor0
----
-1728
-1728
-1728
query I rowsort
SELECT ALL + 14 FROM tab0, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + 97 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to b26831a7c2e714d72cf9b60fcdf7a418
query I rowsort
SELECT + col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - col1 + cor0.col1 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT + CAST( NULL AS SIGNED ) / 50 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5904
SELECT + CAST ( NULL AS INTEGER ) / 50 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 62 * - 57 AS col1 FROM tab1
----
-3534
-3534
-3534
query I rowsort
SELECT ALL 76 AS col2 FROM tab2
----
76
76
76
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL ( + col2 ) * + 51 FROM tab0
----
1683
4182
51
query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab1
----
-59
query I rowsort
SELECT - 79 FROM tab2
----
-79
-79
-79
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - cor0.col2 * - ( + 63 ) FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT - + col1 * - 14 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT ALL - col0 * - 68 FROM tab2 AS cor0
----
476
5304
5372
onlyif mysql # use DIV operator for integer division
query I rowsort label-5915
SELECT + + cor0.col0 * ( + 27 ) DIV + col2 col2 FROM tab0 AS cor0
----
19
29
945
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5915
SELECT + + cor0.col0 * ( + 27 ) / + col2 col2 FROM tab0 AS cor0
----
19
29
945
query I rowsort
SELECT DISTINCT + + col2 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col1 * + 16 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL cor0.col1 + - 65 * - col0 FROM tab2 AS cor0
----
486
5129
5152
query I rowsort
SELECT ALL - - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col0 + + 0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT DISTINCT + col0 - col2 DIV 19 FROM tab1 AS cor0
----
1
61
75
skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT + col0 - col2 / 19 FROM tab1 AS cor0
----
1
61
75
query I rowsort
SELECT + + col1 + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 + col1 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT DISTINCT + col1 DIV - 27 + + 99 FROM tab2 AS cor0
----
97
98
99
skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT + col1 / - 27 + + 99 FROM tab2 AS cor0
----
97
98
99
query I rowsort
SELECT + col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - - col1 + + 14 * col2 AS col2 FROM tab2 AS cor0
----
409
423
549
query I rowsort
SELECT - col2 + col0 AS col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + col2 * col1 * 7 - col0 FROM tab1 AS cor0
----
-4054
-8816
-9831
query I rowsort
SELECT ALL - col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ALL - + col0 - + col0 DIV - 43 col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL - + col0 - + col0 / - 43 col1 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT ALL 36 + + col2 FROM tab2 AS cor0
----
62
63
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT DISTINCT col2 DIV + col1 - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT col2 / + col1 - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-36
query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 * - col1 * + 66 + + col2 AS col2 FROM tab1
----
-11058
-44562
-6543
query I rowsort
SELECT ALL - col2 + col2 * col1 AS col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT col0 + - col0 - 9 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT ALL + - 23 AS col2 FROM tab0 AS cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort
SELECT ALL - + ( cor0.col2 ) * + CAST ( - 79 AS REAL ) + col1 * + col1 AS col2 FROM tab0 AS cor0
----
10003
14759
9488
query I rowsort
SELECT col1 * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + + col2 + - col0 AS col2 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT ALL - + cor0.col0 + + col0 * CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - + cor0.col0 + + col0 * CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT - - col1 + - cor0.col1 DIV 9 + + 17 FROM tab0 AS cor0
----
104
94
98
skipif mysql # not compatible
query I rowsort label-5943
SELECT - - col1 + - cor0.col1 / 9 + + 17 FROM tab0 AS cor0
----
104
94
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT CAST( NULL AS SIGNED ) + + ( + tab2.col2 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5944
SELECT CAST ( NULL AS INTEGER ) + + ( + tab2.col2 ) AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 90 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL col0 * col2 + 4 AS col2 FROM tab1
----
166
3652
7684
onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT 27 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5947
SELECT 27 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col2 * + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT + 67 DIV col1 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-5950
SELECT + 67 / col1 FROM tab1 AS cor0
----
2
5
6
query I rowsort
SELECT col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - 6 + - col1 * - col2 AS col2 FROM tab1
----
1242
1398
564
onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT - 19 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5953
SELECT - 19 / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT tab0.col0 * col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col0 + - col1 + 50 AS col1 FROM tab0
----
-12
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + tab0.col2 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 57692f20bece21b12c8a268b8f6e11e1
query I rowsort
SELECT ALL col0 - col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 84 + - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-556
-956
6
query I rowsort
SELECT - 94 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT - + 4 FROM tab0 AS cor0
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + col2 + + col0 * tab0.col1 col0 FROM tab0
----
2173
3472
8257
query I rowsort
SELECT ALL - col0 * - ( col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + cor0.col1 * - 31 AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT cor0.col1 * cor0.col1 + col0 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT - col1 - - col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + - col2 * ( - col1 ) + + col1 * - ( col2 * + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-604422
-90816
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT ALL + col2 DIV + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + col2 / + ( + col2 ) AS col0 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5969
SELECT DISTINCT - col2 DIV ( + ( col2 ) ) + ( + col2 ) * + col1 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - col2 / ( + ( col2 ) ) + ( + col2 ) * + col1 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT - col2 * col0 + - 54 FROM tab0 AS cor0
----
-7352
-846
-89
query I rowsort
SELECT DISTINCT col2 + ( col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT + - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5972
SELECT + - col1 / + col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT + col0 + - ( + 37 ) * col2 AS col0 FROM tab1 AS cor0
----
-1995
-2045
-3472
query I rowsort
SELECT DISTINCT col1 * + ( - 62 ) FROM tab0 AS cor0
----
-5332
-5642
-6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT - + col2 + - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5975
SELECT - + col2 + - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * - col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - col1 * - 57 AS col0 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT + col2 * col2 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT + - col2 * 89 AS col2 FROM tab0 AS cor0
----
-2937
-7298
-89
query I rowsort
SELECT + 99 * 36 AS col1 FROM tab2 cor0
----
3564
3564
3564
query I rowsort
SELECT ALL - 9 + + col0 FROM tab0 AS cor0
----
15
26
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 - + col0 col1 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT - - 76 FROM tab2 AS cor0
----
76
query I rowsort
SELECT ALL + col2 + - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL + 14 * col2 AS col2 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT ALL col2 + col0 + - col0 * + 13 * col2 FROM tab0 AS cor0
----
-10239
-419
-94703
query I rowsort
SELECT DISTINCT + cor0.col1 + - 22 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT cor0.col2 + 44 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT DISTINCT 95 + - col0 AS col0 FROM tab0 cor0
----
6
60
71
query I rowsort
SELECT ALL + col2 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - - 5 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT + col2 * - col0 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT ALL + 62 AS col2 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT ALL - col1 * + col0 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - - 97 + + col1 * + col0 FROM tab0 AS cor0
----
2161
3492
8196
query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5998
SELECT + col0 + ( col1 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5998
SELECT + col0 + ( col1 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 55 - col1 AS col2 FROM tab2 AS cor0
----
-4
24
38
query I rowsort
SELECT - 36 + + col2 + col0 FROM tab2 AS cor0
----
-2
68
81
query I rowsort
SELECT cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6002
SELECT col2 + - 3 DIV + col1 + - col1 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-6002
SELECT col2 + - 3 / + col1 + - col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col2 + - col1 + + 18 * tab1.col2 FROM tab1
----
1000
1073
1811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6004
SELECT DISTINCT col0 * 96 DIV col1 + - tab1.col1 + + col2 AS col0 FROM tab1
----
39
661
673
skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT col0 * 96 / col1 + - tab1.col1 + + col2 AS col0 FROM tab1
----
39
661
673
query I rowsort
SELECT col0 * + 57 + - tab1.col2 FROM tab1
----
117
3591
4464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6006
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * 58 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * 58 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 39 FROM tab0
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT DISTINCT + ( + 24 ) * col1 DIV ( + ( tab0.col2 ) ) + col1 DIV + 55 col2 FROM tab0
----
2329
27
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT + ( + 24 ) * col1 / ( + ( tab0.col2 ) ) + col1 / + 55 col2 FROM tab0
----
2329
27
63
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL col0 + 59 AS col0 FROM tab2 cor0
----
137
138
66
query I rowsort
SELECT DISTINCT + - col0 + + col2 * col1 * ( + 47 + - cor0.col2 ) FROM tab1 AS cor0
----
-5764
-61232
-9831
query I rowsort
SELECT DISTINCT + col1 * 59 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT ALL 54 * - ( - col1 ) FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT - - 47 + - cor0.col2 - + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1555
655
857
query I rowsort
SELECT + + col2 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT - col0 + col2 * - col1 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT 25 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT - + col2 DIV - 12 AS col0 FROM tab1 AS cor0
----
4
4
8
skipif mysql # not compatible
query I rowsort label-6020
SELECT - + col2 / - 12 AS col0 FROM tab1 AS cor0
----
4
4
8
query I rowsort
SELECT cor2.col2 FROM tab1, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT ALL col2 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL col2 / tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 44 * + col2 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 * - 62 AS col0 FROM tab1 AS cor0
----
-2894
-3270
-4912
query I rowsort
SELECT ALL col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT col2 * - col0 * - 46 AS col1 FROM tab2
----
138092
8694
93288
query I rowsort
SELECT ALL + col1 * col2 * + col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - 38 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-38
query I rowsort
SELECT DISTINCT col0 * cor0.col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( 0 ) col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 + 45 AS col1 FROM tab0 AS cor0
----
-44
10
21
query I rowsort
SELECT col0 - ( + col2 ) * col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT - 89 AS col2 FROM tab1 AS cor0
----
-89
-89
-89
query I rowsort
SELECT 20 AS col2 FROM tab1 cor0
----
20
20
20
query I rowsort
SELECT ALL 85 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 43e5153ae802335e917d6ce3c47e0b21
query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0, tab1 AS cor0
----
84
query I rowsort
SELECT ALL 8 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT ALL + 84 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - + col2 + + col1 * + col0 * + 39 FROM tab1 AS cor0
----
24903
2988
40464
query I rowsort
SELECT + - cor0.col2 * + 47 FROM tab2 AS cor0
----
-1222
-1269
-1786
query I rowsort
SELECT 13 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - col1 * + 97 FROM tab1 cor0
----
-1261
-2522
-970
query I rowsort
SELECT + col1 * - col2 + + 91 FROM tab0 AS cor0
----
-2747
-6
-7371
query I rowsort
SELECT + ( + col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 99 FROM tab0
----
-99
-99
-99
query I rowsort
SELECT 35 AS col0 FROM tab2
----
35
35
35
query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + 85 AS col0 FROM tab0
----
85
85
85
query I rowsort
SELECT + cor0.col1 * 42 + col0 FROM tab2 cor0
----
1309
2556
793
query I rowsort
SELECT - - col0 * 94 + + cor0.col1 FROM tab0 AS cor0
----
2342
3387
8457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * - 80 + + col2 col0 FROM tab2 AS cor0
----
3706
3707
3718
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab1
----
-44
-44
-44
query I rowsort
SELECT ( col0 ) * + col0 + 98 * col2 FROM tab0
----
1323
15957
3810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT + 53 * col0 DIV col0 + col2 AS col1 FROM tab2
----
79
80
91
skipif mysql # not compatible
query I rowsort label-6059
SELECT + 53 * col0 / col0 + col2 AS col1 FROM tab2
----
79
80
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT DISTINCT - col2 + - col2 DIV tab0.col2 AS col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - col2 + - col2 / tab0.col2 AS col2 FROM tab0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + tab1.col1 col2 FROM tab1
----
104
107
120
query I rowsort
SELECT DISTINCT - col1 + + col0 + col2 FROM tab1
----
111
163
31
query I rowsort
SELECT + ( + 1 + - tab2.col2 ) AS col2 FROM tab2
----
-25
-26
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT DISTINCT + - col2 DIV col1 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + - col2 / col1 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col1 + + 94 * col1 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT DISTINCT + - col2 * + col2 - col1 AS col2 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT + col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + ( 4 ) * col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT ALL - - col1 * col2 + col2 + - col1 * + col1 FROM tab2 AS cor0
----
-1921
-97
395
query I rowsort
SELECT DISTINCT + col2 + + col1 * 41 AS col0 FROM tab2 AS cor0
----
1298
2445
735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6071
SELECT DISTINCT - - ( col0 ) + CAST( NULL AS SIGNED ) * ( cor0.col0 * 18 ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - - ( col0 ) + CAST ( NULL AS INTEGER ) * ( cor0.col0 * 18 ) FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL + - cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL + - cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 54 + + cor0.col2 * col0 + - 31 FROM tab2 AS cor0
----
2051
212
3025
query I rowsort
SELECT - ( - col0 ) * col0 + 92 * col2 FROM tab1 AS cor0
----
15232
4977
9340
query I rowsort
SELECT ALL - - col0 + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 + - 83 * 8 AS col1 FROM tab2 AS cor0
----
12
65
780
query I rowsort
SELECT DISTINCT col2 + col1 + ( col0 ) FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT + - cor0.col2 * - col2 + - col0 + col1 FROM tab0 AS cor0
----
1151
63
6726
query I rowsort
SELECT - 32 AS col0 FROM tab2
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - col0 - + col0 * + tab1.col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL col1 - - col0 AS col0 FROM tab2
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6082
SELECT ALL - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - + col0 - + col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6086
SELECT ALL - cor0.col2 - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - cor0.col2 - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT - cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6087
SELECT - cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - 95 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT 13 AS col2 FROM tab1
----
13
13
13
query I rowsort
SELECT DISTINCT + 31 * - col1 FROM tab0
----
-2666
-2821
-3007
query I rowsort
SELECT ALL - + col2 * - ( 11 ) + + col1 FROM tab1 AS cor0
----
1069
620
637
query I rowsort
SELECT + col1 + - col0 * col0 + col1 FROM tab2 AS cor0
----
-5966
-6207
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6093
SELECT DISTINCT - col2 * + CAST( - col1 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - col2 * + CAST ( - col1 AS INTEGER ) FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT + col2 * CAST( + 79 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2054
2133
3002
skipif mysql # not compatible
query I rowsort label-6094
SELECT + col2 * CAST ( + 79 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - col0 + - col2 + col0 AS col1 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT + col0 + + 62 - + 48 DIV - tab1.col2 FROM tab1
----
126
142
65
skipif mysql # not compatible
query I rowsort label-6096
SELECT + col0 + + 62 - + 48 / - tab1.col2 FROM tab1
----
126
142
65
query I rowsort
SELECT + - ( - col0 ) * col1 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + cor0.col2 * + 66 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT ALL - ( col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL 75 AS col1 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT - col2 * - 20 AS col0 FROM tab1 AS cor0
----
1080
1140
1920
query I rowsort
SELECT DISTINCT - - 24 * col1 FROM tab0 cor0
----
2064
2184
2328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6103
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT DISTINCT + - cor0.col0 DIV 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + - cor0.col0 / 1 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 77 * col2 FROM tab0 AS cor0
----
2541
6314
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT ALL - + col1 * col2 + + col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1254
-1404
-576
skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - + col1 * col2 + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
-1254
-1404
-576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT - + col1 + + col1 DIV col0 FROM tab1 cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-6107
SELECT - + col1 + + col1 / col0 FROM tab1 cor0
----
-10
-13
-18
query I rowsort
SELECT + col0 * col1 * + col1 + col1 AS col1 FROM tab0
----
177590
329412
737100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 63 FROM tab0, tab2 cor0
----
-63
query I rowsort
SELECT + - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL ( col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 86 * col0 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT - + 51 AS col0 FROM tab1 AS cor0
----
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT DISTINCT + + col0 DIV 52 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + + col0 / 52 FROM tab0 cor0
----
0
1
query I rowsort
SELECT ALL - - ( col1 ) * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 36 * col1 AS col1 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT ALL - - 21 AS col2 FROM tab1 AS cor0
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT + - col0 DIV - 80 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6119
SELECT + - col0 / - 80 AS col1 FROM tab1 cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT ALL - - CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - - CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + 71 AS col1 FROM tab0 AS cor0
----
157
162
168
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 - col2 col0 FROM tab0 AS cor0
----
-56
-7
25
query I rowsort
SELECT DISTINCT 81 + + tab1.col1 FROM tab1
----
107
91
94
query I rowsort
SELECT 11 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT - - 85 * + col0 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT - col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + ( col0 ) + + 95 AS col1 FROM tab1 AS cor0
----
159
175
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT DISTINCT col2 + cor0.col0 DIV 89 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT col2 + cor0.col0 / 89 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col0 * col1 - col1 FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - - 48 FROM tab1 AS cor0
----
48
48
48
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT - col2 * col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + - col1 * 25 AS col0 FROM tab1 AS cor0
----
-250
-325
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT + + cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6135
SELECT + + cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6136
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col2 * - col0 * - 5 AS col0 FROM tab1 AS cor0
----
18240
38400
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT - col1 DIV - ( col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6139
SELECT - col1 / - ( col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT - tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT cor0.col1 * + col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT + + cor0.col1 DIV ( + 7 ) AS col0 FROM tab0 AS cor0
----
12
13
13
skipif mysql # not compatible
query I rowsort label-6143
SELECT + + cor0.col1 / ( + 7 ) AS col0 FROM tab0 AS cor0
----
12
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - - col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + 73 + col1 AS col0 FROM tab1 AS cor0
----
83
86
99
query I rowsort
SELECT - - 60 AS col0 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT ALL - + 56 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
22
23
query I rowsort
SELECT - + 62 AS col2 FROM tab2 AS cor0
----
-62
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT ALL - col0 * + col1 + + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - col0 * + col1 + + col2 / col2 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 * + col0 col1 FROM tab1 AS cor0
----
-246
-5248
-6560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6152
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - - col1 * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL 46 AS col2 FROM tab2
----
46
46
46
query I rowsort
SELECT ALL 18 AS col1 FROM tab2
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT col2 DIV col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6156
SELECT col2 / col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 68 FROM tab1
----
68
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 + ( - col1 ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + + col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 36 AS col2 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ( + col1 ) * - col2 + + col1 * + col2 * + col2 FROM tab1 AS cor0
----
118560
31920
74412
query I rowsort
SELECT ALL tab2.col1 * + col2 + col0 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT + col0 + - 87 FROM tab1
----
-23
-7
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + ( ( - col1 ) + + tab1.col1 * col2 ) FROM tab1
----
1235
1378
560
query I rowsort
SELECT ALL + 83 * col0 AS col2 FROM tab2
----
581
6474
6557
query I rowsort
SELECT - cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col2 FROM tab2 cor0
----
-37
-37
-37
query I rowsort
SELECT ALL - 83 * col1 FROM tab1 AS cor0
----
-1079
-2158
-830
query I rowsort
SELECT DISTINCT - 64 FROM tab0, tab0 AS cor0
----
-64
query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab2
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + - cor0.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 24dfba18645312c485b6b3fc5bcb59ed
onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT + - col0 DIV - 69 + cor0.col0 DIV + 66 col0 FROM tab1 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6177
SELECT + - col0 / - 69 + cor0.col0 / + 66 col0 FROM tab1 cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - - col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 57 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT 33 * - col0 FROM tab2 AS cor0
----
-231
-2574
-2607
query I rowsort
SELECT - ( - 22 ) AS col2 FROM tab0
----
22
22
22
query I rowsort
SELECT ALL + + col0 * - cor0.col0 + col2 + col0 * + col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6185
SELECT + col2 + col2 DIV col1 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-6185
SELECT + col2 + col2 / col1 FROM tab2
----
26
27
40
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0, tab0 cor1 WHERE ( NULL ) NOT IN ( cor0.col1 )
----
query I rowsort
SELECT DISTINCT 99 FROM tab2, tab0 cor0
----
99
query I rowsort
SELECT + tab1.col2 - - col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - col1 * tab0.col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - ( + 47 ) FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL col2 DIV - ( col0 ) FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL col2 / - ( col0 ) FROM tab2
----
-3
0
0
query I rowsort
SELECT ALL tab0.col1 * 50 AS col0 FROM tab0
----
4300
4550
4850
query I rowsort
SELECT - col1 * col1 + - col2 * + col2 AS col1 FROM tab1 cor0
----
-3349
-3592
-9385
query I rowsort
SELECT + + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif mysql # not compatible
query I rowsort
SELECT - + col1 * CAST ( - col2 AS REAL ) + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - col0 * col0 * - 31 FROM tab1 AS cor0
----
126976
198400
279
onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT + col2 + + col2 + - col0 DIV - 92 AS col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-6199
SELECT + col2 + + col2 + - col0 / - 92 AS col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT + - CAST( NULL AS SIGNED ) + col0 * col2 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6200
SELECT + - CAST ( NULL AS INTEGER ) + col0 * col2 * - col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 92 AS col0 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT - ( - 16 ) FROM tab2 AS cor0
----
16
16
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col1 + tab2.col2 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * - cor0.col0 - CAST ( 97 AS REAL ) AS col1 FROM tab2, tab2 AS cor0
----
-48
5987
6144
query I rowsort
SELECT + col1 * - ( tab1.col2 ) * + col1 + ( + col2 * + tab1.col2 ) AS col0 FROM tab1
----
-2451
-33588
-7008
query I rowsort
SELECT col1 + - col0 * tab0.col2 * col0 AS col0 FROM tab0
----
-1128
-18922
-649431
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT - CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6209
SELECT - CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 + - col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT - ( - col1 ) DIV + cor0.col0 + 54 AS col1 FROM tab0 AS cor0
----
55
56
57
skipif mysql # not compatible
query I rowsort label-6211
SELECT - ( - col1 ) / + cor0.col0 + 54 AS col1 FROM tab0 AS cor0
----
55
56
57
query I rowsort
SELECT - - col2 * + col2 + + col0 * + col0 + col1 * + col1 FROM tab0 AS cor0
----
10635
22926
9061
query I rowsort
SELECT - - cor0.col2 * 82 + col2 AS col0 FROM tab1 cor0
----
4482
4731
7968
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( - col1 ) IN ( + col2 ) ) AND NULL = ( NULL )
----
query I rowsort
SELECT col1 + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + 22 - tab2.col2 AS col1 FROM tab2
----
-16
-4
-5
query I rowsort
SELECT + col1 + + col2 * - col2 FROM tab1
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT - col2 * col1 DIV + col0 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-6221
SELECT - col2 * col1 / + col0 FROM tab1
----
-15
-468
-8
query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT tab0.col2 + + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + col0 * col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT DISTINCT - - col1 DIV col1 col2 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT - - col1 / col1 col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT - - col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT col2 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 68 FROM tab2
----
68
query I rowsort
SELECT tab0.col1 - + 71 * col1 AS col1 FROM tab0
----
-6020
-6370
-6790
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT col1 + + col1 * + col1 DIV col1 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-6232
SELECT col1 + + col1 * + col1 / col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT ALL - - 23 * col2 * col2 + cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
211969
67086
74727
skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - - 23 * col2 * col2 + cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
211969
67086
74727
query I rowsort
SELECT ALL + - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6238
SELECT - - col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6238
SELECT - - col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + + ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 40 + - col0 FROM tab0 AS cor0
----
-129
-64
-75
query I rowsort
SELECT ALL - col0 * tab1.col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + cor0.col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col1 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT 92 AS col2 FROM tab1
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT DISTINCT - col1 * + cor0.col1 + - col2 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-105
-176
-678
skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT - col1 * + cor0.col1 + - col2 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-105
-176
-678
query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT NULL >= col2
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - col0 IN ( col0 + col1 )
----
17
31
59
query I rowsort
SELECT col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT ALL - col1 + - cor0.col0 FROM tab0 cor0
----
-110
-132
-180
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE cor0.col2 = NULL
----
query I rowsort
SELECT ALL + col2 - - col0 AS col1 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT DISTINCT col0 DIV + col1 + col2 AS col2 FROM tab2
----
27
42
skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT col0 / + col1 + col2 AS col2 FROM tab2
----
27
42
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 - + col1 AS col1 FROM tab2 WHERE NOT NULL < - col1 * + col2
----
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( NULL ) <= col2 * - col0 * - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT ALL + tab2.col0 * - col1 DIV col1 + - col1 FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + tab2.col0 * - col1 / col1 + - col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT col2 * col1 * + col1 - - col1 AS col0 FROM tab0
----
244154
679133
9506
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) >= + col2 * + col2 + - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT DISTINCT col0 DIV - col2 - col2 AS col2 FROM tab0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT col0 / - col2 - col2 AS col2 FROM tab0
----
-33
-36
-83
query III rowsort
SELECT * FROM tab2 WHERE col0 >= - col2 * col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - tab1.col2 * col2 + + col1 FROM tab1 WHERE col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT + - col1 DIV - col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6266
SELECT + - col1 / - col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + col0 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - - col0 * - col1 + col1 * - col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT DISTINCT + col0 + + col0 FROM tab2 cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - col1 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - cor0.col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT + col1 + col0 DIV cor0.col0 col0 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6274
SELECT + col1 + col0 / cor0.col0 col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - + col1 + - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 AS col2 FROM tab1
----
43
622
73
query I rowsort
SELECT col1 + col2 + + tab2.col1 FROM tab2
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT tab1.col2 + col0 DIV + col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6280
SELECT tab1.col2 + col0 / + col0 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + tab0.col1 + - tab0.col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col1 * col1 + - col0 FROM tab2
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT col1 + + col2 * col2 DIV col1 AS col1 FROM tab1
----
138
334
721
skipif mysql # not compatible
query I rowsort label-6284
SELECT col1 + + col2 * col2 / col1 AS col1 FROM tab1
----
138
334
721
query I rowsort
SELECT col0 + - tab2.col2 + + col0 * - col2 FROM tab2
----
-1976
-209
-2961
query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT col0 * col1 - - col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL + col1 + col1 * + col2 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL col2 * - col0 + + tab0.col2 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
17
31
59
query I rowsort
SELECT + col0 + + cor0.col2 * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
119888
32554
75819
query I rowsort
SELECT ALL + + col0 + col0 * col0 * cor0.col0 AS col0 FROM tab1 cor0
----
262208
30
512080
onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT ALL col1 DIV - col0 - - col1 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL col1 / - col0 - - col1 FROM tab2 AS cor0
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 - col0 col2 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + - col0 * - col2 AS col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + tab1.col1 + + tab1.col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
29
74
93
query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL col0 * 82 FROM tab1
----
246
5248
6560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT ALL + col0 DIV - CAST( + 57 AS SIGNED ) FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + col0 / - CAST ( + 57 AS INTEGER ) FROM tab0
----
-1
0
0
query I rowsort
SELECT + col0 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col1 + 80 + - col0 * - col0 * col1 FROM tab2 cor0
----
106194
1630
359095
query I rowsort
SELECT DISTINCT - tab0.col1 * col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT col2 + + 42 + - 59 FROM tab2 AS cor0
----
10
21
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6307
SELECT - + CAST( NULL AS SIGNED ) * - 70 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6307
SELECT - + CAST ( NULL AS INTEGER ) * - 70 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + col1 * - ( col1 + 35 ) AS col2 FROM tab1 AS cor0
----
1586
450
624
query I rowsort
SELECT + 76 AS col0 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT + ( 47 ) * col0 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT ALL - tab2.col1 * col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT col1 DIV tab2.col1 + - 96 AS col0 FROM tab2
----
-95
-95
-95
skipif mysql # not compatible
query I rowsort label-6314
SELECT col1 / tab2.col1 + - 96 AS col0 FROM tab2
----
-95
-95
-95
query I rowsort
SELECT + + ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 64 * - col1 FROM tab0 cor0
----
-5504
-5824
-6208
query I rowsort
SELECT ALL col0 * col0 * 28 AS col1 FROM tab0 AS cor0
----
16128
221788
34300
query I rowsort
SELECT + 74 - - col0 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 + + 61 * + col2 * 24 FROM tab1 AS cor0
----
139216
77649
82814
query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab1 AS cor0
----
91
query I rowsort
SELECT - - col0 * + col0 * + ( 41 ) + cor0.col2 FROM tab0 AS cor0
----
23649
324843
50226
query I rowsort
SELECT ALL - col2 * col2 * - col2 + - col0 * - col2 FROM tab1 AS cor0
----
157626
188841
892416
query I rowsort
SELECT col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 65 * col1 + col2 * - col1 * col0 AS col2 FROM tab1 cor0
----
-2522
-35830
-98995
query I rowsort
SELECT - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT + ( + col2 ) + - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * + col1 * + col1 - - 72 * + col1 col2 FROM tab0 AS cor0
----
-126936
-142506
-162378
query I rowsort
SELECT - + col2 * col1 - ( col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col2 ) * - col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - col0 + - cor0.col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 + + col2 * 98 FROM tab1 AS cor0
----
5318
5596
9421
query I rowsort
SELECT + col1 + 34 AS col1 FROM tab2 cor0
----
51
65
93
query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab2
----
48
query I rowsort
SELECT ALL col1 + - tab1.col2 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6335
SELECT + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + 4 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT col0 + 85 FROM tab0 cor0
----
109
120
174
query I rowsort
SELECT + - col0 + - 78 * - col2 AS col0 FROM tab2 AS cor0
----
1950
2099
2885
query I rowsort
SELECT cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT + + col2 - + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6341
SELECT + + col2 - + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT 19 * - col2 * 28 AS col2 FROM tab2
----
-13832
-14364
-20216
query I rowsort
SELECT - col2 * + tab0.col0 * col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT 73 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT col0 * 99 AS col0 FROM tab2 AS cor0
----
693
7722
7821
query I rowsort
SELECT col1 * col2 + + 8 AS col2 FROM tab0 AS cor0
----
105
2846
7470
query I rowsort
SELECT ALL - col1 * 69 + - cor0.col0 * + col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-2297
-4158
-6040
query I rowsort
SELECT ALL - col0 + - 99 AS col1 FROM tab0 AS cor0
----
-123
-134
-188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 78 FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL + + cor0.col1 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6354
SELECT CAST( - col2 + col2 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6354
SELECT CAST ( - col2 + col2 AS INTEGER ) FROM tab0
----
0
0
0
query I rowsort
SELECT - - ( col2 ) * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 + + col0 * + col2 AS col0 FROM tab2 cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6357
SELECT - CAST( - ( - col1 ) * CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6357
SELECT - CAST ( - ( - col1 ) * CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 62 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
62
query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab2.col0 - tab2.col0 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + tab1.col2 * + col0 + - ( + 32 * - col0 ) FROM tab1
----
10240
258
5696
query I rowsort
SELECT + col2 + + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col1 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT - + 29 * col1 AS col1 FROM tab1 AS cor0
----
-290
-377
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT + - col0 + col1 DIV + 69 col2 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6366
SELECT + - col0 + col1 / + 69 col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + + 82 * - col0 AS col2 FROM tab0 AS cor0
----
-1968
-2870
-7298
query I rowsort
SELECT + 25 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT DISTINCT 87 * col0 AS col1 FROM tab0
----
2088
3045
7743
query I rowsort
SELECT - 80 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT ALL 0 * - col0 DIV 43 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL 0 * - col0 / 43 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL tab1.col1 + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col1 + col0 * + col2 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT col1 + col0 DIV tab1.col0 - - col0 AS col2 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-6377
SELECT col1 + col0 / tab1.col0 - - col0 AS col2 FROM tab1
----
30
75
94
query I rowsort
SELECT - 88 + ( col0 ) FROM tab1 AS cor0
----
-24
-8
-85
query I rowsort
SELECT + + ( - cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col2 * col1 * col1 + col1 + col0 AS col2 FROM tab2 AS cor0
----
11078
25985
90643
query I rowsort
SELECT - 3 FROM tab0 cor0
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 * col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
-1050
-218940
-23760
query I rowsort
SELECT cor0.col2 * col0 + - col1 + 52 * col1 * col0 FROM tab2 AS cor0
----
11442
241273
72821
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( col0 ) col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT + - ( col2 ) + + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6387
SELECT + - ( col2 ) + + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 + + 54 + + col1 FROM tab1 AS cor0
----
106
74
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 16 + - col0 * col1 col0 FROM tab0 AS cor0
----
-2024
-3344
-7994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - 60 ) col0 FROM tab2 cor0
----
-60
-60
-60
query I rowsort
SELECT + ( 40 + col1 ) FROM tab1
----
50
53
66
query I rowsort
SELECT cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT ( 53 ) * + cor0.col2 FROM tab0 AS cor0
----
1749
4346
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT col0 * col0 * col2 + col1 DIV tab0.col2 FROM tab0
----
1322
19010
649523
skipif mysql # not compatible
query I rowsort label-6396
SELECT col0 * col0 * col2 + col1 / tab0.col2 FROM tab0
----
1322
19010
649523
query I rowsort
SELECT ( col0 * - tab1.col0 ) + - col1 FROM tab1
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + cor1.col1 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 92e3b258bb05c688aeabd5d16aba9daf
query I rowsort
SELECT - - 3 * tab2.col2 * tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 09eb8cf12116fbd3a5d4c97e482fecd1
query I rowsort
SELECT ALL - ( tab2.col1 + col0 ) AS col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT col1 + - col1 * - col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT col2 DIV - ( col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-6402
SELECT col2 / - ( col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT DISTINCT + - col2 + - 60 AS col0 FROM tab0 AS cor0
----
-142
-61
-93
query I rowsort
SELECT - + col1 * cor0.col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT 45 AS col1 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT + 9 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL col2 + 14 + col0 FROM tab0 AS cor0
----
185
50
71
query I rowsort
SELECT col1 + - 38 FROM tab0 AS cor0
----
48
53
59
query I rowsort
SELECT ALL + + 6 FROM tab2 cor0
----
6
6
6
query I rowsort
SELECT DISTINCT col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT col1 * col2 + ( col1 ) * col1 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT ALL - - 51 + - col0 AS col2 FROM tab1 AS cor0
----
-13
-29
48
query I rowsort
SELECT ALL + col0 * + col0 + + 79 FROM tab0 AS cor0
----
1304
655
8000
query I rowsort
SELECT - 79 * + 8 + - col1 FROM tab1
----
-642
-645
-658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 col2 FROM tab0 AS cor0
----
48
48
48
query I rowsort
SELECT - 31 + col0 * - col0 * col1 FROM tab0
----
-118856
-49567
-720842
onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT col0 DIV + col1 + col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-6418
SELECT col0 / + col1 + col1 FROM tab2
----
21
31
60
query I rowsort
SELECT DISTINCT - col1 + - col2 + - col2 AS col0 FROM tab2
----
-111
-85
-93
query I rowsort
SELECT + col0 * col1 - + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - col2 * - col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT + cor0.col2 * cor0.col0 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT DISTINCT + + cor0.col0 * + 30 + + col2 AS col0 FROM tab0 cor0
----
1051
2752
753
query I rowsort
SELECT - - col0 * + col0 + cor0.col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL - cor0.col0 + - col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + + col0 + ( - col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - cor0.col0 * + col1 + col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col0 + - 28 * - 8 AS col1 FROM tab2 AS cor0
----
231
302
303
query I rowsort
SELECT ALL tab0.col1 * + tab0.col2 + - col2 AS col2 FROM tab0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + ( + cor0.col2 ) ) + + 97 * - 36 col2 FROM tab0 AS cor0
----
-10216
-3493
-4581
query I rowsort
SELECT + + col1 + col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col0 * 79 AS col0 FROM tab0 AS cor0
----
1896
2765
7031
query I rowsort
SELECT ALL - col1 * 7 AS col1 FROM tab2 cor0
----
-119
-217
-413
query I rowsort
SELECT ALL + 61 AS col1 FROM tab2
----
61
61
61
query I rowsort
SELECT ALL col2 * tab0.col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * + col0 + 57 + + col0 * ( col2 + col2 ) * col1 FROM tab0 AS cor0
----
1320995
135489
6812
query I rowsort
SELECT DISTINCT col0 * 62 - col2 * + col2 FROM tab1 AS cor0
----
-2730
-4256
719
query I rowsort
SELECT ALL + + cor0.col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col2 - 49 FROM tab0 cor0
----
-131
-50
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT DISTINCT + col1 DIV + ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT + col1 / + ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT ALL - 19 - - col1 FROM tab1 AS cor0
----
-6
-9
7
query I rowsort
SELECT ALL - - 44 * - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT ALL + + col1 - - col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT - col0 + + ( 68 ) AS col0 FROM tab2
----
-10
-11
61
query I rowsort
SELECT - col2 + + 66 * 90 AS col0 FROM tab0
----
5858
5907
5939
query I rowsort
SELECT ALL col0 + - 93 FROM tab0
----
-4
-58
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6451
SELECT DISTINCT tab1.col2 * col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6451
SELECT DISTINCT tab1.col2 * col1 + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + - col1 + 49 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1333
-1354
-1879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( + col1 ) * cor0.col1 col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT cor0.col1 * - cor0.col2 * + col2 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT col0 DIV col1 + - col2 * - col0 * + col0 AS col2 FROM tab0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-6455
SELECT col0 / col1 + - col2 * - col0 * + col0 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 43 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT - 74 * - col2 AS col2 FROM tab2
----
1924
1998
2812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6459
SELECT DISTINCT + col0 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + col0 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col2 + - 37 AS col2 FROM tab2 AS cor0
----
-10
-11
1
query I rowsort
SELECT - col1 * ( - cor0.col1 * col1 ) FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT col0 * + 81 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT - + col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * + col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + + cor0.col1 * + 84 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT - col1 + 10 * col0 FROM tab0 AS cor0
----
154
253
799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 * + tab2.col2 col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + col2 + tab0.col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + col1 * col0 + tab2.col1 FROM tab2
----
1360
248
4661
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < col2
----
query I rowsort
SELECT ALL col0 + + col0 + - col0 FROM tab2
----
7
78
79
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT ALL - col1 * + col2 + col2 + - col2 AS col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 + + col1 col2 FROM tab0
----
133
143
262
query I rowsort
SELECT col2 * + col2 + - col0 FROM tab2
----
1365
598
722
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 col0 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) > NULL
----
query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE - col0 * col1 IN ( - col1 )
----
query I rowsort
SELECT ALL col0 * col2 * + col1 AS col1 FROM tab1 WHERE NULL >= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) NOT IN ( col1 * col1 )
----
query I rowsort
SELECT col2 + - col0 * col0 AS col0 FROM tab1
----
-4039
-6304
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab0.col1 col2 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT DISTINCT - - col0 * col0 DIV col1 AS col1 FROM tab2 cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - - col0 * col0 / col1 AS col1 FROM tab2 cor0
----
1
103
367
query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 * - tab1.col1 * tab1.col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col2 + - col0 + - col0 AS col1 FROM tab2
----
-120
-130
13
query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT + tab1.col2 DIV col2 + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6491
SELECT + tab1.col2 / col2 + col1 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE + col1 * - col1 + + col1 + - col2 * col0 IN ( + col1 - tab2.col2 )
----
query I rowsort
SELECT + col1 * + col2 * + col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col0 * - col2 * col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT + 6 * col2 * 47 - col0 AS col2 FROM tab2 AS cor0
----
10637
7254
7607
onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT - - col2 DIV col2 + + ( col1 ) * - col2 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-6496
SELECT - - col2 / col2 + + ( col1 ) * - col2 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT + - cor0.col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT cor0.col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT ( tab1.col0 ) - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col2 * col1 - col2 * col0 FROM tab2 cor0
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT 50 DIV - col0 FROM tab1 AS cor0
----
-16
0
0
skipif mysql # not compatible
query I rowsort label-6501
SELECT 50 / - col0 FROM tab1 AS cor0
----
-16
0
0
query I rowsort
SELECT - ( - tab1.col2 ) - + tab1.col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col2 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + 48 * + 80 col0 FROM tab0 AS cor0
----
3758
3807
3839
query I rowsort
SELECT DISTINCT + 91 FROM tab2, tab1 AS cor0
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 + 54 AS col2 FROM tab0 AS cor0
----
143
78
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - 93 FROM tab1 AS cor0
----
93
93
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT ALL + col1 + col0 DIV 99 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + col1 + col0 / 99 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 79 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab1
----
98
query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + 27 FROM tab2
----
27
27
27
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col1 * + col0 * - 33 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-21690
-35568
-3978
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT DISTINCT + cor0.col0 + CAST( col2 AS SIGNED ) * + col0 - + col2 col2 FROM tab1 AS cor0
----
111
3655
7664
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + cor0.col0 + CAST ( col2 AS INTEGER ) * + col0 - + col2 col2 FROM tab1 AS cor0
----
111
3655
7664
query I rowsort
SELECT ALL + col0 * - col1 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT col0 * 42 AS col2 FROM tab0 cor0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ALL + col1 DIV col0 + - col1 + + col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + col1 / col0 + - col1 + + col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT col0 + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT ALL cor0.col2 DIV - 11 FROM tab0 AS cor0
----
-3
-7
0
skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL cor0.col2 / - 11 FROM tab0 AS cor0
----
-3
-7
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT DISTINCT cor0.col0 DIV - ( - col2 ) FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT cor0.col0 / - ( - col2 ) FROM tab1 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6525
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT DISTINCT - cor0.col0 + cor0.col1 * - col1 - cor0.col0 DIV ( + col1 ) AS col1 FROM tab1 AS cor0
----
-170
-255
-679
skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT - cor0.col0 + cor0.col1 * - col1 - cor0.col0 / ( + col1 ) AS col1 FROM tab1 AS cor0
----
-170
-255
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6527
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * 22 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT ALL - + col1 + + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * - col2 + - 33 * + col0 FROM tab0 AS cor0
----
-1058
2046
4525
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6531
SELECT ALL cor0.col1 + + CAST( + cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL cor0.col1 + + CAST ( + cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + cor0.col1 * 35 + + 75 + col0 AS col0 FROM tab1 cor0
----
489
610
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 col0 FROM tab1 AS cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT + ( col0 ) * cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 65 - - cor0.col0 FROM tab0, tab2 AS cor0
----
-58
13
14
query I rowsort
SELECT ALL - col0 + - 29 AS col2 FROM tab2 AS cor0
----
-107
-108
-36
query I rowsort
SELECT ALL - col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT DISTINCT - - col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - - col2 / + col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + ( + col2 ) + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + col0 * + col0 * + 71 + + col2 + + col0 * col0 FROM tab2
----
3555
438074
449390
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + - ( - col0 ) / - col0 + + CAST ( col1 AS REAL ) * - col1 AS col2 FROM tab1
----
-158
-266
-731
query I rowsort
SELECT DISTINCT - col2 + - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - 21 + - col0 FROM tab0 AS cor0
----
-110
-45
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT ALL - col1 * col2 + - CAST( col0 AS SIGNED ) + + col0 * - col0 FROM tab0 AS cor0
----
-1357
-15472
-3438
skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - col1 * col2 + - CAST ( col0 AS INTEGER ) + + col0 * - col0 FROM tab0 AS cor0
----
-1357
-15472
-3438
query I rowsort
SELECT - 90 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT 18 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
118
187
694
query I rowsort
SELECT col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT - 57 - + col1 * - col0 AS col0 FROM tab1
----
21
583
983
query I rowsort
SELECT DISTINCT - 33 * cor0.col2 FROM tab2 cor0
----
-1254
-858
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT + 87 DIV + col1 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6552
SELECT + 87 / + col1 AS col0 FROM tab0
----
0
0
1
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab0
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT DISTINCT col1 + col0 DIV + col2 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT col1 + col0 / + col2 FROM tab1
----
11
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col1 FROM tab2
----
0
query I rowsort
SELECT 47 + tab0.col2 * + 80 AS col2 FROM tab0
----
127
2687
6607
query I rowsort
SELECT + - 47 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT 92 * - col2 FROM tab1
----
-4968
-5244
-8832
query I rowsort
SELECT ALL + 71 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL - ( - col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 8 FROM tab0, tab1 AS cor0, tab0 cor1
----
8
query I rowsort
SELECT ALL + cor1.col1 * 52 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 568698e8dd4526979db1b5dc3de948b5
query I rowsort
SELECT DISTINCT 82 + - col1 FROM tab2
----
23
51
65
query I rowsort
SELECT + 59 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT + tab0.col0 DIV + col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6566
SELECT + tab0.col0 / + col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ( + col2 ) * 74 AS col0 FROM tab1
----
3996
4218
7104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT - + col0 + CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6568
SELECT - + col0 + CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * col2 + ( + col0 ) * col1 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT tab2.col2 + col1 * - col0 + col1 FROM tab2
----
-1288
-159
-4517
query I rowsort
SELECT ALL col2 + - col2 * 74 + - 30 AS col0 FROM tab2
----
-1928
-2001
-2804
query I rowsort
SELECT DISTINCT - 70 * + tab1.col2 + + col2 FROM tab1
----
-3726
-3933
-6624
query I rowsort
SELECT ALL + - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL col2 + col0 * + col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT + col0 + - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * - 7 AS col1 FROM tab0
----
-231
-574
-7
query I rowsort
SELECT ALL + - col2 + 85 * col1 * col0 - - col2 FROM tab0 AS cor0
----
175440
288575
688415
query I rowsort
SELECT + col0 * ( - cor0.col2 ) + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6579
SELECT DISTINCT cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 + - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL 76 * tab1.col2 AS col0 FROM tab1
----
4104
4332
7296
query I rowsort
SELECT DISTINCT + 99 + ( - cor0.col0 ) FROM tab2 AS cor0
----
20
21
92
query I rowsort
SELECT DISTINCT col0 * - 63 FROM tab0
----
-1512
-2205
-5607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - col1 * col1 col1 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6585
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - 66 FROM tab2, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT ALL + 95 + + 42 AS col2 FROM tab1 AS cor0
----
137
137
137
query I rowsort
SELECT + - 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT - - col0 * col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL + 46 DIV col1 FROM tab1 cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + 46 / col1 FROM tab1 cor0
----
1
3
4
query I rowsort
SELECT ALL - 48 * col1 AS col0 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT DISTINCT + 51 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1140
52
6775
query I rowsort
SELECT + 45 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT + + col0 - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - - 35 + + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
133
154
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT DISTINCT - col2 * - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT - col2 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 + + col1 * + 83 col2 FROM tab2 AS cor0
----
1468
2630
4954
query I rowsort
SELECT - + ( cor0.col2 ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ( - tab0.col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL 35 * - 58 AS col2 FROM tab2
----
-2030
-2030
-2030
query I rowsort
SELECT - 7 AS col2 FROM tab0
----
-7
-7
-7
query I rowsort
SELECT ALL - + col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6605
SELECT col1 * - col1 * CAST( col2 + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-181012
-21964
-51894
skipif mysql # not compatible
query I rowsort label-6605
SELECT col1 * - col1 * CAST ( col2 + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-181012
-21964
-51894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * - 20 col2 FROM tab2 AS cor0
----
1239
357
651
query I rowsort
SELECT col0 + - col1 * ( + ( cor0.col1 ) ) FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + + col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - ( col0 ) * + 6 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT + - 45 + + col0 FROM tab2 AS cor0
----
-38
33
34
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 99 + - 92 FROM tab0 cor0
----
7
7
7
query I rowsort
SELECT DISTINCT col0 * + col2 + - col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT DISTINCT ( - 19 ) + col2 FROM tab2
----
19
7
8
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT ALL + col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT 10 * col2 AS col1 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL - 22 FROM tab0, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT 77 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT DISTINCT - 76 DIV col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT - 76 / col2 FROM tab1
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT DISTINCT col2 DIV + ( col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT col2 / + ( col1 ) FROM tab0
----
0
query I rowsort
SELECT - col1 * - ( - col1 ) FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 87 * + col2 * - col0 FROM tab0
----
3045
634926
68904
query I rowsort
SELECT ALL - 67 AS col0 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT ALL 42 FROM tab1
----
42
42
42
query I rowsort
SELECT - ( cor1.col2 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL + ( - 75 ) AS col1 FROM tab1, tab0 cor0, tab2, tab0 cor1
----
81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73
query I rowsort
SELECT DISTINCT + col1 * col2 + 35 FROM tab0 AS cor0
----
132
2873
7497
onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT ALL col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - + col0 * ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT DISTINCT + col2 DIV col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + col2 / col0 FROM tab1
----
0
1
18
query I rowsort
SELECT + + 88 * + col2 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT ALL - col0 * 63 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT - cor0.col2 * 42 AS col0 FROM tab2 cor0
----
-1092
-1134
-1596
query I rowsort
SELECT DISTINCT + 53 + col2 * col1 AS col0 FROM tab0 AS cor0
----
150
2891
7515
query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT ( 96 * - tab0.col2 ) + col0 * col2 AS col0 FROM tab0
----
-2376
-574
-61
query I rowsort
SELECT + + 13 * - col2 AS col0 FROM tab0 AS cor0
----
-1066
-13
-429
query I rowsort
SELECT 85 AS col2 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT - 8 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT DISTINCT - - 78 + col2 AS col1 FROM tab1 AS cor0
----
132
135
174
query I rowsort
SELECT 71 + col2 AS col0 FROM tab0 cor0
----
104
153
72
query I rowsort
SELECT ALL - col0 + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col2 * - 36 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT + 92 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT ALL - 68 AS col0 FROM tab0 AS cor0
----
-68
-68
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT col0 DIV - col0 + 35 + - col0 AS col1 FROM tab2 AS cor0
----
-44
-45
27
skipif mysql # not compatible
query I rowsort label-6654
SELECT col0 / - col0 + 35 + - col0 AS col1 FROM tab2 AS cor0
----
-44
-45
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + + col0 + 0 * + col2 col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - + 40 AS col2 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT 50 * - col2 AS col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT + 37 AS col1 FROM tab2 AS cor0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT - col0 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6659
SELECT - col0 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT ALL + col1 * - ( col0 ) + col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + col1 * - ( col0 ) + col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT col2 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6662
SELECT col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col0 * + col1 + - col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
16109
4104
6755
query I rowsort
SELECT ALL col2 + ( - col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT - col2 + - CAST( - col0 AS SIGNED ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-6666
SELECT - col2 + - CAST ( - col0 AS INTEGER ) / - col1 AS col2 FROM tab2 AS cor0
----
-27
-27
-42
query I rowsort
SELECT ALL col1 * tab1.col2 + - col2 AS col0 FROM tab1
----
1152
1350
513
query I rowsort
SELECT ALL + tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT + + col1 * - ( - col2 ) + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6669
SELECT + + col1 * - ( - col2 ) + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1 AS cor0
----
24
query I rowsort
SELECT ALL - col0 * col1 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT - + col2 + 94 DIV - col1 FROM tab2 AS cor0
----
-27
-30
-43
skipif mysql # not compatible
query I rowsort label-6673
SELECT - + col2 + 94 / - col1 FROM tab2 AS cor0
----
-27
-30
-43
query I rowsort
SELECT ALL col1 * 26 FROM tab1 cor0
----
260
338
676
query I rowsort
SELECT - col1 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + + col2 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT - col0 + 37 DIV + col2 FROM tab0 AS cor0
----
-23
-89
2
skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - col0 + 37 / + col2 FROM tab0 AS cor0
----
-23
-89
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT ALL + - ( + 2 ) DIV + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + - ( + 2 ) / + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT - col1 - ( col2 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-6679
SELECT - col1 - ( col2 ) / + col1 AS col0 FROM tab1 AS cor0
----
-15
-20
-28
query I rowsort
SELECT - col2 + - col2 * 42 AS col0 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT DISTINCT col1 * col1 + col2 + col1 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
13785
2758
6557
query I rowsort
SELECT DISTINCT - - col1 + col1 * + 80 * - col1 FROM tab2 AS cor0
----
-23103
-278421
-76849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 36 * + col1 + - 47 FROM tab1 AS cor0
----
313
421
889
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT ALL col2 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL col2 / col0 AS col0 FROM tab0 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + col1 col0 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL - 2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL + + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT ALL - ( + col1 ) DIV col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - ( + col1 ) / col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT DISTINCT col0 + 70 AS col2 FROM tab1
----
134
150
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6691
SELECT - + col0 + - col1 * - CAST( - 80 + + col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-80
1536
52049
skipif mysql # not compatible
query I rowsort label-6691
SELECT - + col0 + - col1 * - CAST ( - 80 + + col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-80
1536
52049
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * + col2 col2 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 73 col1 FROM tab0 AS cor0
----
1752
2555
6497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col1 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT DISTINCT - - cor0.col2 DIV + ( cor0.col0 ) col0 FROM tab2 AS cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - - cor0.col2 / + ( cor0.col0 ) col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT - col0 + + ( 78 ) * - col1 AS col0 FROM tab0
----
-6732
-7187
-7601
query I rowsort
SELECT DISTINCT + col2 * + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - ( 63 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
-6
-9
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT + - col0 DIV col1 + col2 AS col2 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + - col0 / col1 + col2 AS col2 FROM tab2 AS cor0
----
25
27
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT + tab1.col2 DIV ( col2 ) AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6703
SELECT + tab1.col2 / ( col2 ) AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - - 73 AS col2 FROM tab0 AS cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - 32 * col2 - + col0 FROM tab1 AS cor0
----
-1731
-1888
-3152
query I rowsort
SELECT ALL - col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + + col1 * col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - col0 * - cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL col2 * - col2 + - col1 FROM tab1 cor0
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6712
SELECT ALL - - CAST( NULL AS SIGNED ) + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col0 / - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT ALL col1 DIV - 21 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL col1 / - 21 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL 56 * + 45 FROM tab2 AS cor0
----
2520
2520
2520
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - ( 76 ) AS col1 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT - 71 * col1 FROM tab2 AS cor0
----
-1207
-2201
-4189
query I rowsort
SELECT + col0 + + col2 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT DISTINCT - ( + col2 ) DIV + col2 + + col0 AS col0 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - ( + col2 ) / + col2 + + col0 AS col0 FROM tab1
----
2
63
79
query I rowsort
SELECT 58 FROM tab0
----
58
58
58
query I rowsort
SELECT DISTINCT ( col0 ) - col0 FROM tab1
----
0
query I rowsort
SELECT ALL 25 + col1 FROM tab1
----
35
38
51
query I rowsort
SELECT col0 + col1 * col1 + - ( 62 ) FROM tab1
----
102
187
617
query I rowsort
SELECT - col2 * col2 * col1 AS col0 FROM tab0
----
-611884
-93654
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT ALL - + CAST( + 52 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52
skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - + CAST ( + 52 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ALL 25 - col1 AS col1 FROM tab2 cor0
----
-34
-6
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT 98 DIV 62 col1 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6727
SELECT 98 / 62 col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - 76 + + col2 AS col0 FROM tab1
----
-19
-22
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6729
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 67 + + tab0.col1 * 67 FROM tab0
----
5829
6164
6566
query I rowsort
SELECT 21 * col2 * col2 FROM tab2
----
14196
15309
30324
query I rowsort
SELECT col2 - + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 13 + + col0 AS col1 FROM tab0
----
102
37
48
query I rowsort
SELECT DISTINCT ( + col2 ) + - tab0.col0 * col2 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL 60 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT ALL - col2 * - ( - 35 ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
23660
25515
50540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col0 col1 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT DISTINCT - col2 + tab0.col1 DIV - col2 AS col1 FROM tab0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - col2 + tab0.col1 / - col2 AS col1 FROM tab0
----
-35
-83
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT DISTINCT col0 DIV - col0 + + 5 + col0 * col2 * - 19 AS col2 FROM tab1
----
-145916
-3074
-69308
skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT col0 / - col0 + + 5 + col0 * col2 * - 19 AS col2 FROM tab1
----
-145916
-3074
-69308
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - 62 + col1 * - tab1.col0 FROM tab1
----
-1102
-140
-702
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT + col2 * - col0 + ( tab2.col2 ) * tab2.col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - - col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 * 30 FROM tab0 cor0
----
-1050
-2670
-720
query I rowsort
SELECT + col2 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT + - cor0.col0 + - CAST( + 48 AS SIGNED ) FROM tab1 AS cor0
----
-112
-128
-51
skipif mysql # not compatible
query I rowsort label-6749
SELECT + - cor0.col0 + - CAST ( + 48 AS INTEGER ) FROM tab1 AS cor0
----
-112
-128
-51
query I rowsort
SELECT + col1 * col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( + col0 * - cor0.col1 ) col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col0 * - 45 AS col2 FROM tab2 cor0
----
-315
-3510
-3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT DISTINCT + col0 - col0 DIV - col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT + col0 - col0 / - col2 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col1 * 28 col0 FROM tab0 AS cor0
----
2375
2466
2715
query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - col0 + col1 * + col1 * + 39 AS col1 FROM tab1 AS cor0
----
26361
3836
6511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 col1 FROM tab1
----
-66
-66
-66
query I rowsort
SELECT + + 52 FROM tab2 cor0
----
52
52
52
query I rowsort
SELECT + + col0 + - 87 FROM tab1 AS cor0
----
-23
-7
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT col2 DIV + 94 + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6761
SELECT col2 / + 94 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col2 * + ( 97 ) * - col1 - 57 FROM tab2 AS cor0
----
-148855
-62719
-81246
onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT + col2 DIV col1 + - col1 AS col0 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-6763
SELECT + col2 / col1 + - col1 AS col0 FROM tab1
----
-24
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + cor0.col1 col2 FROM tab0 AS cor0
----
139
144
150
query I rowsort
SELECT + + 38 * 72 AS col1 FROM tab0 cor0
----
2736
2736
2736
query I rowsort
SELECT + + col0 + + cor0.col1 * + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - - ( + 88 ) AS col2 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT + 72 + col0 AS col1 FROM tab2 AS cor0
----
150
151
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - - col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col2 * col0 - col2 * cor0.col2 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT ALL 57 * + 18 AS col1 FROM tab1 AS cor0
----
1026
1026
1026
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6773
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - ( - col2 ) + + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col2 + + col2 * 92 AS col2 FROM tab1
----
5022
5301
8928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6776
SELECT col2 * - ( ( col2 ) ) / - CAST( NULL AS SIGNED ) + + 94 * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6776
SELECT col2 * - ( ( col2 ) ) / - CAST ( NULL AS INTEGER ) + + 94 * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - col0 + 10 AS col1 FROM tab0
----
-14
-25
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT DISTINCT + col0 + CAST( NULL AS DECIMAL ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + col0 + CAST ( NULL AS REAL ) * - col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT - CAST( - cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6780
SELECT - CAST ( - cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab0
----
-86
query I rowsort
SELECT + 75 * + 29 AS col1 FROM tab2
----
2175
2175
2175
query I rowsort
SELECT DISTINCT ( + col2 ) - - cor0.col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT col2 * tab0.col0 + + col2 * - 13 FROM tab0
----
22
363
6232
query I rowsort
SELECT ALL - ( col2 ) * + 65 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT ALL + 78 * col2 FROM tab1 AS cor0
----
4212
4446
7488
onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6788
SELECT col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + - col0 * col0 FROM tab2 AS cor0
----
-1482
-4898
168
query I rowsort
SELECT DISTINCT + 29 - - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2093
3424
8128
query I rowsort
SELECT 1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + col1 + col2 * - ( + col0 * - col2 ) AS col2 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT ALL 74 FROM tab1, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT + CAST( col0 AS SIGNED ) * col2 AS col0 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6796
SELECT + CAST ( col0 AS INTEGER ) * col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 49 + + tab1.col1 FROM tab1, tab1 cor0
----
9 values hashing to 2a78a473c5c68bf77fdd9420edcac638
query I rowsort
SELECT + 87 AS col0 FROM tab2
----
87
87
87
query I rowsort
SELECT ALL 93 * - col2 AS col2 FROM tab0
----
-3069
-7626
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - ( - col1 ) col1 FROM tab2
----
136
248
472
query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT - + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + 39 AS col2 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT - 19 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT tab0.col2 DIV col1 + + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6805
SELECT tab0.col2 / col1 + + col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6806
SELECT - 1 DIV + 51 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6806
SELECT - 1 / + 51 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - ( + col0 ) FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT col1 DIV - ( - 43 ) AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6808
SELECT col1 / - ( - 43 ) AS col1 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT - col2 DIV + col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6809
SELECT - col2 / + col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6810
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + 80 AS col0 FROM tab1 AS cor0
----
106
90
93
query I rowsort
SELECT ALL - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0a6489496517f27fb746473909f2b76b
query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT + CAST( NULL AS SIGNED ) - col0 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6814
SELECT + CAST ( NULL AS INTEGER ) - col0 * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 56 * col2 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT DISTINCT + 0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6817
SELECT - CAST( col1 AS SIGNED ) + col0 * + col0 * col2 FROM tab1 AS cor0
----
233462
460
614387
skipif mysql # not compatible
query I rowsort label-6817
SELECT - CAST ( col1 AS INTEGER ) + col0 * + col0 * col2 FROM tab1 AS cor0
----
233462
460
614387
query I rowsort
SELECT + col1 * 42 AS col2 FROM tab2 AS cor0
----
1302
2478
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT ALL ( col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL ( col1 ) / col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 * 2 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + col0 * - ( - col2 + col2 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 + ( col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT - 70 + col2 FROM tab1 AS cor0
----
-13
-16
26
query I rowsort
SELECT ALL + 41 - col1 * col1 FROM tab2 AS cor0
----
-248
-3440
-920
query I rowsort
SELECT DISTINCT + 41 * 79 FROM tab0 AS cor0
----
3239
query I rowsort
SELECT ALL col0 * col2 * col1 + + col1 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT + 37 + col0 * col2 FROM tab1 AS cor0
----
199
3685
7717
query I rowsort
SELECT + - col2 + + 79 AS col2 FROM tab0 AS cor0
----
-3
46
78
query I rowsort
SELECT - ( - 1 ) + + col0 * - col1 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT DISTINCT - 78 FROM tab1 AS cor0
----
-78
query I rowsort
SELECT ALL col0 + + col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT DISTINCT + ( - cor0.col1 ) * col1 * CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + ( - cor0.col1 ) * col1 * CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT 28 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT ( tab2.col0 ) FROM tab2, tab0 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT - col0 - 72 DIV col1 col1 FROM tab2
----
-79
-83
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6835
SELECT - col0 - 72 / col1 col1 FROM tab2
----
-79
-83
-9
query I rowsort
SELECT col0 * col2 + + 50 FROM tab1
----
212
3698
7730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col1 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + ( col1 ) + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - ( + col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + - col1 * - 89 + + col1 FROM tab1 AS cor0
----
1170
2340
900
query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) - + 25 AS col2 FROM tab0 AS cor0
----
-111
-116
-122
query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - col1 * - col0 col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - 35 + + 71 FROM tab0 cor0
----
36
query I rowsort
SELECT ALL + 38 * col0 FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 + col0 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT ALL col0 * 61 AS col2 FROM tab1 AS cor0
----
183
3904
4880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6848
SELECT + CAST( - col2 AS SIGNED ) + - cor0.col1 * ( - col0 ) FROM tab0 AS cor0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort label-6848
SELECT + CAST ( - col2 AS INTEGER ) + - cor0.col1 * ( - col0 ) FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - col0 + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL - 53 + - ( col1 ) + 44 * + 28 AS col1 FROM tab0 AS cor0
----
1082
1088
1093
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT ALL CAST( + ( col0 ) AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL CAST ( + ( col0 ) AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - - ( 28 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28
query I rowsort
SELECT - col0 * - col0 * - col0 + - cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-13815
-42909
-704976
query I rowsort
SELECT + cor0.col0 + col2 * - 50 FROM tab0 AS cor0
----
-15
-1626
-4011
query I rowsort
SELECT DISTINCT - - ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + + ( - col0 ) * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 8 AS col2 FROM tab2
----
8
8
8
query I rowsort
SELECT - col1 * + col1 * + ( - ( col1 ) * col0 + col0 ) AS col2 FROM tab0 AS cor0
----
15087840
31614240
66330810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT + + col2 * CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6862
SELECT + + col2 * CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col0 * + 39 AS col0 FROM tab1 AS cor0
----
-117
-2496
-3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT ALL + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 * 99 AS col2 FROM tab1
----
-1287
-2574
-990
query I rowsort
SELECT - col1 * + 25 AS col0 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT ALL 87 FROM tab0
----
87
87
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT ALL + + col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + + col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 42 FROM tab1 AS cor0
----
-1092
-420
-546
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL cor0.col0 * + ( + 49 ) + col0 AS col0 FROM tab0 AS cor0
----
1200
1750
4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) * col1 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 + col0 col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT - col0 DIV ( col1 ) + col0 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
29
68
87
skipif mysql # not compatible
query I rowsort label-6874
SELECT - col0 / ( col1 ) + col0 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
29
68
87
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL col0 * - 9 FROM tab2 AS cor0
----
-63
-702
-711
onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT + - col2 + col2 DIV - 34 AS col1 FROM tab2 cor0
----
-26
-27
-39
skipif mysql # not compatible
query I rowsort label-6877
SELECT + - col2 + col2 / - 34 AS col1 FROM tab2 cor0
----
-26
-27
-39
query I rowsort
SELECT DISTINCT - cor0.col1 * 57 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT - - ( 54 ) * col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT ALL + col0 * - 78 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT ALL + - col1 * col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - col0 * 58 * col1 FROM tab2 AS cor0
----
-12586
-266916
-77894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL - + col0 * cor0.col1 + + col0 * - 26 AS col2 FROM tab2 AS cor0
----
-3397
-399
-6630
query I rowsort
SELECT ALL + ( + col2 ) * - col1 + + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1232
-1353
-577
onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT ALL + ( col1 ) DIV CAST( + 7 * - col1 AS SIGNED ) + 24 AS col1 FROM tab2 AS cor0
----
24
24
24
skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + ( col1 ) / CAST ( + 7 * - col1 AS INTEGER ) + 24 AS col1 FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT - 24 * col0 - col1 FROM tab2 cor0
----
-1913
-1931
-199
query I rowsort
SELECT + col0 + col1 * 66 AS col0 FROM tab2 AS cor0
----
1201
2053
3972
query I rowsort
SELECT - col0 - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - 66 FROM tab2, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT col1 DIV + col0 + 10 * col2 AS col0 FROM tab0
----
12
333
821
skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT col1 / + col0 + 10 * col2 AS col0 FROM tab0
----
12
333
821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col0 FROM tab0
----
2
62
query I rowsort
SELECT col0 * - 59 + 27 * col1 FROM tab1 AS cor0
----
-3506
-4369
525
query I rowsort
SELECT col1 + + 0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + tab1.col0 * 14 AS col0 FROM tab1, tab2 AS cor0
----
1120
42
896
onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT ALL + col0 DIV col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + col0 / col2 FROM tab1
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT ALL - ( col1 + CAST( NULL AS SIGNED ) ) * + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - ( col1 + CAST ( NULL AS INTEGER ) ) * + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab1.col1 + - col2 * col1 FROM tab1
----
-1261
-1430
-580
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * col1 ) <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT + col1 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6901
SELECT + col1 / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + tab2.col1 * col1 - col1 * col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 90 * - col1 FROM tab0
----
-7740
-8190
-8730
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT ALL tab0.col2 - col0 DIV col2 AS col0 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL tab0.col2 - col0 / col2 AS col0 FROM tab0
----
-34
33
81
query I rowsort
SELECT ALL - col0 - col2 * + col1 * - col2 AS col0 FROM tab1
----
119728
32426
75813
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / - col0 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT cor0.col2 + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT - col0 * col1 + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-6912
SELECT - col0 * col1 + col2 / col2 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT col2 + + tab2.col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL - col2 - - col1 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL + col1 - tab2.col0 * + col0 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT + col0 * + col0 + col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * + col0 * col2 AS col2 FROM tab2
----
119652
51034
5859
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * + col0 * + col0 + + col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT ALL + col1 * + col1 + - col2 DIV - col2 + tab1.col1 FROM tab1
----
111
183
703
skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + col1 * + col1 + - col2 / - col2 + tab1.col1 FROM tab1
----
111
183
703
query III rowsort
SELECT * FROM tab1 WHERE + col0 + - col0 + col2 <> NULL
----
query I rowsort
SELECT ALL col0 * + tab2.col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT col1 + tab1.col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT col2 * + col2 * + tab2.col1 AS col1 FROM tab2
----
22599
24548
39884
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * - col1 + - col1 + - col1 ) <= ( + col2 * + col0 * - col0 - + tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col0 * col2 * - tab0.col2 AS col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab1
----
1040
640
78
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 * + col1 * col1 )
----
query I rowsort
SELECT col2 * + col2 + - col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT - 86 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1462
-2666
-5074
query I rowsort
SELECT - col0 * - 81 * col2 + ( - 65 ) FROM tab2 AS cor0
----
15244
164203
243097
query I rowsort
SELECT - tab2.col0 * col1 + col0 + 16 AS col0 FROM tab2
----
-1248
-194
-4508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT CAST( NULL AS DECIMAL ) * 30 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6936
SELECT CAST ( NULL AS REAL ) * 30 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 + 40 col1 FROM tab1 cor0
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT DISTINCT - + 71 * col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-71
skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - + 71 * col0 / col0 AS col0 FROM tab0 AS cor0
----
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT - 54 DIV cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 606d96e82eb336a96a4143f9797bd789
skipif mysql # not compatible
query I rowsort label-6941
SELECT - 54 / cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 606d96e82eb336a96a4143f9797bd789
query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 16 AS col0 FROM tab2 AS cor0
----
-16
-16
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col2 + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col2 + + cor0.col2 * ( col0 ) FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - 88 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT ALL - col1 * cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col1 + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT + cor0.col0 + col1 + + col1 DIV 22 FROM tab0 AS cor0
----
113
136
184
skipif mysql # not compatible
query I rowsort label-6951
SELECT + cor0.col0 + col1 + + col1 / 22 FROM tab0 AS cor0
----
113
136
184
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT ALL - CAST( ( + col2 ) AS SIGNED ) DIV ( + tab0.col0 * - col2 ) + 9 + col2 FROM tab0
----
10
42
91
skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - CAST ( ( + col2 ) AS INTEGER ) / ( + tab0.col0 * - col2 ) + 9 + col2 FROM tab0
----
10
42
91
query I rowsort
SELECT + col0 + tab2.col0 + col2 * ( + col2 ) AS col2 FROM tab2
----
1602
743
832
query I rowsort
SELECT DISTINCT col2 + + col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT tab0.col0 * + col0 * + col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT ALL 30 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT col0 * - 23 * + col1 FROM tab2
----
-105846
-30889
-4991
onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT DISTINCT + - col2 * + cor0.col1 * 36 - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-20521
-44929
-50545
skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + - col2 * + cor0.col1 * 36 - col1 / col1 AS col2 FROM tab1 AS cor0
----
-20521
-44929
-50545
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6959
SELECT ALL col1 * + CAST( 60 AS SIGNED ) FROM tab1 AS cor0
----
1560
600
780
skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL col1 * + CAST ( 60 AS INTEGER ) FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT DISTINCT + tab1.col2 AS col2 FROM tab1, tab0, tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 * - 84 FROM tab2
----
-1428
-2604
-4956
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6963
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 + 69 FROM tab2 AS cor0
----
107
95
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT col2 * CAST( col0 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
skipif mysql # not compatible
query I rowsort label-6965
SELECT col2 * CAST ( col0 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT - cor0.col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - + cor0.col2 AS col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + ( col1 ) + 18 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT DISTINCT - ( col2 ) * + ( col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT ALL - 81 DIV - col1 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL - 81 / - col1 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT ALL - col2 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + col2 + + col1 * - 43 FROM tab2 AS cor0
----
-1306
-2511
-693
query I rowsort
SELECT - cor0.col2 + col0 * - col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - 6 * - col0 + col1 FROM tab0 AS cor0
----
230
307
625
query I rowsort
SELECT DISTINCT ( - 63 ) + col0 AS col1 FROM tab2
----
-56
15
16
query I rowsort
SELECT + ( - 12 ) + - col0 AS col2 FROM tab1
----
-15
-76
-92
query I rowsort
SELECT DISTINCT 17 * col0 + + col2 FROM tab2
----
1352
1381
146
query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 + - col0 + - col2 FROM tab2 AS cor0
----
-130
-155
-61
query I rowsort
SELECT DISTINCT - col2 * col0 + ( - col1 ) FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT DISTINCT col2 * col0 + + col2 DIV col2 AS col2 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT col2 * col0 + + col2 / col2 AS col2 FROM tab1
----
163
3649
7681
query I rowsort
SELECT ( - col2 ) * ( tab1.col1 ) + col0 * 55 AS col1 FROM tab1
----
-1239
2950
3152
query I rowsort
SELECT - col2 - tab1.col0 * + ( + col1 + col0 ) AS col0 FROM tab1
----
-141
-4793
-7536
query I rowsort
SELECT ALL + - 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT + 28 + col1 AS col2 FROM tab1
----
38
41
54
query I rowsort
SELECT DISTINCT col2 + col0 * 15 FROM tab1 AS cor0
----
1017
1296
99
query I rowsort
SELECT ALL - - col1 * - col1 + col0 + col0 * - col0 FROM tab1 cor0
----
-4132
-6489
-682
query I rowsort
SELECT DISTINCT + col1 - col0 AS col2 FROM tab0 cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6992
SELECT col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6992
SELECT col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 25 * col0 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT ALL + + 45 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT - 69 FROM tab0, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT ( cor0.col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 15 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
15
query I rowsort
SELECT ALL - tab2.col1 + + ( - col0 + col1 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - col0 * col1 + - col0 AS col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL 96 + - col1 AS col0 FROM tab0
----
-1
10
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 82 * - 97 FROM tab1
----
-7954
-7954
-7954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT - CAST( col2 AS SIGNED ) * col0 + col2 FROM tab2
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort label-7003
SELECT - CAST ( col2 AS INTEGER ) * col0 + col2 FROM tab2
----
-162
-2002
-2964
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ALL + ( - 54 ) - + col2 * - col2 FROM tab2 AS cor0
----
1390
622
675
query I rowsort
SELECT ALL + - col1 - - col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 21 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b3992872ec8ca1b0aac69fb3f428042
query I rowsort
SELECT + cor0.col2 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + + 56 + + col2 FROM tab1 cor0
----
110
113
152
query I rowsort
SELECT ALL + ( - cor0.col1 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT + + 12 DIV + 32 + + cor0.col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7012
SELECT + + 12 / + 32 + + cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 + cor0.col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + 46 FROM tab0
----
46
46
46
query I rowsort
SELECT ALL - 72 FROM tab0, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT ALL + tab0.col0 + ( col2 ) AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + 50 AS col1 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT 52 + - 40 + col0 FROM tab2 cor0
----
19
90
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col0 + 19 FROM tab2 AS cor0
----
-59
-60
12
query I rowsort
SELECT + + col0 * + 81 FROM tab0 AS cor0
----
1944
2835
7209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + cor0.col0 col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT - 33 + cor0.col1 DIV 4 + col1 AS col0 FROM tab2 AS cor0
----
-12
40
5
skipif mysql # not compatible
query I rowsort label-7025
SELECT - 33 + cor0.col1 / 4 + col1 AS col0 FROM tab2 AS cor0
----
-12
40
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7026
SELECT - 16 + - col0 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7026
SELECT - 16 + - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 + cor0.col0 * 95 * 47 AS col2 FROM tab2 AS cor0
----
31286
348329
352752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT DISTINCT 12 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT 12 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT + 90 DIV cor0.col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-7031
SELECT + 90 / cor0.col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT DISTINCT - col1 * - col1 * - col2 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + + col1 + cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + 87 + + col0 FROM tab0 AS cor0
----
111
122
176
query I rowsort
SELECT - 78 * col0 + - 26 * cor0.col0 * + col2 FROM tab2 AS cor0
----
-5460
-58812
-84214
query I rowsort
SELECT + col1 + cor0.col0 * 37 FROM tab0 AS cor0
----
1392
3384
974
query I rowsort
SELECT - - col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + tab2.col2 + col2 * col1 + col1 * - col1 AS col0 FROM tab2
----
-1921
-97
395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 71 + col0 + tab1.col0 col0 FROM tab1
----
-207
-4416
-5520
query I rowsort
SELECT DISTINCT col2 * + 3 + + col1 FROM tab2
----
112
131
137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7043
SELECT - col2 + - CAST( NULL AS SIGNED ) * + ( + tab2.col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7043
SELECT - col2 + - CAST ( NULL AS INTEGER ) * + ( + tab2.col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * - tab0.col0 + - 23 AS col2 FROM tab0
----
-1248
-599
-7944
query I rowsort
SELECT ALL 92 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT ALL + + col2 * CAST( col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + + col2 * CAST ( col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0
12
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT - ( col1 ) + col2 * col2 DIV 86 FROM tab2 AS cor0
----
-1
-23
-52
skipif mysql # not compatible
query I rowsort label-7048
SELECT - ( col1 ) + col2 * col2 / 86 FROM tab2 AS cor0
----
-1
-23
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7051
SELECT CAST( + col2 AS SIGNED ) * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-7051
SELECT CAST ( + col2 AS INTEGER ) * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT 64 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT - col2 * - col0 * + col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + - ( col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col0 + - 39 + ( - tab2.col1 * tab2.col1 + col2 ) FROM tab2
----
-3572
-369
-980
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7058
SELECT CAST( + col1 AS SIGNED ) + cor0.col2 AS col1 FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7058
SELECT CAST ( + col1 AS INTEGER ) + cor0.col2 AS col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT + col0 DIV col1 + + col0 AS col2 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-7059
SELECT + col0 / col1 + + col0 AS col2 FROM tab1
----
3
70
86
query I rowsort
SELECT - - 73 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + col1 + ( + cor0.col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 + + 80 FROM tab2 cor0
----
42
53
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT + col0 * - col0 DIV + col0 + cor0.col1 * - col2 AS col1 FROM tab1 cor0
----
-1328
-1407
-634
skipif mysql # not compatible
query I rowsort label-7063
SELECT + col0 * - col0 / + col0 + cor0.col1 * - col2 AS col1 FROM tab1 cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 71 col2 FROM tab2 AS cor0
----
149
150
78
query I rowsort
SELECT ALL + 71 * - col2 AS col2 FROM tab0
----
-2343
-5822
-71
query I rowsort
SELECT DISTINCT - 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-47
query I rowsort
SELECT DISTINCT col0 + ( col2 ) * col1 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - 25 FROM tab0, tab0 AS cor0
----
-25
query I rowsort
SELECT col1 + + col2 * - col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col2 + tab0.col1 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT col0 + + 89 FROM tab1
----
153
169
92
query I rowsort
SELECT DISTINCT 5 * + 25 AS col2 FROM tab1
----
125
query I rowsort
SELECT 11 AS col2 FROM tab0
----
11
11
11
query I rowsort
SELECT DISTINCT - col2 * - 46 FROM tab1
----
2484
2622
4416
query I rowsort
SELECT ALL - - col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col0 + col0 * 46 - cor0.col0 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT - col2 * cor0.col1 - col0 * 17 * + col0 FROM tab0 AS cor0
----
-12630
-142119
-20922
query I rowsort
SELECT + col1 + col0 - col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 83 AS col1 FROM tab0 AS cor0
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT 67 + + tab1.col1 - - col0 AS col1 FROM tab1
----
141
160
96
query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 94 + + col1 AS col1 FROM tab2 AS cor0
----
-35
-63
-77
query I rowsort
SELECT - 65 * col2 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT + - col0 * ( ( + col0 ) ) + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT + col0 * + ( - col0 * + col2 ) + 64 AS col0 FROM tab2 cor0
----
-1259
-158120
-237094
query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 * 91 * - cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
-122175
-19720
-418756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 * - 85 FROM tab2 AS cor0
----
-1445
-2635
-5015
query I rowsort
SELECT + - cor0.col1 * - col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT + cor0.col0 DIV + col2 + 97 - + col2 FROM tab1 cor0
----
1
41
43
skipif mysql # not compatible
query I rowsort label-7095
SELECT + cor0.col0 / + col2 + 97 - + col2 FROM tab1 cor0
----
1
41
43
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( col1 + 70 ) FROM tab2
----
101
129
87
query I rowsort
SELECT ALL tab0.col2 * col2 AS col0 FROM tab0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT + cor0.col0 * - 53 + + col1 DIV cor0.col0 FROM tab0 AS cor0
----
-1269
-1853
-4716
skipif mysql # not compatible
query I rowsort label-7100
SELECT + cor0.col0 * - 53 + + col1 / cor0.col0 FROM tab0 AS cor0
----
-1269
-1853
-4716
query I rowsort
SELECT DISTINCT - - col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 52 * col2 * cor0.col0 col0 FROM tab2 AS cor0
----
105378
156025
9821
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT ALL + cor0.col0 + col0 DIV + col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + cor0.col0 + col0 / + col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT ALL - col2 + + ( 4 ) * + col0 FROM tab2 AS cor0
----
1
278
286
onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT + + cor0.col2 * 91 + 42 DIV col0 FROM tab0 AS cor0
----
3004
7462
92
skipif mysql # not compatible
query I rowsort label-7105
SELECT + + cor0.col2 * 91 + 42 / col0 FROM tab0 AS cor0
----
3004
7462
92
query I rowsort
SELECT + col2 * - col0 * - col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT col1 + - 56 AS col0 FROM tab2 AS cor0
----
-25
-39
3
query I rowsort
SELECT col1 * + 97 + col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT - 45 + col1 AS col2 FROM tab0 AS cor0
----
41
46
52
query I rowsort
SELECT DISTINCT + - col2 * + 70 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT DISTINCT 87 + cor0.col1 FROM tab1 AS cor0
----
100
113
97
query I rowsort
SELECT + col0 + - 56 FROM tab0 AS cor0
----
-21
-32
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-7113
SELECT DISTINCT - - col2 * col2 + ( - cor0.col2 ) DIV col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT - - col2 * col2 + ( - cor0.col2 ) / col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT 82 + cor1.col2 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 2c9a2d14e800db812eb067f18fa25dcc
query I rowsort
SELECT ALL - + 40 AS col1 FROM tab2 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + - col1 + + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 64 * col1 FROM tab2
----
1088
1984
3776
query I rowsort
SELECT - col2 * tab0.col0 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 + ( col2 + col1 ) FROM tab0 AS cor0
----
133
143
262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT - cor0.col0 + + ( col2 ) * + col2 * CAST( 89 * col2 AS SIGNED ) FROM tab0 AS cor0
----
3198369
49071663
54
skipif mysql # not compatible
query I rowsort label-7122
SELECT - cor0.col0 + + ( col2 ) * + col2 * CAST ( 89 * col2 AS INTEGER ) FROM tab0 AS cor0
----
3198369
49071663
54
query I rowsort
SELECT - cor0.col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT col1 + + col0 + - 43 AS col0 FROM tab2 cor0
----
-5
53
94
query I rowsort
SELECT DISTINCT col1 * + ( - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT DISTINCT - + col2 DIV 18 FROM tab1 AS cor0
----
-3
-5
skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - + col2 / 18 FROM tab1 AS cor0
----
-3
-5
query I rowsort
SELECT col2 + - cor0.col0 + col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 67 AS col0 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab1 AS cor0
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL 74 DIV col0 FROM tab1 AS cor0
----
0
1
24
skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL 74 / col0 FROM tab1 AS cor0
----
0
1
24
query I rowsort
SELECT ALL + col2 * col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + 56 * col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL - cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + 7 * col2 AS col2 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT col2 + + tab1.col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col1 + + 2 FROM tab1
----
12
15
28
query I rowsort
SELECT ALL 20 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT col1 + - ( col2 ) * + col1 AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + 0 * + 2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - 2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - col2 * 41 FROM tab0 cor0
----
-1353
-3362
-41
query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT + + col0 - + col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT ALL + 70 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + 70 / + col2 AS col0 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - + col2 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + 72 + col1 AS col1 FROM tab2 cor0
----
103
131
89
query I rowsort
SELECT 1 + + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT + + col1 * col2 - - ( col2 + - col0 ) FROM tab1 cor0
----
1264
1455
563
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT DISTINCT - col1 * col2 / CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - col1 * col2 / CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - + col1 * col2 + col0 * 1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - 54 * col0 + 12 FROM tab2 AS cor0
----
-366
-4200
-4254
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + col1 col0 FROM tab1 cor0
----
111
95
98
query I rowsort
SELECT ALL + - 10 AS col1 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT + 38 * + col1 - + col1 * - 0 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT DISTINCT - - col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - 22 + col1 * - 60 FROM tab2 AS cor0
----
-1042
-1882
-3562
onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT ALL col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL col0 / - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL 41 - col2 AS col2 FROM tab0 AS cor0
----
-41
40
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT - col1 * col2 + - cor0.col1 DIV 71 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7162
SELECT - col1 * col2 + - cor0.col1 / 71 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT ALL + 84 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1445
-2635
-5015
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 * - col0 col0 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT - - cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL - ( + 80 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL + col2 * ( + col1 ) + cor0.col1 DIV + 34 FROM tab2 AS cor0
----
1535
646
837
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + col2 * ( + col1 ) + cor0.col1 / + 34 FROM tab2 AS cor0
----
1535
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT + + col1 - + ( col0 + col2 ) DIV ( 61 ) FROM tab1 AS cor0
----
11
26
9
skipif mysql # not compatible
query I rowsort label-7170
SELECT + + col1 - + ( col0 + col2 ) / ( 61 ) FROM tab1 AS cor0
----
11
26
9
query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT col1 * col0 * 95 + + col1 FROM tab0
----
196166
322622
769496
query I rowsort
SELECT DISTINCT - - 23 + cor1.col1 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5dec786292961afd37de43e0b41fc4cf
query I rowsort
SELECT + 25 * 45 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2112bfa0c8fe148348e2850f13dd7ded
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7175
SELECT - col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-7175
SELECT - col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT col0 - - col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - col1 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col1 * cor0.col1 + ( cor0.col2 ) FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - + col1 - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + col0 * - 72 AS col2 FROM tab0
----
-1642
-2423
-6317
query I rowsort
SELECT + col1 + - col0 + col2 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7182
SELECT col2 DIV + col0 col0 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7182
SELECT col2 / + col0 col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT + col0 * col1 + + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL - col0 + col2 * - tab2.col1 AS col2 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT col2 + - col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - - col2 + col2 * + 40 AS col2 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT - + col2 + col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7192
SELECT + col1 * + CAST( ( col2 ) AS SIGNED ) + col2 * col2 AS col1 FROM tab2 cor0
----
1566
2090
2210
skipif mysql # not compatible
query I rowsort label-7192
SELECT + col1 * + CAST ( ( col2 ) AS INTEGER ) + col2 * col2 AS col1 FROM tab2 cor0
----
1566
2090
2210
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7194
SELECT DISTINCT + CAST( - 86 AS SIGNED ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-7826
-8342
skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT + CAST ( - 86 AS INTEGER ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-7826
-8342
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 48 ) * + col1 * + col0 col2 FROM tab0
----
162960
388752
99072
query I rowsort
SELECT ALL - - 64 * 83 FROM tab0 cor0
----
5312
5312
5312
query I rowsort
SELECT ALL + col0 + col1 * ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT 88 FROM tab1 cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + 2 FROM tab1 AS cor0
----
2
query I rowsort
SELECT - col0 * col2 * - col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab0.col0 + + col1 AS col2 FROM tab0
----
110
132
180
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ( - 45 ) + col0 AS col1 FROM tab0 cor0
----
-10
-21
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7207
SELECT + col2 * - col2 / + col0 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7207
SELECT + col2 * - col2 / + col0 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT - + 6 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7208
SELECT - + 6 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + 16 AS col1 FROM tab2 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - 57 + col1 AS col0 FROM tab0 AS cor0
----
29
34
40
query I rowsort
SELECT + 42 AS col1 FROM tab0 cor0
----
42
42
42
query I rowsort
SELECT + + 88 * + 58 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-168408
-418439
-5069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 + - col0 col2 FROM tab0 AS cor0
----
-136
-71
-82
query I rowsort
SELECT col1 * - col2 + - col0 * col0 FROM tab0 AS cor0
----
-1322
-15383
-3414
query I rowsort
SELECT + ( - col2 ) + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + 19 + col1 FROM tab1 AS cor0
----
29
32
45
query I rowsort
SELECT ALL - 97 AS col2 FROM tab0
----
-97
-97
-97
query I rowsort
SELECT + + col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 82 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT - col2 + 54 FROM tab0 AS cor0
----
-28
21
53
query I rowsort
SELECT ALL 85 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 AS cor0
----
20
20
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7223
SELECT - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7223
SELECT - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT + - col2 * col1 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7224
SELECT + - col2 * col1 / + col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 30 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT ALL + tab1.col0 DIV + ( col1 ) FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + tab1.col0 / + ( col1 ) FROM tab1
----
0
6
6
query I rowsort
SELECT + 82 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - ( col1 ) FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 col1 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1 AS cor0
----
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL + ( 23 ) + + col2 FROM tab2 AS cor0
----
49
50
61
query I rowsort
SELECT ALL col1 * + 34 FROM tab2
----
1054
2006
578
query I rowsort
SELECT - tab1.col1 + + col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col0 * - col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT + 22 + + 67 FROM tab2 cor0
----
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT col2 + col0 DIV + col0 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7240
SELECT col2 + col0 / + col0 FROM tab2
----
27
28
39
query I rowsort
SELECT - 18 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + col0 * tab0.col2 + + col2 * tab0.col0 FROM tab0
----
14596
1584
70
query I rowsort
SELECT + + cor0.col1 + - tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to fac199fee49cfb7f8ea6cc57c52dd643
query I rowsort
SELECT DISTINCT 13 * col0 + + col2 + - tab2.col1 * col2 FROM tab2
----
-494
-719
419
query I rowsort
SELECT ALL col2 + tab1.col2 * - col2 + + col2 * - col2 FROM tab1
----
-18336
-5778
-6441
query I rowsort
SELECT ALL - ( + col1 ) * col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col2 * + ( 85 ) * col2 + col2 + - ( col0 ) * 72 AS col0 FROM tab2 AS cor0
----
117090
51870
61488
query I rowsort
SELECT + cor0.col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - col0 * 80 * 89 + - col1 FROM tab2 AS cor0
----
-49871
-555419
-562497
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + col1 + col1 AS col0 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL col1 * - 58 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT col1 + - ( - col0 ) * + col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 + + col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + + col2 * col1 * 48 - col2 * + 41 AS col0 FROM tab0 AS cor0
----
134871
354814
4615
query I rowsort
SELECT - col0 + - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - col0 * + 91 AS col1 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT 38 * - col1 + col2 * - tab0.col2 - col0 AS col2 FROM tab0
----
-10271
-3722
-4381
query I rowsort
SELECT ALL col0 + + ( col1 ) FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - ( 77 + col1 ) FROM tab0
----
-163
-168
-174
query I rowsort
SELECT DISTINCT + ( - 29 ) + + col0 + - col2 * tab2.col2 * col2 AS col1 FROM tab2
----
-17527
-19705
-54822
query I rowsort
SELECT DISTINCT + tab1.col1 + 74 * - col2 FROM tab1
----
-3970
-4208
-7091
query I rowsort
SELECT ALL + 5 * 29 + + col2 FROM tab1
----
199
202
241
query I rowsort
SELECT ALL 42 + + col0 AS col1 FROM tab1
----
106
122
45
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL 57 + col1 AS col0 FROM tab2
----
116
74
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT ALL + CAST( + 50 AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
1200
1750
4450
skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + CAST ( + 50 AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
1200
1750
4450
query I rowsort
SELECT ( col2 ) * tab1.col2 + col0 + - col0 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( cor0.col0 ) + col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT DISTINCT - - cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - - cor0.col1 / + col1 AS col0 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * col2 + col2 * col0 col1 FROM tab1 AS cor0
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT col2 DIV - cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7278
SELECT col2 / - cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * tab1.col2 + - col0 * col1 FROM tab1
----
2609
2838
8176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + + col1 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col2 + cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 95 * col2 - - col1 * - col0 FROM tab1 AS cor0
----
4775
5052
8080
query I rowsort
SELECT + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - cor0.col2 + col0 * + col0 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT DISTINCT col0 DIV col0 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT col0 / col0 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + col2 * col2 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-232
-2805
1155
query I rowsort
SELECT + + cor0.col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + - col1 * col1 - + col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT + + cor0.col0 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col1 * - 15 FROM tab0 AS cor0
----
-1290
-1365
-1455
onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT DISTINCT tab1.col2 DIV 27 FROM tab1
----
2
3
skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT tab1.col2 / 27 FROM tab1
----
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 88 col0 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT DISTINCT - - col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - col0 + + col0 * 87 FROM tab2 AS cor0
----
602
6708
6794
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - col2 + 39 * 19 AS col2 FROM tab2 AS cor0
----
703
714
715
query I rowsort
SELECT ALL + col0 + + ( - 41 ) FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT DISTINCT + - col1 + - 50 * 40 AS col1 FROM tab2 AS cor0
----
-2017
-2031
-2059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7302
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * 40 col2 FROM tab0 AS cor0
----
360
query I rowsort
SELECT - ( + col0 ) * - col1 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab0 AS cor0
----
63
query I rowsort
SELECT ALL + 31 AS col0 FROM tab0 cor0
----
31
31
31
query I rowsort
SELECT ALL ( col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + 33 * col2 + col0 FROM tab1 AS cor0
----
1785
1945
3248
query I rowsort
SELECT DISTINCT - ( 81 ) * cor0.col2 FROM tab0 AS cor0
----
-2673
-6642
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 45 + cor0.col0 + + cor0.col0 col1 FROM tab0 AS cor0
----
1128
1645
4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT col1 DIV + 30 + - 90 AS col1 FROM tab2
----
-89
-89
-90
skipif mysql # not compatible
query I rowsort label-7311
SELECT col1 / + 30 + - 90 AS col1 FROM tab2
----
-89
-89
-90
query I rowsort
SELECT ALL + col1 * + cor0.col0 * col0 AS col1 FROM tab2 cor0
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + col1 col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col2 * col1 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT DISTINCT - + cor0.col1 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT - + cor0.col1 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT DISTINCT + - col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - tab1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT - tab1.col2 DIV - tab1.col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7322
SELECT - tab1.col2 / - tab1.col1 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT + col0 + tab1.col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL tab0.col2 * - col0 * + col2 + - col2 * + tab0.col1 FROM tab0
----
-132
-28974
-605898
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 + - tab1.col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - col2 * - cor0.col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - col2 + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - - col1 + + col0 * col0 FROM tab1 cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT col0 DIV col1 + col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-7330
SELECT col0 / col1 + col0 FROM tab1
----
3
70
86
query I rowsort
SELECT ALL + col2 * + col2 + - col0 * col0 FROM tab1
----
-847
2816
2907
query I rowsort
SELECT ALL + - col1 + col0 * col1 * col1 FROM tab1 AS cor0
----
13507
2002
6390
query I rowsort
SELECT ALL - col0 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col2 * + col0 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - - col1 + - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT ALL 23 DIV + tab2.col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL 23 / + tab2.col1 FROM tab2
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ( + col2 ) * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 45 AS col2 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT ALL col1 * tab0.col0 - tab0.col1 DIV - col2 AS col0 FROM tab0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL col1 * tab0.col0 - tab0.col1 / - col2 AS col0 FROM tab0
----
2066
3492
8100
query I rowsort
SELECT ALL cor0.col1 * - ( col2 * cor0.col0 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - - col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 68 * col1 FROM tab1
----
1768
680
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7347
SELECT ALL ( + cor0.col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL ( + cor0.col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * col1 + col0 * col0 col2 FROM tab2 AS cor0
----
-447
5140
5969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab2
----
35
35
35
query I rowsort
SELECT - 85 FROM tab0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7351
SELECT - + col2 * + cor0.col1 DIV col1 col1 FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7351
SELECT - + col2 * + cor0.col1 / col1 col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + col2 * 72 * col1 + - 14 + col0 FROM tab0 AS cor0
----
204346
537339
7005
onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT col2 * col2 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
1443
675
728
skipif mysql # not compatible
query I rowsort label-7353
SELECT col2 * col2 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
1443
675
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + 98 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e4266e6eb5c035a092437805cb72d420
query I rowsort
SELECT + 24 * + col1 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
2002
2182
2266
onlyif mysql # use DIV operator for integer division
query I rowsort label-7356
SELECT + col2 + - col2 DIV col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-7356
SELECT + col2 + - col2 / col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT + + 21 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT ALL - 99 + col2 * - col1 * ( col2 * + col1 ) FROM tab0 cor0
----
-55681543
-8054343
-9508
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT + col0 DIV + col2 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7359
SELECT + col0 / + col2 AS col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT 57 FROM tab2 AS cor0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ( col1 ) * - col1 DIV - col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7361
SELECT ( col1 ) * - col1 / - col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 * - col0 ) col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col2 * 8 AS col0 FROM tab0
----
264
656
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7365
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) col2 FROM tab2, tab0, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + 67 - col0 AS col1 FROM tab0 AS cor0
----
-22
32
43
query I rowsort
SELECT - + 91 FROM tab1 cor0
----
-91
-91
-91
query I rowsort
SELECT ALL + col1 + - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + col0 * - col1 + 99 FROM tab0 AS cor0
----
-1965
-3296
-8000
query I rowsort
SELECT + - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 90 * tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f00dee560c4c08b4a610d7c865bef9ab
query I rowsort
SELECT + - col1 * + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - col0 * + col1 * + col0 - 51 FROM tab0
----
-118876
-49587
-720862
onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT col1 DIV - tab1.col0 + col1 AS col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7377
SELECT col1 / - tab1.col0 + col1 AS col0 FROM tab1
----
10
13
18
query I rowsort
SELECT col0 - + col0 * 73 AS col0 FROM tab0
----
-1728
-2520
-6408
query I rowsort
SELECT - 82 - col2 FROM tab2
----
-108
-109
-120
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col1 AS REAL ) + + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + ( + col0 + col0 ) FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT DISTINCT - 64 DIV + col2 AS col0 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - 64 / + col2 AS col0 FROM tab1
----
-1
0
query I rowsort
SELECT - col0 * col0 + - 19 AS col1 FROM tab2 AS cor0
----
-6103
-6260
-68
query I rowsort
SELECT col0 * + tab2.col0 + col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT tab0.col2 * col1 * col0 + col0 FROM tab0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT ALL + - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + - col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT DISTINCT + - CAST( 73 AS SIGNED ) * col2 * - col0 AS col2 FROM tab1 AS cor0
----
11826
266304
560640
skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + - CAST ( 73 AS INTEGER ) * col2 * - col0 AS col2 FROM tab1 AS cor0
----
11826
266304
560640
query I rowsort
SELECT DISTINCT col2 * + ( col2 ) * + col2 AS col2 FROM tab1
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7389
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * + 57 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * + 57 FROM tab2
----
NULL
query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - - col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7392
SELECT DISTINCT col2 * col0 + - col0 / CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT col2 * col0 + - col0 / CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT DISTINCT - col0 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - col0 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT ALL - + 73 - 54 FROM tab1 AS cor0
----
-127
-127
-127
query I rowsort
SELECT + col2 + - 15 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-18624
-21006
-8493
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col2 * + col1 AS col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col0 FROM tab1 AS cor0
----
-81
-81
-81
query I rowsort
SELECT ALL - ( col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7400
SELECT col1 DIV col0 col1 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7400
SELECT col1 / col0 col1 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT ALL - col2 - - col2 DIV 41 FROM tab1
----
-53
-56
-94
skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - col2 - - col2 / 41 FROM tab1
----
-53
-56
-94
query I rowsort
SELECT ALL + col2 * + ( col0 ) - + col1 AS col2 FROM tab1
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * + col0 col2 FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT - col2 * CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7404
SELECT - col2 * CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - col1 * col1 + col1 AS col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT - 36 AS col1 FROM tab2
----
-36
-36
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + col1 col1 FROM tab1
----
-53
-66
-69
query I rowsort
SELECT - cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col0 + 42 AS col2 FROM tab1 AS cor0
----
106
122
45
query I rowsort
SELECT ( 33 ) AS col0 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT + - 74 FROM tab0 cor0
----
-74
-74
-74
query I rowsort
SELECT - cor0.col0 + 90 FROM tab2 AS cor0
----
11
12
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT DISTINCT col0 DIV + cor0.col2 AS col1 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT col0 / + cor0.col2 AS col1 FROM tab1 cor0
----
0
1
query I rowsort
SELECT ALL + + 90 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT - - 0 + col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT ALL + ( tab1.col1 ) + + col1 * - ( col2 ) AS col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT tab1.col1 * col1 * tab1.col1 + col0 AS col0 FROM tab1
----
1064
17579
2277
query I rowsort
SELECT DISTINCT col0 * col2 + - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT + 61 FROM tab0
----
61
61
61
query I rowsort
SELECT - 15 * + col2 AS col2 FROM tab2
----
-390
-405
-570
query I rowsort
SELECT ( + 24 + - col2 ) FROM tab1
----
-30
-33
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT DISTINCT - col2 + 37 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - col2 + 37 / col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT ( + 59 ) AS col1 FROM tab1 AS cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT col0 DIV + col1 AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7426
SELECT col0 / + col1 AS col2 FROM tab1
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7427
SELECT - CAST( NULL AS SIGNED ) * + 87 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7427
SELECT - CAST ( NULL AS INTEGER ) * + 87 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) + col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col2 * ( col1 ) AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT - 75 - + col1 * + 18 FROM tab2
----
-1137
-381
-633
query I rowsort
SELECT - + 21 FROM tab0, tab2, tab0 cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT ALL - col2 + col2 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col2 - 92 AS col1 FROM tab1 AS cor0
----
-35
-38
4
query I rowsort
SELECT ALL col0 * + col2 * col0 - + col0 AS col1 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT col2 + 43 AS col0 FROM tab2
----
69
70
81
query I rowsort
SELECT ALL col1 + - ( 35 ) FROM tab1 AS cor0
----
-22
-25
-9
query I rowsort
SELECT ALL col1 * - 89 + + col1 FROM tab0 AS cor0
----
-7568
-8008
-8536
query I rowsort
SELECT ALL col1 + 84 + col2 * col2 FROM tab2 AS cor0
----
1545
819
844
query I rowsort
SELECT - col0 * + ( + cor0.col1 ) + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col1 + + col2 * - col2 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT ( + 88 ) AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
88
query I rowsort
SELECT - 94 + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4573b8a5eee7bb09c15d8b1f9c390e6a
query I rowsort
SELECT 41 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 + col2 col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col1 + col1 + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 22 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT + + col2 * + ( col2 ) * + 68 AS col1 FROM tab1 cor0
----
198288
220932
626688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7450
SELECT + - CAST( col2 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7450
SELECT + - CAST ( col2 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * - col2 col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - 59 col2 FROM tab1 AS cor0
----
2537
2537
2537
query I rowsort
SELECT - col0 + - cor0.col1 * 17 FROM tab1 AS cor0
----
-234
-301
-445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7454
SELECT - CAST( 2 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-7454
SELECT - CAST ( 2 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab2 AS cor0
----
21
query I rowsort
SELECT + - col1 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - + col2 * col2 + - 97 AS col0 FROM tab1 AS cor0
----
-3013
-3346
-9313
onlyif mysql # use DIV operator for integer division
query I rowsort label-7458
SELECT - + col2 DIV col1 + col2 * + col2 FROM tab0 cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7458
SELECT - + col2 / col1 + col2 * + col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col1 * + cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7460
SELECT + col2 * col0 * CAST( 7 AS SIGNED ) FROM tab0
----
245
51086
5544
skipif mysql # not compatible
query I rowsort label-7460
SELECT + col2 * col0 * CAST ( 7 AS INTEGER ) FROM tab0
----
245
51086
5544
onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT - + ( + col2 ) DIV ( - 48 * col0 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7461
SELECT - + ( + col2 ) / ( - 48 * col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col2 * col1 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col1 * cor0.col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col0 * + col2 + - ( - col2 + - col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1644
4858
9968
query I rowsort
SELECT - col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - 60 * + cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-420
-4680
-4740
query I rowsort
SELECT col2 + - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + col0 + - col1 * + col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT ALL + 22 * cor0.col1 FROM tab2 AS cor0
----
1298
374
682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 + col0 col0 FROM tab0 AS cor0
----
108
162
97
query I rowsort
SELECT DISTINCT + col2 * col2 + ( 85 ) AS col1 FROM tab0 AS cor0
----
1174
6809
86
query I rowsort
SELECT DISTINCT + 71 * - ( col2 ) AS col0 FROM tab0
----
-2343
-5822
-71
query I rowsort
SELECT tab2.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT col2 + col0 * ( 64 * col2 ) AS col0 FROM tab2 AS cor0
----
12123
129818
192166
query I rowsort
SELECT - - col1 + + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7480
SELECT ALL CAST( - 3 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL CAST ( - 3 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT col0 - cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col0 - + col2 * col2 FROM tab0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT DISTINCT col0 DIV col1 + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT col0 / col1 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - ( - col2 ) + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ( - col2 ) * cor0.col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7488
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - col2 * cor0.col0 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - col2 * cor0.col0 * col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7490
SELECT DISTINCT - + ( - cor0.col2 ) * col1 * - CAST( col0 * - col1 + ( - 81 ) * + col1 AS SIGNED ) FROM tab0 AS cor0
----
1091444
115437140
25627140
skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT - + ( - cor0.col2 ) * col1 * - CAST ( col0 * - col1 + ( - 81 ) * + col1 AS INTEGER ) FROM tab0 AS cor0
----
1091444
115437140
25627140
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7491
SELECT cor0.col2 * - ( col0 ) + - CAST( col2 + col2 AS SIGNED ) FROM tab2 cor0
----
-2080
-243
-3078
skipif mysql # not compatible
query I rowsort label-7491
SELECT cor0.col2 * - ( col0 ) + - CAST ( col2 + col2 AS INTEGER ) FROM tab2 cor0
----
-2080
-243
-3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - + cor0.col2 + + col1 * col0 * col2 AS col2 FROM tab2 AS cor0
----
119626
50996
5832
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + 68 + col0 AS col2 FROM tab2
----
146
147
75
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT DISTINCT + ( 49 ) DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + ( 49 ) / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col0 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + 0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * - 72 - - col1 AS col2 FROM tab1 AS cor0
----
-190
-4598
-5747
query I rowsort
SELECT ALL - - 52 AS col0 FROM tab2 AS cor0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7504
SELECT - cor0.col0 DIV 23 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e6d63ab432fc7a7f17fe6cf3b6fac380
skipif mysql # not compatible
query I rowsort label-7504
SELECT - cor0.col0 / 23 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e6d63ab432fc7a7f17fe6cf3b6fac380
onlyif mysql # use DIV operator for integer division
query I rowsort label-7505
SELECT - col0 DIV - 17 FROM tab1 AS cor0
----
0
3
4
skipif mysql # not compatible
query I rowsort label-7505
SELECT - col0 / - 17 FROM tab1 AS cor0
----
0
3
4
query I rowsort
SELECT + + col0 + - 79 - - cor0.col2 AS col1 FROM tab2 cor0
----
-45
25
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT - 21 DIV col2 AS col1 FROM tab0 AS cor0
----
-21
0
0
skipif mysql # not compatible
query I rowsort label-7507
SELECT - 21 / col2 AS col1 FROM tab0 AS cor0
----
-21
0
0
query I rowsort
SELECT ALL - - col1 + 30 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT ALL + + col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + + 56 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
115
73
87
query I rowsort
SELECT DISTINCT - + col2 * col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT ALL - cor0.col0 + - col0 DIV - ( 49 ) + col1 FROM tab1 AS cor0
----
-53
-66
23
skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - cor0.col0 + - col0 / - ( 49 ) + col1 FROM tab1 AS cor0
----
-53
-66
23
query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL 57 * col1 AS col1 FROM tab1 cor0
----
1482
570
741
query I rowsort
SELECT + col0 * cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2, tab0 cor0
----
62
query I rowsort
SELECT col1 * - col2 * cor0.col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT - col1 DIV col1 + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7520
SELECT - col1 / col1 + col1 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT ALL - col2 DIV col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - col2 / col1 AS col1 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT col2 * + col1 DIV ( - tab2.col1 ) AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7522
SELECT col2 * + col1 / ( - tab2.col1 ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 62 * col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT DISTINCT 85 + col0 DIV col2 FROM tab1 cor0
----
85
86
skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT 85 + col0 / col2 FROM tab1 cor0
----
85
86
query I rowsort
SELECT - col0 - col0 * cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - ( 3 * cor0.col0 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 495e8cca93a0c99eaaa1c083a5805b8f
query I rowsort
SELECT ALL + 28 * + col0 + + ( 30 ) AS col1 FROM tab2 cor0
----
2214
2242
226
query I rowsort
SELECT ALL + 50 * - col2 + ( col0 ) FROM tab0 AS cor0
----
-15
-1626
-4011
query I rowsort
SELECT ALL + 96 * + cor0.col1 + - 88 * - 12 AS col0 FROM tab2 AS cor0
----
2688
4032
6720
query I rowsort
SELECT DISTINCT - cor0.col0 + tab0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
9 values hashing to 5d3783b31e5c4f959adab60b38e1775a
query I rowsort
SELECT ALL - + col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 26 * col2 * col0 AS col1 FROM tab1 cor0
----
-199680
-4212
-94848
query I rowsort
SELECT + - col1 * - col0 + + 40 AS col1 FROM tab0 AS cor0
----
2104
3435
8139
query I rowsort
SELECT DISTINCT - cor0.col1 + cor1.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 179f1c4ecae3615ed02c294cbc435c7b
query I rowsort
SELECT cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 75 FROM tab2 AS cor0
----
75
75
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7538
SELECT DISTINCT - - ( + col1 ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT - - ( + col1 ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 * 65 FROM tab0 cor0
----
-2145
-5330
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7540
SELECT - + cor0.col2 + - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7540
SELECT - + cor0.col2 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT ALL col0 DIV col1 AS col0 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL col0 / col1 AS col0 FROM tab1
----
0
6
6
query I rowsort
SELECT cor0.col2 + + col1 * + col1 FROM tab1 AS cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 * 31 col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT - - col2 * + ( 48 + col1 ) FROM tab2 AS cor0
----
2133
2470
2782
onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT col1 + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-7545
SELECT col1 + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL 60 * col0 FROM tab0
----
1440
2100
5340
query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 82 * col1 AS col1 FROM tab0
----
-7052
-7462
-7954
query I rowsort
SELECT DISTINCT + col1 * 48 + col2 * + 46 AS col1 FROM tab0 AS cor0
----
4702
5646
8140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT ALL + col1 - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + 0 * col2 - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - - ( + 8 ) AS col0 FROM tab2 cor0
----
8
query I rowsort
SELECT cor0.col2 * - col2 + + cor0.col0 * col0 FROM tab0 AS cor0
----
-513
1197
1224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col2 * - col2 / - 69 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col2 * - col2 / - 69 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 22 + + col1 - col2 AS col1 FROM tab0 AS cor0
----
118
31
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT DISTINCT - + col2 + + col0 DIV - cor0.col1 AS col2 FROM tab2 cor0
----
-27
-42
skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - + col2 + + col0 / - cor0.col1 AS col2 FROM tab2 cor0
----
-27
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + - col1 * + cor0.col0 col0 FROM tab1 cor0
----
-547
-947
15
query I rowsort
SELECT ALL + col2 * 6 AS col0 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT col2 + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + 28 FROM tab2 cor0
----
-28
query I rowsort
SELECT ALL 15 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
100
70
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7564
SELECT ALL + CAST( NULL AS SIGNED ) / 48 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + CAST ( NULL AS INTEGER ) / 48 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col0 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col0 + - ( - col0 ) FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT + 82 FROM tab1 AS cor0
----
82
query I rowsort
SELECT ALL + 23 + - 21 AS col1 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - col2 * + col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + + col1 * - 67 + + col2 AS col0 FROM tab1 cor0
----
-1688
-613
-775
query I rowsort
SELECT DISTINCT - 92 + - col0 + col2 FROM tab0 AS cor0
----
-126
-83
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT ALL col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - ( col0 ) * + col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 53 * + 29 + col2 * 45 * col1 FROM tab0 cor0
----
129247
337327
5902
query I rowsort
SELECT DISTINCT - - ( col1 ) * col0 * ( col0 ) + col2 * + col1 * col2 FROM tab2 cor0
----
130645
24118
398840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7576
SELECT - ( col0 * - col0 ) + - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7576
SELECT - ( col0 * - col0 ) + - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT DISTINCT col2 * - ( col0 ) + col1 DIV + col2 FROM tab0 AS cor0
----
-7297
-790
62
skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT col2 * - ( col0 ) + col1 / + col2 FROM tab0 AS cor0
----
-7297
-790
62
query I rowsort
SELECT DISTINCT + col1 + + 63 FROM tab0
----
149
154
160
query I rowsort
SELECT ALL + 44 AS col1 FROM tab1
----
44
44
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7580
SELECT ALL ( - tab0.col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL ( - tab0.col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col1 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT DISTINCT - 60 * - 37 FROM tab1
----
2220
query I rowsort
SELECT DISTINCT 36 FROM tab0
----
36
query I rowsort
SELECT + col0 * - 68 FROM tab1
----
-204
-4352
-5440
query I rowsort
SELECT ( - col0 ) + col2 AS col0 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT ALL - 80 DIV - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f0c7541d7217843f45fc8b2120ab21c
skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - 80 / - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f0c7541d7217843f45fc8b2120ab21c
query I rowsort
SELECT ALL ( ( tab2.col0 ) ) * 29 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8cd26de2aabcc24615ca8bf738e159a9
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT - - col0 + - col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + + col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 * + col0 + ( - ( col1 ) * ( + col2 ) ) FROM tab2 AS cor0
----
-6887
-7618
-886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7592
SELECT 64 * cor0.col0 + CAST( - col0 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 cor0
----
114
3456
4080
skipif mysql # not compatible
query I rowsort label-7592
SELECT 64 * cor0.col0 + CAST ( - col0 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 cor0
----
114
3456
4080
query I rowsort
SELECT ALL + - 2 * col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + + 19 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT ALL + col2 + col2 * - col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT 39 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb
query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab2 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + + CAST ( - col0 AS REAL ) * + col1 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7599
SELECT + col0 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7599
SELECT + col0 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 + - 47 FROM tab1 AS cor0
----
-21
-34
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7601
SELECT ALL col1 DIV - ( col0 * - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL col1 / - ( col0 * - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col0 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * col1 + - cor0.col0 AS col1 FROM tab1 cor0
----
1056
129
633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + col1 + + 54 * - col1 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689
query I rowsort
SELECT + col0 + 72 * col1 AS col1 FROM tab2 AS cor0
----
1303
2239
4326
query I rowsort
SELECT ALL + - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT ALL col1 * 31 FROM tab2
----
1829
527
961
query I rowsort
SELECT ALL + col0 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 cor1, tab0, tab2 cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd
query I rowsort
SELECT 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6
query I rowsort
SELECT - col2 * - 75 + + col0 AS col2 FROM tab0 cor0
----
110
2499
6239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 - col0 col1 FROM tab2 AS cor0
----
182
1950
2923
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col1 + CAST ( col1 + + col2 AS REAL ) * cor0.col1 * 77 AS col2 FROM tab1 AS cor0
----
109122
160186
51600
query I rowsort
SELECT - cor0.col0 + + col1 + - col2 * col0 FROM tab2 AS cor0
----
-165
-2047
-3064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col2 FROM tab0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 90 col1 FROM tab1 AS cor0
----
-6
33
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-7620
SELECT DISTINCT - col2 + + col0 * cor0.col0 DIV col1 FROM tab2 cor0
----
-26
329
77
skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT - col2 + + col0 * cor0.col0 / col1 FROM tab2 cor0
----
-26
329
77
query I rowsort
SELECT DISTINCT col0 * 19 + + col2 FROM tab0 cor0
----
1773
489
666
query I rowsort
SELECT ALL + col2 - col0 * - col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 * col2 * + 25 FROM tab0 AS cor0
----
-182450
-19800
-875
query I rowsort
SELECT ALL - cor0.col2 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7625
SELECT - col2 DIV 6 + - 17 FROM tab0 AS cor0
----
-17
-22
-30
skipif mysql # not compatible
query I rowsort label-7625
SELECT - col2 / 6 + - 17 FROM tab0 AS cor0
----
-17
-22
-30
query I rowsort
SELECT - col1 + + cor0.col1 * col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT ALL - ( 15 ) + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1233
1389
555
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT - ( + 95 ) FROM tab0, tab1 AS cor0
----
-95
query I rowsort
SELECT - ( - 77 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + 70 AS col0 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT ALL col0 * - cor0.col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + 97 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT + + 77 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab0
----
67
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to a05c004695d644bdc7d07542d29e2010
query I rowsort
SELECT + 93 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + + 65 + col1 AS col1 FROM tab0 AS cor0
----
151
156
162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7641
SELECT ALL ( col0 ) - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL ( col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT - col0 * col0 DIV 73 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-17
79
81
skipif mysql # not compatible
query I rowsort label-7642
SELECT - col0 * col0 / 73 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-17
79
81
query I rowsort
SELECT + col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT col2 + + col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT 3 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT ALL - 86 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
onlyif mysql # use DIV operator for integer division
query I rowsort label-7647
SELECT DISTINCT col1 - + col2 DIV - tab0.col0 AS col1 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT col1 - + col2 / - tab0.col0 AS col1 FROM tab0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7648
SELECT - 89 DIV col1 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-7648
SELECT - 89 / col1 FROM tab2
----
-1
-2
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT - col2 + - tab1.col2 DIV + col0 AS col2 FROM tab1
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-7649
SELECT - col2 + - tab1.col2 / + col0 AS col2 FROM tab1
----
-57
-72
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * - col0 + + col0 col2 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT col2 + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - - col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT col0 + 23 * + 86 FROM tab0
----
2002
2013
2067
query I rowsort
SELECT col2 + - 19 + col0 FROM tab2
----
15
85
98
query I rowsort
SELECT + col1 * + tab0.col2 * - tab0.col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL 40 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT ALL - col2 DIV - ( 50 ) + col0 + - 2 FROM tab0 AS cor0
----
22
33
88
skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - col2 / - ( 50 ) + col0 + - 2 FROM tab0 AS cor0
----
22
33
88
query I rowsort
SELECT + col2 * + 15 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
115213
2456
54730
query I rowsort
SELECT ALL - col2 + ( col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT col2 + - col2 * - col2 * col1 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7663
SELECT ALL - col2 DIV + col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL - col2 / + col2 FROM tab0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0, tab2 AS cor1
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT - 18 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + ( + col1 ) * + col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 55 + col1 FROM tab1 AS cor0
----
-29
-42
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 0 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT 24 * - col1 AS col1 FROM tab1 AS cor0
----
-240
-312
-624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 15 * - col1 AS col0 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT ALL + - cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 86 FROM tab2
----
-86
query I rowsort
SELECT - 61 + col1 AS col1 FROM tab0 cor0
----
25
30
36
query I rowsort
SELECT ALL + col2 * col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL ( ( tab0.col1 ) ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT ALL tab2.col1 + CAST( NULL AS DECIMAL ) / 94 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL tab2.col1 + CAST ( NULL AS REAL ) / 94 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7688
SELECT + col1 + CAST( - 74 AS SIGNED ) FROM tab2 AS cor0
----
-15
-43
-57
skipif mysql # not compatible
query I rowsort label-7688
SELECT + col1 + CAST ( - 74 AS INTEGER ) FROM tab2 AS cor0
----
-15
-43
-57
query I rowsort
SELECT ALL + col0 + ( ( col2 ) ) * col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT - col0 + - ( - col0 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT ALL col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + col0 * col1 + col1 AS col1 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT ALL - + col1 * ( col2 ) + + col0 * col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT DISTINCT + col0 * 82 * 63 FROM tab2 AS cor0
----
36162
402948
408114
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT + ( + col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col0 - + col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT cor0.col0 * 38 + col1 * col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1220
3212
6367
query I rowsort
SELECT ALL + + col0 - - 21 AS col0 FROM tab2 AS cor0
----
100
28
99
query I rowsort
SELECT ALL col0 * - 50 - col0 AS col2 FROM tab0 cor0
----
-1224
-1785
-4539
query I rowsort
SELECT 9 AS col1 FROM tab2
----
9
9
9
query I rowsort
SELECT 34 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT + 49 * + col0 + + col2 FROM tab2 AS cor0
----
370
3848
3909
query I rowsort
SELECT ALL col0 + - ( - 47 ) * col1 FROM tab0
----
4066
4366
4594
onlyif mysql # use DIV operator for integer division
query I rowsort label-7706
SELECT - col0 + - col0 DIV col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-7706
SELECT - col0 + - col0 / col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT - + col0 * 36 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT ALL 98 + - col1 * ( col1 ) + + col2 AS col0 FROM tab1
----
-524
25
55
query I rowsort
SELECT - col2 + cor0.col0 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - 62 * col0 FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7711
SELECT - - col0 + col2 DIV 63 AS col1 FROM tab1 AS cor0
----
3
64
81
skipif mysql # not compatible
query I rowsort label-7711
SELECT - - col0 + col2 / 63 AS col1 FROM tab1 AS cor0
----
3
64
81
query I rowsort
SELECT + 93 + + col1 * 53 FROM tab0
----
4651
4916
5234
query I rowsort
SELECT col0 * col1 + ( - ( col0 ) ) * col0 FROM tab2
----
-1482
-4898
168
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL 66 + + col1 AS col2 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT + + col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - + 28 + col1 FROM tab1 AS cor0
----
-15
-18
-2
query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab0, tab0 AS cor0
----
23
query I rowsort
SELECT col0 + - 97 FROM tab1 AS cor0
----
-17
-33
-94
query I rowsort
SELECT col0 * + ( + 35 ) * - col2 AS col1 FROM tab2 AS cor0
----
-105070
-6615
-70980
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 - col2 * col2 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - col1 + col2 * cor0.col2 * col2 AS col0 FROM tab2 cor0
----
17517
19652
54855
query I rowsort
SELECT - col1 * col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + col0 + 29 * col2 AS col0 FROM tab2 cor0
----
1181
790
832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7727
SELECT DISTINCT + - col1 * + CAST( + 54 AS SIGNED ) FROM tab0 cor0
----
-4644
-4914
-5238
skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + - col1 * + CAST ( + 54 AS INTEGER ) FROM tab0 cor0
----
-4644
-4914
-5238
query I rowsort
SELECT 11 + - col0 * + ( col0 ) + col0 FROM tab1
----
-4021
-6309
5
query I rowsort
SELECT ALL + col0 + col1 + 0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + 42 * + col1 + - tab0.col1 + - 49 * - tab0.col2 FROM tab0
----
4026
5143
7749
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT cor0.col2 + + cor0.col1 * - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8e276ae8493ea7b585daf34d8ca1e848
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col1 + - tab2.col2 col0 FROM tab2
----
1423
709
733
query I rowsort
SELECT + col0 * col0 + col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - - col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT col0 DIV + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-7737
SELECT col0 / + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col0 * - col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col2 * col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT - col1 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT 16 FROM tab1
----
16
16
16
query I rowsort
SELECT 15 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT ( - col2 ) + col0 AS col1 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab1.col1 col0 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT DISTINCT + col2 DIV + col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + col2 / + col1 AS col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + + 96 * + col0 AS col0 FROM tab1 cor0
----
288
6144
7680
query I rowsort
SELECT ALL + col1 + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + 45 * - col1 AS col1 FROM tab0 cor0
----
-3870
-4095
-4365
query I rowsort
SELECT 35 + - col0 * tab0.col2 - col0 FROM tab0
----
-35
-7352
-781
query I rowsort
SELECT ALL 18 - - 72 FROM tab0
----
90
90
90
query I rowsort
SELECT ALL col1 * col0 * col0 - + ( - 62 ) AS col2 FROM tab1
----
296
41022
83262
query I rowsort
SELECT ALL col2 * col0 - col1 AS col1 FROM tab0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT col1 DIV + 35 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7755
SELECT col1 / + 35 FROM tab1
----
0
0
0
query I rowsort
SELECT + - col2 * - 62 FROM tab2 AS cor0
----
1612
1674
2356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7757
SELECT DISTINCT ( - col1 ) * - col2 - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT ( - col1 ) * - col2 - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL col0 + 53 - - col1 FROM tab2
----
149
190
91
query I rowsort
SELECT - - 38 * + col0 FROM tab2 cor0
----
266
2964
3002
query I rowsort
SELECT ALL + col2 - col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL 48 * + col1 FROM tab1 cor0
----
1248
480
624
query I rowsort
SELECT ALL 58 * - col1 AS col1 FROM tab0 AS cor0
----
-4988
-5278
-5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT ALL + 94 DIV - col2 FROM tab0 cor0
----
-1
-2
-94
skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + 94 / - col2 FROM tab0 cor0
----
-1
-2
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT + cor0.col0 DIV col2 + cor0.col1 DIV + 11 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7764
SELECT + cor0.col0 / col2 + cor0.col1 / + 11 FROM tab1 AS cor0
----
1
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT - col0 * col1 + cor0.col2 * col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
skipif mysql # not compatible
query I rowsort label-7765
SELECT - col0 * col1 + cor0.col2 * col0 / col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col0 * cor0.col1 + ( cor0.col0 ) AS col2 FROM tab1 cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7767
SELECT + col2 * - col1 DIV + col1 AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7767
SELECT + col2 * - col1 / + col1 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + - 10 * + col2 * + col0 + - col0 - + col1 FROM tab0 AS cor0
----
-482
-73160
-8030
query I rowsort
SELECT col0 * cor0.col1 + + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 39 AS col1 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT ALL - + cor0.col2 + col2 * - 5 FROM tab2 AS cor0
----
-156
-162
-228
onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT col1 DIV col0 + 51 + cor0.col2 FROM tab0 AS cor0
----
134
54
87
skipif mysql # not compatible
query I rowsort label-7773
SELECT col1 / col0 + 51 + cor0.col2 FROM tab0 AS cor0
----
134
54
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7774
SELECT DISTINCT 99 DIV col1 AS col0 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT 99 / col1 AS col0 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT - cor0.col2 * ( - 61 ) AS col0 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT col0 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT - + col1 DIV 73 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7777
SELECT - + col1 / 73 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + + 25 * - col2 FROM tab2 AS cor0
----
-572
-668
-871
query I rowsort
SELECT + 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # use DIV operator for integer division
query I rowsort label-7780
SELECT - - col0 + ( + col0 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-7780
SELECT - - col0 + ( + col0 ) / - col1 AS col0 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col2 * + cor0.col1 + - 68 * col0 AS col0 FROM tab0 cor0
----
-2283
1206
1410
query I rowsort
SELECT ALL cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - + col0 * cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 + ( col0 ) FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + - col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - + 73 * col2 * col2 AS col0 FROM tab2 AS cor0
----
-105412
-49348
-53217
query I rowsort
SELECT + col2 * ( col1 + ( - col0 ) ) FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT ALL + - 55 AS col2 FROM tab1 cor0
----
-55
-55
-55
query I rowsort
SELECT 6 * cor0.col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT ALL 24 * - ( + col0 ) FROM tab1 AS cor0
----
-1536
-1920
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * - col0 col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + ( + 75 ) FROM tab0 AS cor0
----
75
query I rowsort
SELECT - + cor0.col2 * col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col1 FROM tab1 AS cor0
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * - CAST ( - col0 AS REAL ) col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - 78 * 81 AS col2 FROM tab1 AS cor0
----
6318
query I rowsort
SELECT ALL + col0 * col0 + col1 AS col0 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - 34 * + col0 FROM tab0 AS cor0
----
-1190
-3026
-816
query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT ALL + - col1 DIV - col0 + - col1 FROM tab1 cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL + - col1 / - col0 + - col1 FROM tab1 cor0
----
-10
-13
-18
query I rowsort
SELECT + - cor0.col0 * + 80 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT ALL + + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + 40 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT - - 91 FROM tab1 cor0
----
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT - CAST( col1 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7809
SELECT - CAST ( col1 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL col1 + + col1 * + col0 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col0 col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT col0 * cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7812
SELECT col0 * cor0.col2 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab1 AS cor0
----
14
query I rowsort
SELECT ALL + ( 74 ) FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT + - 78 * - col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT - col0 * + 57 - ( - col2 ) FROM tab0
----
-1335
-1994
-4991
query I rowsort
SELECT tab1.col2 + - col2 * - col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT + 65 AS col2 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT ALL + col1 + col1 + col2 AS col2 FROM tab0 cor0
----
195
205
264
query I rowsort
SELECT DISTINCT + col1 - + 52 AS col0 FROM tab1 AS cor0
----
-26
-39
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT col1 DIV 18 - - col0 DIV col1 FROM tab0
----
4
5
5
skipif mysql # not compatible
query I rowsort label-7821
SELECT col1 / 18 - - col0 / col1 FROM tab0
----
4
5
5
query I rowsort
SELECT ALL 51 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 54 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c711d2d833f9a4ffd04d07318e966355
query I rowsort
SELECT ALL 84 * - 99 FROM tab2
----
-8316
-8316
-8316
query I rowsort
SELECT DISTINCT + - col0 + 87 AS col1 FROM tab1 cor0
----
23
7
84
query I rowsort
SELECT + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + 84 AS col2 FROM tab1 cor0
----
84
84
84
query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab2
----
-97
query I rowsort
SELECT DISTINCT - col0 * ( 80 * col1 ) + ( - col0 + + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-107481
-17340
-368212
query I rowsort
SELECT ALL col2 + 76 AS col2 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT ALL col2 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT + col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT DISTINCT + col1 DIV 64 col0 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + col1 / 64 col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
23
query I rowsort
SELECT tab0.col2 + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT cor0.col2 - - 91 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 28e733cb7dd7a74497855ec2360039b4
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + - ( - col2 ) * - col1 * + 56 AS col2 FROM tab2 AS cor0
----
-39178
-47061
-87932
query I rowsort
SELECT DISTINCT - col2 - ( + 35 ) AS col0 FROM tab1 AS cor0
----
-131
-89
-92
query I rowsort
SELECT - 30 + - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3de06b34693ee2ef02d53645a3cf35c6
query I rowsort
SELECT - + cor0.col2 * + 50 + cor0.col0 FROM tab1 AS cor0
----
-2697
-2786
-4720
query I rowsort
SELECT DISTINCT + col0 * + 25 AS col2 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT DISTINCT col0 * + 99 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT cor0.col1 + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 42 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
243 values hashing to 5986d1260195c81da622c6c47a971169
query I rowsort
SELECT - 66 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT DISTINCT col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT + col1 * 5 DIV col2 + col2 FROM tab1 AS cor0
----
56
57
96
skipif mysql # not compatible
query I rowsort label-7847
SELECT + col1 * 5 / col2 + col2 FROM tab1 AS cor0
----
56
57
96
query I rowsort
SELECT tab0.col2 + - tab0.col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT 7 + - tab2.col0 * - tab2.col2 - 89 AS col0 FROM tab2
----
107
1946
2920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT - col1 DIV + 13 + col1 * col0 * + cor0.col2 FROM tab0 cor0
----
3388
664111
68106
skipif mysql # not compatible
query I rowsort label-7850
SELECT - col1 / + 13 + col1 * col0 * + cor0.col2 FROM tab0 cor0
----
3388
664111
68106
query I rowsort
SELECT + - col1 * col0 + - cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT - - 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT tab0.col2 * - col2 AS col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 40 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT tab1.col0 * - 3 * - tab1.col2 FROM tab1
----
10944
23040
486
query I rowsort
SELECT + col1 * - 39 FROM tab0
----
-3354
-3549
-3783
query I rowsort
SELECT + + cor0.col2 + ( - col1 + + cor0.col0 ) FROM tab2 AS cor0
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT ALL + col2 DIV - 49 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + col2 / - 49 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT DISTINCT - col1 DIV col2 + - 82 + - col2 AS col2 FROM tab1 cor0
----
-136
-139
-178
skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - col1 / col2 + - 82 + - col2 AS col2 FROM tab1 cor0
----
-136
-139
-178
query I rowsort
SELECT - col0 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-56
-6162
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - col2 col1 FROM tab0 AS cor0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 47 col1 FROM tab1 AS cor0
----
-17
-33
44
query I rowsort
SELECT ALL ( - col0 * col0 ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT 79 AS col0 FROM tab2
----
79
79
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + ( - tab0.col1 * col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 * - 80 FROM tab1
----
-4320
-4560
-7680
query I rowsort
SELECT + tab0.col2 + tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7869
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col2 * 10 FROM tab1 AS cor0
----
-540
-570
-960
query I rowsort
SELECT ALL - + col0 * + col2 - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT + 10 FROM tab2, tab1 AS cor0
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT DISTINCT - col1 DIV col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - col1 / col1 FROM tab2
----
-1
query I rowsort
SELECT ALL 34 FROM tab2 AS cor0
----
34
34
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col1 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 * col1 col1 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT ALL - cor0.col1 * - col1 + col2 + col2 AS col2 FROM tab1 cor0
----
214
361
784
query I rowsort
SELECT ALL - + col1 + col1 * + 25 + + col0 * + col1 FROM tab1 AS cor0
----
1352
702
880
query I rowsort
SELECT - 52 + col0 FROM tab0 AS cor0
----
-17
-28
37
query I rowsort
SELECT - + 17 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT + + 83 + - cor0.col0 DIV col0 AS col1 FROM tab2 cor0
----
82
82
82
skipif mysql # not compatible
query I rowsort label-7883
SELECT + + 83 + - cor0.col0 / col0 AS col1 FROM tab2 cor0
----
82
82
82
query I rowsort
SELECT DISTINCT + + col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + 37 FROM tab2 cor0
----
-37
-37
-37
query I rowsort
SELECT ALL - 41 FROM tab2 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - - 61 * col0 FROM tab1 AS cor0
----
183
3904
4880
query I rowsort
SELECT DISTINCT + col2 + - col2 * 48 FROM tab2 AS cor0
----
-1222
-1269
-1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT 12 DIV col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7889
SELECT 12 / col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - 15 FROM tab1
----
-15
-15
-15
query I rowsort
SELECT + 89 * col0 FROM tab0 cor0
----
2136
3115
7921
query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0
----
40
query I rowsort
SELECT col1 + + 96 FROM tab2 AS cor0
----
113
127
155
query I rowsort
SELECT - - col1 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col0 - 55 AS col0 FROM tab1 AS cor0
----
-119
-135
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT - col1 * - ( - col0 ) + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-1033
-635
-76
skipif mysql # not compatible
query I rowsort label-7898
SELECT - col1 * - ( - col0 ) + col2 / col1 AS col0 FROM tab1 AS cor0
----
-1033
-635
-76
query I rowsort
SELECT - 79 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT col1 + 69 - 97 AS col2 FROM tab1 AS cor0
----
-15
-18
-2
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT 90 + tab1.col1 FROM tab1
----
100
103
116
query I rowsort
SELECT ALL - col0 * 67 FROM tab2 cor0
----
-469
-5226
-5293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) * + ( 81 ) col1 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - + col0 * 83 AS col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7906
SELECT col1 * ( 11 + - col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7906
SELECT col1 * ( 11 + - col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + col0 + 91 AS col1 FROM tab0
----
201
223
271
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7909
SELECT - CAST( NULL AS SIGNED ) + 19 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7909
SELECT - CAST ( NULL AS INTEGER ) + 19 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col2 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT 26 + - cor2.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-60
-65
-71
query I rowsort
SELECT ALL 77 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL 45 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT - 32 + - 26 FROM tab1 AS cor0
----
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT - + CAST( 70 AS SIGNED ) * + col2 + 80 + - col0 DIV col1 FROM tab2 AS cor0
----
-1741
-1810
-2584
skipif mysql # not compatible
query I rowsort label-7915
SELECT - + CAST ( 70 AS INTEGER ) * + col2 + 80 + - col0 / col1 FROM tab2 AS cor0
----
-1741
-1810
-2584
query I rowsort
SELECT + cor2.col2 - + 38 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
243 values hashing to f8f770ac99af838eb7efac42c55e5d65
onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT ALL col2 DIV + col1 + col0 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL col2 / + col1 + col0 FROM tab2
----
7
78
81
query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab2
----
1456
567
830
query I rowsort
SELECT + col1 FROM tab1 WHERE col2 NOT BETWEEN col2 AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( col2 * - col1 )
----
query I rowsort
SELECT DISTINCT col1 - tab2.col0 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col1 + + col1 * col1 FROM tab1
----
110
182
702
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL IN ( - tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT col1 DIV col2 col1 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7924
SELECT col1 / col2 col1 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col1 FROM tab0 WHERE NOT col1 BETWEEN NULL AND col2 * - col0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 * col0 - + col1 * col2 AS col1 FROM tab0
----
-774
3298
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT ALL - col0 DIV col1 AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - col0 / col1 AS col2 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - col0 - - col2 > + col1 * + col2 + col2 * + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT ALL - col2 DIV col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - col2 / col1 col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT DISTINCT col0 * col0 DIV col1 FROM tab0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT col0 * col0 / col1 FROM tab0
----
12
6
87
query I rowsort
SELECT - col2 * - col0 * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT NULL IN ( col0 * - col0 * - tab0.col1 + col2 * tab0.col2 )
----
query I rowsort
SELECT col1 + + col1 FROM tab2 WHERE ( - col0 * col2 - + col0 ) <= col2
----
118
34
62
query I rowsort
SELECT DISTINCT tab0.col2 + col1 * - col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT tab0.col0 + col0 * + col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab0.col0 + col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT - col2 * tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - col0 + + col1 * tab2.col2 * col2 FROM tab2
----
22592
24469
39806
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab2
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT ALL col2 + - col0 * col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT col0 + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 FROM tab2 WHERE col0 * + col2 / - col2 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7944
SELECT col1 DIV + col0 + col1 FROM tab1 cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-7944
SELECT col1 / + col0 + col1 FROM tab1 cor0
----
10
13
34
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7946
SELECT + cor0.col2 * - col0 + - col0 + col1 DIV 94 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif mysql # not compatible
query I rowsort label-7946
SELECT + cor0.col2 * - col0 + - col0 + col1 / 94 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - - col1 + 9 * - 1 FROM tab1 AS cor0
----
1
17
4
query I rowsort
SELECT DISTINCT - col2 + 11 + - cor0.col0 FROM tab0 AS cor0
----
-160
-25
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + ( + col2 ) ) + + 44 col0 FROM tab1 AS cor0
----
152
158
236
query I rowsort
SELECT - col0 * ( tab1.col1 * - col1 ) FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL col2 + - 81 + + col2 FROM tab2 AS cor0
----
-27
-29
-5
query I rowsort
SELECT DISTINCT - + col2 + - 64 FROM tab2 AS cor0
----
-102
-90
-91
query I rowsort
SELECT DISTINCT - + col0 + + 25 + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1215
577
7857
query I rowsort
SELECT - + col2 + - col0 + ( col0 ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT - col1 * col0 * col2 + + col0 DIV col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36415
-4209
-99760
skipif mysql # not compatible
query I rowsort label-7955
SELECT - col1 * col0 * col2 + + col0 / col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36415
-4209
-99760
query I rowsort
SELECT DISTINCT + col0 + col2 * col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort
SELECT - - col1 + CAST ( 11 AS REAL ) * + col0 FROM tab0 AS cor0
----
1070
350
482
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - col2 + cor0.col1 * - 58 FROM tab2 AS cor0
----
-1024
-1825
-3448
query I rowsort
SELECT DISTINCT cor0.col0 * - 84 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT cor0.col0 * 45 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT ALL + col1 * cor0.col2 + ( - col0 ) FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT DISTINCT - - cor0.col0 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - - cor0.col0 + col1 / col0 AS col0 FROM tab0 AS cor0
----
27
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7964
SELECT ALL col0 + 8 DIV + col1 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL col0 + 8 / + col1 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col2 * + col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - - cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT DISTINCT 44 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT 44 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - tab0.col1 - col0 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT ALL + 63 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 63 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7973
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 34 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT CAST ( NULL AS REAL ) * - 34 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col1 col1 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7979
SELECT DISTINCT + col0 DIV col2 + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + col0 / col2 + col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + 57 FROM tab1 cor0
----
1097
135
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT + col0 * col1 * - col1 + + 23 DIV + cor0.col1 + col0 FROM tab2 AS cor0
----
-22751
-271440
-6720
skipif mysql # not compatible
query I rowsort label-7981
SELECT + col0 * col1 * - col1 + + 23 / + cor0.col1 + col0 FROM tab2 AS cor0
----
-22751
-271440
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col0 + - col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT ( col0 ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + tab0.col0 - col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL col2 + + col2 * - col1 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT DISTINCT col2 DIV col1 + col1 + + col0 * tab0.col2 * col1 FROM tab0
----
3492
664209
68198
skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT col2 / col1 + col1 + + col0 * tab0.col2 * col1 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT ALL + col1 + - col0 + + col1 AS col2 FROM tab2
----
-45
40
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT DISTINCT - col2 DIV col2 AS col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - col2 / col2 AS col1 FROM tab1
----
-1
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col1 * col0 + tab2.col1 * + col2 )
----
query I rowsort
SELECT DISTINCT + 34 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
34
query I rowsort
SELECT - - cor0.col0 - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * col1 + ( - col1 * col2 ) FROM tab0 AS cor0
----
4558
819
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL cor0.col2 * col0 - + col0 * col2 DIV col0 AS col0 FROM tab0 cor0
----
34
7216
759
skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL cor0.col2 * col0 - + col0 * col2 / col0 AS col0 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT + col0 - + tab2.col2 * col2 AS col2 FROM tab2
----
-1365
-598
-722
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT ( + col1 ) + - 9 * - col1 FROM tab0
----
860
910
970
query I rowsort
SELECT tab0.col0 * col0 - - col2 AS col2 FROM tab0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT ALL + 97 + + col1 DIV ( col0 ) + col2 DIV - 75 col2 FROM tab1
----
105
96
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 97 + + col1 / ( col0 ) + col2 / - 75 col2 FROM tab1
----
105
96
97
query I rowsort
SELECT col2 * col0 + tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col0 * - col0 * - 86 + col2 * col2 + tab1.col1 AS col1 FROM tab1
----
-348997
-541171
2168
query I rowsort
SELECT col2 + + col2 + - 12 FROM tab0 cor0
----
-10
152
54
query I rowsort
SELECT + col0 + col2 - - col0 FROM tab0
----
260
71
81
query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT col2 + col2 * + col1 AS col0 FROM tab0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8006
SELECT CAST( NULL AS SIGNED ) * 29 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8006
SELECT CAST ( NULL AS INTEGER ) * 29 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + 48 ) * + col1 AS col2 FROM tab0 cor0
----
-4128
-4368
-4656
query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - ( + col2 ) * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( - cor0.col2 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + 58 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1167
-518
-7863
query I rowsort
SELECT DISTINCT + col1 * - 31 FROM tab2 AS cor0
----
-1829
-527
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 66 col2 FROM tab1
----
198
4224
5280
query I rowsort
SELECT - ( 69 ) FROM tab1 AS cor0
----
-69
-69
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8015
SELECT - CAST( col1 AS SIGNED ) + - col2 FROM tab1 cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-8015
SELECT - CAST ( col1 AS INTEGER ) + - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT - ( col2 ) * - CAST( 33 AS SIGNED ) - - col0 FROM tab0 AS cor0
----
1113
2795
68
skipif mysql # not compatible
query I rowsort label-8017
SELECT - ( col2 ) * - CAST ( 33 AS INTEGER ) - - col0 FROM tab0 AS cor0
----
1113
2795
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT - - col0 DIV + cor0.col0 + + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8018
SELECT - - col0 / + cor0.col0 + + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL col2 + col2 * + col1 + + col1 FROM tab2
----
1619
701
895
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - ( 56 ) FROM tab2, tab1 AS cor0
----
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT + col2 * + 86 + - ( col0 ) * CAST( col0 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-102829
-356720
803
skipif mysql # not compatible
query I rowsort label-8023
SELECT + col2 * + 86 + - ( col0 ) * CAST ( col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-102829
-356720
803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL col0 * + tab0.col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 + 83 AS col0 FROM tab2 cor0
----
24
52
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - cor0.col1 * 72 - - cor0.col0 FROM tab1 AS cor0
----
-1869
-656
-856
query I rowsort
SELECT ALL + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab1, tab2 AS cor0
----
26
query I rowsort
SELECT ALL + ( - col1 * + col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT DISTINCT tab0.col2 DIV + col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT tab0.col2 / + col0 FROM tab0
----
0
1
query I rowsort
SELECT DISTINCT cor1.col2 + + cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 67 AS col0 FROM tab2, tab1 cor0
----
67
query I rowsort
SELECT ALL ( tab0.col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 * tab0.col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 49 * - col0 FROM tab2
----
-343
-3822
-3871
query I rowsort
SELECT + + col0 * col2 + - ( col1 * cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-164
-2046
-62
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + - cor0.col1 col0 FROM tab2 AS cor0
----
-105
-133
-91
query I rowsort
SELECT ALL 28 + - col1 FROM tab2 AS cor0
----
-3
-31
11
query I rowsort
SELECT + + col2 + 63 FROM tab2 AS cor0
----
101
89
90
query I rowsort
SELECT col0 * ( - 65 ) FROM tab1 cor0
----
-195
-4160
-5200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab2
----
2
query I rowsort
SELECT - col2 * + 27 * + 7 + + cor0.col1 FROM tab2 AS cor0
----
-4855
-5072
-7165
onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT col1 + col2 DIV col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1362
248
4661
skipif mysql # not compatible
query I rowsort label-8048
SELECT col1 + col2 / col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1362
248
4661
query I rowsort
SELECT + 87 * col1 + - col2 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
2370
4461
8715
query I rowsort
SELECT 99 AS col1 FROM tab2 AS cor0
----
99
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT DISTINCT - col2 + col0 + col0 * cor0.col2 DIV col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - col2 + col0 + col0 * cor0.col2 / col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT - - col2 * + col1 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-8053
SELECT - - col2 * + col1 + col2 / col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
query I rowsort
SELECT ALL - cor0.col1 * + col1 + 76 * + col0 FROM tab2 AS cor0
----
-429
2447
5715
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + + cor0.col0 + - col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL + 63 FROM tab2
----
63
63
63
query I rowsort
SELECT tab0.col2 - col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ( - col0 * - ( - tab2.col1 ) ) AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT DISTINCT col0 DIV col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT col0 / col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT + tab2.col1 * 6 FROM tab2
----
102
186
354
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + 84 + - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-708
-7214
49
query I rowsort
SELECT ALL + ( + col2 ) + col2 + col0 FROM tab1 AS cor0
----
111
178
272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8065
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * ( + col0 ) - - col1 col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - col2 - 58 AS col1 FROM tab2
----
-84
-85
-96
query I rowsort
SELECT - 10 AS col1 FROM tab0
----
-10
-10
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8069
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8069
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 31 + col1 AS col1 FROM tab0 AS cor0
----
55
60
66
query I rowsort
SELECT col2 * cor0.col1 * col1 + - 63 FROM tab2 AS cor0
----
10919
25884
90443
query I rowsort
SELECT - ( col0 ) + + col0 * + 91 * col0 FROM tab2 AS cor0
----
4452
553566
567852
query I rowsort
SELECT DISTINCT col0 + col1 * col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8075
SELECT ALL 99 + + col2 DIV col2 FROM tab1
----
100
100
100
skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL 99 + + col2 / col2 FROM tab1
----
100
100
100
query I rowsort
SELECT 23 + + col2 AS col1 FROM tab1 AS cor0
----
119
77
80
query I rowsort
SELECT DISTINCT - col0 + + 32 FROM tab2
----
-46
-47
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT 98 + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 61481cc21ab8ffa67fff983b096c0ee3
query I rowsort
SELECT DISTINCT - - 61 FROM tab1 AS cor0
----
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT DISTINCT 37 * - col0 * + col1 + + CAST( col1 AS SIGNED ) * col0 DIV - ( 35 ) AS col0 FROM tab2
----
-170405
-49729
-8035
skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT 37 * - col0 * + col1 + + CAST ( col1 AS INTEGER ) * col0 / - ( 35 ) AS col0 FROM tab2
----
-170405
-49729
-8035
query I rowsort
SELECT DISTINCT col1 * 42 + col2 FROM tab1
----
1146
477
642
query I rowsort
SELECT + 73 * + 93 AS col0 FROM tab1
----
6789
6789
6789
query I rowsort
SELECT ALL - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 + col1 * + col2 col2 FROM tab1 AS cor0
----
-70
1326
208
onlyif mysql # use DIV operator for integer division
query I rowsort label-8087
SELECT ALL 39 DIV col1 + + ( - col1 + - col2 ) FROM tab1 AS cor0
----
-106
-64
-79
skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL 39 / col1 + + ( - col1 + - col2 ) FROM tab1 AS cor0
----
-106
-64
-79
query I rowsort
SELECT ALL 90 + - col2 * 25 AS col1 FROM tab0 cor0
----
-1960
-735
65
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 - - 60 AS col1 FROM tab0 AS cor0
----
-1165
-516
-7861
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab2 AS cor0
----
7
query I rowsort
SELECT DISTINCT 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
61
query I rowsort
SELECT + 17 + - cor0.col2 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT ALL - + col0 * cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * + col0 + + 52 * col1 * col1 - - col0 AS col0 FROM tab0 AS cor0
----
386680
438800
492698
query I rowsort
SELECT DISTINCT col0 + + col0 * 19 AS col1 FROM tab2 AS cor0
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - 36 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-118
-37
-69
query I rowsort
SELECT DISTINCT - col2 * + col2 + - ( col1 + - col1 ) * col0 * cor0.col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + + col2 * ( + col1 * + col2 + col2 ) AS col2 FROM tab1 AS cor0
----
129024
35739
78732
query I rowsort
SELECT ALL + cor1.col2 + + 71 * 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to baed1e4182ff145b792a6f530dc2bb9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 1 col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT - col0 DIV 61 AS col2 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8104
SELECT - col0 / 61 AS col2 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT ALL col1 * - 43 + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1377
-2170
-4071
onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT DISTINCT + + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 + 40 AS col0 FROM tab2 AS cor0
----
118
119
47
query I rowsort
SELECT ALL col2 + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - + col0 + 4 FROM tab2 AS cor0
----
-3
-74
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-8110
SELECT DISTINCT - col1 DIV CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - col1 / CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT + col1 DIV 25 FROM tab0 cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-8111
SELECT + col1 / 25 FROM tab0 cor0
----
3
3
3
query I rowsort
SELECT DISTINCT + col1 * + col1 * cor0.col2 + + col1 AS col2 FROM tab0 cor0
----
244154
679133
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * + cor0.col0 col0 FROM tab1 AS cor0
----
-201
-4288
-5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8114
SELECT CAST( NULL AS SIGNED ) + - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8114
SELECT CAST ( NULL AS INTEGER ) + - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 52 FROM tab2 cor0
----
130
131
59
query I rowsort
SELECT DISTINCT + + ( col1 ) + col2 * + ( + col1 ) FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + + col2 + 69 AS col2 FROM tab0 cor0
----
102
151
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT ALL - ( col2 ) + - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - ( col2 ) + - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - 12 + - col1 FROM tab2 AS cor0
----
-108
-149
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-8120
SELECT ALL - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - col0 / + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL 36 * + col1 AS col2 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2
----
83
query I rowsort
SELECT - 57 FROM tab0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab2 AS cor0
----
9
query I rowsort
SELECT - - cor0.col0 * - cor0.col2 + col0 * - col0 FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT ALL - 14 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
-13
-14
21
skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - 14 + col0 / cor0.col2 FROM tab0 AS cor0
----
-13
-14
21
query I rowsort
SELECT - 8 AS col1 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + 76 FROM tab2, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT - col1 * + 73 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT ALL + - col2 - + 92 AS col1 FROM tab0 cor0
----
-125
-174
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8136
SELECT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8136
SELECT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 56 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - col1 + col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT 45 FROM tab1
----
45
query I rowsort
SELECT ALL + + col0 * col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - - ( col2 ) + + cor0.col2 * 96 + - 27 AS col2 FROM tab1 cor0
----
5211
5502
9285
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - + cor0.col1 * 64 FROM tab0 AS cor0
----
-5504
-5824
-6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8144
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 27 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + CAST ( NULL AS REAL ) * 27 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 + col0 + col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT - cor0.col2 + col0 * col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - 63 + + col0 AS col1 FROM tab1
----
-60
1
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT DISTINCT - col0 + 79 DIV col2 + col1 AS col1 FROM tab0
----
141
2
64
skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - col0 + 79 / col2 + col1 AS col1 FROM tab0
----
141
2
64
query I rowsort
SELECT + 43 * + col1 + + col1 AS col2 FROM tab2
----
1364
2596
748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + col1 * - col0 * - 35 col2 FROM tab1
----
22464
2733
36480
query I rowsort
SELECT 13 * tab2.col2 FROM tab2
----
338
351
494
query I rowsort
SELECT ALL col2 * + 86 AS col1 FROM tab0
----
2838
7052
86
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab2
----
-53
-53
-53
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT + + col2 + cor0.col2 * 77 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL + 78 * - col2 FROM tab2
----
-2028
-2106
-2964
query I rowsort
SELECT - 72 * col2 * col0 + 93 + - col2 AS col1 FROM tab1 AS cor0
----
-11625
-262620
-552963
query I rowsort
SELECT DISTINCT + 20 + + col1 * 41 FROM tab0
----
3546
3751
3997
query I rowsort
SELECT - cor0.col2 + - col2 * col2 * + 44 AS col0 FROM tab1 cor0
----
-128358
-143013
-405600
query I rowsort
SELECT + tab2.col0 * col1 * col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL - col0 + ( + col0 ) * col1 FROM tab0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8164
SELECT ALL col2 DIV 44 + col0 FROM tab1
----
4
65
82
skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL col2 / 44 + col0 FROM tab1
----
4
65
82
query I rowsort
SELECT DISTINCT - col0 * + tab1.col1 + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - 11 FROM tab2, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT - ( col0 ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT - - 76 * col0 + - col1 DIV + cor0.col2 FROM tab0 AS cor0
----
1822
2563
6763
skipif mysql # not compatible
query I rowsort label-8168
SELECT - - 76 * col0 + - col1 / + cor0.col2 FROM tab0 AS cor0
----
1822
2563
6763
query I rowsort
SELECT ALL - col1 + 90 AS col1 FROM tab2
----
31
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT ALL col1 DIV + 34 + 96 AS col1 FROM tab0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL col1 / + 34 + 96 AS col1 FROM tab0
----
98
98
98
query I rowsort
SELECT DISTINCT col2 + col1 * col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL col2 * - 15 AS col1 FROM tab2
----
-390
-405
-570
query I rowsort
SELECT ALL - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 82 col2 FROM tab0 cor0
----
-7052
-7462
-7954
query I rowsort
SELECT 31 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT DISTINCT col0 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col0 + - col2 * + col2 + + ( col1 + + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-6453
-893
228
query I rowsort
SELECT + + col1 * 34 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT - - col2 + - col1 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + ( + col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + 86 + col2 FROM tab1 AS cor0
----
140
143
182
query I rowsort
SELECT + - 28 + 20 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + + ( col1 ) * col1 + 1 FROM tab0 AS cor0
----
7397
8282
9410
query I rowsort
SELECT + - 30 * col1 - col0 AS col0 FROM tab0 AS cor0
----
-2604
-2819
-2945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8185
SELECT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8185
SELECT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) * col2 + col2 FROM tab1
----
-3581
-7571
-82
query I rowsort
SELECT + - col1 * 81 AS col0 FROM tab1 AS cor0
----
-1053
-2106
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT col0 + + ( - col0 ) DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8188
SELECT col0 + + ( - col0 ) / col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col2 + col0 - col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - col1 + 38 * 77 AS col1 FROM tab0
----
2829
2835
2840
query I rowsort
SELECT DISTINCT - col0 + ( - cor0.col2 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - col1 * - cor0.col1 + - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
-1922
-578
-6962
query I rowsort
SELECT - - col0 + - ( + col2 ) FROM tab0 cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT col0 * CAST( - col1 AS SIGNED ) + + col0 + col0 FROM tab0 AS cor0
----
-2016
-3325
-7921
skipif mysql # not compatible
query I rowsort label-8194
SELECT col0 * CAST ( - col1 AS INTEGER ) + + col0 + col0 FROM tab0 AS cor0
----
-2016
-3325
-7921
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d
query I rowsort
SELECT ALL 6 * + col1 AS col0 FROM tab2 AS cor0
----
102
186
354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8197
SELECT - CAST( col2 AS SIGNED ) + col0 * 4 * 52 col0 FROM tab0 AS cor0
----
18430
4959
7279
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8197
SELECT - CAST ( col2 AS INTEGER ) + col0 * 4 * 52 col0 FROM tab0 AS cor0
----
18430
4959
7279
query I rowsort
SELECT col0 * col2 * col2 + col1 FROM tab2 AS cor0
----
114093
5134
52787
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - + 97 + + col1 AS col1 FROM tab0 AS cor0
----
-11
-6
0
query I rowsort
SELECT - + col2 * - col1 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + + 36 AS col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT col0 + + col2 * + col1 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL + col1 + + col2 + col1 AS col1 FROM tab0 cor0
----
195
205
264
query I rowsort
SELECT ALL + col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 45 AS col1 FROM tab1 AS cor0
----
45
query I rowsort
SELECT ALL col0 + 76 * col1 FROM tab2 AS cor0
----
1371
2363
4562
query I rowsort
SELECT DISTINCT + col2 + - 39 FROM tab0 AS cor0
----
-38
-6
43
query I rowsort
SELECT ( - cor0.col2 ) + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * - 87 AS col0 FROM tab0 cor0
----
2871
7134
87
query I rowsort
SELECT DISTINCT - + ( + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col2 * - 73 AS col0 FROM tab1
----
-3942
-4161
-7008
query I rowsort
SELECT ALL + tab2.col1 * col2 + - 35 FROM tab2
----
1499
611
802
query I rowsort
SELECT ALL col0 * ( - ( col1 ) ) AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT - - cor0.col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8215
SELECT - - cor0.col1 / - col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + - 83 + + col0 * + 45 + cor0.col1 FROM tab2 AS cor0
----
263
3486
3489
query I rowsort
SELECT - + cor0.col1 * - col0 + - 44 * - 37 FROM tab2 AS cor0
----
1845
2971
6230
query I rowsort
SELECT ALL - col0 + col1 * - 44 AS col0 FROM tab1 AS cor0
----
-1147
-504
-652
query I rowsort
SELECT DISTINCT + + 63 FROM tab2 AS cor0
----
63
query I rowsort
SELECT 60 + - col1 * + col1 - col0 FROM tab2 AS cor0
----
-308
-3499
-908
query I rowsort
SELECT - 7 FROM tab2 cor0
----
-7
-7
-7
query I rowsort
SELECT - - ( + col1 ) * 65 AS col1 FROM tab1 AS cor0
----
1690
650
845
onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT + col1 + col0 DIV 27 FROM tab1 AS cor0
----
12
15
26
skipif mysql # not compatible
query I rowsort label-8223
SELECT + col1 + col0 / 27 FROM tab1 AS cor0
----
12
15
26
query I rowsort
SELECT + 20 * col1 * col1 AS col2 FROM tab2 AS cor0
----
19220
5780
69620
query I rowsort
SELECT ( + col2 * - col1 ) AS col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT ALL col0 * col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL col0 * col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col2 + + col2 + cor0.col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8228
SELECT DISTINCT + 89 DIV + cor0.col1 FROM tab1, tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + 89 / + cor0.col1 FROM tab1, tab2 AS cor0
----
1
2
5
query I rowsort
SELECT + + cor0.col0 - + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 66 * + col2 - col0 FROM tab2
----
1638
1775
2429
query I rowsort
SELECT + + 4 + - col0 FROM tab1 AS cor0
----
-60
-76
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT - col1 * col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8233
SELECT - col1 * col2 / + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8234
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8234
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + cor0.col0 * - ( + cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT - col2 + 5 DIV - col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8237
SELECT - col2 + 5 / - col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 + - 24 FROM tab1 AS cor0
----
-11
-14
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8239
SELECT ALL + col1 + + col0 DIV - 25 FROM tab2 AS cor0
----
14
31
56
skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + col1 + + col0 / - 25 FROM tab2 AS cor0
----
14
31
56
query I rowsort
SELECT col1 + + ( col0 + col1 ) FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT DISTINCT - col1 + - 11 * - 28 * col2 AS col0 FROM tab0 AS cor0
----
10078
211
25165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * col1 + col2 col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-8243
SELECT DISTINCT col2 DIV col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT col2 / col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT + cor0.col1 * + 68 - 56 FROM tab0 AS cor0
----
5792
6132
6540
query I rowsort
SELECT ALL + 72 FROM tab1
----
72
72
72
query I rowsort
SELECT ALL col0 * tab1.col1 + - tab1.col2 * - tab1.col1 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT DISTINCT col0 * 61 + col0 AS col0 FROM tab0
----
1488
2170
5518
query I rowsort
SELECT ALL - - col0 * 4 + col2 FROM tab1 AS cor0
----
313
416
66
query I rowsort
SELECT DISTINCT - col1 * 50 - col0 FROM tab1 AS cor0
----
-1303
-564
-730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT ALL - - cor0.col1 * - 66 + + col0 DIV cor0.col1 AS col1 FROM tab0 cor0
----
-5676
-6006
-6402
skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - - cor0.col1 * - 66 + + col0 / cor0.col1 AS col1 FROM tab0 cor0
----
-5676
-6006
-6402
query I rowsort
SELECT ALL - col2 + - 38 * col1 FROM tab2 AS cor0
----
-1205
-2268
-684
onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT ALL - col1 DIV - 42 + + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - col1 / - 42 + + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + col2 * 63 FROM tab1 AS cor0
----
-3402
-3591
-6048
onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT ALL - col2 DIV - col1 - - col0 * cor0.col2 AS col0 FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - col2 / - col1 - - col0 * cor0.col2 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 + + 73 * - cor0.col1 FROM tab1 AS cor0
----
-1895
-666
-869
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8257
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8257
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( 76 ) + - col2 + col0 AS col1 FROM tab0 AS cor0
----
-42
-69
-85
query I rowsort
SELECT ALL - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + cor0.col0 col0 FROM tab2 AS cor0
----
153
154
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8261
SELECT ALL + + ( - col2 ) DIV col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + + ( - col2 ) / col0 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 89 * col0 col0 FROM tab0 AS cor0
----
-2103
-3114
-7839
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT - + col1 * - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + + 39 FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT ALL + - col0 * - col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8267
SELECT DISTINCT + + 23 + col1 - + col0 DIV 36 FROM tab0 cor0
----
109
112
120
skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + + 23 + col1 - + col0 / 36 FROM tab0 cor0
----
109
112
120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + 61 - - col2 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT - 61 AS col2 FROM tab1 AS cor0
----
-61
-61
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + ( 30 ) + - col2 * tab2.col1 * col1 FROM tab2
----
-10952
-25917
-90476
query I rowsort
SELECT 39 FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT 12 * + col1 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT 89 AS col0 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 99 * - 7 * + col1 AS col2 FROM tab2
----
-11781
-21483
-40887
query I rowsort
SELECT - 73 AS col1 FROM tab0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab2, tab0 AS cor0
----
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc
query I rowsort
SELECT ALL 13 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL 16 AS col2 FROM tab1
----
16
16
16
query I rowsort
SELECT + cor0.col2 * - ( tab1.col0 ) FROM tab1, tab2 cor0
----
9 values hashing to a73bbc3fd0415c60774b01c5f952caf8
query I rowsort
SELECT col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 23 FROM tab0 cor0
----
23
23
23
query I rowsort
SELECT + 22 * - col2 + - col1 FROM tab0 cor0
----
-119
-1895
-812
query I rowsort
SELECT - + 22 * col1 + col2 FROM tab2 AS cor0
----
-1272
-336
-655
query I rowsort
SELECT + 19 + col0 * col1 AS col1 FROM tab0 cor0
----
2083
3414
8118
query I rowsort
SELECT + - col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col1 + col2 * cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 22 * + cor0.col2 col0 FROM tab1 AS cor0
----
1214
1264
2125
query I rowsort
SELECT ALL cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8296
SELECT DISTINCT cor0.col1 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT cor0.col1 / ( col0 ) AS col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT + col1 * + cor0.col2 - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + + cor0.col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 99 * - col0 AS col2 FROM tab1 AS cor0
----
-297
-6336
-7920
query I rowsort
SELECT + + ( - 71 ) FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col1 + - col1 + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col2 + 95 FROM tab0 AS cor0
----
13
62
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT + col2 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8304
SELECT + col2 / - col1 FROM tab0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + 92 * - col0 + col2 col1 FROM tab0
----
175
5221
6190
query I rowsort
SELECT col0 - col2 * + col1 * + col1 FROM tab1 AS cor0
----
-16144
-36501
-5636
onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT - 17 * - col2 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
1633
919
970
skipif mysql # not compatible
query I rowsort label-8308
SELECT - 17 * - col2 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
1633
919
970
query I rowsort
SELECT DISTINCT + col1 - + col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT - - 91 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT ( + 30 ) AS col2 FROM tab2 AS cor0
----
30
30
30
query I rowsort
SELECT ( col1 ) * + cor0.col0 * col0 + col1 + col1 AS col2 FROM tab1 AS cor0
----
286
40980
83226
onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT - col1 DIV cor0.col1 + col1 AS col0 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-8313
SELECT - col1 / cor0.col1 + col1 AS col0 FROM tab0 cor0
----
85
90
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8314
SELECT DISTINCT + + CAST( - 12 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1068
288
420
skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + + CAST ( - 12 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT - col1 + cor0.col2 * + col0 + col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + ( col1 ) + col1 * - ( cor0.col2 ) - + col0 FROM tab1 AS cor0
----
-1315
-1381
-624
query I rowsort
SELECT - ( 65 ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL - - 79 - + col0 AS col1 FROM tab2 AS cor0
----
0
1
72
query I rowsort
SELECT ALL + 66 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT ALL - 17 * - col1 - ( - col2 + - col1 ) AS col2 FROM tab2 AS cor0
----
1088
344
585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + 38 * col1 + ( col0 ) FROM tab2 AS cor0
----
-1171
-2164
-567
query I rowsort
SELECT - col0 * col2 + 71 FROM tab0 AS cor0
----
-721
-7227
36
query I rowsort
SELECT + 35 FROM tab0
----
35
35
35
query I rowsort
SELECT - + col1 + + 96 * ( - cor0.col1 ) * 9 AS col0 FROM tab0 cor0
----
-74390
-78715
-83905
query I rowsort
SELECT 39 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col2 * 91 col1 FROM tab2 AS cor0
----
2444
2464
3537
query I rowsort
SELECT 7 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL 43 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL col1 + - 5 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT - + col1 + col1 * - col1 FROM tab0 cor0
----
-7482
-8372
-9506
query I rowsort
SELECT + + 41 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2105
3436
8140
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT col2 DIV + 91 + - tab0.col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8334
SELECT col2 / + 91 + - tab0.col1 * col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 64 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8336
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * 43 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * 43 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT ALL + tab0.col0 - - tab0.col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT col0 * col0 + col2 AS col1 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT col2 * cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL >= ( col1 * + col2 )
----
query I rowsort
SELECT DISTINCT col1 * col2 - + col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT + col1 + - tab2.col2 - col2 AS col2 FROM tab2
----
-23
-59
7
query I rowsort
SELECT DISTINCT - col0 * tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + tab1.col1 * + tab1.col2 AS col1 FROM tab1
----
1248
1404
570
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 )
----
query I rowsort
SELECT ALL + col2 * cor0.col0 * col1 + col2 * + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-19968
-71604
3990
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT ALL col2 + + col0 DIV - col0 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL col2 + + col0 / - col0 FROM tab1
----
53
56
95
query I rowsort
SELECT ALL + col0 * - col2 AS col2 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( NULL )
----
query I rowsort
SELECT ALL col1 * col0 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT tab1.col0 * col2 + - tab1.col0 * + col0 FROM tab1
----
-448
1280
153
query I rowsort
SELECT col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col1 + - tab1.col0 * + col1 FROM tab1 WHERE col2 + - tab1.col1 + - col2 NOT IN ( - tab1.col2 * - tab1.col2 + col0 )
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT ALL + col2 + col2 DIV + col2 + + col2 AS col2 FROM tab1 AS cor0
----
109
115
193
skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL + col2 + col2 / + col2 + + col2 AS col2 FROM tab1 AS cor0
----
109
115
193
query I rowsort
SELECT ALL col0 * col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( cor0.col1 )
----
query I rowsort
SELECT ALL col2 - - col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col2 * + col1 - col0 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + col2 + col0 * col1 * + col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
23515
273078
7591
query I rowsort
SELECT ALL col2 * - cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT - col1 DIV col2 + col1 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-8362
SELECT - col1 / col2 + col1 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 + col1 FROM tab2 AS cor0
----
22630
24565
39943
onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT + col1 DIV col2 + + col2 col2 FROM tab0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8364
SELECT + col1 / col2 + + col2 col2 FROM tab0
----
35
83
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT DISTINCT cor0.col2 DIV cor0.col1 FROM tab0, tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT cor0.col2 / cor0.col1 FROM tab0, tab1 cor0
----
2
5
7
query I rowsort
SELECT tab1.col2 - + col2 * - col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + col1 * cor0.col2 * col2 + col0 + col1 * col0 FROM tab1 AS cor0
----
120928
33194
75897
query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col2 + col2 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col0 + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8375
SELECT ALL col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
15
69
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - col0 - - col1 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT ALL - - col1 - col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - - col1 - col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 33 + + col2 * 74 AS col0 FROM tab0 AS cor0
----
2409
41
6035
query I rowsort
SELECT ALL - col1 * - col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - ( - col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + ( col1 ) * + 71 AS col1 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT ( + col1 ) AS col2 FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8388
SELECT + col2 * - cor0.col0 / - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8388
SELECT + col2 * - cor0.col0 / - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT col1 FROM tab0 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - + 6 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT - - 83 * + col0 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT ALL + 36 + - cor0.col2 FROM tab1 cor0
----
-18
-21
-60
query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + + col0 * ( - ( cor0.col0 ) * col1 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col1 + + 52 * cor0.col2 AS col0 FROM tab1 cor0
----
2834
2974
5005
onlyif mysql # use DIV operator for integer division
query I rowsort label-8398
SELECT ALL + col1 DIV + col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + col1 / + col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort
SELECT ( tab0.col0 ) * + CAST ( ( col2 ) AS REAL ) + col0 AS col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + col2 * - col2 * + col2 + + col1 * + col0 FROM tab0
----
-33873
-543269
3394
query I rowsort
SELECT col1 + + col2 * - col2 AS col0 FROM tab2
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-8402
SELECT DISTINCT - col1 + col0 + col0 DIV + col0 FROM tab0
----
-1
-61
skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - col1 + col0 + col0 / + col0 FROM tab0
----
-1
-61
query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT DISTINCT col2 DIV col1 - col1 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT col2 / col1 - col1 AS col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8405
SELECT + col0 * + col0 + col1 DIV col0 AS col2 FROM tab0
----
1227
579
7922
skipif mysql # not compatible
query I rowsort label-8405
SELECT + col0 * + col0 + col1 / col0 AS col2 FROM tab0
----
1227
579
7922
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL >= - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8407
SELECT DISTINCT tab0.col2 + col2 - + tab0.col2 DIV col1 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT tab0.col2 + col2 - + tab0.col2 / col1 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col2 FROM tab1
----
1040
640
78
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( - col1 )
----
query I rowsort
SELECT ALL col1 * col0 * col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col2 * col0 * col1 + - col2 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT ALL col0 * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
query I rowsort
SELECT + col2 * - tab0.col2 * + col0 + - col1 AS col0 FROM tab0
----
-132
-26222
-598527
query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab1 WHERE NOT NULL IN ( col2 )
----
query I rowsort
SELECT DISTINCT col0 + col0 - col0 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 * - col2 + tab1.col1 + col1 AS col1 FROM tab1
----
-110
-3628
-7654
query I rowsort
SELECT - col1 * - col2 - col0 * col2 AS col1 FROM tab2
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT col0 DIV + col0 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8419
SELECT col0 / + col0 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * col0 + col2 + col2 FROM tab0
----
1227
642
8085
onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT + col1 * - col1 DIV col1 AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8421
SELECT + col1 * - col1 / col1 AS col2 FROM tab0
----
-86
-91
-97
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= col2 + + col2
----
query I rowsort
SELECT col1 + - tab2.col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col2 + + col2 FROM tab1
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT + col1 * col1 + + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL + col1 + - col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col1 * col0 - - col2 AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT DISTINCT - col1 + - col1 DIV col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - col1 + - col1 / col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - tab0.col1 * - col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * + col0 + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - col0 * + 5 + ( - col1 * cor0.col1 ) FROM tab1 AS cor0
----
-420
-569
-691
query I rowsort
SELECT col1 * 57 * - col1 + col2 * + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
-145689
-49674
97603
query I rowsort
SELECT col1 * ( col1 + - col1 * + col0 ) FROM tab2 AS cor0
----
-22542
-268037
-5766
onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT col0 DIV col1 - - col0 AS col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-8437
SELECT col0 / col1 - - col0 AS col1 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ALL - col0 * + col2 + tab0.col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ( tab2.col2 ) + tab2.col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL 34 * col2 + col1 AS col0 FROM tab1
----
1862
1948
3277
query I rowsort
SELECT - col0 + ( - col0 ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + + 25 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT ALL tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - + col2 + col2 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col2 * 45 + col0 AS col2 FROM tab0 AS cor0
----
1509
3779
80
query I rowsort
SELECT ALL + col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL cor0.col2 * + col0 + col2 + + col2 AS col0 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT DISTINCT + - cor0.col0 + + 89 AS col0 FROM tab1 AS cor0
----
25
86
9
query I rowsort
SELECT DISTINCT - col0 * ( ( - col1 ) ) * + col0 AS col2 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT 73 * + col2 + - col0 FROM tab0
----
2385
38
5897
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7
query I rowsort
SELECT DISTINCT col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + 57 * + ( + col0 + + ( - col2 ) * cor0.col2 ) FROM tab0 AS cor0
----
-378195
-60705
1938
query I rowsort
SELECT 72 * 77 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to db07f2569f93af2da9fbfd181aeb5ed6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT ALL + col1 DIV col0 + 52 AS col2 FROM tab2 AS cor0
----
52
52
56
skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + col1 / col0 + 52 AS col2 FROM tab2 AS cor0
----
52
52
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - 37 * cor0.col1 * + 12 FROM tab1 AS cor0
----
11544
4440
5772
query I rowsort
SELECT DISTINCT + 12 + col2 AS col0 FROM tab0
----
13
45
94
query I rowsort
SELECT DISTINCT 84 FROM tab1, tab2, tab0 AS cor0
----
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT - 39 DIV col1 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8463
SELECT - 39 / col1 FROM tab2
----
-1
-2
0
query I rowsort
SELECT DISTINCT 2 + + cor0.col2 FROM tab1 AS cor0
----
56
59
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT DISTINCT + 3 DIV + col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + 3 / + col0 FROM tab2 cor0
----
0
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8468
SELECT - + col0 + - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-8468
SELECT - + col0 + - col1 / - cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT ALL - 90 AS col1 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT - - 16 AS col2 FROM tab1 AS cor0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8471
SELECT - col0 + - CAST( - 30 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5
-59
6
skipif mysql # not compatible
query I rowsort label-8471
SELECT - col0 + - CAST ( - 30 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5
-59
6
query I rowsort
SELECT ALL + col0 - + ( col2 ) * col2 * - col2 AS col0 FROM tab1
----
157467
185257
884816
query I rowsort
SELECT + col1 + + ( - cor0.col0 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - - col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 98 col1 FROM tab0 AS cor0
----
-2352
-3430
-8722
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 / - col2 + col0 + col0 * - CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - col0 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col0 * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + col0 * 72 + - col1 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1594
5168
6995
query I rowsort
SELECT ALL - ( cor1.col1 ) FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT 90 + col2 + - col0 FROM tab1 AS cor0
----
106
141
83
query I rowsort
SELECT col2 * 69 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + ( - 63 ) * col2 FROM tab2
----
-1638
-1701
-2394
query I rowsort
SELECT - ( + col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - cor0.col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab2 AS cor0
----
-89
query I rowsort
SELECT 93 * - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
59520
7254
96720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 56 * col1 FROM tab1
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT - - 21 AS col1 FROM tab2 AS cor0
----
21
query I rowsort
SELECT 11 AS col1 FROM tab2 AS cor0
----
11
11
11
query I rowsort
SELECT - ( + cor2.col0 ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT DISTINCT - 40 DIV tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT - 40 / tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 34 + 2 FROM tab0 AS cor0
----
36
query I rowsort
SELECT ALL 83 FROM tab1, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + - col2 col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + 89 * col2 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 15 ) col2 FROM tab2 cor0
----
15
15
15
query I rowsort
SELECT 58 * + 17 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b77d26a87356329c2d2fef81b1f343f4
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 160649b428b8d254517cd2096e054d21
query I rowsort
SELECT 66 + + col0 FROM tab0
----
101
155
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT ALL - col2 DIV col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - col2 / col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 - + 12 col0 FROM tab1
----
40
40
40
query I rowsort
SELECT DISTINCT - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - col2 * - col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL 34 FROM tab2
----
34
34
34
query I rowsort
SELECT ALL ( + ( col2 ) ) FROM tab0
----
1
33
82
query I rowsort
SELECT 9 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL 9 AS col1 FROM tab1
----
9
9
9
query I rowsort
SELECT DISTINCT - col0 + + tab1.col0 AS col2 FROM tab1
----
0
query I rowsort
SELECT ALL - col0 + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab0, tab2, tab2 AS cor0
----
83
query I rowsort
SELECT - col2 + + cor0.col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + - tab2.col1 * 86 col1 FROM tab2
----
-1460
-2664
-5072
query I rowsort
SELECT - 51 + col0 AS col2 FROM tab1
----
-48
13
29
query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( col2 ) col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT DISTINCT - col0 DIV + 44 + col1 FROM tab1 AS cor0
----
12
26
9
skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - col0 / + 44 + col1 FROM tab1 AS cor0
----
12
26
9
query I rowsort
SELECT DISTINCT + col1 * - 56 - col1 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT ALL cor0.col1 * 98 AS col1 FROM tab1 cor0
----
1274
2548
980
query I rowsort
SELECT + col1 + - 22 FROM tab1 AS cor0
----
-12
-9
4
query I rowsort
SELECT DISTINCT + - col2 * 92 FROM tab2 AS cor0
----
-2392
-2484
-3496
query I rowsort
SELECT ALL + + col2 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - - col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 + col0 + + col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
1553
708
813
query I rowsort
SELECT ALL + col1 * + col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
1010
17602
2210
onlyif mysql # use DIV operator for integer division
query I rowsort label-8537
SELECT ALL - col2 + + col1 DIV + cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - col2 + + col1 / + cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - - col1 + ( + 29 ) * + col1 AS col0 FROM tab2 AS cor0
----
1770
510
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8539
SELECT DISTINCT - + cor0.col2 - + CAST( NULL AS SIGNED ) * + 86 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - + cor0.col2 - + CAST ( NULL AS INTEGER ) * + 86 AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8541
SELECT DISTINCT + col1 * CAST( col1 AS SIGNED ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + col1 * CAST ( col1 AS INTEGER ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT cor0.col2 * - 43 AS col0 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT - - col2 + - col2 * + col0 AS col1 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - cor0.col2 * 98 * col2 FROM tab0 AS cor0
----
-106722
-658952
-98
query I rowsort
SELECT ALL - cor0.col1 * - 86 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT DISTINCT ( - 69 ) * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-3672
-3876
-6528
query I rowsort
SELECT DISTINCT + 41 + col2 - - col2 FROM tab0 cor0
----
107
205
43
query I rowsort
SELECT ALL + 14 * + ( col2 ) - - col0 FROM tab1 AS cor0
----
1424
759
862
query I rowsort
SELECT ALL + col2 + ( col0 ) * - col0 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - 1 * + col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8551
SELECT ALL - ( 88 ) DIV - col1 + + col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
164
2
67
skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - ( 88 ) / - col1 + + col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
164
2
67
query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - - 99 AS col0 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + col1 * col1 + + tab1.col2 * - col0 AS col1 FROM tab1
----
-3548
-7511
514
query I rowsort
SELECT DISTINCT col1 * + 35 FROM tab2
----
1085
2065
595
query I rowsort
SELECT - 84 * col1 FROM tab1 cor0
----
-1092
-2184
-840
query I rowsort
SELECT - col1 + 27 AS col0 FROM tab2 AS cor0
----
-32
-4
10
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 45 * + col2 + col2 FROM tab1 cor0
----
2484
2622
4416
query I rowsort
SELECT DISTINCT + 66 FROM tab0 cor0
----
66
query I rowsort
SELECT + 9 + col1 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT ALL + - cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col1 + cor0.col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + + 66 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT + col2 * + col0 + - 42 FROM tab1 AS cor0
----
120
3606
7638
query I rowsort
SELECT ALL - + col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 + col2 * + 7 AS col1 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + - ( 94 ) FROM tab0 AS cor0
----
-5
-59
-70
query I rowsort
SELECT DISTINCT - 49 * col0 + + 92 FROM tab2 AS cor0
----
-251
-3730
-3779
query I rowsort
SELECT - - ( - col2 ) * + col0 - - col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - 36 AS col2 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT DISTINCT + 5 - + col1 AS col2 FROM tab1
----
-21
-5
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 + - col0 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * 84 - col1 AS col0 FROM tab2
----
-619
-6611
-6653
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8575
SELECT col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL col2 * col1 + 70 FROM tab0 AS cor0
----
167
2908
7532
query I rowsort
SELECT ALL - + col2 + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + - cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab2 cor0
----
48
query I rowsort
SELECT + cor0.col0 * - col0 + - cor0.col2 - col1 * col0 AS col1 FROM tab0 cor0
----
-16102
-2673
-4621
query I rowsort
SELECT - col1 * - col1 + ( col1 ) FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + col0 * ( - col2 ) + - col0 AS col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - col1 - - 12 * - col1 AS col1 FROM tab0 cor0
----
-1118
-1183
-1261
query I rowsort
SELECT ( 6 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL col0 * tab2.col2 * ( - col2 ) + col0 AS col1 FROM tab2
----
-113997
-5096
-52650
query I rowsort
SELECT + ( tab1.col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT + 89 FROM tab1
----
89
89
89
query I rowsort
SELECT - + ( 6 ) * + cor0.col2 FROM tab2 cor0
----
-156
-162
-228
onlyif mysql # use DIV operator for integer division
query I rowsort label-8589
SELECT + - 97 DIV - col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8589
SELECT + - 97 / - col2 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( + col0 ) * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + ( cor0.col0 ) * col1 - + ( - col2 + + col0 ) FROM tab2 AS cor0
----
1302
237
4550
query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + - cor0.col1 + col2 * + 38 AS col2 FROM tab0 AS cor0
----
-59
1168
3025
onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT 9 + + col0 + - col0 DIV ( 69 ) AS col0 FROM tab1
----
12
73
88
skipif mysql # not compatible
query I rowsort label-8594
SELECT 9 + + col0 + - col0 / ( 69 ) AS col0 FROM tab1
----
12
73
88
query I rowsort
SELECT ALL + 34 AS col2 FROM tab2
----
34
34
34
query I rowsort
SELECT ALL + ( col2 ) * tab2.col0 * ( - col1 ) + - col0 FROM tab2
----
-119730
-51113
-5866
query I rowsort
SELECT - 70 FROM tab1, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT - 65 FROM tab1
----
-65
-65
-65
query I rowsort
SELECT + col2 - - col1 * col2 * + col2 FROM tab2 AS cor0
----
22626
24586
39910
query I rowsort
SELECT + col1 - - col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - 51 + - col0 AS col1 FROM tab0 AS cor0
----
-140
-75
-86
query I rowsort
SELECT DISTINCT col1 * + col2 - - col2 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + ( - col1 ) col1 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT ALL - col2 + - col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT - col0 * + ( - 40 ) + + col0 * - col2 FROM tab0 AS cor0
----
-3738
1365
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT + - col2 + + col1 DIV col0 FROM tab0 cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-8606
SELECT + - col2 + + col1 / col0 FROM tab0 cor0
----
-30
-81
1
query I rowsort
SELECT col2 + 41 + + col0 AS col2 FROM tab1 AS cor0
----
162
217
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT col2 DIV ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8608
SELECT col2 / ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 + + 70 * 9 * + col0 FROM tab0 AS cor0
----
15087
22049
55988
query I rowsort
SELECT DISTINCT + col0 + 27 FROM tab1 AS cor0
----
107
30
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT ALL + col0 + cor0.col1 DIV + col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + col0 + cor0.col1 / + col1 FROM tab1 AS cor0
----
4
65
81
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 cor0, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT col0 + + col2 * tab1.col1 * col2 AS col1 FROM tab1
----
119888
32554
75819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8614
SELECT + - col1 + 52 + - cor0.col0 * - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8614
SELECT + - col1 + 52 + - cor0.col0 * - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT 66 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + - ( - 67 ) AS col2 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + ( 31 ) * - col0 * - ( - col1 ) FROM tab2 cor0
----
-142662
-41633
-6727
query I rowsort
SELECT ALL + 17 FROM tab1 AS cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT col0 DIV - 49 + cor0.col2 + CAST( 10 AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-486
-514
-865
skipif mysql # not compatible
query I rowsort label-8622
SELECT col0 / - 49 + cor0.col2 + CAST ( 10 AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-486
-514
-865
query I rowsort
SELECT DISTINCT - col2 * 43 * - col2 + + ( col2 + col2 ) * col2 FROM tab0 AS cor0
----
302580
45
49005
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + 37 FROM tab0 cor0
----
-37
-37
-37
query I rowsort
SELECT ALL + 42 FROM tab2 cor0
----
42
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8628
SELECT ALL CAST( 0 AS SIGNED ) + cor0.col0 * + 93 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 303bcdbd00172c7e53460b815faf52ee
skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL CAST ( 0 AS INTEGER ) + cor0.col0 * + 93 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 303bcdbd00172c7e53460b815faf52ee
query I rowsort
SELECT ALL + col1 * + ( ( tab2.col2 ) ) + 7 FROM tab2
----
1541
653
844
query I rowsort
SELECT ( 50 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT 39 * 35 FROM tab1, tab0 AS cor0
----
9 values hashing to b9361542646dd70cf65d24369955ea39
query I rowsort
SELECT + + ( - 50 ) FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT - 91 + + col1 AS col0 FROM tab2 AS cor0
----
-32
-60
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8635
SELECT ALL 78 DIV + col0 AS col1 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL 78 / + col0 AS col1 FROM tab0
----
0
2
3
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9
query I rowsort
SELECT ALL - cor0.col0 - col2 * - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT tab0.col2 + - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 26 * + col1 + 88 AS col2 FROM tab2 cor0
----
1622
530
894
query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT col2 * col2 + 54 FROM tab0
----
1143
55
6778
onlyif mysql # use DIV operator for integer division
query I rowsort label-8642
SELECT DISTINCT col1 + + 58 DIV - col2 AS col2 FROM tab1
----
13
25
9
skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT col1 + + 58 / - col2 AS col2 FROM tab1
----
13
25
9
query I rowsort
SELECT col1 - + col2 * - col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT + 58 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL col0 + 91 - - col1 AS col0 FROM tab2 AS cor0
----
129
187
228
query I rowsort
SELECT ALL - + cor0.col2 + ( 51 ) AS col2 FROM tab0 AS cor0
----
-31
18
50
query I rowsort
SELECT cor0.col2 + - 7 FROM tab1 AS cor0
----
47
50
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT col1 DIV ( 61 ) + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8648
SELECT col1 / ( 61 ) + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col0 * col1 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col0 * col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + ( col0 ) - - col1 * + col0 AS col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT - - 64 + - col2 * - 62 AS col0 FROM tab1 AS cor0
----
3412
3598
6016
onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT + + cor0.col0 + + col0 DIV 54 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-8653
SELECT + + cor0.col0 + + col0 / 54 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT ALL + 17 * col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT DISTINCT + - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8656
SELECT + ( col1 + + CAST( 60 AS SIGNED ) ) FROM tab0
----
146
151
157
skipif mysql # not compatible
query I rowsort label-8656
SELECT + ( col1 + + CAST ( 60 AS INTEGER ) ) FROM tab0
----
146
151
157
query I rowsort
SELECT cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - 45 FROM tab1 AS cor0
----
-45
query I rowsort
SELECT DISTINCT - ( col1 ) * + 35 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT - 34 + col2 FROM tab1 AS cor0
----
20
23
62
query I rowsort
SELECT ALL + col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + 87 FROM tab1 AS cor0
----
100
113
97
query I rowsort
SELECT ALL - col1 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + cor0.col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab0 AS cor0
----
65
query I rowsort
SELECT DISTINCT col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + + 73 * - col1 AS col0 FROM tab2 cor0
----
-1241
-2263
-4307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL 62 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT + 63 + col0 * - col0 FROM tab1 AS cor0
----
-4033
-6337
54
query I rowsort
SELECT ALL + + col0 + 82 FROM tab1 AS cor0
----
146
162
85
query I rowsort
SELECT DISTINCT 75 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
75
query I rowsort
SELECT DISTINCT + + col2 * + 51 AS col1 FROM tab1 AS cor0
----
2754
2907
4896
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col2 + ( cor0.col0 ) * + col2 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col1 col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL 70 * + col1 FROM tab2
----
1190
2170
4130
query I rowsort
SELECT 50 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL + + col2 * 74 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + col2 + col0 col1 FROM tab0 cor0
----
2303
62
915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab0, tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - ( col2 ) * col0 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - col1 + - 42 * + col2 FROM tab1 cor0
----
-2294
-2404
-4045
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL + 91 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL col0 - - 62 FROM tab0
----
151
86
97
query I rowsort
SELECT DISTINCT + col1 * col1 - 93 FROM tab1
----
583
7
76
query I rowsort
SELECT ALL + 93 + col1 AS col0 FROM tab2 AS cor0
----
110
124
152
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT ALL col0 DIV + ( - col2 * + col0 ) AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL col0 / + ( - col2 * + col0 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 + col0 * col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-8695
SELECT ALL 6 + + col1 * col0 DIV + ( col0 ) FROM tab2
----
23
37
65
skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL 6 + + col1 * col0 / + ( col0 ) FROM tab2
----
23
37
65
query I rowsort
SELECT ALL + 8 * - col2 + col2 * + col2 + col1 * col1 FROM tab1
----
2893
3160
8617
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT col0 + col1 DIV + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-8697
SELECT col0 + col1 / + col0 FROM tab0
----
27
37
90
query I rowsort
SELECT - 45 * col1 + col2 * col1 FROM tab2
----
-1121
-119
-558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * 47 + col0 col1 FROM tab2
----
-1144
-1262
-1707
query I rowsort
SELECT - + col0 - + col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 62 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
-62
query I rowsort
SELECT 69 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 61be8b4ccea4cb1cc4add000bd70def7
query I rowsort
SELECT DISTINCT + col0 * + col0 * - col1 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2
----
-8
query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * + cor0.col2 col1 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT + col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 51 * + col0 + col0 col1 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-27
query I rowsort
SELECT 41 + - cor0.col0 AS col1 FROM tab0 cor0
----
-48
17
6
query I rowsort
SELECT - 5 * col1 + + cor0.col0 + ( + col2 + + 3 ) * col0 AS col1 FROM tab2 AS cor0
----
2045
3233
62
query I rowsort
SELECT DISTINCT 66 * + cor0.col2 * col0 AS col0 FROM tab2 cor0
----
12474
133848
198132
query I rowsort
SELECT + - 84 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to aaabc1266a1bb4f477091ffbc243c849
query I rowsort
SELECT ALL + 95 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - col2 + col1 * - 22 FROM tab2
----
-1324
-412
-709
query I rowsort
SELECT DISTINCT col2 * - col1 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8720
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT 96 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 46 - col1 AS col0 FROM tab1 AS cor0
----
-56
-59
-72
query I rowsort
SELECT ALL - 58 * - col1 FROM tab1 AS cor0
----
1508
580
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT ALL - col1 DIV 78 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - col1 / 78 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + - col0 * + col0 FROM tab2 cor0
----
-1010
-6530
-9565
query I rowsort
SELECT - cor0.col2 * col1 * - col0 - - col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + cor0.col1 + - 77 * col0 * + cor0.col1 FROM tab2 AS cor0
----
-103394
-16678
-354295
query I rowsort
SELECT - col1 * 52 + col0 FROM tab1 AS cor0
----
-1349
-456
-596
query I rowsort
SELECT ALL 35 * col1 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 45 * - col2 FROM tab2 AS cor0
----
1229
1246
1727
query I rowsort
SELECT - - ( 52 ) FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT - col1 + cor0.col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ( col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - 63 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT DISTINCT + + col2 * - 0 + col0 * ( col0 * - col2 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT + CAST( NULL AS SIGNED ) + - 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8739
SELECT + CAST ( NULL AS INTEGER ) + - 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 38 FROM tab2
----
38
38
38
query I rowsort
SELECT DISTINCT + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 56 * col1 AS col2 FROM tab2 cor0
----
-1736
-3304
-952
query I rowsort
SELECT - + col1 + cor0.col2 * - 7 AS col0 FROM tab1 AS cor0
----
-404
-409
-685
query I rowsort
SELECT + cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT col1 - - col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 96 * col2 AS col2 FROM tab2
----
2496
2592
3648
query I rowsort
SELECT col2 * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8752
SELECT - + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8752
SELECT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 7 AS col2 FROM tab1 AS cor0
----
-19
-3
-6
query I rowsort
SELECT ALL 29 AS col1 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - - 56 * + col1 AS col1 FROM tab0 cor0
----
4816
5096
5432
query I rowsort
SELECT - col2 * ( - col1 * + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL ( + col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - + 83 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-581
-6474
-6557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8761
SELECT + + CAST( col0 AS SIGNED ) + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-8761
SELECT + + CAST ( col0 AS INTEGER ) + + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * col1 col0 FROM tab1
----
-13520
-2028
-6400
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
query I rowsort
SELECT ( col1 ) * + col2 - 42 AS col2 FROM tab0 AS cor0
----
2796
55
7420
query I rowsort
SELECT + + col0 + 0 AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + + 7 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT + col1 * 70 AS col2 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8769
SELECT - CAST( + 57 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-111
-114
-153
skipif mysql # not compatible
query I rowsort label-8769
SELECT - CAST ( + 57 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-111
-114
-153
query I rowsort
SELECT - - col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8771
SELECT - cor0.col2 + + col0 DIV + 92 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8771
SELECT - cor0.col2 + + col0 / + 92 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 79 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - cor0.col0 * + col2 * cor0.col1 + - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-117624
-48032
-5670
query I rowsort
SELECT 87 + cor0.col0 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT - 34 + col0 FROM tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT DISTINCT + + 16 FROM tab2 AS cor0
----
16
query I rowsort
SELECT ALL + + col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8779
SELECT + CAST( + col1 + - col1 AS SIGNED ) * + col2 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8779
SELECT + CAST ( + col1 + - col1 AS INTEGER ) * + col2 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8780
SELECT DISTINCT - CAST( + 44 AS SIGNED ) AS col1 FROM tab1
----
-44
skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - CAST ( + 44 AS INTEGER ) AS col1 FROM tab1
----
-44
query I rowsort
SELECT ( - tab0.col1 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + 70 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
32
43
44
query I rowsort
SELECT ALL - + 56 FROM tab1 AS cor0
----
-56
-56
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8784
SELECT + - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8784
SELECT + - col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - cor0.col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - 25 * cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-102400
-160000
-225
query I rowsort
SELECT ALL col1 + - col2 FROM tab0 AS cor0
----
53
9
96
query III rowsort
SELECT * FROM tab0 WHERE ( NULL < NULL ) AND ( NULL ) NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL col1 + + col1 + - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT tab0.col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * col0 + - col1 AS col0 FROM tab1
----
136
3638
7667
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - ( + col2 ) AS REAL ) * + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col0 FROM tab0 AS cor0
----
33
33
33
query I rowsort
SELECT - 68 * 55 + - col0 - - col0 FROM tab0 cor0
----
-3740
-3740
-3740
query I rowsort
SELECT col0 * ( + 50 ) AS col2 FROM tab2
----
350
3900
3950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT + col1 + - 47 * col1 * + col1 AS col0 FROM tab0 AS cor0
----
-347526
-389116
-442126
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + 44 * col0 FROM tab1
----
132
2816
3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-8802
SELECT ALL col2 DIV - 38 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL col2 / - 38 FROM tab2
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8803
SELECT ALL CAST( - col1 * - col2 AS SIGNED ) + col1 - col0 * col0 AS col0 FROM tab0
----
-1031
-368
2348
skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL CAST ( - col1 * - col2 AS INTEGER ) + col1 - col0 * col0 AS col0 FROM tab0
----
-1031
-368
2348
query I rowsort
SELECT + tab0.col2 * col2 * col0 + - tab0.col1 + col2 AS col2 FROM tab0
----
-61
26083
598427
query I rowsort
SELECT 74 AS col1 FROM tab0
----
74
74
74
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * 28 * col0 FROM tab0
----
226772
57792
95060
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8808
SELECT - CAST( NULL AS DECIMAL ) + - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8808
SELECT - CAST ( NULL AS REAL ) + - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * - tab1.col2 col2 FROM tab1, tab0 cor0
----
9 values hashing to d8c99a443a7a69c6e473b99b9c8b2c2f
query I rowsort
SELECT ALL - col0 + - 18 - col0 * col2 FROM tab0
----
-7405
-834
-88
query I rowsort
SELECT ALL - col1 + + 44 AS col2 FROM tab0
----
-42
-47
-53
query I rowsort
SELECT DISTINCT + tab0.col2 + - col2 FROM tab0
----
0
query I rowsort
SELECT ALL + col1 * + 72 AS col0 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col0 * ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - col0 * - ( ( col1 ) ) + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col1 + + ( col0 + col1 * col2 ) AS col0 FROM tab0
----
229
2948
7642
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT col1 * - ( col1 ) - col1 DIV - 59 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-8818
SELECT col1 * - ( col1 ) - col1 / - 59 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8820
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8820
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 54 + col0 FROM tab2 cor0
----
-47
24
25
query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - 59 - 69 FROM tab2 AS cor0
----
-128
-128
-128
query I rowsort
SELECT ALL - 57 + + col0 FROM tab1 AS cor0
----
-54
23
7
query I rowsort
SELECT - - cor0.col2 * - 95 FROM tab2, tab0 cor0
----
9 values hashing to 361100f8b1288ee4f1c44fccc17a20a1
query I rowsort
SELECT DISTINCT 32 * - col1 + col0 AS col2 FROM tab2 AS cor0
----
-1810
-465
-985
query I rowsort
SELECT ALL + col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - - col2 * 31 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - col2 - - tab1.col0 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col2 * - col0 + 66 AS col0 FROM tab0
----
-7232
-726
31
query I rowsort
SELECT DISTINCT + col0 + 82 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-567
-6318
-6399
query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + 30 AS col1 FROM tab2 AS cor0
----
-48
-49
23
query I rowsort
SELECT DISTINCT ( col0 ) + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT ALL - CAST( + col1 AS SIGNED ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - CAST ( + col1 AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab2 cor0
----
50
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 3a186ad492d315801f56fb30a5e89dbb
query I rowsort
SELECT + col1 * + col1 * - col1 AS col0 FROM tab0 cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL - col0 + col2 * col1 + col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * 6 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT + col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + + cor0.col1 col1 FROM tab2 cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + + col0 - - 29 col2 FROM tab0 AS cor0
----
139
161
209
query I rowsort
SELECT col2 + col2 + + tab1.col1 AS col2 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL + tab1.col2 + + tab1.col0 * col0 - - col2 AS col2 FROM tab1
----
117
4210
6592
query I rowsort
SELECT DISTINCT + 72 + col1 - + col2 FROM tab0
----
125
168
81
query I rowsort
SELECT ALL col1 - tab1.col0 * ( col0 ) * col2 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT ALL 4 + + ( tab0.col0 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 157aa4306ce4661ee1f3b57c6ca5469a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8856
SELECT ALL col1 DIV tab1.col0 + col2 * col1 * col1 - - 8 FROM tab1
----
16232
36520
5708
skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL col1 / tab1.col0 + col2 * col1 * col1 - - 8 FROM tab1
----
16232
36520
5708
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + ( col1 * - col0 ) col2 FROM tab1
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col1 * - cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT + col1 * + 1 * - ( + col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL col2 + - 72 FROM tab0
----
-39
-71
10
query I rowsort
SELECT DISTINCT + col2 * - 64 + tab1.col1 + col1 FROM tab1
----
-3404
-3628
-6118
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0 WHERE NULL <= ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8866
SELECT col0 * - col1 * - col2 + - col0 + - CAST( NULL AS SIGNED ) * - tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8866
SELECT col0 * - col1 * - col2 + - col0 + - CAST ( NULL AS INTEGER ) * - tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 * col1 + - 89 * cor0.col1 FROM tab0 AS cor0
----
628402
745472
904040
query I rowsort
SELECT + col0 * ( col2 + - col2 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab1.col2 * + ( + col2 ) AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col1 + + 83 AS col1 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT col0 + - 19 FROM tab0
----
16
5
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8872
SELECT DISTINCT + col2 * + ( + 50 ) + tab0.col1 DIV col0 + 33 FROM tab0
----
1686
4134
85
skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT + col2 * + ( + 50 ) + tab0.col1 / col0 + 33 FROM tab0
----
1686
4134
85
query I rowsort
SELECT DISTINCT + col2 + - ( - tab1.col0 ) AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab0, tab2 AS cor0
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * col1 - + col1 col2 FROM tab2
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 21 col1 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT + tab2.col1 * col0 + col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT DISTINCT 69 FROM tab0, tab2, tab1 AS cor0
----
69
query I rowsort
SELECT 48 AS col0 FROM tab1
----
48
48
48
query I rowsort
SELECT tab0.col0 + col2 * + col2 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT - col2 + - col2 DIV col0 FROM tab2
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-8882
SELECT - col2 + - col2 / col0 FROM tab2
----
-26
-30
-38
query I rowsort
SELECT - col0 * + 63 + col1 FROM tab1
----
-163
-4022
-5027
query I rowsort
SELECT ALL + ( + col1 ) * col2 + - 42 FROM tab0 AS cor0
----
2796
55
7420
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 + ( col0 ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8886
SELECT DISTINCT + col2 + - col1 * - CAST( NULL AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT + col2 + - col1 * - CAST ( NULL AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - 41 FROM tab0 cor0
----
41
41
41
query I rowsort
SELECT ALL + 7 + col0 AS col1 FROM tab1 AS cor0
----
10
71
87
query I rowsort
SELECT DISTINCT + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - 15 * - col2 + col0 + - col2 * - col0 FROM tab1 AS cor0
----
4567
9200
975
query I rowsort
SELECT DISTINCT cor0.col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - 71 * + cor0.col0 + + 71 FROM tab0 AS cor0
----
-1633
-2414
-6248
query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT ALL + ( + col0 ) + - 33 DIV + col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + ( + col0 ) + - 33 / + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 * + col1 + ( col2 ) AS col0 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT - col2 * col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT 62 + + col1 + + 94 AS col1 FROM tab2 AS cor0
----
173
187
215
query I rowsort
SELECT col1 + col2 * col1 AS col2 FROM tab1 cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col0 FROM tab0
----
72
72
72
query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT + cor0.col0 * 69 FROM tab0, tab0 cor0
----
9 values hashing to 6a7ef85e0fb1b9085f842cc4128478e0
query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT - 22 * - col1 AS col0 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT ALL + tab2.col0 + + col1 * + col1 + tab2.col2 AS col0 FROM tab2
----
3585
406
995
query I rowsort
SELECT ALL + col1 * - col2 + col0 AS col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col1 * + 14 FROM tab2 AS cor0
----
238
434
826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col0 FROM tab0, tab1 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT + col2 DIV + 23 AS col1 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-8909
SELECT + col2 / + 23 AS col1 FROM tab0
----
0
1
3
query I rowsort
SELECT + 60 * col0 FROM tab2
----
420
4680
4740
query I rowsort
SELECT + col1 * - col1 - col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - 54 AS col1 FROM tab2 cor0
----
-54
-54
-54
query I rowsort
SELECT + - col0 + - 80 * + col1 FROM tab0 AS cor0
----
-6904
-7369
-7795
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT - CAST( - col2 AS SIGNED ) - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8915
SELECT - CAST ( - col2 AS INTEGER ) - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 - + 25 * - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
16071
20918
38272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8917
SELECT - 44 * ( + col1 ) + + CAST( + col1 * col2 AS SIGNED ) + 97 * + col2 FROM tab1 AS cor0
----
5498
5659
9988
skipif mysql # not compatible
query I rowsort label-8917
SELECT - 44 * ( + col1 ) + + CAST ( + col1 * col2 AS INTEGER ) + 97 * + col2 FROM tab1 AS cor0
----
5498
5659
9988
onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT 19 + - col0 + - col2 DIV ( + col2 ) FROM tab0 AS cor0
----
-17
-6
-71
skipif mysql # not compatible
query I rowsort label-8918
SELECT 19 + - col0 + - col2 / ( + col2 ) FROM tab0 AS cor0
----
-17
-6
-71
query I rowsort
SELECT + 58 FROM tab1 AS cor0
----
58
58
58
query I rowsort
SELECT - col0 - col2 * col1 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - tab0.col2 * - 90 - col0 AS col1 FROM tab0
----
2946
55
7291
query I rowsort
SELECT DISTINCT col0 * + col0 - col0 * + col1 FROM tab1
----
-69
3456
5360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + + col1 col1 FROM tab0
----
138
143
149
query I rowsort
SELECT - + ( - col0 ) * + col2 + cor0.col2 * col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT - - 62 * col1 * cor0.col0 + ( 76 + + cor0.col2 ) FROM tab0 AS cor0
----
128077
210567
502296
query I rowsort
SELECT ALL + col2 - - ( col2 ) AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - - 31 FROM tab0 AS cor0
----
31
query I rowsort
SELECT ALL cor0.col1 * col0 + 74 * + cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
14085
3468
4473
query I rowsort
SELECT DISTINCT - - 52 + col1 * - col0 * 70 FROM tab2 AS cor0
----
-15138
-322088
-93958
query I rowsort
SELECT ALL col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL cor0.col0 * col0 + col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT + col0 + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 + cor0.col2 * ( - ( - col2 ) ) AS col0 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + col1 * col2 * 92 + 9 AS col2 FROM tab2 AS cor0
----
141137
59441
77013
query I rowsort
SELECT ALL + col0 - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ( + col1 + + col2 ) * 50 FROM tab0
----
4900
5950
8650
query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab0
----
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT DISTINCT - 83 DIV col0 + - col1 + + col0 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1365
-158244
-237176
skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT - 83 / col0 + - col1 + + col0 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1365
-158244
-237176
onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT - col2 + col1 DIV ( col1 + + cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8939
SELECT - col2 + col1 / ( col1 + + cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + + 72 + cor0.col1 * col1 FROM tab1 AS cor0
----
172
241
748
query I rowsort
SELECT + col2 * + 55 FROM tab2 AS cor0
----
1430
1485
2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-8943
SELECT DISTINCT col2 * ( col1 ) DIV col1 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT col2 * ( col1 ) / col1 AS col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 * col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
233462
460
614387
query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT - cor0.col0 DIV - ( col1 ) FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8946
SELECT - cor0.col0 / - ( col1 ) FROM tab2 cor0
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8947
SELECT DISTINCT + col2 + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT + col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + cor0.col2 * - 49 * col2 FROM tab1 AS cor0
----
-142884
-159201
-451584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8949
SELECT ALL - col0 DIV + 45 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL - col0 / + 45 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT cor0.col1 * - 52 AS col0 FROM tab2 cor0
----
-1612
-3068
-884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 53 ) col0 FROM tab2 AS cor0
----
53
query I rowsort
SELECT ALL col0 * col2 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL + col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL - 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * + col1 col1 FROM tab2 AS cor0
----
1736
3304
952
query I rowsort
SELECT + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 67 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT - col1 + col1 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1010
-17602
-2210
query I rowsort
SELECT DISTINCT col2 - col1 * + tab2.col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT col1 DIV + CAST( + col0 * - col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8960
SELECT col1 / + CAST ( + col0 * - col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 * 60 + col0 * col2 FROM tab1 AS cor0
----
13440
3402
7068
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - col1 + col0 * ( cor0.col2 ) FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col1 + 45 AS col0 FROM tab2 AS cor0
----
104
62
76
query I rowsort
SELECT - + col0 * + ( - 70 ) + cor0.col1 FROM tab1 AS cor0
----
236
4490
5613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab0
----
24
35
89
query I rowsort
SELECT 41 * - tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 5798c641aee4e31e8713cfd0094972e0
query I rowsort
SELECT ALL 13 FROM tab0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT 34 DIV col0 + - col0 FROM tab2
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-8969
SELECT 34 / col0 + - col0 FROM tab2
----
-3
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT DISTINCT - tab2.col2 DIV col1 AS col2 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT - tab2.col2 / col1 AS col2 FROM tab2
----
-2
0
query I rowsort
SELECT - col2 * - ( + col2 ) * - col1 + col2 FROM tab2
----
-22572
-24510
-39858
query I rowsort
SELECT DISTINCT 20 FROM tab1, tab0 AS cor0
----
20
query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab2, tab0 AS cor0
----
4
query I rowsort
SELECT ALL + - col0 * - ( col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col1 + - ( col2 * + col2 ) AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL + + col1 + + col1 * 56 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT - + col1 - + col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + + col1 - - ( - 76 ) FROM tab1 AS cor0
----
-50
-63
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8979
SELECT + col1 DIV - 63 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8979
SELECT + col1 / - 63 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 + - ( - col2 ) * + col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL 8 AS col0 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01
query I rowsort
SELECT - ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col0 * + col2 + col2 * col1 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT DISTINCT + 58 * + col1 + col0 FROM tab1 AS cor0
----
1511
644
834
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8985
SELECT DISTINCT CAST( col0 AS SIGNED ) - col2 col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT CAST ( col0 AS INTEGER ) - col2 col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + 93 AS col1 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT ALL + ( 84 ) - col1 FROM tab0 AS cor0
----
-13
-2
-7
query I rowsort
SELECT ALL - 62 AS col2 FROM tab0 cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - col0 + - 21 FROM tab0 AS cor0
----
-110
-45
-56
query I rowsort
SELECT DISTINCT + 98 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
98
query I rowsort
SELECT + col2 + col1 * 41 AS col1 FROM tab0 AS cor0
----
3559
3813
3978
query I rowsort
SELECT ALL + col1 + col1 * - ( 48 * + col0 ) FROM tab0 AS cor0
----
-162863
-388661
-98986
query I rowsort
SELECT - 98 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-86
query I rowsort
SELECT ALL + 68 AS col1 FROM tab0 AS cor0
----
68
68
68
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT DISTINCT + + 84 AS col2 FROM tab0 cor0
----
84
query I rowsort
SELECT + + col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - col2 - + col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - - 52 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT - 42 AS col1 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + col1 + col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9004
SELECT ALL - ( - col1 ) * col0 DIV + col0 + col0 * col1 - col0 col0 FROM tab0 AS cor0
----
2126
3457
8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - ( - col1 ) * col0 / + col0 + col0 * col1 - col0 col0 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + 26 * col1 FROM tab0 cor0
----
2236
2366
2522
query I rowsort
SELECT - - 78 * - col0 AS col0 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT ALL - 31 - col0 FROM tab0 AS cor0
----
-120
-55
-66
query I rowsort
SELECT DISTINCT + cor0.col1 + cor1.col2 * 85 FROM tab1, tab2 cor0, tab1 AS cor1
----
9 values hashing to 8d79ecdb18800cce74254d22aae33576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 cor0
----
1
33
82
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - ( cor0.col2 ) + 88 * 13 col2 FROM tab2 AS cor0
----
-300
415
468
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc
query I rowsort
SELECT + col0 + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9016
SELECT - 56 DIV - 29 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9016
SELECT - 56 / - 29 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + - 59 + col1 * - col1 FROM tab1 AS cor0
----
-159
-228
-735
query I rowsort
SELECT - 43 * - ( - col1 * col0 + - 5 ) FROM tab2 AS cor0
----
-198101
-57964
-9546
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 + - col1 AS REAL ) FROM tab2
----
-24
19
62
query I rowsort
SELECT + ( 0 * col1 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1
----
-29
query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - + cor0.col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - ( - cor0.col2 ) * + 2 AS col1 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - col1 col1 FROM tab1 cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL + col0 - + ( col1 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT + col2 + + ( - col1 ) * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - - col2 AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col2 * - ( - col0 ) + - col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9030
SELECT + + col2 DIV 1 - ( + col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-9030
SELECT + + col2 / 1 - ( + col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT col2 * 59 FROM tab0
----
1947
4838
59
query I rowsort
SELECT + ( ( + cor0.col0 ) ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - cor0.col2 * col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9034
SELECT - col1 * CAST( - col0 AS SIGNED ) FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9034
SELECT - col1 * CAST ( - col0 AS INTEGER ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT - ( col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 * - 99 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-2583
-5086
-7687
onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT DISTINCT + 36 * col2 DIV + col1 FROM tab1 cor0
----
205
265
74
skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + 36 * col2 / + col1 FROM tab1 cor0
----
205
265
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9038
SELECT CAST( col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-9038
SELECT CAST ( col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9039
SELECT + CAST( NULL AS SIGNED ) / 9 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9039
SELECT + CAST ( NULL AS INTEGER ) / 9 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 80 FROM tab1, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT + col1 DIV col1 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9041
SELECT + col1 / col1 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 72 * - col0 AS col1 FROM tab0 AS cor0
----
-1728
-2520
-6408
query I rowsort
SELECT 89 FROM tab2
----
89
89
89
query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab0, tab1 AS cor0
----
94
query I rowsort
SELECT ALL + ( + col1 + - col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col2 * + col1 * + ( - col0 ) FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + tab0.col1 * col0 + + ( 26 ) * + col1 FROM tab0
----
10465
4300
5917
query I rowsort
SELECT + + 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT + - ( - col2 ) DIV + ( col1 ) FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9050
SELECT + - ( - col2 ) / + ( col1 ) FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + - 29 FROM tab0 AS cor0
----
-29
-29
-29
query I rowsort
SELECT ALL - + col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL cor0.col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col1 * - ( 95 ) + - cor0.col2 FROM tab0 AS cor0
----
8137
8563
9214
query I rowsort
SELECT col1 * + col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + col0 + + ( 80 ) FROM tab0 cor0
----
104
115
169
query I rowsort
SELECT ( - col2 ) * - col1 - col0 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - col2 - - col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT - - 30 * col2 AS col1 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT col0 - - tab1.col2 * col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col2 - - col0 * col1 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT 2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * col1 - + col0 col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-9066
SELECT + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9066
SELECT + col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col2 * - col1 * col1 - + tab0.col2 AS col0 FROM tab0
----
-244101
-679124
-9410
query I rowsort
SELECT DISTINCT + + col2 + col0 + + col1 AS col1 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT ALL cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT ALL col0 DIV cor0.col1 + - 40 AS col0 FROM tab2 AS cor0
----
-36
-39
-40
skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL col0 / cor0.col1 + - 40 AS col0 FROM tab2 AS cor0
----
-36
-39
-40
query I rowsort
SELECT - - col2 + 54 AS col2 FROM tab2 cor0
----
80
81
92
query I rowsort
SELECT ALL + + col1 * + ( + col0 ) + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9075
SELECT ALL col0 * - 24 + col2 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL col0 * - 24 + col2 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 96 * + col1 AS col0 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT - col0 * ( + col1 ) + + col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - ( 30 ) FROM tab1 AS cor0
----
-30
-30
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-9082
SELECT + col0 + col1 DIV col2 col2 FROM tab0 AS cor0
----
132
26
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9082
SELECT + col0 + col1 / col2 col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT + 66 * col2 * cor0.col1 FROM tab1 AS cor0
----
37620
82368
92664
query I rowsort
SELECT ALL 13 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT - cor0.col1 * + 27 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 33ca158e4b50316b3787dced60f0f273
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT ALL - + 82 * - col2 - + 21 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
2132
2211
3116
skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - + 82 * - col2 - + 21 / cor0.col0 AS col2 FROM tab2 AS cor0
----
2132
2211
3116
query I rowsort
SELECT + 94 AS col1 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 59 FROM tab1 cor0
----
59
query I rowsort
SELECT col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 88 FROM tab1 AS cor0
----
88
query I rowsort
SELECT DISTINCT 20 + + col0 FROM tab0 cor0
----
109
44
55
query I rowsort
SELECT ALL + - col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL 71 * 33 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
2397
2400
2439
query I rowsort
SELECT col2 * + col1 - + col1 FROM tab1
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 32 AS col1 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab2
----
14
query I rowsort
SELECT ALL + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 75 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1173
-1329
-495
query I rowsort
SELECT ALL + col0 + - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ( - ( col2 ) ) + + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT col0 * - col2 + col2 - col0 * - col0 * - col2 AS col0 FROM tab0 cor0
----
-1259
-19767
-656738
query I rowsort
SELECT - 42 + + col1 AS col2 FROM tab2
----
-11
-25
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT + - col0 * col1 + + cor0.col1 DIV col0 col0 FROM tab1 AS cor0
----
-1040
-640
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9108
SELECT + - col0 * col1 + + cor0.col1 / col0 col0 FROM tab1 AS cor0
----
-1040
-640
-70
query I rowsort
SELECT DISTINCT col2 - + 18 AS col2 FROM tab0 cor0
----
-17
15
64
query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * - col2 + col1 * - tab1.col0 FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT + col2 + + 11 * - 82 FROM tab0
----
-820
-869
-901
query I rowsort
SELECT - 58 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT + - col0 + - CAST( 56 AS SIGNED ) + col2 DIV col0 FROM tab0 AS cor0
----
-145
-79
-91
skipif mysql # not compatible
query I rowsort label-9115
SELECT + - col0 + - CAST ( 56 AS INTEGER ) + col2 / col0 FROM tab0 AS cor0
----
-145
-79
-91
query I rowsort
SELECT - cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 + 15 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT ALL + col0 + cor0.col0 + col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT + col2 + - 41 FROM tab0 AS cor0
----
-40
-8
41
query I rowsort
SELECT 55 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT ALL + col0 + - CAST( + col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + col0 + - CAST ( + col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 75 col0 FROM tab1 cor0
----
-18
-21
21
query I rowsort
SELECT ALL - col1 + cor0.col0 * cor0.col2 - - col0 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT - col1 * col1 + 37 AS col0 FROM tab2 cor0
----
-252
-3444
-924
onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT - col2 DIV - 94 + - 51 FROM tab0 AS cor0
----
-51
-51
-51
skipif mysql # not compatible
query I rowsort label-9127
SELECT - col2 / - 94 + - 51 FROM tab0 AS cor0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT - cor0.col1 * + 93 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
-137
-2154
-4811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 73 col0 FROM tab2 cor0
----
-66
5
6
query I rowsort
SELECT ALL col2 - - col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT tab2.col0 * - ( col1 ) AS col1 FROM tab2
----
-1343
-217
-4602
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9
query I rowsort
SELECT ALL + 14 * + col1 + - col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT + col2 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col2 * + col0 * col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - 35 * - col0 + - col0 AS col0 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT ALL col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 80 * - col2 * - 7 FROM tab2
----
14560
15120
21280
query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 * col2 + col2 * col1 * col1 AS col2 FROM tab0
----
244774
686249
9347
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT DISTINCT - 55 FROM tab1 AS cor0
----
-55
query I rowsort
SELECT - - col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT cor0.col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + 24 + col1 FROM tab0 AS cor0
----
110
115
121
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9149
SELECT ALL + col2 + + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + col2 + + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 89 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
89
query I rowsort
SELECT + + col2 - - col0 AS col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col1 * - ( - col0 ) col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9153
SELECT col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9153
SELECT col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * + tab0.col1 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931
query I rowsort
SELECT + - 88 * 40 FROM tab0 AS cor0
----
-3520
-3520
-3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT ALL ( - tab2.col0 ) DIV + 84 - + tab2.col1 DIV - tab2.col1 col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL ( - tab2.col0 ) / + 84 - + tab2.col1 / - tab2.col1 col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL + - col0 + col1 * + ( col0 * col1 ) FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT DISTINCT 58 FROM tab0
----
58
query I rowsort
SELECT - - ( col0 ) * 29 + col2 AS col1 FROM tab1 AS cor0
----
141
1913
2416
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT DISTINCT col0 DIV col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT col0 / col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL + col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col1 * + col1 + - 65 FROM tab1 AS cor0
----
-165
-234
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-9164
SELECT + ( + col0 ) * col2 DIV col1 + col2 FROM tab2 AS cor0
----
214
33
60
skipif mysql # not compatible
query I rowsort label-9164
SELECT + ( + col0 ) * col2 / col1 + col2 FROM tab2 AS cor0
----
214
33
60
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9166
SELECT ALL col0 * - CAST( col1 + + col0 AS SIGNED ) * 69 FROM tab0
----
-1105380
-182160
-318780
skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL col0 * - CAST ( col1 + + col0 AS INTEGER ) * 69 FROM tab0
----
-1105380
-182160
-318780
query I rowsort
SELECT 36 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9168
SELECT ALL - col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 61 FROM tab2, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + + col2 * 67 * - col0 + col1 FROM tab0 AS cor0
----
-2248
-488875
-52978
query I rowsort
SELECT - 44 AS col2 FROM tab1 AS cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT ALL + ( col2 ) DIV - col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + ( col2 ) / - col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT + 80 * col0 AS col0 FROM tab0 cor0
----
1920
2800
7120
query I rowsort
SELECT ALL - ( col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ( 70 ) * - col1 FROM tab0 AS cor0
----
-6020
-6370
-6790
query I rowsort
SELECT DISTINCT cor0.col2 * 36 + col2 + - 11 * col1 AS col0 FROM tab2 AS cor0
----
1219
313
658
query I rowsort
SELECT + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 * + 16 AS col1 FROM tab0 AS cor0
----
1424
384
560
query I rowsort
SELECT - + col1 * - 58 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT ALL + col0 * - ( 93 ) AS col1 FROM tab0
----
-2232
-3255
-8277
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 58 AS REAL ) AS col2 FROM tab2, tab2 AS cor0
----
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9182
SELECT - tab1.col1 DIV 16 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-9182
SELECT - tab1.col1 / 16 FROM tab1, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col0 * 59 AS col1 FROM tab2 cor0
----
413
4602
4661
query I rowsort
SELECT - 46 * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT 69 * 47 AS col1 FROM tab2 AS cor0
----
3243
3243
3243
query I rowsort
SELECT + col0 * col1 + col0 * - col2 + + col2 FROM tab0 AS cor0
----
1305
3361
883
query I rowsort
SELECT DISTINCT - - col0 + 67 AS col0 FROM tab1 AS cor0
----
131
147
70
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT col1 * 35 + col0 * + col2 * col2 FROM tab1 AS cor0
----
208286
737735
9658
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab0, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb
query I rowsort
SELECT 99 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL + 15 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL 69 * col1 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab1
----
51
query I rowsort
SELECT DISTINCT + 30 * - col0 AS col1 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT - 62 FROM tab0, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT ( + 23 ) AS col0 FROM tab2
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9200
SELECT ALL CAST( + ( - col2 ) AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL CAST ( + ( - col2 ) AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 42 * col1 * + tab1.col2 AS col2 FROM tab1
----
23940
52416
58968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9202
SELECT - CAST( 74 AS SIGNED ) FROM tab2
----
-74
-74
-74
skipif mysql # not compatible
query I rowsort label-9202
SELECT - CAST ( 74 AS INTEGER ) FROM tab2
----
-74
-74
-74
query I rowsort
SELECT DISTINCT col2 * - col0 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + ( + col1 ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 * col0 * col0 + cor0.col1 * col0 FROM tab0 AS cor0
----
21072
4620
657621
query I rowsort
SELECT - 68 FROM tab1
----
-68
-68
-68
query I rowsort
SELECT DISTINCT + col1 + ( cor0.col1 ) AS col0 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT - col1 * - 90 + col1 AS col0 FROM tab2 AS cor0
----
1547
2821
5369
onlyif mysql # use DIV operator for integer division
query I rowsort label-9209
SELECT ALL - col0 + + col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - col0 + + col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT + col2 DIV + col2 + + col0 * col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9211
SELECT + col2 / + col2 + + col0 * col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT col1 + - ( + col2 * - col2 ) AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + - col2 * + 29 AS col1 FROM tab0 AS cor0
----
-2378
-29
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT col1 DIV col0 - col2 * + col0 * col0 AS col0 FROM tab1
----
-233472
-478
-614400
skipif mysql # not compatible
query I rowsort label-9215
SELECT col1 / col0 - col2 * + col0 * col0 AS col0 FROM tab1
----
-233472
-478
-614400
query I rowsort
SELECT ALL - 81 - + col2 * + col1 FROM tab1
----
-1329
-1485
-651
query I rowsort
SELECT 27 * + col0 * + ( col1 ) FROM tab2
----
124254
36261
5859
query I rowsort
SELECT ALL - 53 + tab1.col2 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to e66007955de53209bb822ca2a8d7ab74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT - col2 DIV col1 AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9219
SELECT - col2 / col1 AS col2 FROM tab2
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9220
SELECT ALL col0 + + 65 DIV + 22 FROM tab1
----
5
66
82
skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL col0 + + 65 / + 22 FROM tab1
----
5
66
82
query I rowsort
SELECT col1 * col2 + col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT + - col0 DIV - 78 + col1 AS col1 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-9222
SELECT + - col0 / - 78 + col1 AS col1 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT - col1 + + 79 AS col1 FROM tab2 AS cor0
----
20
48
62
query I rowsort
SELECT + col2 + ( col2 * col0 ) FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - col2 ) + col1 col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT col1 + + 72 * - col2 * col0 + cor0.col1 * col1 FROM tab2 AS cor0
----
-12616
-142476
-215838
query I rowsort
SELECT - - col1 * col2 * cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9228
SELECT + 71 * col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9228
SELECT + 71 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 46 * + col0 FROM tab0
----
1104
1610
4094
query I rowsort
SELECT - col1 * col1 + - col0 * 76 * col2 FROM tab2
----
-15325
-157609
-228441
query I rowsort
SELECT - 18 AS col0 FROM tab0
----
-18
-18
-18
query I rowsort
SELECT ALL 54 * - col1 FROM tab0
----
-4644
-4914
-5238
query I rowsort
SELECT + - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - col2 * - col2 + + ( + col2 ) * col2 FROM tab2 AS cor0
----
1352
1458
2888
query I rowsort
SELECT DISTINCT col1 * + col1 - 79 FROM tab0 AS cor0
----
7317
8202
9330
query I rowsort
SELECT + + cor0.col2 + col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 56 * col2 + + ( - col2 ) col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT ALL - col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT 28 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT ALL col1 * col2 + 22 AS col1 FROM tab0 cor0
----
119
2860
7484
query I rowsort
SELECT ALL - cor0.col0 + 69 FROM tab2 cor0
----
-10
-9
62
query I rowsort
SELECT ALL - col2 * + 82 - - col2 AS col2 FROM tab0 AS cor0
----
-2673
-6642
-81
query I rowsort
SELECT ALL - col2 * + 68 + - cor0.col1 FROM tab1 AS cor0
----
-3698
-3886
-6541
query I rowsort
SELECT DISTINCT - + col2 * + col1 + 64 FROM tab2 AS cor0
----
-1470
-582
-773
query I rowsort
SELECT ALL col2 - + 18 FROM tab0 AS cor0
----
-17
15
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 28 col0 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT 29 * + col2 FROM tab1
----
1566
1653
2784
query I rowsort
SELECT DISTINCT + 1 FROM tab2
----
1
query I rowsort
SELECT + col1 * + 67 AS col0 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9250
SELECT + cor0.col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-9250
SELECT + cor0.col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + col2 AS REAL ) + - col2 - 93 * + 55 * col2 col0 FROM tab0 cor0
----
-168795
-419430
-5115
query I rowsort
SELECT ALL + + col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + 28 FROM tab2 AS cor0
----
28
query I rowsort
SELECT - + 79 + 24 AS col2 FROM tab2 AS cor0
----
-55
-55
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT DISTINCT + 81 DIV ( - col1 ) AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT + 81 / ( - col1 ) AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT col2 DIV - 46 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9256
SELECT col2 / - 46 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 24 + - col2 - col1 col2 FROM tab0 AS cor0
----
-2183
-2357
-2426
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 9 + + col0 col0 FROM tab2 AS cor0
----
295
366
367
query I rowsort
SELECT DISTINCT 96 + + 23 * - col0 AS col1 FROM tab2
----
-1698
-1721
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9261
SELECT DISTINCT - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 + + 6 AS col0 FROM tab0
----
103
92
97
query I rowsort
SELECT ALL - col1 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - 22 FROM tab0 cor0
----
-22
-22
-22
query I rowsort
SELECT + - 11 * col0 - - col1 * - ( - col1 ) FROM tab2 AS cor0
----
-580
2623
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
19
skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT - + ( 88 ) DIV + col0 + col2 * + col0 FROM tab0 AS cor0
----
33
7298
789
skipif mysql # not compatible
query I rowsort label-9268
SELECT - + ( 88 ) / + col0 + col2 * + col0 FROM tab0 AS cor0
----
33
7298
789
query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab1 AS cor0
----
47
query I rowsort
SELECT + col0 + - 37 - - 72 FROM tab0
----
124
59
70
query I rowsort
SELECT ALL - 85 + + 79 * + col0 FROM tab2 AS cor0
----
468
6077
6156
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9272
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9272
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col2 - - 91 AS col2 FROM tab2 AS cor0
----
53
64
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 13 - cor0.col2 FROM tab2 AS cor0
----
-13
-14
-25
query I rowsort
SELECT ALL 40 * col0 + + col1 FROM tab0 AS cor0
----
1046
1497
3651
onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT DISTINCT - + col1 * 4 DIV col1 AS col1 FROM tab1 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT - + col1 * 4 / col1 AS col1 FROM tab1 AS cor0
----
-4
query I rowsort
SELECT - ( ( - col1 ) ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * - 56 FROM tab0 AS cor0
----
-1848
-4592
-56
query I rowsort
SELECT + ( + col2 ) + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT - 54 * - ( col1 ) - 83 FROM tab1
----
1321
457
619
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT DISTINCT + CAST( + 30 * col1 AS SIGNED ) + - 91 FROM tab1
----
209
299
689
skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + CAST ( + 30 * col1 AS INTEGER ) + - 91 FROM tab1
----
209
299
689
query I rowsort
SELECT DISTINCT col2 + - 86 AS col0 FROM tab1
----
-29
-32
10
query I rowsort
SELECT DISTINCT 79 + 44 FROM tab1
----
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT - ( col0 ) DIV + tab0.col2 + ( 94 ) * + col1 FROM tab0
----
8084
8553
9083
skipif mysql # not compatible
query I rowsort label-9285
SELECT - ( col0 ) / + tab0.col2 + ( 94 ) * + col1 FROM tab0
----
8084
8553
9083
onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT - col1 DIV col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9286
SELECT - col1 / col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9287
SELECT - col1 DIV - col0 + + ( + 15 ) AS col1 FROM tab2 AS cor0
----
15
15
19
skipif mysql # not compatible
query I rowsort label-9287
SELECT - col1 / - col0 + + ( + 15 ) AS col1 FROM tab2 AS cor0
----
15
15
19
query I rowsort
SELECT - + col0 + col0 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - + col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT ( + col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9290
SELECT ( + col1 ) / col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9291
SELECT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9291
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9292
SELECT ALL col0 DIV - col1 + + col1 col2 FROM tab2
----
13
31
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL col0 / - col1 + + col1 col2 FROM tab2
----
13
31
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 col2 FROM tab0
----
53
9
96
query I rowsort
SELECT 24 AS col0 FROM tab1
----
24
24
24
query I rowsort
SELECT - + col2 + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9296
SELECT ALL - 13 DIV 7 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - 13 / 7 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT + col0 + + ( 28 ) AS col0 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT ALL + 96 * + col0 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT - 54 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2118
-3449
-8153
query I rowsort
SELECT DISTINCT - ( col0 ) * 59 * col0 FROM tab2 cor0
----
-2891
-358956
-368219
query I rowsort
SELECT col2 * col1 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - 69 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT 89 + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 683b4451b3c75bd03b278308f38beae4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9305
SELECT + CAST( NULL AS SIGNED ) * 68 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9305
SELECT + CAST ( NULL AS INTEGER ) * 68 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 31 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9307
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT + ( + 81 ) * + col2 AS col2 FROM tab1
----
4374
4617
7776
query I rowsort
SELECT DISTINCT - tab0.col1 AS col0 FROM tab0, tab2, tab2 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - col0 * col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9311
SELECT ALL 82 + col0 DIV - col1 FROM tab2 AS cor0
----
78
81
82
skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 82 + col0 / - col1 FROM tab2 AS cor0
----
78
81
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT col2 DIV col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9312
SELECT col2 / col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 42 AS REAL ) FROM tab0
----
42
query I rowsort
SELECT ( + col2 + - col0 ) * - col2 AS col1 FROM tab2
----
-540
1352
1558
query I rowsort
SELECT - + 19 * col2 FROM tab0 AS cor0
----
-1558
-19
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9316
SELECT col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + col0 + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - 85 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT cor0.col2 + - cor0.col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 27 + 36 AS col2 FROM tab2, tab2 cor0
----
63
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + 43 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT 87 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT col0 - + col2 * col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT col0 - + tab1.col2 * + col1 * col2 FROM tab1
----
-119728
-32426
-75813
query I rowsort
SELECT ALL 70 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT cor1.col0 * CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9331
SELECT cor1.col0 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 93 * cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7cbbb52cb8843f76df8b8f71e4daa580
query I rowsort
SELECT ( tab0.col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT tab1.col0 * - col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - 93 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 41 * + col0 + col2 FROM tab1 AS cor0
----
-2567
-3184
-69
query I rowsort
SELECT + - col0 + - col2 AS col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT cor0.col0 + 35 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT col2 * 56 + col1 * cor0.col0 FROM tab2 AS cor0
----
1729
3471
6058
query I rowsort
SELECT 51 * col0 AS col2 FROM tab0
----
1224
1785
4539
query I rowsort
SELECT - + col1 + 68 AS col2 FROM tab1 AS cor0
----
42
55
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT - cor0.col2 + + cor0.col2 DIV + 27 AS col0 FROM tab1 AS cor0
----
-52
-55
-93
skipif mysql # not compatible
query I rowsort label-9344
SELECT - cor0.col2 + + cor0.col2 / + 27 AS col0 FROM tab1 AS cor0
----
-52
-55
-93
query I rowsort
SELECT 93 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT 45 * - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8afb0d11cd4e3a5b1847edfc2ecd5550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 7 * col0 col0 FROM tab0 AS cor0
----
148
532
82
query I rowsort
SELECT DISTINCT 83 FROM tab1, tab0 AS cor0
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * + ( col1 ) col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 + - 74 * + ( - col1 + + col1 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - col2 + 5 AS col0 FROM tab0
----
-28
-77
4
query I rowsort
SELECT - col1 * col1 AS col2 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col2 + col0 col1 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-118790
-49512
-720722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( 0 + col0 ) col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col2 + cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col0 + + 45 FROM tab1 AS cor0
----
109
125
48
query I rowsort
SELECT DISTINCT + col2 - - col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col1 * 91 + + col2 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1537
2527
3824
query I rowsort
SELECT ALL + + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + col0 * 54 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT ALL + CAST( NULL AS SIGNED ) - 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + CAST ( NULL AS INTEGER ) - 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9363
SELECT DISTINCT + col0 + + cor0.col1 DIV + col2 + col0 col0 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT + col0 + + cor0.col1 / + col2 + col0 col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - 57 - - col2 * + col2 FROM tab2 AS cor0
----
1387
619
672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9365
SELECT - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9365
SELECT - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * - 99 FROM tab2 AS cor0
----
-1683
-3069
-5841
query I rowsort
SELECT DISTINCT + + 80 + + col1 FROM tab0 AS cor0
----
166
171
177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - 39 AS col2 FROM tab0 AS cor0
----
-39
-39
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 * + col0 col1 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT ALL + col2 + CAST( + 54 AS SIGNED ) FROM tab2
----
80
81
92
skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + col2 + CAST ( + 54 AS INTEGER ) FROM tab2
----
80
81
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT DISTINCT + tab0.col1 + ( 87 ) * + col0 DIV + 1 AS col1 FROM tab0
----
2174
3142
7834
skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + tab0.col1 + ( 87 ) * + col0 / + 1 AS col1 FROM tab0
----
2174
3142
7834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT - cor0.col0 * col2 + 96 FROM tab0 AS cor0
----
-696
-7202
61
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9377
SELECT ALL - + col2 + - col0 * + CAST( - col0 + col2 * - 2 AS SIGNED ) col2 FROM tab1 AS cor0
----
11335
21664
279
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - + col2 + - col0 * + CAST ( - col0 + col2 * - 2 AS INTEGER ) col2 FROM tab1 AS cor0
----
11335
21664
279
query I rowsort
SELECT ALL - + ( col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 46 * + col1 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT + col1 + + col1 * + ( + 69 ) FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT cor0.col1 - + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4cf98869877fa51f9321a9b0e7299899
query I rowsort
SELECT 84 AS col1 FROM tab1
----
84
84
84
query I rowsort
SELECT DISTINCT ( + col2 * - col0 ) AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT tab1.col2 * + col0 + col0 * - 10 AS col1 FROM tab1
----
132
3008
6880
query I rowsort
SELECT + - 95 + + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT DISTINCT col2 DIV - col0 AS col1 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT col2 / - col0 AS col1 FROM tab2
----
-3
0
query I rowsort
SELECT col1 + col0 * col0 * 51 FROM tab1 AS cor0
----
208906
326413
485
query I rowsort
SELECT col2 + + col1 - ( - cor0.col0 ) FROM tab1 cor0
----
131
189
83
query I rowsort
SELECT + ( + 91 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT DISTINCT - ( 96 ) * cor0.col2 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
-5184
-5472
-9216
query I rowsort
SELECT DISTINCT tab2.col1 + + col1 * col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9392
SELECT DISTINCT - col0 DIV + col0 + col1 * col2 * col2 + col2 AS col1 FROM tab2
----
22625
24585
39909
skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - col0 / + col0 + col1 * col2 * col2 + col2 AS col1 FROM tab2
----
22625
24585
39909
query I rowsort
SELECT ALL tab0.col2 + + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + col0 * tab1.col1 * col0 + col2 FROM tab1
----
288
41017
83296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT ALL col1 DIV col1 + - col1 AS col1 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL col1 / col1 + - col1 AS col1 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957
query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col2 + + tab1.col0 * - col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL - col0 + col2 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col2 * + col2 + + col2 AS col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT + + col1 + col1 * - col1 * + col0 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT + - col0 + - col2 * - col2 + col1 * col0 FROM tab0 AS cor0
----
14734
3129
3361
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT col1 + - cor0.col1 DIV - col2 + + col2 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-9404
SELECT col1 + - cor0.col1 / - col2 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - + col1 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT col0 / + col2 FROM tab1 WHERE NULL BETWEEN col2 AND - col0
----
query I rowsort
SELECT + - col0 * + cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * col0 + + col1 + - col2 FROM tab2 cor0
----
193
2061
2981
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * col2 col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - + col2 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT + col2 * - col2 + col0 + col2 FROM tab1 cor0
----
-2859
-3128
-9040
query I rowsort
SELECT - col1 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL - + col1 * col2 * col1 + col1 + col1 AS col2 FROM tab1 AS cor0
----
-16198
-36452
-5680
query I rowsort
SELECT + 95 AS col0 FROM tab0 AS cor0
----
95
95
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT DISTINCT col1 * col1 + + col1 DIV + col0 FROM tab2 AS cor0
----
289
3481
965
skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT col1 * col1 + + col1 / + col0 FROM tab2 AS cor0
----
289
3481
965
query I rowsort
SELECT + col2 * col0 + + col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT + - 62 * col0 + + col0 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT ALL - + col2 - - col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-9421
SELECT DISTINCT col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 25 * col0 AS col0 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 77 * + col1 FROM tab0 AS cor0
----
6622
7007
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * - cor0.col0 - + col2 col1 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - - col1 * col1 + col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col2 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT + 25 * - col0 AS col0 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT ALL - col0 * - col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + + col0 * col0 - col0 * col2 AS col2 FROM tab0 cor0
----
-216
1190
623
query I rowsort
SELECT col0 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 * + col0 - col0 * - col2 * col0 AS col2 FROM tab1 AS cor0
----
237568
495
620800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9435
SELECT DISTINCT + col2 DIV - col2 + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + col2 / - col2 + col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9436
SELECT ALL col0 DIV col1 + col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL col0 / col1 + col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT ALL + col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col0 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + + col2 - - col2 AS col1 FROM tab2 AS cor0
----
-6032
-6165
5
query I rowsort
SELECT + cor0.col0 + - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - - col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + col2 * - col0 * col1 FROM tab2
----
-119593
-51017
-5828
query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) <= + col1 - - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT tab2.col0 + - col0 * col2 AS col0 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT tab1.col1 DIV col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9445
SELECT tab1.col1 / col1 FROM tab1
----
1
1
1
query I rowsort
SELECT col0 * + col0 * - col2 + col2 + tab0.col2 FROM tab0
----
-1223
-18942
-649358
query III rowsort
SELECT * FROM tab1 WHERE ( + col2 * - col0 ) NOT IN ( - col1 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab2 WHERE NULL < + col2
----
query I rowsort
SELECT tab0.col1 * col1 - tab0.col0 FROM tab0
----
7372
8192
9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col2 + - col0 * col1 AS col0 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9452
SELECT - col1 DIV - col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9452
SELECT - col1 / - col1 AS col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + tab1.col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 WHERE NOT ( + col1 ) IN ( col1 * col2 )
----
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT + col2 DIV + tab0.col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9456
SELECT + col2 / + tab0.col1 col2 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND col2 + + col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 * - col2 ) > NULL
----
query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT - col0 DIV col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9460
SELECT - col0 / col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( col1 ) <> - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 - + col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL - col1 + - col1 FROM tab1
----
-20
-26
-52
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( col1 * + col2 )
----
query I rowsort
SELECT DISTINCT tab2.col2 + - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + tab0.col0 FROM tab0 WHERE NOT col2 + + col1 * - tab0.col0 IN ( - col2 )
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT DISTINCT col0 DIV col0 + + col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT col0 / col0 + + col2 FROM tab2
----
27
28
39
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( - col2 / col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab1 WHERE - col1 + + col1 IN ( + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 <> ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + cor0.col1 * col0 * col0 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT col0 * + col2 * + cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 )
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1
----
54 values hashing to 69e208df4a305efdfcc036bb4b31e720
query I rowsort
SELECT DISTINCT col2 * + col0 + col1 AS col1 FROM tab0
----
132
7389
878
query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----
query I rowsort
SELECT DISTINCT col0 - - col1 * tab1.col1 AS col1 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL tab0.col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 - tab1.col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL col1 + col2 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
119821
32500
75842
query I rowsort
SELECT - cor0.col0 * + cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT ALL + col0 / - col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab0.col2 + - tab0.col1 AS col2 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - col2 * + col2 + 53 FROM tab0 AS cor0
----
-1036
-6671
52
query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - + 56 * col1 AS col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 2 * - 76 AS col0 FROM tab0
----
-152
-152
-152
query I rowsort
SELECT - ( + col2 ) * - col1 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9497
SELECT CAST( col2 AS SIGNED ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9497
SELECT CAST ( col2 AS INTEGER ) FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT - col1 DIV col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - col1 / col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81
query I rowsort
SELECT ALL - - col1 - col0 * + cor0.col0 FROM tab2 AS cor0
----
-18
-6025
-6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9500
SELECT DISTINCT - 94 + col2 * CAST( - 18 AS SIGNED ) * col2 AS col0 FROM tab2 cor0
----
-12262
-13216
-26086
skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 94 + col2 * CAST ( - 18 AS INTEGER ) * col2 AS col0 FROM tab2 cor0
----
-12262
-13216
-26086
query I rowsort
SELECT ALL - + col0 * + col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL col1 * 45 + - col0 FROM tab0 AS cor0
----
3846
4006
4330
query I rowsort
SELECT - 0 * - col1 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT DISTINCT - col1 * + tab2.col1 + + 62 DIV - col0 FROM tab2
----
-289
-3481
-969
skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - col1 * + tab2.col1 + + 62 / - col0 FROM tab2
----
-289
-3481
-969
query I rowsort
SELECT ALL + ( + 24 ) AS col0 FROM tab2 cor0
----
24
24
24
query I rowsort
SELECT ALL - col1 * 27 * cor0.col1 + col1 * - col0 FROM tab2 AS cor0
----
-26164
-9146
-98589
query I rowsort
SELECT - col1 * - 49 * + col1 + col2 * 82 AS col2 FROM tab2 AS cor0
----
172701
17277
49303
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - col0 * + col2 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
-2713
1453
772
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT DISTINCT - col1 * ( tab0.col1 + col2 ) FROM tab0
----
-10234
-15743
-9506
query I rowsort
SELECT ALL col0 * + col0 * - col1 AS col1 FROM tab2
----
-106097
-1519
-358956
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9515
SELECT CAST( 98 + + col0 AS SIGNED ) FROM tab0
----
122
133
187
skipif mysql # not compatible
query I rowsort label-9515
SELECT CAST ( 98 + + col0 AS INTEGER ) FROM tab0
----
122
133
187
query I rowsort
SELECT 72 * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a226719a200ccee7b2717c357073cc85
query I rowsort
SELECT ALL 98 FROM tab0, tab2, tab0 cor0, tab2 AS cor1
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d
query I rowsort
SELECT - 24 * + col0 + + col0 FROM tab0
----
-2047
-552
-805
query I rowsort
SELECT - 27 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT col0 * 46 FROM tab0
----
1104
1610
4094
query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - 43 * - col0 AS col1 FROM tab2
----
301
3354
3397
query I rowsort
SELECT + + ( col0 ) + + col2 * cor0.col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - - cor0.col1 * col0 + + col0 * ( + 52 ) FROM tab0 AS cor0
----
12727
3312
5215
query I rowsort
SELECT ALL col1 * col0 * col2 - 11 AS col1 FROM tab2
----
119641
51023
5848
onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT + col1 + tab1.col0 DIV - col1 + - col0 DIV col0 FROM tab1
----
25
3
6
skipif mysql # not compatible
query I rowsort label-9526
SELECT + col1 + tab1.col0 / - col1 + - col0 / col0 FROM tab1
----
25
3
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9527
SELECT col2 * col0 * - cor0.col1 - - col2 DIV col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
skipif mysql # not compatible
query I rowsort label-9527
SELECT col2 * col0 * - cor0.col1 - - col2 / col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
query I rowsort
SELECT DISTINCT - 62 + col2 FROM tab1 AS cor0
----
-5
-8
34
query I rowsort
SELECT - + ( col1 ) + 18 FROM tab2 AS cor0
----
-13
-41
1
query I rowsort
SELECT 14 * - col0 + + col2 * + 2 AS col2 FROM tab1 AS cor0
----
-782
-928
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT ALL - CAST( NULL AS DECIMAL ) - 40 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - CAST ( NULL AS REAL ) - 40 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9532
SELECT CAST( NULL AS DECIMAL ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9532
SELECT CAST ( NULL AS REAL ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 88 AS col0 FROM tab1
----
88
88
88
query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT - col2 * col2 + - col2 AS col0 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT - 70 + + col2 * + col1 * - col0 AS col1 FROM tab2 cor0
----
-119722
-51104
-5929
query I rowsort
SELECT ALL + - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 14 + - col0 AS col2 FROM tab2
----
-21
-92
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9539
SELECT DISTINCT col0 + col2 * CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT col0 + col2 * CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
query I rowsort
SELECT 55 AS col1 FROM tab2
----
55
55
55
query I rowsort
SELECT ALL - - 79 * - cor0.col0 FROM tab2 AS cor0
----
-553
-6162
-6241
query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT ALL + + 7 AS col1 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1 AS cor0
----
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col2 * col1 * 64 AS col0 FROM tab0 AS cor0
----
-181632
-477568
-6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT + - cor0.col2 DIV - col0 + ( col1 ) + col2 FROM tab2 AS cor0
----
55
61
85
skipif mysql # not compatible
query I rowsort label-9547
SELECT + - cor0.col2 / - col0 + ( col1 ) + col2 FROM tab2 AS cor0
----
55
61
85
query I rowsort
SELECT DISTINCT 13 + - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1391
-557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9549
SELECT + col0 * - CAST( NULL AS SIGNED ) + col2 * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9549
SELECT + col0 * - CAST ( NULL AS INTEGER ) + col2 * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col1 * 43 + col0 AS col0 FROM tab1
----
1121
494
639
query I rowsort
SELECT DISTINCT tab2.col2 * - col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 - + 28 FROM tab1
----
-38
-41
-54
query I rowsort
SELECT ALL 19 FROM tab0, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + 36 * + 55 FROM tab2, tab1 AS cor0
----
9 values hashing to 86870309577f915d87b6adce04b0683f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT DISTINCT col0 + + ( + col0 ) * col1 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2055
3429
8106
skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT col0 + + ( + col0 ) * col1 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2055
3429
8106
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9556
SELECT ALL col1 * + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL col1 * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9558
SELECT ALL - CAST( - col1 AS SIGNED ) + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - CAST ( - col1 AS INTEGER ) + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + - 9 + + col1 * + col2 AS col1 FROM tab1 cor0
----
1239
1395
561
query I rowsort
SELECT ALL + + ( col2 ) + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - + 17 AS col1 FROM tab1 AS cor0
----
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT ALL - + 51 DIV cor0.col1 - + col1 FROM tab2 AS cor0
----
-20
-32
-59
skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - + 51 / cor0.col1 - + col1 FROM tab2 AS cor0
----
-20
-32
-59
query I rowsort
SELECT + 2 * col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - + col1 + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - 61 FROM tab2 AS cor0
----
-61
query I rowsort
SELECT ALL - + 50 + cor0.col0 * col2 * 74 AS col0 FROM tab1 AS cor0
----
11938
269902
568270
query I rowsort
SELECT ALL + - 16 + col0 FROM tab1 AS cor0
----
-13
48
64
query I rowsort
SELECT 70 FROM tab2 AS cor0
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9569
SELECT + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9569
SELECT + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 82 + - ( col2 ) * + cor0.col1 - + ( col0 ) FROM tab2 AS cor0
----
-1530
-643
-762
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT ALL - 22 DIV + 31 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL - 22 / + 31 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - ( + 2 ) FROM tab2 AS cor0
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9574
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9574
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 15 + + col0 AS col0 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT ALL - 18 + - col2 FROM tab1 AS cor0
----
-114
-72
-75
query I rowsort
SELECT DISTINCT + - ( + col2 ) * cor0.col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 32 - col1 col0 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT - col2 * col0 + col2 * + col2 * - col2 FROM tab2 AS cor0
----
-19604
-19872
-57874
query I rowsort
SELECT DISTINCT + col0 * - 64 AS col1 FROM tab0 AS cor0
----
-1536
-2240
-5696
query I rowsort
SELECT - 51 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT + 89 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL - col1 * - col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
66
query I rowsort
SELECT DISTINCT tab2.col1 + ( + tab2.col1 ) AS col0 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 6 + - cor0.col2 col0 FROM tab0 AS cor0
----
-177
-211
-616
query I rowsort
SELECT + ( 14 * cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a3fa188c67e7471d244d46cfa8fbd216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9589
SELECT tab0.col2 DIV + 85 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9589
SELECT tab0.col2 / + 85 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT - tab2.col0 DIV - 84 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9590
SELECT - tab2.col0 / - 84 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * - 27 * col2 AS col0 FROM tab1
----
15390
33696
37908
query I rowsort
SELECT col0 + - col0 * col2 * + col0 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT - 96 + 22 * - tab1.col0 AS col0 FROM tab1
----
-1504
-162
-1856
query I rowsort
SELECT DISTINCT - 51 FROM tab0
----
-51
query I rowsort
SELECT - ( + col2 ) * ( 80 + - col0 * + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-45
23496
591876
query I rowsort
SELECT - ( 58 ) AS col1 FROM tab2
----
-58
-58
-58
query I rowsort
SELECT DISTINCT - 47 FROM tab0
----
-47
query I rowsort
SELECT ( + col2 * - col2 ) AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col2 + - ( - col0 ) * ( - 54 * col1 ) FROM tab0
----
-111489
-183331
-437428
onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT + 30 DIV 48 + col0 AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9600
SELECT + 30 / 48 + col0 AS col2 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT + col2 + - col1 DIV - col2 AS col1 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-9601
SELECT + col2 + - col1 / - col2 AS col1 FROM tab0
----
35
83
98
query I rowsort
SELECT tab0.col0 * - col0 + - col2 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT ALL - col1 * col2 * + cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT tab1.col1 * + ( ( tab1.col2 ) ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT - col0 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0
----
25
query I rowsort
SELECT DISTINCT + - 77 * - col0 AS col1 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT + - col0 * col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - + 8 AS col0 FROM tab2 cor0
----
-8
-8
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9610
SELECT DISTINCT cor0.col1 + + col2 DIV ( + 8 ) AS col0 FROM tab0 AS cor0
----
101
90
97
skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT cor0.col1 + + col2 / ( + 8 ) AS col0 FROM tab0 AS cor0
----
101
90
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - 92 AS col1 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT - + 0 * col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 49 * col2 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 * - 35 col1 FROM tab1 AS cor0
----
-1916
-2005
-3373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - 24 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT - cor0.col2 DIV - 67 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9618
SELECT - cor0.col2 / - 67 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT + col2 DIV 62 AS col0 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9620
SELECT + col2 / 62 AS col0 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT - col1 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + col0 + - col2 * - col1 * 44 AS col1 FROM tab1 AS cor0
----
25144
54992
61779
query I rowsort
SELECT DISTINCT 95 * col0 AS col0 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT ALL + + 76 * col2 FROM tab1 cor0
----
4104
4332
7296
query I rowsort
SELECT - 40 + - 12 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT + tab0.col2 * 94 FROM tab0
----
3102
7708
94
query I rowsort
SELECT + - 24 * col1 + - col0 FROM tab1 AS cor0
----
-304
-392
-627
query I rowsort
SELECT - col0 * + 44 + col0 FROM tab1 AS cor0
----
-129
-2752
-3440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9629
SELECT + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 67 * + 31 * - col1 + + 29 FROM tab1 AS cor0
----
20799
27030
54031
query I rowsort
SELECT ALL + 37 * - col1 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT ALL - - CAST( NULL AS SIGNED ) + col1 * - col0 * 64 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - - CAST ( NULL AS INTEGER ) + col1 * - col0 * 64 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - cor0.col0 ) FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT - 11 + col2 DIV + col2 FROM tab0 cor0
----
-10
-10
-10
skipif mysql # not compatible
query I rowsort label-9634
SELECT - 11 + col2 / + col2 FROM tab0 cor0
----
-10
-10
-10
query I rowsort
SELECT 86 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT 97 AS col1 FROM tab0
----
97
97
97
query I rowsort
SELECT ( col2 ) * + tab1.col2 + + col2 FROM tab1
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + cor0.col0 col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + + col1 * 23 + + col1 - col1 AS col2 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT 64 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f
query I rowsort
SELECT - - col1 + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + - col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT + col1 - + 31 FROM tab0 AS cor0
----
55
60
66
query I rowsort
SELECT - - col2 - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col0 * + ( - col2 ) + col2 * + col1 AS col0 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT ALL col1 DIV + col0 + - col1 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL col1 / + col0 + - col1 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT DISTINCT + 58 + - ( cor0.col0 ) * col1 - - 68 FROM tab0 AS cor0
----
-1938
-3269
-7973
query I rowsort
SELECT - + col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - 80 * - col1 - - col1 AS col0 FROM tab1 cor0
----
1053
2106
810
query I rowsort
SELECT ALL - col1 * + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + + col2 + + 25 AS col0 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT - 1 + col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT + col1 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-9654
SELECT DISTINCT + - col2 * 75 + - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-2478
-6151
-77
skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT + - col2 * 75 + - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-2478
-6151
-77
query I rowsort
SELECT col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - ( - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + cor0.col0 + + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + col2 col0 FROM tab1 cor0
----
2970
3306
9312
query I rowsort
SELECT col0 - + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - 48 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT + + 52 * - col2 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + 68 AS col2 FROM tab2
----
68
68
68
query I rowsort
SELECT DISTINCT - 26 * col0 FROM tab1
----
-1664
-2080
-78
query I rowsort
SELECT DISTINCT cor0.col0 + ( + 58 ) * cor0.col0 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT + col2 * + cor0.col2 * + 1 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 52 col0 FROM tab2 cor0
----
1352
1404
1976
query I rowsort
SELECT ALL + ( - tab2.col0 ) * + col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 - - 88 * + col2 AS col1 FROM tab1
----
4806
5073
8544
query I rowsort
SELECT ALL col0 + 42 - + col2 AS col0 FROM tab2
----
22
83
94
query I rowsort
SELECT 35 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) - tab0.col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col1 - ( col0 ) * col0 AS col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT col2 * 55 - + col0 AS col0 FROM tab1
----
2967
3071
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-9678
SELECT col1 DIV - 7 FROM tab0
----
-12
-13
-13
skipif mysql # not compatible
query I rowsort label-9678
SELECT col1 / - 7 FROM tab0
----
-12
-13
-13
query I rowsort
SELECT col2 * 22 + + 44 - - col2 FROM tab2
----
642
665
918
query I rowsort
SELECT + - col1 * + 72 AS col1 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col0 * 2 FROM tab0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + cor0.col1 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3b75e0bd85f40756fc4d3aea79adb269
query I rowsort
SELECT - 74 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT DISTINCT + 59 * col2 AS col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT + 90 * tab2.col2 FROM tab2
----
2340
2430
3420
query I rowsort
SELECT 75 + + 47 AS col2 FROM tab1 AS cor0
----
122
122
122
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751
query I rowsort
SELECT ALL col1 * col2 + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + ( + col1 + - col1 ) FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9691
SELECT + CAST( - 35 AS SIGNED ) col2 FROM tab0
----
-35
-35
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9691
SELECT + CAST ( - 35 AS INTEGER ) col2 FROM tab0
----
-35
-35
-35
query I rowsort
SELECT - ( + col2 ) + 66 AS col1 FROM tab2 cor0
----
28
39
40
query I rowsort
SELECT + 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + 82 AS col1 FROM tab1 cor0
----
82
82
82
query I rowsort
SELECT - - col2 + + col1 * ( + 23 ) AS col2 FROM tab1 cor0
----
287
395
652
query I rowsort
SELECT DISTINCT + + 15 AS col0 FROM tab2 cor0
----
15
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + ( - col0 ) + + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + ( + col2 ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + + 91 * + col1 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT DISTINCT - 61 + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-223
-3709
-7741
onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT DISTINCT + 42 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + 42 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 5 FROM tab0 cor0
----
-5
query I rowsort
SELECT - ( - cor0.col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - col2 + + col1 * + col1 AS col2 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL - col1 * col1 * - 67 FROM tab1 AS cor0
----
11323
45292
6700
query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + col2 * 12 AS col1 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 79 FROM tab1, tab1 AS cor0
----
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT - cor0.col0 + + col2 DIV col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-9712
SELECT - cor0.col0 + + col2 / col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL + 33 * + col1 AS col2 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT ALL - 23 FROM tab1, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT - 31 FROM tab2, tab0 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT - 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col2 * col2 - col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT - col2 + + cor0.col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - 61 + ( col1 ) - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7371
-8251
-9373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9722
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT ( col2 ) + col0 DIV col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-9723
SELECT ( col2 ) + col0 / col2 FROM tab1
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * - col2 col1 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT - - 49 AS col0 FROM tab1 AS cor0
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col2 FROM tab0
----
33
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT tab0.col1 + tab0.col1 DIV col2 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9727
SELECT tab0.col1 + tab0.col1 / col2 FROM tab0
----
194
88
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9728
SELECT - col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9728
SELECT - col1 / + col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + col2 * col0 * - ( - cor0.col1 ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL col2 * + col0 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - col0 * + 83 * ( cor0.col0 ) FROM tab2 AS cor0
----
-4067
-504972
-518003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 68 col2 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT + col2 * col0 * col0 AS col2 FROM tab0 cor0
----
1225
19008
649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9734
SELECT col0 * + CAST( col1 AS SIGNED ) + cor0.col0 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
1501
231
4758
skipif mysql # not compatible
query I rowsort label-9734
SELECT col0 * + CAST ( col1 AS INTEGER ) + cor0.col0 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT ALL - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 99 + col1 FROM tab0
----
-13
-2
-8
query I rowsort
SELECT DISTINCT - 33 FROM tab2, tab0 cor0
----
-33
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399
query I rowsort
SELECT ALL - tab2.col0 * 58 FROM tab2
----
-406
-4524
-4582
query I rowsort
SELECT tab2.col2 * 44 * - tab2.col0 + + col2 FROM tab2
----
-132050
-8289
-89206
query I rowsort
SELECT ALL cor0.col1 * + ( - col2 * + col0 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + + col1 * ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + cor0.col0 + ( ( col2 ) ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + col2 + + col2 + 94 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT ALL + 89 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col2 * cor0.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed
query I rowsort
SELECT - 80 + col2 * - col0 * - 60 + ( - cor0.col2 + col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
11260
121600
180040
query I rowsort
SELECT - col2 * col0 * 77 FROM tab2
----
-14553
-156156
-231154
query I rowsort
SELECT - ( + tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT DISTINCT + col0 DIV - ( + ( col0 ) ) AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + col0 / - ( + ( col0 ) ) AS col0 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT DISTINCT col1 * col0 DIV - tab0.col2 col2 FROM tab0
----
-3395
-62
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT col1 * col0 / - tab0.col2 col2 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT DISTINCT + 26 * 14 FROM tab1
----
364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9755
SELECT + CAST( + tab1.col1 AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif mysql # not compatible
query I rowsort label-9755
SELECT + CAST ( + tab1.col1 AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-9756
SELECT + col0 * col0 DIV + col1 col2 FROM tab1 cor0
----
0
409
492
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9756
SELECT + col0 * col0 / + col1 col2 FROM tab1 cor0
----
0
409
492
query I rowsort
SELECT + 83 * 69 AS col0 FROM tab0 cor0
----
5727
5727
5727
query I rowsort
SELECT - col2 + - cor0.col1 * + col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + 27 AS col0 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT + - 98 AS col1 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT ( + col2 * - col1 ) + + tab0.col2 * col2 AS col0 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT DISTINCT + - col2 + col0 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1024
27
647
query I rowsort
SELECT ALL + + col2 + + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + 65 FROM tab0 AS cor0
----
65
query I rowsort
SELECT - - 69 AS col0 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT ALL - col2 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT ( col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT col2 DIV ( + col0 ) + + col2 * col0 FROM tab1 AS cor0
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-9769
SELECT col2 / ( + col0 ) + + col2 * col0 FROM tab1 AS cor0
----
180
3648
7681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9770
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + col0 * 31 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
2466
2477
248
query I rowsort
SELECT + - col2 * - col0 + 88 + col0 FROM tab1 AS cor0
----
253
3800
7848
query I rowsort
SELECT col1 + col1 + - 37 FROM tab0 AS cor0
----
135
145
157
query I rowsort
SELECT ALL 79 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT + col2 * ( 19 ) FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT ALL - col0 * + col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 9 * - tab2.col0 * ( col0 ) FROM tab2
----
-441
-54756
-56169
query I rowsort
SELECT ALL 60 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT - tab1.col1 * + col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 62 FROM tab2
----
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + + col1 col1 FROM tab2
----
122
80
94
query I rowsort
SELECT ( col0 + - 33 * col1 ) AS col1 FROM tab2
----
-1016
-1869
-482
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + tab1.col2 * 57 FROM tab1
----
3081
3313
5552
onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT + col0 DIV ( 64 ) + col0 - col2 AS col2 FROM tab0 AS cor0
----
-9
34
8
skipif mysql # not compatible
query I rowsort label-9786
SELECT + col0 / ( 64 ) + col0 - col2 AS col2 FROM tab0 AS cor0
----
-9
34
8
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399
query I rowsort
SELECT col0 * + col1 + col2 * - col1 FROM tab2
----
-620
3068
697
query I rowsort
SELECT col2 * - ( cor0.col1 + + cor0.col2 ) FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + + col0 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - - col1 + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 + + 46 * + col1 FROM tab2 cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9795
SELECT - col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9795
SELECT - col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 75 FROM tab1 AS cor0
----
139
155
78
query I rowsort
SELECT ALL col2 + 21 * + 66 AS col1 FROM tab0 AS cor0
----
1387
1419
1468
onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT col0 * col1 + - col1 DIV - cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
1979
3299
8009
skipif mysql # not compatible
query I rowsort label-9798
SELECT col0 * col1 + - col1 / - cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
1979
3299
8009
query I rowsort
SELECT ALL + + col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col1 col0 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT DISTINCT col2 * tab0.col0 + col1 DIV col0 FROM tab0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT col2 * tab0.col0 + col1 / col0 FROM tab0
----
37
7299
795
query I rowsort
SELECT col2 + + col1 + col2 AS col2 FROM tab2
----
111
85
93
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) IN ( col2 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 - - col2 col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT col2 * + tab2.col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT DISTINCT - col0 + col0 DIV + col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - col0 + col0 / + col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT * FROM tab2 WHERE col2 + - col1 <> NULL
----
query I rowsort
SELECT ALL tab2.col0 * + col1 AS col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT + col2 + tab0.col2 * col0 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT - col2 DIV col2 + + col0 * - col0 * + col0 + - col1 FROM tab0
----
-13911
-42973
-705061
skipif mysql # not compatible
query I rowsort label-9814
SELECT - col2 / col2 + + col0 * - col0 * + col0 + - col1 FROM tab0
----
-13911
-42973
-705061
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - col0 / - col0 <> col2
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( col0 )
----
query I rowsort
SELECT col0 * + tab2.col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col0 * col2 + - col0 * - col1 * + col0 FROM tab0
----
118860
50328
728109
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col0 * - tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT IN ( col0 + + col2 )
----
query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col2 * col1 + - col1 FROM tab1 WHERE NOT ( NULL ) = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) NOT IN ( + col2 * col1 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL + col0 * - col0 + - tab2.col1 AS col0 FROM tab2
----
-6143
-6258
-80
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 + - col0 AND ( NULL )
----
query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab1
----
-29
-74
-93
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > NULL
----
query I rowsort
SELECT - col0 + - col2 * 77 AS col1 FROM tab0 AS cor0
----
-112
-2565
-6403
query I rowsort
SELECT DISTINCT 49 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
49
query I rowsort
SELECT DISTINCT col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col0 * - col2 + col1 * - 3 FROM tab2 AS cor0
----
1851
2951
96
query I rowsort
SELECT ALL + - col1 * col0 - - col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - 41 + + col2 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT DISTINCT - - 86 FROM tab0 AS cor0
----
86
query I rowsort
SELECT ALL + + 86 + col1 FROM tab1 AS cor0
----
112
96
99
query I rowsort
SELECT ALL + 83 + - cor0.col2 FROM tab0 AS cor0
----
1
50
82
query I rowsort
SELECT DISTINCT cor0.col1 - col0 FROM tab1 cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 * - ( col2 ) col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - + 36 + - col2 FROM tab0 cor0
----
-118
-37
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT DISTINCT + cor0.col0 DIV col2 - 59 FROM tab0 AS cor0
----
-24
-58
-59
skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + cor0.col0 / col2 - 59 FROM tab0 AS cor0
----
-24
-58
-59
query I rowsort
SELECT - 67 + col0 FROM tab1 AS cor0
----
-3
-64
13
query I rowsort
SELECT DISTINCT + 84 * col0 + + col0 * - col0 + col0 FROM tab2 AS cor0
----
474
546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab1 AS cor0
----
2
query I rowsort
SELECT ALL - col2 + col1 + + ( cor0.col2 ) * col2 FROM tab1 AS cor0
----
2888
3202
9133
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9852
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 82 * + col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 82 * + col1 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT + 46 + col0 DIV col2 - - 89 DIV - col1 AS col1 FROM tab1 AS cor0
----
39
40
43
skipif mysql # not compatible
query I rowsort label-9853
SELECT + 46 + col0 / col2 - - 89 / - col1 AS col1 FROM tab1 AS cor0
----
39
40
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab2 AS cor0
----
-80
query I rowsort
SELECT - 36 * col1 + col1 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT ALL 39 AS col0 FROM tab0 AS cor0
----
39
39
39
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + ( col2 ) - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + ( col2 ) - col2 FROM tab1
----
NULL
query I rowsort
SELECT - col0 + col0 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col0 + 23 * col0 * + col1 FROM tab0 cor0
----
186188
47448
78050
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT ALL tab1.col1 + - col1 DIV col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL tab1.col1 + - col1 / col0 FROM tab1
----
10
13
18
query I rowsort
SELECT ALL ( - col1 ) + col0 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + ( col2 ) + + col2 * - col0 AS col2 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT ALL - ( col2 ) * col2 + + col2 DIV 62 + col1 * ( col2 ) AS col0 FROM tab1
----
-1512
-2679
-7967
skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - ( col2 ) * col2 + + col2 / 62 + col1 * ( col2 ) AS col0 FROM tab1
----
-1512
-2679
-7967
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * + col1 + - col2 * 76 FROM tab0 AS cor0
----
1230
21
330
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT CAST( col2 AS SIGNED ) + - col0 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9869
SELECT CAST ( col2 AS INTEGER ) + - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT + + 59 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT + tab0.col0 + col1 * + col0 + ( + col2 ) * + col0 FROM tab0
----
15486
2880
3465
query I rowsort
SELECT ( + col1 ) * col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + col0 * ( col2 ) + 39 AS col0 FROM tab1 AS cor0
----
201
3687
7719
query I rowsort
SELECT cor1.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + 0 * col0 + col1 * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 16 + col1 FROM tab1
----
26
29
42
query I rowsort
SELECT DISTINCT tab1.col2 + col0 * + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT col0 * - ( tab0.col0 * - 47 ) AS col0 FROM tab0
----
27072
372287
57575
query I rowsort
SELECT ALL 29 AS col2 FROM tab0
----
29
29
29
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + col2 + tab2.col2 AS col1 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 18 * col2 AS col2 FROM tab0 AS cor0
----
1476
18
594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col1 * col0 col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + col2 + col0 * col0 * + col0 + + cor0.col2 FROM tab2 cor0
----
397
474604
493115
onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT DISTINCT col2 DIV col2 + col1 AS col2 FROM tab0 cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT col2 / col2 + col1 AS col2 FROM tab0 cor0
----
87
92
98
query I rowsort
SELECT ALL + col1 * + col1 * + col2 + - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
12325
26164
95108
onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL col2 DIV + col2 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL col2 / + col2 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT + col1 + - col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT DISTINCT + col1 DIV + col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + col1 / + col0 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT - - cor0.col2 + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-9892
SELECT - - cor0.col2 + col2 / + col0 AS col2 FROM tab1 AS cor0
----
57
72
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT + - col0 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-9893
SELECT + - col0 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-25
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9894
SELECT + 54 DIV tab1.col0 AS col2 FROM tab1
----
0
0
18
skipif mysql # not compatible
query I rowsort label-9894
SELECT + 54 / tab1.col0 AS col2 FROM tab1
----
0
0
18
query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 * + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-2451
-33588
-7008
query I rowsort
SELECT DISTINCT - 50 * + 47 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-2271
-2272
-2343
query I rowsort
SELECT - + 63 * 86 * cor0.col2 + - col1 FROM tab1 AS cor0
----
-292598
-308836
-520141
query I rowsort
SELECT ALL + - col2 + - col2 * - col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT 25 + col0 FROM tab2 AS cor0
----
103
104
32
query I rowsort
SELECT + 36 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - cor0.col0 * 33 AS col1 FROM tab1 AS cor0
----
2112
2640
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9903
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9903
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 24 ) + col2 * col0 FROM tab1 AS cor0
----
138
3624
7656
query I rowsort
SELECT DISTINCT - 21 FROM tab2 AS cor0
----
-21
query I rowsort
SELECT cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9907
SELECT - col1 DIV col0 + - col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-9907
SELECT - col1 / col0 + - col0 FROM tab1 AS cor0
----
-11
-64
-80
query I rowsort
SELECT + 73 + - col0 AS col1 FROM tab2 AS cor0
----
-5
-6
66
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - cor0.col1 * col0 + col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + + cor0.col1 + col0 * col2 * - col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT ALL col1 + - col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 + + col0 col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL ( col0 ) + - tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 0 * + col2 + + tab2.col1 * col1 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab2 cor0
----
-36
-36
-36
query I rowsort
SELECT col2 * + col1 + + col1 * col0 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT DISTINCT + tab0.col0 DIV - col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + tab0.col0 / - col0 FROM tab0
----
-1
query I rowsort
SELECT ALL - col0 + - col1 * + col1 + + col1 AS col0 FROM tab2
----
-3500
-351
-937
onlyif mysql # use DIV operator for integer division
query I rowsort label-9923
SELECT ALL + tab1.col0 DIV + col1 col2 FROM tab1
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + tab1.col0 / + col1 col2 FROM tab1
----
0
6
6
query I rowsort
SELECT col1 * cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col2 * - col1 * - cor0.col0 - - col2 AS col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT col0 * col1 + col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-9927
SELECT col2 * col0 DIV - tab1.col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9927
SELECT col2 * col0 / - tab1.col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 - cor0.col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col2 + - cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( - col1 ) < ( col0 )
----
query I rowsort
SELECT - col0 - col0 * col2 AS col2 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT + col1 - col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL col0 - + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 * tab0.col0 + col0 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + tab1.col1 + col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab1.col2 + + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 * col2 + - col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-9939
SELECT col0 * tab2.col1 DIV - tab2.col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9939
SELECT col0 * tab2.col1 / - tab2.col1 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT - col2 DIV + col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9940
SELECT - col2 / + col0 AS col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + col2 + - col0 * - col1 AS col2 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col2 FROM tab1
----
-7
16
51
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + + col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT DISTINCT - col2 DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - col2 / - col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT - col1 + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL IN ( col2 + + col0 ) OR ( col2 * col2 ) < NULL
----
query I rowsort
SELECT + + col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL + col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 * tab1.col1 + - col1 * col1 FROM tab1
----
-1352
-200
-338
query I rowsort
SELECT ALL + col2 * - tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9954
SELECT + col0 DIV + col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9954
SELECT + col0 / + col1 FROM tab2
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT col0 * col2 DIV col2 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9955
SELECT col0 * col2 / col2 AS col0 FROM tab1
----
3
64
80
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT col0 + + col0 * col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT - - col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + - 83 FROM tab0 AS cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9960
SELECT ALL CAST( NULL AS SIGNED ) * + 13 * col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL CAST ( NULL AS INTEGER ) * + 13 * col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 7 + - col1 * col1 FROM tab0 AS cor0
----
-7403
-8288
-9416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9962
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 67 + - cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
101
58
74
query I rowsort
SELECT + col1 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL - + col0 + 56 * col1 FROM tab1 AS cor0
----
1453
496
648
query I rowsort
SELECT ALL + 79 + col1 FROM tab0 AS cor0
----
165
170
176
onlyif mysql # use DIV operator for integer division
query I rowsort label-9967
SELECT + - 29 DIV - col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9967
SELECT + - 29 / - col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL + 82 * + col2 FROM tab2 cor0
----
2132
2214
3116
query I rowsort
SELECT col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col2 * - 79 AS col0 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT ALL ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9972
SELECT ALL - cor0.col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - cor0.col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab1, tab0 AS cor0
----
63
query I rowsort
SELECT - - 88 AS col1 FROM tab0 AS cor0
----
88
88
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT - CAST( 87 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-2088
-3045
-7743
skipif mysql # not compatible
query I rowsort label-9975
SELECT - CAST ( 87 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT - - 86 AS col2 FROM tab2 AS cor0
----
86
86
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9977
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT - col1 + col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 15 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-15
query I rowsort
SELECT + 21 + col0 * - ( + 29 ) FROM tab2 AS cor0
----
-182
-2241
-2270
query I rowsort
SELECT ALL + col0 + 29 + + col0 * + col1 FROM tab2
----
1451
253
4709
query I rowsort
SELECT ALL col0 + + col2 * col2 + - col2 FROM tab0
----
1080
35
6731
query I rowsort
SELECT - cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + col0 - + col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT + col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL - col1 * - ( - cor0.col1 ) + - col2 + cor0.col0 FROM tab0 AS cor0
----
-7405
-8274
-9375
query I rowsort
SELECT + col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT cor1.col0 FROM tab1, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + cor0.col0 + col0 + - col2 FROM tab2 AS cor0
----
-13
120
130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 95 + + col2 col1 FROM tab2
----
-2444
-2538
-3572
query I rowsort
SELECT col1 - - 28 * col1 * col2 FROM tab2
----
18105
23467
43011
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) FROM tab1
----
28
47
83
query I rowsort
SELECT ALL col1 * 95 + 65 + + col0 FROM tab2 AS cor0
----
1759
3017
5748
query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80