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 DISTINCT 46 * - cor2.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
-138
-2944
-3680
query I rowsort
SELECT - - col0 * - 41 FROM tab0 cor0
----
-1435
-3649
-984
query I rowsort
SELECT DISTINCT + 15 * col1 AS col1 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT col1 * + 58 + + col1 FROM tab2
----
1003
1829
3481
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - col2 ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - col2 ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT 3 * 53 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to df87f7a2e96de37e0c7e9c86fae8840b
query I rowsort
SELECT - 34 * + col1 AS col2 FROM tab1
----
-340
-442
-884
query I rowsort
SELECT + 2 + col0 * + col0 * + col0 FROM tab0 AS cor0
----
13826
42877
704971
query I rowsort
SELECT ALL 7 + - col1 * + 95 AS col2 FROM tab1 AS cor0
----
-1228
-2463
-943
query I rowsort
SELECT + 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col1 * col0 col1 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT + col0 + - 67 FROM tab2 AS cor0
----
-60
11
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-13
SELECT ALL cor0.col1 + CAST( + col1 AS SIGNED ) * col2 + 62 FROM tab0 AS cor0
----
256
2986
7615
skipif mysql # not compatible
query I rowsort label-13
SELECT ALL cor0.col1 + CAST ( + col1 AS INTEGER ) * col2 + 62 FROM tab0 AS cor0
----
256
2986
7615
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-15
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT - 76 DIV + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e5212c3c9e2dcf2e1883cdf96538fa7c
skipif mysql # not compatible
query I rowsort label-16
SELECT - 76 / + cor0.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e5212c3c9e2dcf2e1883cdf96538fa7c
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT ALL + col1 DIV 59 - + col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-79
skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + col1 / 59 - + col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-79
query I rowsort
SELECT ALL - col1 + - col2 - cor0.col2 * 66 * col2 AS col1 FROM tab0 AS cor0
----
-164
-443957
-71993
query I rowsort
SELECT ALL 14 + cor0.col0 FROM tab0 AS cor0
----
103
38
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT + CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-21
SELECT + CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab2
----
-87
query I rowsort
SELECT + + col0 * col2 + ( - col0 ) FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-24
SELECT ALL - - cor0.col2 + - CAST( NULL AS SIGNED ) * - 31 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-24
SELECT ALL - - cor0.col2 + - CAST ( NULL AS INTEGER ) * - 31 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 88 * col0 FROM tab1
----
264
5632
7040
query I rowsort
SELECT - col1 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT - + col0 DIV 84 + 74 FROM tab0 AS cor0
----
73
74
74
skipif mysql # not compatible
query I rowsort label-27
SELECT - + col0 / 84 + 74 FROM tab0 AS cor0
----
73
74
74
query I rowsort
SELECT ALL + col0 + 64 FROM tab2
----
142
143
71
query I rowsort
SELECT - col2 + + 98 FROM tab0 AS cor0
----
16
65
97
query I rowsort
SELECT - + col0 + - 23 AS col1 FROM tab2 AS cor0
----
-101
-102
-30
query I rowsort
SELECT DISTINCT + col0 * 45 + + col1 AS col0 FROM tab1 AS cor0
----
161
2890
3613
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-32
SELECT - col2 * - CAST( + 27 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1458
1539
2592
skipif mysql # not compatible
query I rowsort label-32
SELECT - col2 * - CAST ( + 27 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT ALL - cor0.col2 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL 9 + col0 AS col1 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT ALL + cor0.col1 + 67 - col2 AS col2 FROM tab1 AS cor0
----
-16
20
39
query I rowsort
SELECT DISTINCT ( - 1 ) FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - - 94 * ( col1 ) FROM tab2 AS cor0
----
1598
2914
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col0 FROM tab2
----
-26
-26
-26
query I rowsort
SELECT ALL 22 * col0 * + col2 AS col2 FROM tab2
----
4158
44616
66044
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + ( + col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ( - col0 ) + + cor0.col2 * + col2 FROM tab1 cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT + 4 * + col1 + col2 DIV + col1 FROM tab2 AS cor0
----
124
236
70
skipif mysql # not compatible
query I rowsort label-43
SELECT + 4 * + col1 + col2 / + col1 FROM tab2 AS cor0
----
124
236
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-44
SELECT ALL CAST( - 74 AS SIGNED ) + tab0.col0 * - 78 FROM tab0
----
-1946
-2804
-7016
skipif mysql # not compatible
query I rowsort label-44
SELECT ALL CAST ( - 74 AS INTEGER ) + tab0.col0 * - 78 FROM tab0
----
-1946
-2804
-7016
query I rowsort
SELECT + col0 * col2 + 44 FROM tab1 cor0
----
206
3692
7724
query I rowsort
SELECT + ( col1 ) * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - 99 * - col0 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT col2 * col1 * col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT 3 * col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT - col0 * col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT + + col1 * 76 + cor0.col1 AS col0 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT + col0 * col2 + + ( + col1 ) * + 93 * col1 FROM tab1 cor0
----
12948
23397
63030
query I rowsort
SELECT col1 * + ( 27 ) + - col1 + col1 AS col2 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT col0 - - ( col2 ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-55
SELECT + 21 DIV - col1 FROM tab1
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-55
SELECT + 21 / - col1 FROM tab1
----
-1
-2
0
query I rowsort
SELECT DISTINCT + col2 * - col1 - - tab2.col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT col1 - tab2.col0 * - ( - col0 ) FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - col1 * - col2 - col2 AS col0 FROM tab2 cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col1 ) col2 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 36 * + tab1.col2 col2 FROM tab1
----
1998
2109
3552
onlyif mysql # use DIV operator for integer division
query I rowsort label-62
SELECT - ( + cor0.col0 ) * col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-62
SELECT - ( + cor0.col0 ) * col2 / + col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT ALL col0 * 49 DIV col0 FROM tab0
----
49
49
49
skipif mysql # not compatible
query I rowsort label-63
SELECT ALL col0 * 49 / col0 FROM tab0
----
49
49
49
query I rowsort
SELECT ALL ( + col1 ) * col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT tab1.col0 DIV - 51 + - col2 DIV tab1.col0 FROM tab1
----
-1
-18
-2
skipif mysql # not compatible
query I rowsort label-66
SELECT tab1.col0 / - 51 + - col2 / tab1.col0 FROM tab1
----
-1
-18
-2
query I rowsort
SELECT DISTINCT - col2 + col1 - + ( - col1 ) * 82 * + 87 FROM tab2 AS cor0
----
121257
221158
420939
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-68
SELECT DISTINCT + cor0.col1 + 58 * + 30 + cor0.col0 * CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
1844
2390
2793
skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + cor0.col1 + 58 * + 30 + cor0.col0 * CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
1844
2390
2793
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col2 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 1 ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + + col2 * col0 * col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT DISTINCT - + ( - cor0.col2 ) DIV col2 AS col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - + ( - cor0.col2 ) / col2 AS col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + - cor0.col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL - 1 + + 97 AS col2 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT ALL tab1.col0 * col1 + + col0 FROM tab1
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-77
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - cor0.col0 ) * + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-79
SELECT + + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-79
SELECT + + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + cor0.col0 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 + + col1 col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT + 47 * cor0.col0 + col1 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
142
3009
3761
skipif mysql # not compatible
query I rowsort label-82
SELECT + 47 * cor0.col0 + col1 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
142
3009
3761
query I rowsort
SELECT ALL - col1 * col0 * + 47 FROM tab1 AS cor0
----
-30080
-3666
-48880
query I rowsort
SELECT ALL + - col1 * - cor0.col0 - 88 * - col2 AS col0 FROM tab2 AS cor0
----
2593
4687
6890
query I rowsort
SELECT DISTINCT 54 + - col0 AS col2 FROM tab1 AS cor0
----
-10
-26
51
query I rowsort
SELECT - 39 + - col1 * - col2 FROM tab1 cor0
----
1209
1365
531
query I rowsort
SELECT + 52 AS col2 FROM tab1 cor0
----
52
52
52
query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab1 cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - 71 * + col2 FROM tab1
----
-3834
-4047
-6816
onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT + col1 DIV - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-90
SELECT + col1 / - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT col2 + 37 AS col1 FROM tab0 AS cor0
----
119
38
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT + - col1 DIV - 47 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-92
SELECT + - col1 / - 47 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col0 * 79 + - 87 * col0 FROM tab1 AS cor0
----
-24
-512
-640
query I rowsort
SELECT ALL + + cor0.col2 + - ( col2 + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 * - ( - col0 ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - ( 95 ) + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4a4201177d16d0bbd791b94cfd7b6f9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT ALL + tab2.col0 * col0 DIV + col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-98
SELECT ALL + tab2.col0 * col0 / + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL ( + 29 ) + + col0 FROM tab2
----
107
108
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-100
SELECT tab0.col0 / - col0 + + col0 * - CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-100
SELECT tab0.col0 / - col0 + + col0 * - CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * col0 + - col1 * - tab0.col2 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT col2 * col2 + ( 37 ) * col2 * + col0 AS col0 FROM tab0 cor0
----
1296
276750
30393
query I rowsort
SELECT DISTINCT 16 + - tab2.col0 * - col2 FROM tab2
----
2044
205
3018
query I rowsort
SELECT col2 * ( col0 * 36 ) FROM tab0
----
1260
262728
28512
query I rowsort
SELECT ALL 60 * col0 + col0 FROM tab2
----
427
4758
4819
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT + 91 DIV - col2 FROM tab0
----
-1
-2
-91
skipif mysql # not compatible
query I rowsort label-106
SELECT + 91 / - col2 FROM tab0
----
-1
-2
-91
query I rowsort
SELECT ( 30 ) * - col2 AS col0 FROM tab0
----
-2460
-30
-990
onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT CAST( + 15 * - col1 AS SIGNED ) + - tab0.col0 DIV - col1 FROM tab0
----
-1290
-1365
-1455
skipif mysql # not compatible
query I rowsort label-108
SELECT CAST ( + 15 * - col1 AS INTEGER ) + - tab0.col0 / - col1 FROM tab0
----
-1290
-1365
-1455
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT - 5 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT ALL - + 40 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT 99 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT cor0.col0 + + col0 DIV - ( 23 * + col2 + - col1 * 70 ) AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-113
SELECT cor0.col0 + + col0 / - ( 23 * + col2 + - col1 * 70 ) AS col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT ALL + 94 DIV col1 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + 94 / col1 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - 96 + - col2 FROM tab1 AS cor0
----
-150
-153
-192
query I rowsort
SELECT ALL + 99 + - col2 * ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-26037
-598337
64
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-118
SELECT + col2 + - col0 * - col2 DIV col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-118
SELECT + col2 + - col0 * - col2 / col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 76 + - col2 + - ( col0 ) FROM tab1 AS cor0
----
-100
-45
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * col0 col2 FROM tab2 AS cor0
----
385
4290
4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT DISTINCT 17 DIV col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT 17 / col1 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT ALL - + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + col0 - + col2 * tab0.col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col2 + tab2.col0 * + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT - 25 + col2 AS col2 FROM tab1 AS cor0
----
29
32
71
query I rowsort
SELECT col2 * + tab0.col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col1 * - col2 * 77 FROM tab1
----
-108108
-43890
-96096
onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT ALL + 70 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + 70 / + col2 FROM tab1
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-129
SELECT DISTINCT + col2 * - tab2.col1 - - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + col2 * - tab2.col1 - - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
query I rowsort
SELECT + col1 - + tab0.col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE col1 NOT IN ( - col0 - - col2 )
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col1 - col2 col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab1 WHERE NOT + col2 NOT IN ( + col0 )
----
query I rowsort
SELECT tab2.col2 * + col0 + + col2 AS col2 FROM tab2
----
2054
216
3040
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN ( - col0 * + col2 ) AND NULL
----
query I rowsort
SELECT DISTINCT col2 * tab1.col0 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND + col1
----
query I rowsort
SELECT - col0 - - col0 * + col0 AS col2 FROM tab0
----
1190
552
7832
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 < NULL
----
query I rowsort
SELECT ALL + tab1.col1 * col0 + + col1 * - col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - col1 - col2 * - col2 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - col2 * tab2.col2 + col0 * col0 AS col2 FROM tab2
----
-680
4797
5408
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col2 > col1
----
35
97
1
query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT col0 + + col0 * col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT + col1 = NULL
----
query I rowsort
SELECT col2 + + tab1.col1 * col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL IN ( - col0 )
----
query I rowsort
SELECT + col0 / - col1 AS col1 FROM tab1 WHERE NOT col0 NOT IN ( + col0 - col1 )
----
query I rowsort
SELECT cor0.col0 * col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + - 44 * + col1 col0 FROM tab0 AS cor0
----
-3704
-3924
-4188
query I rowsort
SELECT ALL ( + col0 * + col2 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL - - 24 * + col1 FROM tab0 AS cor0
----
2064
2184
2328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 5 + - col2 + + col0 * - col2 col1 FROM tab0 cor0
----
-31
-7375
-820
query I rowsort
SELECT DISTINCT + + 77 * + col1 + col0 + + 54 AS col1 FROM tab1 cor0
----
1135
2059
888
query I rowsort
SELECT ALL - 93 - - col2 AS col1 FROM tab1 AS cor0
----
-36
-39
3
query I rowsort
SELECT + col0 + col0 * ( col1 ) FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + + 67 * col2 - - ( - col2 ) FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT ALL - 84 * - col2 * 22 AS col0 FROM tab0 AS cor0
----
151536
1848
60984
query I rowsort
SELECT DISTINCT 51 + col2 * col1 AS col0 FROM tab0 AS cor0
----
148
2889
7513
query I rowsort
SELECT ALL cor0.col1 + + col0 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
13910
42972
705060
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL + - 6 * + col2 FROM tab1 cor0
----
-324
-342
-576
query I rowsort
SELECT DISTINCT + ( - col1 ) + + col2 * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT col0 * col2 + col1 FROM tab0 cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + col2 col2 FROM tab0 AS cor0
----
127
46
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * - col2 col1 FROM tab1 cor0
----
-2160
-2280
-3840
query I rowsort
SELECT - col1 + 38 + - col0 FROM tab2 AS cor0
----
-58
-99
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT ALL + - cor0.col1 * CAST( + col2 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + - cor0.col1 * CAST ( + col2 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col2 + + 62 * + col1 FROM tab1 AS cor0
----
1666
677
902
query I rowsort
SELECT DISTINCT col0 * + 30 AS col2 FROM tab0 AS cor0
----
1050
2670
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT ALL - col0 * col2 DIV + col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-174
SELECT ALL - col0 * col2 / + col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-175
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-175
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-176
SELECT - + col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-176
SELECT - + col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 90 + ( col2 ) + + 78 AS col2 FROM tab0 AS cor0
----
7851
8350
8809
query I rowsort
SELECT ALL col1 * + col2 * - cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-16304
-36507
-5764
query I rowsort
SELECT - col1 + 38 FROM tab2 AS cor0
----
-21
21
7
query I rowsort
SELECT ALL + ( col1 ) * + col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 + col2 col1 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT DISTINCT + col1 * 47 - + col1 * 78 AS col1 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - ( + col1 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 + - cor0.col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col0 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 28 * col2 * col1 FROM tab0 AS cor0
----
208936
2716
79464
query I rowsort
SELECT ALL + + 32 * col2 + + col1 FROM tab2 AS cor0
----
1233
891
895
query I rowsort
SELECT DISTINCT ( - col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + 28 * col0 + col1 + + col1 AS col2 FROM tab1 cor0
----
136
1812
2266
query I rowsort
SELECT ALL + tab0.col1 * col1 * + tab0.col1 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT DISTINCT 38 FROM tab2, tab1 AS cor0
----
38
query I rowsort
SELECT ALL + col2 * 68 FROM tab0
----
2244
5576
68
query I rowsort
SELECT col0 - 57 * + col2 AS col0 FROM tab0
----
-1857
-22
-4585
query I rowsort
SELECT - 98 + ( col2 * col0 ) FROM tab1
----
3550
64
7582
query I rowsort
SELECT - 88 + col1 FROM tab1
----
-62
-75
-78
query I rowsort
SELECT - ( + col0 ) * col1 + - col2 AS col1 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT ALL 74 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-4
-566
-966
onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT - - col0 + cor0.col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-199
SELECT - - col0 + cor0.col2 / + col0 AS col1 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT DISTINCT + - 64 AS col0 FROM tab2 AS cor0
----
-64
query I rowsort
SELECT ALL col0 * col2 + - 62 AS col1 FROM tab0
----
-27
7236
730
query I rowsort
SELECT + col0 * col0 * - col2 + col0 FROM tab2
----
-1316
-158106
-237079
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-204
SELECT ALL col0 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-204
SELECT ALL col0 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - - col0 * + 42 + - col0 FROM tab1 cor0
----
123
2624
3280
query I rowsort
SELECT + tab0.col1 * 80 FROM tab0
----
6880
7280
7760
query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT + col1 DIV - 46 - 50 * col1 AS col2 FROM tab0 AS cor0
----
-4301
-4551
-4852
skipif mysql # not compatible
query I rowsort label-208
SELECT + col1 / - 46 - 50 * col1 AS col2 FROM tab0 AS cor0
----
-4301
-4551
-4852
query I rowsort
SELECT DISTINCT + ( + col2 ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - 51 + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT ALL + + cor0.col1 * 75 + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-3346
-5425
1941
onlyif mysql # use DIV operator for integer division
query I rowsort label-212
SELECT DISTINCT CAST( - 33 AS SIGNED ) * + col0 + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1252
-2938
-794
skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT CAST ( - 33 AS INTEGER ) * + col0 + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-1252
-2938
-794
query I rowsort
SELECT ALL + + col1 * - ( col2 ) * - col0 + col0 AS col2 FROM tab1 AS cor0
----
36544
4215
99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 55 * cor0.col0 * - col2 FROM tab0 AS cor0
----
-1925
-401390
-43560
query I rowsort
SELECT DISTINCT - 77 * - 13 + cor0.col2 * col1 FROM tab1 cor0
----
1571
2249
2405
query I rowsort
SELECT - col0 + 0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - + col0 + 69 * - col0 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT DISTINCT ( + col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - ( ( + col0 ) ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + 53 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * - col2 + - col2 AS col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 + tab1.col1 - col1 / + col0 AND NULL
----
query I rowsort
SELECT + cor0.col1 - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col0 * col1 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + - col2 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 + - cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-15472
-3457
-4878
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT - cor0.col2 DIV col1 AS col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-233
SELECT - cor0.col2 / col1 AS col1 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT - - cor0.col0 * + cor0.col1 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col1 * + col2 * + col2 + + col1 * cor0.col1 + cor0.col0 FROM tab2 cor0
----
23567
24916
43443
query I rowsort
SELECT col0 + tab1.col1 + col0 FROM tab1
----
138
173
32
query I rowsort
SELECT col2 + - col2 + + tab2.col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col2 * col2 * tab0.col2 FROM tab0
----
-1
-35937
-551368
query I rowsort
SELECT col0 * col1 FROM tab2 WHERE ( - col2 ) >= NULL AND NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT col1 + + col2 * col2 + col2 FROM tab0
----
1208
6897
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT DISTINCT + col2 * col1 + col2 DIV col2 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + col2 * col1 + col2 / col2 FROM tab0
----
2839
7463
98
query I rowsort
SELECT col2 * col1 + col0 * + col1 + - tab2.col2 AS col1 FROM tab2
----
1027
1951
6110
query I rowsort
SELECT DISTINCT + col2 * 38 AS col2 FROM tab1 AS cor0
----
2052
2166
3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 col0 FROM tab0 cor0
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - - col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( + ( + col2 ) ) * + col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT ALL + + col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + + col1 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab1.col0 * + col2 * + col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT cor0.col1 * + 26 * tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7d0ef5f0791927d49d6cef99c9f5db16
query I rowsort
SELECT ALL col0 * col1 * - col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL 5 * + col2 FROM tab0
----
165
410
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT col0 * - col0 * - col1 + + ( col2 ) DIV - col0 + - col2 FROM tab2
----
106059
1489
358930
skipif mysql # not compatible
query I rowsort label-254
SELECT col0 * - col0 * - col1 + + ( col2 ) / - col0 + - col2 FROM tab2
----
106059
1489
358930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + + col0 col0 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 32 * col2 + + col0 * + 32 col0 FROM tab1 AS cor0
----
-1632
-512
224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col2 FROM tab1, tab0 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 * + col0 + - 32 FROM tab1 AS cor0
----
-23
4064
6368
query I rowsort
SELECT + 9 + - col2 AS col1 FROM tab0 AS cor0
----
-24
-73
8
query I rowsort
SELECT ALL + 43 * col1 FROM tab2
----
1333
2537
731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-261
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col0 * + 40 + - 14 FROM tab0 AS cor0
----
1386
3546
946
query I rowsort
SELECT ALL - - col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 + col0 + + tab0.col1 * tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 60 + col1 + + col0 FROM tab0
----
170
192
240
query I rowsort
SELECT + col2 + - col2 + - 69 FROM tab1
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + 29 FROM tab2, tab0, tab1 AS cor0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col1 FROM tab0, tab1 AS cor0
----
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT ALL col0 DIV 20 FROM tab0
----
1
1
4
skipif mysql # not compatible
query I rowsort label-269
SELECT ALL col0 / 20 FROM tab0
----
1
1
4
query I rowsort
SELECT col0 * col0 * col0 + col2 FROM tab1
----
262201
512096
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT tab1.col2 * 11 + col0 DIV - col1 AS col0 FROM tab1
----
1050
594
621
skipif mysql # not compatible
query I rowsort label-271
SELECT tab1.col2 * 11 + col0 / - col1 AS col0 FROM tab1
----
1050
594
621
query I rowsort
SELECT ALL cor0.col1 + - 64 FROM tab0 AS cor0
----
22
27
33
query I rowsort
SELECT DISTINCT + col1 * col2 * cor0.col0 + cor0.col1 * col1 FROM tab2 cor0
----
123133
51323
6820
query I rowsort
SELECT DISTINCT + cor0.col0 * - 24 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT ALL col0 * + ( - 18 ) + - col1 AS col0 FROM tab1 AS cor0
----
-1162
-1453
-80
query I rowsort
SELECT - col0 + col2 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - col2 + col0 * + 2 AS col2 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT col1 * col0 * + col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 * col1 - - col2 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT ( col0 ) - col2 DIV col2 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-281
SELECT ( col0 ) - col2 / col2 FROM tab1 cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab0 cor0
----
-37
-37
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT ALL 13 + + col2 * CAST( col1 AS SIGNED ) DIV col1 AS col1 FROM tab0 AS cor0
----
14
46
95
skipif mysql # not compatible
query I rowsort label-283
SELECT ALL 13 + + col2 * CAST ( col1 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
14
46
95
query I rowsort
SELECT ALL + 6 * ( + col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-3840
-468
-6240
query I rowsort
SELECT DISTINCT - col1 + - col1 + + col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-286
SELECT + CAST( NULL AS SIGNED ) * col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-286
SELECT + CAST ( NULL 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-287
SELECT - col2 + + cor0.col2 * - col0 + - CAST( 16 AS SIGNED ) FROM tab1 AS cor0
----
-232
-3721
-7792
skipif mysql # not compatible
query I rowsort label-287
SELECT - col2 + + cor0.col2 * - col0 + - CAST ( 16 AS INTEGER ) FROM tab1 AS cor0
----
-232
-3721
-7792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 49 ) * - col0 col0 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT 64 + + col0 * col2 FROM tab2 AS cor0
----
2092
253
3066
query I rowsort
SELECT ALL + 33 + + 11 FROM tab1 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + + 5 * + 20 FROM tab1 AS cor0
----
100
query I rowsort
SELECT + 33 + cor0.col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT + - ( + 10 ) + + cor0.col0 + col1 FROM tab2 AS cor0
----
127
28
86
query I rowsort
SELECT DISTINCT - col1 + 12 * - col1 FROM tab1 cor0
----
-130
-169
-338
query I rowsort
SELECT ALL - - col2 * + 38 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT - + 29 * - col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT ALL + col1 * ( col1 ) + 67 * + 75 FROM tab2 AS cor0
----
5314
5986
8506
query I rowsort
SELECT - 43 * + 57 + - col2 FROM tab2 AS cor0
----
-2477
-2478
-2489
query I rowsort
SELECT + col0 - 74 * col0 FROM tab0
----
-1752
-2555
-6497
query I rowsort
SELECT + col0 * 55 FROM tab2
----
385
4290
4345
query I rowsort
SELECT DISTINCT col2 + + 1 FROM tab2
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 + col0 col2 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT - ( + cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL 62 - + 32 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT ALL - col0 DIV - col2 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-639
-78
skipif mysql # not compatible
query I rowsort label-306
SELECT ALL - col0 / - col2 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-639
-78
query I rowsort
SELECT - col2 - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - cor0.col2 * - 87 AS col2 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT DISTINCT col0 - - col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL col2 + + 41 * 88 FROM tab1
----
3662
3665
3704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-311
SELECT ALL + col0 + - CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + col0 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + 31 + 62 AS col0 FROM tab1
----
147
150
189
skipif mysql # not compatible
query I rowsort
SELECT + col1 * - col0 + col2 * - col0 * CAST ( 34 AS REAL ) FROM tab1
----
-124672
-262160
-5586
query I rowsort
SELECT tab0.col2 + 9 AS col1 FROM tab0
----
10
42
91
query I rowsort
SELECT + col0 + 62 AS col1 FROM tab2
----
140
141
69
query I rowsort
SELECT + col0 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + 73 col0 FROM tab1 AS cor0
----
1898
730
949
onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT - col0 DIV + 37 + col1 FROM tab1 AS cor0
----
11
26
9
skipif mysql # not compatible
query I rowsort label-318
SELECT - col0 / + 37 + col1 FROM tab1 AS cor0
----
11
26
9
query I rowsort
SELECT cor0.col1 + - 18 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f7495347c6f9d6b95c627c88787bbc9
onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT ALL - tab0.col2 DIV - 91 + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - tab0.col2 / - 91 + col1 AS col1 FROM tab0
----
86
91
97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983
query I rowsort
SELECT ALL - - col0 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-323
SELECT + 48 * col0 + - col0 + + 20 DIV cor0.col2 FROM tab0 AS cor0
----
1128
1665
4183
skipif mysql # not compatible
query I rowsort label-323
SELECT + 48 * col0 + - col0 + + 20 / cor0.col2 FROM tab0 AS cor0
----
1128
1665
4183
query I rowsort
SELECT col0 + - 69 * col2 FROM tab1 AS cor0
----
-3723
-3869
-6544
query I rowsort
SELECT + + col2 * + 82 - - col0 FROM tab1 AS cor0
----
4431
4738
7952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + cor0.col2 * ( tab2.col1 ) FROM tab2, tab1 cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 + + 50 ) col2 FROM tab0
----
-132
-51
-83
query I rowsort
SELECT DISTINCT + col1 * - col2 - - col1 * col1 AS col0 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT ALL - 21 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1
query I rowsort
SELECT ALL - ( - col1 ) - col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT DISTINCT + col2 * col2 DIV ( col2 ) - col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + col2 * col2 / ( col2 ) - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + col0 * - col1 + + 14 AS col2 FROM tab0 AS cor0
----
2078
3409
8113
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col0 * 9 + col0 * col1 AS col0 FROM tab2 AS cor0
----
154
3900
632
query I rowsort
SELECT col0 * + ( cor0.col1 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 * + cor0.col0 + - col2 + col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT DISTINCT - col1 + + col1 DIV 40 FROM tab0 AS cor0
----
-84
-89
-95
skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - col1 + + col1 / 40 FROM tab0 AS cor0
----
-84
-89
-95
query I rowsort
SELECT ALL + + 81 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT - - 84 + - col1 FROM tab1 AS cor0
----
58
71
74
query I rowsort
SELECT ALL ( col0 ) + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT + 60 * cor0.col2 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + 98 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT DISTINCT + 63 + + col2 + 27 * - col1 FROM tab1 cor0
----
-150
-192
-585
query I rowsort
SELECT + ( col0 ) + 31 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7178
-737
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 + col1 col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL 9 * - col2 + cor0.col1 AS col1 FROM tab0 cor0
----
-211
-647
88
query I rowsort
SELECT cor0.col0 * 52 AS col1 FROM tab2 AS cor0
----
364
4056
4108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-351
SELECT CAST( 88 AS SIGNED ) AS col1 FROM tab2 cor0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-351
SELECT CAST ( 88 AS INTEGER ) AS col1 FROM tab2 cor0
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-352
SELECT + 7 + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
15
7
7
skipif mysql # not compatible
query I rowsort label-352
SELECT + 7 + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
15
7
7
query I rowsort
SELECT ALL col0 - + 34 AS col0 FROM tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT ALL 18 * + col2 - + col0 AS col0 FROM tab2 AS cor0
----
390
479
605
query I rowsort
SELECT ALL - 50 + - col1 * cor0.col0 * col2 FROM tab2 AS cor0
----
-119702
-51084
-5909
query I rowsort
SELECT ALL - 16 * + 40 + col1 * + col1 FROM tab0 AS cor0
----
6756
7641
8769
query I rowsort
SELECT - 26 + + cor0.col0 FROM tab0 AS cor0
----
-2
63
9
query I rowsort
SELECT 98 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7298
-8183
-9311
query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab1, tab2 AS cor0
----
69
query I rowsort
SELECT + + 6 + - col1 FROM tab0 AS cor0
----
-80
-85
-91
query I rowsort
SELECT DISTINCT - 55 - - col0 FROM tab1 AS cor0
----
-52
25
9
query I rowsort
SELECT cor0.col1 + ( + col2 ) + col0 * cor0.col1 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT + + 75 * - col0 AS col0 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT col0 * col0 + col1 + ( + col1 ) * + col0 FROM tab0
----
16111
2726
4717
query I rowsort
SELECT + col1 * 46 + col0 * - col1 FROM tab2 AS cor0
----
-1888
-561
1209
query I rowsort
SELECT DISTINCT ( 32 ) * - col0 + - 43 AS col1 FROM tab2
----
-2539
-2571
-267
query I rowsort
SELECT col0 + - 87 AS col1 FROM tab2
----
-8
-80
-9
query I rowsort
SELECT + 19 + - col2 + + tab0.col2 * 39 AS col2 FROM tab0
----
1273
3135
57
query I rowsort
SELECT ALL - col0 * col1 + 65 AS col2 FROM tab0 AS cor0
----
-1999
-3330
-8034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-370
SELECT DISTINCT + + col0 * cor0.col2 + + col2 / 42 - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT + + col0 * cor0.col2 + + col2 / 42 - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT + + col1 + col1 DIV + 14 FROM tab1 AS cor0
----
10
13
27
skipif mysql # not compatible
query I rowsort label-371
SELECT + + col1 + col1 / + 14 FROM tab1 AS cor0
----
10
13
27
query I rowsort
SELECT - 50 + + col2 + + col1 * + 23 FROM tab1
----
237
345
602
query I rowsort
SELECT DISTINCT tab1.col1 * - col2 + - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL col0 + + 90 + + col1 FROM tab1
----
119
164
183
query I rowsort
SELECT DISTINCT 7 * + tab1.col1 + 76 FROM tab1, tab1 cor0
----
146
167
258
query I rowsort
SELECT DISTINCT + 84 + + col2 AS col2 FROM tab2
----
110
111
122
query I rowsort
SELECT - 30 * + tab1.col1 + - col2 * + col0 AS col2 FROM tab1
----
-3948
-8070
-942
query I rowsort
SELECT ALL + + cor0.col2 * cor0.col1 + 39 FROM tab1 cor0
----
1287
1443
609
query I rowsort
SELECT DISTINCT + cor0.col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col2 + + col1 * 47 AS col2 FROM tab2 AS cor0
----
1484
2799
837
query I rowsort
SELECT DISTINCT - col2 * + ( + 33 + col2 ) * - col1 FROM tab2 AS cor0
----
45866
50220
90506
query I rowsort
SELECT + col2 * - 40 * 92 FROM tab1 AS cor0
----
-198720
-209760
-353280
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - - col1 * 28 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT ALL + col0 + col2 * + col1 * col1 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT - - col1 * + ( + 87 ) FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT ALL + cor0.col2 * 85 AS col1 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT col0 * col1 + + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - tab2.col1 * + tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5
query I rowsort
SELECT col2 + col1 + col0 AS col0 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT col1 * - tab0.col1 - col2 AS col1 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT - col1 * ( 6 ) - col1 * - col0 FROM tab2 AS cor0
----
1241
31
4248
onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL 57 * - tab1.col2 + 79 DIV + col0 FROM tab1
----
-3052
-3248
-5472
skipif mysql # not compatible
query I rowsort label-393
SELECT ALL 57 * - tab1.col2 + 79 / + col0 FROM tab1
----
-3052
-3248
-5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT 82 * col2 DIV tab2.col0 AS col1 FROM tab2
----
27
316
39
skipif mysql # not compatible
query I rowsort label-394
SELECT 82 * col2 / tab2.col0 AS col1 FROM tab2
----
27
316
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col0 col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col2 * tab0.col0 + + col1 AS col1 FROM tab0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT + col0 * col0 DIV + ( 93 * col0 ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-397
SELECT + col0 * col0 / + ( 93 * col0 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 5 * + col2 - + col2 FROM tab0 cor0
----
132
328
4
query I rowsort
SELECT - col0 + - ( - 7 ) AS col0 FROM tab1 AS cor0
----
-57
-73
4
query I rowsort
SELECT ALL col1 + ( 70 ) FROM tab2 AS cor0
----
101
129
87
query I rowsort
SELECT col0 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT DISTINCT + + col1 DIV cor0.col2 col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + + col1 / cor0.col2 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 + col2 * + 25 FROM tab1 cor0
----
1353
1489
2480
query I rowsort
SELECT cor0.col2 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + - col2 + + ( 67 ) * cor0.col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT ALL ( + col0 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 + 74 FROM tab0 cor0
----
-8
41
73
query I rowsort
SELECT ALL 7 + col1 FROM tab0 cor0
----
104
93
98
query I rowsort
SELECT - 88 * - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
3080
642224
69696
query I rowsort
SELECT + ( 67 ) FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + + 27 * + col0 AS col0 FROM tab0 cor0
----
-2190
-5059
848
query I rowsort
SELECT + 56 + + col0 FROM tab0 AS cor0
----
145
80
91
query I rowsort
SELECT + ( + col0 * + col2 ) AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ( + col0 * col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT 66 * + col0 FROM tab2 AS cor0
----
462
5148
5214
query I rowsort
SELECT - ( col1 ) * ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT - 34 * + col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-418
SELECT - 34 * + col0 / CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 + col0 * + col0 * - 1 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT 0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col0 * + 33 + + col2 FROM tab0 AS cor0
----
-1154
-2855
-759
query I rowsort
SELECT DISTINCT - ( 58 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-58
query I rowsort
SELECT ALL + ( 77 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT 91 * 62 AS col1 FROM tab1
----
5642
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT DISTINCT - ( - col0 ) DIV tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT - ( - col0 ) / tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT - col0 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + col0 * + 66 + - col2 * + col2 FROM tab2 AS cor0
----
-267
3770
4472
query I rowsort
SELECT 30 + + col1 AS col1 FROM tab0 AS cor0
----
116
121
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT DISTINCT + col0 * col1 + + col1 DIV 51 AS col2 FROM tab2 cor0
----
1343
217
4603
skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + col0 * col1 + + col1 / 51 AS col2 FROM tab2 cor0
----
1343
217
4603
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-430
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-430
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-431
SELECT tab0.col1 DIV tab0.col0 col1 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-431
SELECT tab0.col1 / tab0.col0 col1 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL col2 + - ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - + col2 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 - - col0 * ( col2 ) * col2 col0 FROM tab2
----
114091
5118
52743
query I rowsort
SELECT + - 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
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 DISTINCT col1 + tab1.col1 + + col2 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT col0 + - col1 * - ( - col2 ) + col0 FROM tab2
----
-1378
-488
-823
query I rowsort
SELECT DISTINCT - tab0.col1 * + ( col2 * - col1 ) + 65 FROM tab0
----
244133
679107
9474
query I rowsort
SELECT + col2 * 21 FROM tab1
----
1134
1197
2016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col1 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + + col2 + 28 AS col1 FROM tab2 cor0
----
54
55
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT col2 DIV col2 + 95 * col1 AS col1 FROM tab0 AS cor0
----
8171
8646
9216
skipif mysql # not compatible
query I rowsort label-443
SELECT col2 / col2 + 95 * col1 AS col1 FROM tab0 AS cor0
----
8171
8646
9216
query I rowsort
SELECT col0 + + ( col0 ) FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT + col1 + col0 * - 17 FROM tab1 AS cor0
----
-1078
-1347
-25
query I rowsort
SELECT - col0 + - 77 FROM tab0 cor0
----
-101
-112
-166
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 - col2 - col2 * 76 FROM tab1
----
-4158
-4389
-7392
query I rowsort
SELECT - 16 + cor0.col2 FROM tab1 AS cor0
----
38
41
80
query I rowsort
SELECT ALL 22 AS col1 FROM tab0 AS cor0
----
22
22
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT - 81 * + col2 DIV - col2 FROM tab0
----
81
81
81
skipif mysql # not compatible
query I rowsort label-451
SELECT - 81 * + col2 / - col2 FROM tab0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 - cor0.col0 * col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + col2 * col1 * ( col1 ) - 13 FROM tab0 AS cor0
----
244079
679118
9431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + + col2 * - 27 col2 FROM tab0
----
-2169
-846
18
query I rowsort
SELECT DISTINCT 86 + tab1.col0 * ( col2 ) FROM tab1
----
248
3734
7766
query I rowsort
SELECT ALL + 66 * - col1 - col1 * + col1 FROM tab2
----
-1411
-3007
-7375
query I rowsort
SELECT ALL col2 - - col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 + - col2 * + 91 AS col0 FROM tab1
----
-4860
-5130
-8640
query I rowsort
SELECT ALL + cor0.col1 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 * - col2 * + col0 col2 FROM tab0 AS cor0
----
26169
36
598518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-462
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * - 3 + cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT DISTINCT col2 DIV cor0.col0 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT col2 / cor0.col0 FROM tab0 cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-465
SELECT DISTINCT - cor0.col1 - - CAST( - col0 + col0 * col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
49
566
947
skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - cor0.col1 - - CAST ( - col0 + col0 * col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
49
566
947
query I rowsort
SELECT DISTINCT - col2 + + ( + 91 ) * + col1 FROM tab2 AS cor0
----
1509
2794
5343
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT ALL - + col0 * 66 + 44 DIV - cor0.col1 col1 FROM tab1 AS cor0
----
-199
-4228
-5283
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - + col0 * 66 + 44 / - cor0.col1 col1 FROM tab1 AS cor0
----
-199
-4228
-5283
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT - col0 * CAST( NULL AS SIGNED ) - 83 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-468
SELECT - col0 * CAST ( NULL AS INTEGER ) - 83 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 58 AS col2 FROM tab1 AS cor0
----
112
115
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - cor0.col0 col0 FROM tab0 cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ALL + col0 + + col2 DIV 29 FROM tab2 AS cor0
----
7
78
80
skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + col0 + + col2 / 29 FROM tab2 AS cor0
----
7
78
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-472
SELECT col2 * CAST( + ( col1 ) AS SIGNED ) + + col2 * col2 FROM tab0 AS cor0
----
14186
3927
98
skipif mysql # not compatible
query I rowsort label-472
SELECT col2 * CAST ( + ( col1 ) AS INTEGER ) + + col2 * col2 FROM tab0 AS cor0
----
14186
3927
98
query I rowsort
SELECT DISTINCT - + col2 * col0 + + col1 * col1 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT ALL + col2 * - col1 - + col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT - col1 * col2 + 61 * - col2 FROM tab2 AS cor0
----
-2484
-2964
-3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-476
SELECT ALL col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-476
SELECT ALL col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 - - ( + ( cor0.col1 ) ) FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT col2 - + col0 DIV - 36 FROM tab1
----
54
58
98
skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT col2 - + col0 / - 36 FROM tab1
----
54
58
98
query I rowsort
SELECT + - col0 + 8 * + col2 AS col0 FROM tab0 AS cor0
----
-27
240
567
query I rowsort
SELECT + + col1 * 16 AS col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT DISTINCT - + col1 + - col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT - col0 DIV + col0 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-482
SELECT - col0 / + col0 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + 17 * - 78 AS col0 FROM tab2 AS cor0
----
-1326
-1326
-1326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-484
SELECT - CAST( NULL AS SIGNED ) * - 37 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-484
SELECT - CAST ( NULL AS INTEGER ) * - 37 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT ALL - + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - + cor0.col2 / - col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col2 + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 * - 39 FROM tab1
----
117
2496
3120
query I rowsort
SELECT DISTINCT - + 9 + col2 FROM tab0 AS cor0
----
-8
24
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + col0 ) + col2 * col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT 38 * col0 AS col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT - 24 * + col2 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT + tab1.col0 + ( - col1 ) * col2 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col1 * col1 + 46 * + col2 AS col0 FROM tab0 AS cor0
----
12053
8914
9455
query I rowsort
SELECT DISTINCT - 14 + col2 + + col0 * - 65 * col2 FROM tab0 AS cor0
----
-2288
-474302
-51461
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - col1 * + ( col1 ) + 49 AS col1 FROM tab1 AS cor0
----
149
218
725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-498
SELECT ALL + CAST( NULL AS DECIMAL ) * 43 + + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-498
SELECT ALL + CAST ( NULL AS REAL ) * 43 + + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-499
SELECT - CAST( + col0 AS SIGNED ) * col2 * ( - ( - cor0.col1 ) ) + - cor0.col0 * - 78 * col0 AS col2 FROM tab2 AS cor0
----
-2037
354900
435764
skipif mysql # not compatible
query I rowsort label-499
SELECT - CAST ( + col0 AS INTEGER ) * col2 * ( - ( - cor0.col1 ) ) + - cor0.col0 * - 78 * col0 AS col2 FROM tab2 AS cor0
----
-2037
354900
435764
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col1 AS REAL ) + col0 / CAST ( 99 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ( + 90 ) + + col0 * - col2 FROM tab0 AS cor0
----
-702
-7208
55
query I rowsort
SELECT + col0 + col1 * + col1 + col1 * 98 AS col2 FROM tab1 AS cor0
----
1144
1523
3227
query I rowsort
SELECT ( 84 ) * col1 * cor0.col2 + - col2 * + cor0.col0 + + 93 * + col0 FROM tab2 cor0
----
134082
58609
70770
query I rowsort
SELECT ALL + + 74 * col0 + + col2 FROM tab2 AS cor0
----
545
5798
5884
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT + 1 DIV + col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-505
SELECT + 1 / + col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 53 FROM tab2 cor0
----
53
query I rowsort
SELECT DISTINCT + - 93 * - col2 AS col2 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT DISTINCT - ( - 15 ) * col0 AS col1 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT ALL - - 84 * + 54 + - col0 FROM tab1 AS cor0
----
4456
4472
4533
query I rowsort
SELECT - col2 + - col2 + - col2 * 40 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT ALL - ( - col1 ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT DISTINCT - - ( col0 ) * col0 + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
27
4096
6401
skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT - - ( col0 ) * col0 + col2 / + col0 AS col1 FROM tab1 AS cor0
----
27
4096
6401
query I rowsort
SELECT ALL + col0 + col0 * 77 * col0 FROM tab1 AS cor0
----
315456
492880
696
query I rowsort
SELECT ALL + cor0.col2 + - col1 - ( col1 * col0 ) AS col2 FROM tab0 AS cor0
----
-2117
-3491
-8108
query I rowsort
SELECT ALL - + col2 + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - ( cor0.col0 ) + 57 * cor0.col1 AS col0 FROM tab0 AS cor0
----
4878
5098
5494
query I rowsort
SELECT - 48 + cor0.col1 FROM tab0 AS cor0
----
38
43
49
query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab0 cor0
----
-33
query I rowsort
SELECT + + col0 + - col1 + ( col2 ) FROM tab1 AS cor0
----
111
163
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT cor0.col0 DIV + col1 + 8 FROM tab2 AS cor0
----
12
8
9
skipif mysql # not compatible
query I rowsort label-521
SELECT cor0.col0 / + col1 + 8 FROM tab2 AS cor0
----
12
8
9
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + 94 AS col0 FROM tab0 AS cor0
----
129
7392
886
query I rowsort
SELECT cor2.col2 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL - col1 - 8 AS col1 FROM tab2 cor0
----
-25
-39
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT DISTINCT - col1 DIV 52 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT - col1 / 52 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + - col1 + ( - 80 ) AS col1 FROM tab0 AS cor0
----
-166
-171
-177
query I rowsort
SELECT DISTINCT + + col2 * - 98 - col2 FROM tab1 cor0
----
-5346
-5643
-9504
query I rowsort
SELECT - ( cor1.col0 ) + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col0 * ( - 89 ) FROM tab0 AS cor0
----
-2136
-3115
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT ALL col0 DIV 29 col0 FROM tab1 AS cor0
----
0
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-531
SELECT ALL col0 / 29 col0 FROM tab1 AS cor0
----
0
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-532
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-532
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-533
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * + col2 * - col1 AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * + col2 * - col1 AS col2 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-534
SELECT - - col1 + CAST( NULL AS SIGNED ) * 67 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-534
SELECT - - col1 + CAST ( NULL AS INTEGER ) * 67 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + 34 AS col0 FROM tab2 AS cor0
----
51
65
93
query I rowsort
SELECT + cor0.col1 * + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 95981a80d3d59cb4fd463f4a7ad46da1
query I rowsort
SELECT + 64 * - col0 + 98 + + 76 * col2 AS col2 FROM tab2 AS cor0
----
-2070
-2918
1702
query I rowsort
SELECT - - col2 * col1 + + ( col2 ) + col0 AS col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT ALL 31 * col0 + col2 DIV - 24 + + col2 AS col2 FROM tab1
----
145
2039
2572
skipif mysql # not compatible
query I rowsort label-540
SELECT ALL 31 * col0 + col2 / - 24 + + col2 AS col2 FROM tab1
----
145
2039
2572
query I rowsort
SELECT 54 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT ALL ( + 72 ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + col0 + col2 * - col2 * 52 AS col2 FROM tab2
----
-35074
-37901
-75009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 col1 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - cor0.col0 col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + - ( col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 * col0 - - ( + col0 + col0 ) FROM tab0 AS cor0
----
-2016
-3325
-7921
query I rowsort
SELECT ALL - col2 * col2 * - col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 + + col0 * + 77 AS col2 FROM tab2 cor0
----
546
6084
6162
query I rowsort
SELECT 15 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT col2 + col2 * col2 * + ( col1 ) FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT DISTINCT - + col2 * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - + cor0.col2 + col0 * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - col1 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col2 * - col2 - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
18432
5832
6498
query I rowsort
SELECT - cor0.col1 * - 28 + + col2 AS col0 FROM tab1 cor0
----
337
460
782
onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT DISTINCT col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-558
SELECT DISTINCT col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + col2 * 3 + col0 FROM tab2 cor0
----
156
193
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-560
SELECT - cor0.col1 + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-560
SELECT - cor0.col1 + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL - 33 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to a539377dccf415ca13c845420f532336
query I rowsort
SELECT DISTINCT col2 * - 94 FROM tab1
----
-5076
-5358
-9024
query I rowsort
SELECT ALL - 64 FROM tab0, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT ALL + ( tab0.col2 ) + 17 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8a22f72fd44667b0ad74be281a0f2224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-566
SELECT + CAST( - 37 AS SIGNED ) FROM tab2
----
-37
-37
-37
skipif mysql # not compatible
query I rowsort label-566
SELECT + CAST ( - 37 AS INTEGER ) FROM tab2
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + 91 * 19 FROM tab1
----
1729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + col0 * - tab2.col0 col2 FROM tab2
----
-6028
-6185
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab0 cor0
----
50
50
50
query I rowsort
SELECT - + 11 * - col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 61 * + col0 FROM tab1
----
183
3904
4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT DISTINCT + col0 DIV + col2 col1 FROM tab1
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + col0 / + col2 col1 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT 51 * col2 + col1 FROM tab0 AS cor0
----
148
1769
4273
query I rowsort
SELECT + - col0 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-577
SELECT DISTINCT + cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT + cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL + 50 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - ( col0 ) FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col2 - ( + 90 ) * col0 AS col2 FROM tab1
----
-324
-5817
-7296
query I rowsort
SELECT + col1 * 68 + col1 + - col2 AS col0 FROM tab0
----
5901
6197
6692
query I rowsort
SELECT DISTINCT - col0 + 39 AS col1 FROM tab2
----
-39
-40
32
query I rowsort
SELECT col1 + - 34 AS col2 FROM tab2
----
-17
-3
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT DISTINCT + col2 + - col1 DIV col0 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT + col2 + - col1 / col0 FROM tab0
----
-1
30
81
query I rowsort
SELECT ALL + - col0 + 27 * + col0 AS col2 FROM tab1 cor0
----
1664
2080
78
query I rowsort
SELECT DISTINCT - 60 + col1 * - col1 FROM tab2 AS cor0
----
-1021
-349
-3541
onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT DISTINCT col0 + + col2 DIV col0 col0 FROM tab2 cor0
----
10
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT col0 + + col2 / col0 col0 FROM tab2 cor0
----
10
78
79
query I rowsort
SELECT - + ( + col0 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 AS cor0
----
82
query I rowsort
SELECT - + 96 AS col2 FROM tab2 AS cor0
----
-96
-96
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 78 + + col2 col2 FROM tab2 cor0
----
-519
-6058
-6124
onlyif mysql # use DIV operator for integer division
query I rowsort label-592
SELECT ( 80 ) + - col1 * - 67 DIV 67 AS col0 FROM tab0 AS cor0
----
166
171
177
skipif mysql # not compatible
query I rowsort label-592
SELECT ( 80 ) + - col1 * - 67 / 67 AS col0 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT ALL + - 74 + + 22 * - col2 AS col2 FROM tab2 AS cor0
----
-646
-668
-910
query I rowsort
SELECT ALL - - 53 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
1650
3205
980
query I rowsort
SELECT ALL + + 1 + - col2 * + col2 FROM tab1 AS cor0
----
-2915
-3248
-9215
query I rowsort
SELECT col0 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + - ( 5 ) - col0 AS col2 FROM tab0 AS cor0
----
-29
-40
-94
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 17 AS col1 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT + col0 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + + 11 + - 91 FROM tab1 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT - ( + 19 ) * col2 - - 52 * 79 * col2 FROM tab0 AS cor0
----
134937
335298
4089
query I rowsort
SELECT ALL cor0.col2 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col1 * + ( + 91 ) FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT DISTINCT - col0 * - 43 + + 68 AS col2 FROM tab1 AS cor0
----
197
2820
3508
query I rowsort
SELECT - col0 * - ( col2 + + col2 * col1 ) AS col0 FROM tab0 AS cor0
----
3430
671416
68904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + tab1.col0 * + tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
-262144
-27
-512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT ALL 23 * col1 DIV col0 + ( col0 * - col1 ) FROM tab1
----
-1037
-637
121
skipif mysql # not compatible
query I rowsort label-610
SELECT ALL 23 * col1 / col0 + ( col0 * - col1 ) FROM tab1
----
-1037
-637
121
onlyif mysql # use DIV operator for integer division
query I rowsort label-611
SELECT + - 12 DIV col0 AS col2 FROM tab1 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-611
SELECT + - 12 / col0 AS col2 FROM tab1 AS cor0
----
-4
0
0
query I rowsort
SELECT col2 + - col1 * col2 + - tab2.col0 AS col2 FROM tab2
----
-1586
-687
-817
onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT + col1 DIV + 44 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-613
SELECT + col1 / + 44 FROM tab2
----
0
0
1
query I rowsort
SELECT DISTINCT - tab1.col0 + - 4 FROM tab1
----
-68
-7
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT ALL + + col1 * - col1 + + 35 DIV col2 AS col0 FROM tab0 AS cor0
----
-7395
-8281
-9374
skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + + col1 * - col1 + + 35 / col2 AS col0 FROM tab0 AS cor0
----
-7395
-8281
-9374
query I rowsort
SELECT ALL + col1 + col1 * + col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - col1 * cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * col0 col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - col0 * col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL + 55 DIV col0 col2 FROM tab2
----
0
0
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + 55 / col0 col2 FROM tab2
----
0
0
7
query I rowsort
SELECT - cor0.col2 * + ( col2 ) + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-2816
-2907
847
query I rowsort
SELECT col0 * col2 * cor0.col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-623
SELECT + - col0 * CAST( + 98 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
-240
-6215
-7744
skipif mysql # not compatible
query I rowsort label-623
SELECT + - col0 * CAST ( + 98 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
-240
-6215
-7744
query I rowsort
SELECT + - 50 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT col1 DIV + CAST( col2 * col2 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-625
SELECT col1 / + CAST ( col2 * col2 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 + - 48 AS col1 FROM tab0 AS cor0
----
-15
-47
34
query I rowsort
SELECT ALL col0 * 50 FROM tab0 AS cor0
----
1200
1750
4450
query I rowsort
SELECT DISTINCT - col2 * 9 * col2 FROM tab1 cor0
----
-26244
-29241
-82944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-629
SELECT + CAST( NULL AS SIGNED ) + 82 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-629
SELECT + CAST ( NULL AS INTEGER ) + 82 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col2 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT + 9 * + 81 AS col1 FROM tab2 AS cor0
----
729
729
729
query I rowsort
SELECT - + 78 * col1 FROM tab1 cor0
----
-1014
-2028
-780
query I rowsort
SELECT + + 87 * col2 * - col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
-576707
-87347
9322
query I rowsort
SELECT + 38 + cor0.col0 * - 73 AS col1 FROM tab0 AS cor0
----
-1714
-2517
-6459
query I rowsort
SELECT col0 * col2 - 34 FROM tab1 AS cor0
----
128
3614
7646
query I rowsort
SELECT ALL ( - ( col2 ) * - 9 ) + col2 FROM tab1
----
540
570
960
query I rowsort
SELECT + - col0 * 43 AS col1 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT ALL col0 * + cor0.col2 + - col1 AS col0 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col0 + 67 FROM tab1 AS cor0
----
-13
3
64
query I rowsort
SELECT cor0.col2 + 52 AS col1 FROM tab0 AS cor0
----
134
53
85
query I rowsort
SELECT ALL - 55 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
-4730
-5005
-5335
query I rowsort
SELECT ( - col0 ) * col1 * + ( - col2 ) + col0 AS col0 FROM tab1 AS cor0
----
36544
4215
99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-645
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + - col1 * - 61 + - ( + col2 ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + - col1 * - 61 + - ( + col2 ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 60 * col0 AS col1 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT 77 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
1038
3558
366
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT col1 * + cor0.col2 + col0 * + col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT DISTINCT - - col2 + col1 * 29 AS col0 FROM tab2 AS cor0
----
1737
531
926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col0 col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col1 * 97 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT ALL - col1 + 94 FROM tab1 AS cor0
----
68
81
84
query I rowsort
SELECT DISTINCT + + cor0.col2 - cor0.col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + + col2 * col0 + 52 FROM tab1 AS cor0
----
214
3700
7732
query I rowsort
SELECT DISTINCT tab2.col2 + col1 * + ( + col2 ) FROM tab2
----
1560
684
864
query I rowsort
SELECT 32 * col1 * - col2 FROM tab1
----
-18240
-39936
-44928
onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT + tab1.col0 - col1 DIV - col1 col0 FROM tab1
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-659
SELECT + tab1.col0 - col1 / - col1 col0 FROM tab1
----
4
65
81
query I rowsort
SELECT 39 + + col2 FROM tab0
----
121
40
72
query I rowsort
SELECT ALL 66 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT - cor0.col2 * - 81 + - col2 + - col1 DIV - CAST( + 45 AS SIGNED ) FROM tab0 AS cor0
----
2641
6562
82
skipif mysql # not compatible
query I rowsort label-662
SELECT - cor0.col2 * - 81 + - col2 + - col1 / - CAST ( + 45 AS INTEGER ) FROM tab0 AS cor0
----
2641
6562
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-663
SELECT DISTINCT cor0.col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT ALL - + col2 * + CAST( + col0 * + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
skipif mysql # not compatible
query I rowsort label-664
SELECT ALL - + col2 * + CAST ( + col0 * + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col0 * - 24 + - ( col2 ) FROM tab2 AS cor0
----
-1898
-1934
-195
query I rowsort
SELECT - - col2 * 93 FROM tab1 AS cor0
----
5022
5301
8928
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT DISTINCT col0 DIV - col1 + col2 * 63 col2 FROM tab2
----
1637
1701
2390
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT col0 / - col1 + col2 * 63 col2 FROM tab2
----
1637
1701
2390
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-669
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab0.col2 * + col2 - + ( col0 ) AS col2 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT + ( tab2.col1 * - col0 + col0 ) AS col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL + cor0.col2 + - 48 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 65fc95ba61752efb5338f7099218740e
query I rowsort
SELECT DISTINCT - col2 * ( - col2 * tab2.col2 ) AS col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT - col2 * col0 * - 55 - col0 AS col1 FROM tab1
----
200576
422320
8907
query I rowsort
SELECT - col0 + 89 * col2 FROM tab1 AS cor0
----
4803
5009
8464
query I rowsort
SELECT ALL col0 * 69 * - col1 AS col0 FROM tab2
----
-14973
-317538
-92667
query I rowsort
SELECT ALL + + col2 + + cor0.col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * cor0.col0 col0 FROM tab0 cor0
----
1272
1855
4717
query I rowsort
SELECT DISTINCT col2 * ( tab2.col0 ) + - col2 + col1 * + col1 FROM tab2
----
1123
3253
5483
query I rowsort
SELECT 99 + col0 * col2 AS col2 FROM tab1
----
261
3747
7779
query I rowsort
SELECT 9 * col1 AS col2 FROM tab0
----
774
819
873
query I rowsort
SELECT + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - cor0.col2 * col2 + + 15 FROM tab0 AS cor0
----
1104
16
6739
onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT + col1 * col2 * + col0 + - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5856
skipif mysql # not compatible
query I rowsort label-684
SELECT + col1 * col2 * + col0 + - col2 / col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5856
query I rowsort
SELECT ALL - 80 + - 14 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT tab0.col0 DIV + 35 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif mysql # not compatible
query I rowsort label-686
SELECT tab0.col0 / + 35 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
query I rowsort
SELECT - col1 + + col0 * col2 + - 83 AS col0 FROM tab2 AS cor0
----
1886
2902
75
query I rowsort
SELECT + ( col0 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - + 87 + col1 * - col2 AS col2 FROM tab2 cor0
----
-1621
-733
-924
query I rowsort
SELECT DISTINCT + - 97 + col0 AS col2 FROM tab2 AS cor0
----
-18
-19
-90
query I rowsort
SELECT ALL - + col2 * cor0.col2 * col1 + - col0 AS col0 FROM tab2 cor0
----
-22606
-24627
-39962
query I rowsort
SELECT DISTINCT + 1 FROM tab0, tab1, tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab2, tab1 AS cor0
----
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT DISTINCT - col0 * col2 + col1 DIV - col0 FROM tab2 AS cor0
----
-193
-2028
-3002
skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - col0 * col2 + col1 / - col0 FROM tab2 AS cor0
----
-193
-2028
-3002
query I rowsort
SELECT ( 33 ) * col0 AS col1 FROM tab0 AS cor0
----
1155
2937
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 94 col2 FROM tab1 AS cor0
----
-68
-81
-84
query I rowsort
SELECT - - col2 * + col0 + + col1 + ( col0 ) * + cor0.col1 FROM tab1 AS cor0
----
266
4298
8733
query I rowsort
SELECT + + ( col2 ) * + 67 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT - + 79 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-20
-48
-62
query I rowsort
SELECT + 45 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * col2 col1 FROM tab2
----
52
54
76
query I rowsort
SELECT tab0.col1 * + 5 * - col0 FROM tab0
----
-10320
-16975
-40495
query I rowsort
SELECT ALL 63 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - cor0.col2 * - col2 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
17517
19652
54855
query I rowsort
SELECT col1 * - 15 AS col2 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT ALL col2 * 90 * + col0 AS col1 FROM tab2 AS cor0
----
17010
182520
270180
onlyif mysql # use DIV operator for integer division
query I rowsort label-707
SELECT DISTINCT - + col0 DIV cor0.col0 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - + col0 / cor0.col0 FROM tab2 cor0
----
-1
query I rowsort
SELECT + - col1 * + 77 AS col1 FROM tab1 cor0
----
-1001
-2002
-770
query I rowsort
SELECT - - cor0.col0 + ( + cor0.col0 ) + col0 * 65 AS col0 FROM tab2 AS cor0
----
469
5226
5293
query I rowsort
SELECT - col0 * + col2 * - col2 - - col0 * + col2 FROM tab0 AS cor0
----
26928
605734
70
query I rowsort
SELECT DISTINCT - + col0 * + col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 * + ( col1 ) + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT ALL + - col2 DIV ( + col1 * + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-713
SELECT ALL + - col2 / ( + col1 * + col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-714
SELECT DISTINCT - cor0.col2 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - cor0.col2 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-715
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) * col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-715
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) * col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - - 57 * - col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT + col2 * + col0 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT + col1 - CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-718
SELECT + col1 - CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col2 - - col2 * - col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL col2 + tab0.col2 * ( col1 ) FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - col0 + ( + col0 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL ( 76 ) FROM tab2, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col2 * - col1 - 57 AS col0 FROM tab2 cor0
----
1477
589
780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( + col0 ) ) col2 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * col0 + - col2 col2 FROM tab2 cor0
----
43
752
754
query I rowsort
SELECT - col0 * ( - cor0.col1 ) - 19 FROM tab0 AS cor0
----
2045
3376
8080
query I rowsort
SELECT + 24 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + - 20 * col2 FROM tab2 AS cor0
----
-520
-540
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT col0 DIV 70 AS col0 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-730
SELECT col0 / 70 AS col0 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT tab2.col1 - 33 * col2 AS col2 FROM tab2
----
-1237
-799
-860
query I rowsort
SELECT + + col0 * col1 + - col1 * - col1 * - col1 FROM tab1 cor0
----
-1157
-17498
-360
query I rowsort
SELECT - ( - cor0.col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT DISTINCT cor0.col1 * 24 FROM tab0 AS cor0
----
2064
2184
2328
onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT - + cor0.col1 DIV + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-736
SELECT - + cor0.col1 / + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 21 * col2 AS col1 FROM tab2
----
-546
-567
-798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab0
----
10
10
10
query I rowsort
SELECT ALL + ( col2 * - col0 + tab0.col1 ) AS col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col1 + 10 FROM tab1
----
20
23
36
query I rowsort
SELECT cor0.col1 * cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT CAST( + 23 * + col2 AS SIGNED ) + col2 DIV + col2 FROM tab0
----
1887
24
760
skipif mysql # not compatible
query I rowsort label-742
SELECT CAST ( + 23 * + col2 AS INTEGER ) + col2 / + col2 FROM tab0
----
1887
24
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 74 col0 FROM tab1
----
3996
4218
7104
query I rowsort
SELECT DISTINCT + 68 FROM tab2, tab1, tab1 AS cor0
----
68
query I rowsort
SELECT - col1 * 12 - col1 FROM tab2
----
-221
-403
-767
query I rowsort
SELECT ALL tab1.col2 + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b
onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT ( + tab1.col1 ) + 15 DIV + col0 AS col2 FROM tab1
----
10
13
31
skipif mysql # not compatible
query I rowsort label-747
SELECT ( + tab1.col1 ) + 15 / + col0 AS col2 FROM tab1
----
10
13
31
query I rowsort
SELECT - 90 + tab0.col0 AS col2 FROM tab0
----
-1
-55
-66
query I rowsort
SELECT - col1 * col0 - - col0 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + + ( + 65 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT + ( col0 ) * 71 FROM tab2
----
497
5538
5609
query I rowsort
SELECT - 95 * col0 FROM tab0 cor0
----
-2280
-3325
-8455
query I rowsort
SELECT ALL + ( col1 ) * col2 + + ( + col1 * 21 ) FROM tab1 AS cor0
----
1521
1950
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-754
SELECT + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-754
SELECT + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * + col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-757
SELECT DISTINCT - 42 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT - 42 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT + 15 DIV col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-758
SELECT + 15 / col1 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL ( - cor0.col2 ) + + ( 12 ) AS col2 FROM tab0 AS cor0
----
-21
-70
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT col2 * - col2 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-761
SELECT col2 * - col2 / col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT - col0 DIV 83 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-762
SELECT - col0 / 83 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT - cor0.col2 * CAST( col0 AS SIGNED ) + col0 + + col2 FROM tab1 cor0
----
-105
-3527
-7504
skipif mysql # not compatible
query I rowsort label-763
SELECT - cor0.col2 * CAST ( col0 AS INTEGER ) + col0 + + col2 FROM tab1 cor0
----
-105
-3527
-7504
query I rowsort
SELECT ALL tab2.col0 + + 64 * col2 AS col0 FROM tab2
----
1735
1742
2511
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( - col0 AS REAL ) + col1 / + col0 FROM tab0 AS cor0
----
-2061
-3393
-8098
query I rowsort
SELECT - col1 + - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + + col0 * col0 + + col2 * - col0 col2 FROM tab1
----
-1200
-150
512
query I rowsort
SELECT ALL + + ( 77 ) + col0 FROM tab1 AS cor0
----
141
157
80
query I rowsort
SELECT DISTINCT 91 * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1626
2828
5447
query I rowsort
SELECT - col0 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL - 34 * col1 + col0 * - 28 AS col2 FROM tab1 cor0
----
-2132
-2682
-968
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT DISTINCT - col0 DIV - col0 - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - col0 / - col0 - col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT DISTINCT col2 DIV 60 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT col2 / 60 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + + col0 col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT - cor0.col2 + + col2 * col1 DIV + ( + 62 ) AS col0 FROM tab2 AS cor0
----
-14
-2
-28
skipif mysql # not compatible
query I rowsort label-776
SELECT - cor0.col2 + + col2 * col1 / + ( + 62 ) AS col0 FROM tab2 AS cor0
----
-14
-2
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT ALL + col1 + + col0 DIV cor0.col0 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + col1 + + col0 / cor0.col0 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT + 80 + + col2 * - col0 FROM tab1 AS cor0
----
-3568
-7600
-82
query I rowsort
SELECT DISTINCT + 29 + + 6 AS col1 FROM tab2 AS cor0
----
35
query I rowsort
SELECT ALL - col2 + 43 * + col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT - col0 - - 7 FROM tab1 AS cor0
----
-57
-73
4
query I rowsort
SELECT - ( col1 ) * + col1 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT ( 47 ) * col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT + - ( 87 ) + col1 AS col1 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT ALL + - cor0.col0 * - col2 + + col1 * col2 * - cor0.col0 FROM tab1 AS cor0
----
-32832
-4050
-92160
query I rowsort
SELECT DISTINCT - ( - 89 ) * + col1 * col1 - col2 AS col0 FROM tab1 AS cor0
----
14945
60110
8843
query I rowsort
SELECT ALL - ( - col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT ( + 11 ) DIV - col2 - - cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-788
SELECT ( + 11 ) / - col2 - - cor0.col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT - ( ( - col0 ) ) + col0 DIV 83 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-790
SELECT - ( ( - col0 ) ) + col0 / 83 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + 4 FROM tab1 AS cor0
----
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - col2 * col2 col0 FROM tab1 AS cor0
----
276480
87480
97470
query I rowsort
SELECT + + ( + col1 ) * col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - 88 * - col2 + - 42 AS col2 FROM tab2 AS cor0
----
2246
2334
3302
query I rowsort
SELECT - 5 * cor0.col0 + + 85 FROM tab1 AS cor0
----
-235
-315
70
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 * + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
106018
1512
358878
query I rowsort
SELECT ALL - - col2 * col2 + 20 FROM tab2 cor0
----
1464
696
749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-798
SELECT + cor0.col0 / col2 + + CAST( NULL AS SIGNED ) * 64 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-798
SELECT + cor0.col0 / col2 + + CAST ( NULL AS INTEGER ) * 64 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab2.col0 + 93 FROM tab2
----
100
171
172
query I rowsort
SELECT ALL - col1 * col1 + + col1 - - col1 * col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col0 * + col2 + - ( col0 ) FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT - col1 * 11 AS col2 FROM tab1 AS cor0
----
-110
-143
-286
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 82 * col2 col0 FROM tab2
----
-2106
-2187
-3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 - + 51 * + ( tab2.col2 ) col0 FROM tab2
----
-1248
-1370
-1859
query I rowsort
SELECT - col2 * 5 + + col2 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT - col0 + - ( 87 ) * - col2 * col1 + - col1 AS col1 FROM tab0
----
246796
649014
8307
query I rowsort
SELECT ALL cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - tab0.col1 * - 55 AS col0 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT ALL 35 + + col2 FROM tab2
----
61
62
73
query I rowsort
SELECT DISTINCT + - 9 + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-6
55
71
query I rowsort
SELECT - cor0.col1 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT 16 + col2 * col0 FROM tab0 cor0
----
51
7314
808
query I rowsort
SELECT + col0 + + col1 + + 90 AS col0 FROM tab0 AS cor0
----
200
222
270
query I rowsort
SELECT DISTINCT 1 * - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-815
SELECT ALL - tab1.col2 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - tab1.col2 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 76 + - col0 * - col2 * - ( - col0 ) FROM tab0 AS cor0
----
1301
21516
655754
query I rowsort
SELECT ALL - col2 * - 96 FROM tab0
----
3168
7872
96
query I rowsort
SELECT col2 * + col1 - - col1 * col1 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT col2 * + cor0.col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT 46 + col1 * col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-820
SELECT 46 + col1 * col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * 41 AS col0 FROM tab2 AS cor0
----
-1066
-1107
-1558
query I rowsort
SELECT ALL ( 31 ) FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT - - 81 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2835
-3168
-9135
query I rowsort
SELECT + 61 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT DISTINCT - - 71 * col1 * - col0 FROM tab2 AS cor0
----
-15407
-326742
-95353
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 - col0 col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - - col0 * + col2 + col0 AS col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + 59 * col1 * cor0.col1 FROM tab2 AS cor0
----
17051
205379
56699
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-829
SELECT + ( col0 ) - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-829
SELECT + ( col0 ) - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 47 * col1 ) FROM tab0
----
4042
4277
4559
query I rowsort
SELECT ALL ( + 82 ) AS col2 FROM tab0
----
82
82
82
query I rowsort
SELECT - + 86 * col1 FROM tab2 AS cor0
----
-1462
-2666
-5074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - 24 - col0 * + 64 FROM tab0
----
-1560
-2264
-5720
query I rowsort
SELECT + - ( - cor0.col2 ) * 42 AS col1 FROM tab1 AS cor0
----
2268
2394
4032
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab0 cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
query I rowsort
SELECT + 50 * col0 * + 39 AS col2 FROM tab2 cor0
----
13650
152100
154050
onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT DISTINCT - col2 DIV - col1 - - col0 AS col2 FROM tab2 cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - col2 / - col1 - - col0 AS col2 FROM tab2 cor0
----
7
78
81
query I rowsort
SELECT - + cor0.col2 + 26 FROM tab2 AS cor0
----
-1
-12
0
query I rowsort
SELECT ALL - + cor0.col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - - col2 + + 36 FROM tab2 cor0
----
62
63
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT ALL + col0 + + col0 * + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + col0 + + col0 * + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 + - tab2.col0 * - col0 AS col2 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT col2 DIV + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-844
SELECT col2 / + col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 65 + + col2 AS col0 FROM tab0 AS cor0
----
147
66
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-846
SELECT - col0 * + col0 * + col1 + - ( + 59 ) DIV - col0 FROM tab1 AS cor0
----
-215
-40960
-83200
skipif mysql # not compatible
query I rowsort label-846
SELECT - col0 * + col0 * + col1 + - ( + 59 ) / - col0 FROM tab1 AS cor0
----
-215
-40960
-83200
query I rowsort
SELECT - col0 * + 62 * + tab2.col1 AS col2 FROM tab2
----
-13454
-285324
-83266
query I rowsort
SELECT ALL + ( - 38 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT ( 55 + - col0 ) FROM tab1
----
-25
-9
52
query I rowsort
SELECT - col2 * col2 + + col1 * col2 FROM tab2
----
-798
108
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT + col1 DIV + col0 - col2 * - col1 FROM tab0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-851
SELECT + col1 / + col0 - col2 * - col1 FROM tab0
----
2841
7463
99
query III rowsort
SELECT * FROM tab2 WHERE NOT ( tab2.col0 ) NOT IN ( tab2.col1 )
----
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 AS col1 FROM tab0
----
-7209
-768
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > + col2
----
query I rowsort
SELECT col2 - + tab1.col2 * + col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 + col2 * - tab2.col0 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL col0 - - col0 * col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - col2 * - col0 + tab1.col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT tab2.col0 * - col0 * + col2 AS col2 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT col2 + col1 * + col2 * col1 AS col0 FROM tab2
----
11020
25974
90532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * col2 col2 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col1 AS col1 FROM tab2
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-864
SELECT DISTINCT col1 DIV col2 + - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT col1 / col2 + - col2 FROM tab1
----
-54
-57
-96
query III rowsort
SELECT * FROM tab0 WHERE + col1 + col2 < NULL
----
query I rowsort
SELECT col1 / + col0 + col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - col2 + - col0 )
----
query I rowsort
SELECT DISTINCT col1 * col1 * - col1 AS col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT col2 * col2 * + col2 + col0 AS col1 FROM tab2
----
17654
19690
54951
query I rowsort
SELECT ALL col0 * col2 * col1 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col2 * + tab2.col1 + + col2 AS col0 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT + col0 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-871
SELECT + col0 / - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 - col0 * col2 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 )
----
query I rowsort
SELECT - col0 * + col1 * col2 + - col2 * col1 AS col2 FROM tab2
----
-121186
-51680
-6696
query I rowsort
SELECT - col1 * + col0 - + col1 AS col0 FROM tab1
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * + tab2.col2 col1 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT ALL - tab2.col0 DIV tab2.col0 AS col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - tab2.col0 / tab2.col0 AS col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT + col1 + - col0 + col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col1 + + col1 + col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 * - ( ( cor0.col1 ) ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col0 * col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT - cor0.col1 * + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to fa6e0440bf574b7f858edf1fea913f26
query I rowsort
SELECT ALL + col2 + - 32 AS col0 FROM tab2 cor0
----
-5
-6
6
query I rowsort
SELECT ALL - - 38 + col2 AS col2 FROM tab0 AS cor0
----
120
39
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 99 col2 FROM tab2 cor0
----
2574
2673
3762
onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT - - col2 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-887
SELECT - - col2 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT DISTINCT 32 * 43 FROM tab2
----
1376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-889
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ( col1 ) * col2 + col1 DIV + col0 - col1 FROM tab0 AS cor0
----
2
2755
7372
skipif mysql # not compatible
query I rowsort label-890
SELECT ( col1 ) * col2 + col1 / + col0 - col1 FROM tab0 AS cor0
----
2
2755
7372
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
query I rowsort
SELECT DISTINCT col2 * + 25 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1250
1401
9971
query I rowsort
SELECT - col0 * - col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT - col2 + 29 * col0 FROM tab0 AS cor0
----
1014
2499
663
query I rowsort
SELECT DISTINCT - 1 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL 68 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT DISTINCT - 21 * col2 * - 36 + - col1 FROM tab1 AS cor0
----
40798
43082
72563
query I rowsort
SELECT 22 * + col1 AS col2 FROM tab0 cor0
----
1892
2002
2134
query I rowsort
SELECT + - 69 * + col1 * - ( col0 ) + col1 * - col0 AS col1 FROM tab1 AS cor0
----
43520
5304
70720
onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT DISTINCT + - cor0.col0 DIV col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + - cor0.col0 / col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT 63 FROM tab2 cor0
----
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-902
SELECT DISTINCT + cor0.col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT + cor0.col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * - col0 + col2 * + col2 - col1 AS col0 FROM tab0 cor0
----
-1288
-1321
427
query I rowsort
SELECT ALL - - 81 + - 1 FROM tab0, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL col2 * 25 FROM tab2 cor0
----
650
675
950
query I rowsort
SELECT ALL col1 + - 32 + col1 FROM tab2 AS cor0
----
2
30
86
query I rowsort
SELECT DISTINCT + - col0 - + 67 AS col2 FROM tab1 AS cor0
----
-131
-147
-70
query I rowsort
SELECT + cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - - col1 + + col0 * 5 AS col1 FROM tab2 cor0
----
412
449
66
query I rowsort
SELECT - - col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT ALL - - col1 + - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - - col1 + - col0 / + col2 AS col1 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT + 7 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT - 96 DIV col0 FROM tab1
----
-1
-1
-32
skipif mysql # not compatible
query I rowsort label-914
SELECT - 96 / col0 FROM tab1
----
-1
-1
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 95 ) col1 FROM tab1
----
95
95
95
query I rowsort
SELECT DISTINCT - col1 + 66 * - tab0.col1 FROM tab0
----
-5762
-6097
-6499
query I rowsort
SELECT 92 + + col0 * col2 + - tab0.col2 FROM tab0
----
126
7308
851
query I rowsort
SELECT - 24 * col2 FROM tab1
----
-1296
-1368
-2304
query I rowsort
SELECT + col2 + - 31 * col0 FROM tab0
----
-1084
-2677
-711
query I rowsort
SELECT ( + col1 * col1 ) AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - ( col2 + - tab1.col0 ) FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * + col2 col1 FROM tab0 AS cor0
----
3234
8036
98
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - cor0.col1 ) AND NULL
----
query I rowsort
SELECT ALL + + 83 * - col0 FROM tab1 cor0
----
-249
-5312
-6640
query I rowsort
SELECT - ( - col0 ) * - col0 - + col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ( - tab2.col0 ) + - tab2.col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + ( col1 * col0 ) AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT - 62 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col1 FROM tab2
----
84
query I rowsort
SELECT ALL 41 * + col0 * 88 AS col2 FROM tab1
----
10824
230912
288640
query I rowsort
SELECT 1 + + col1 FROM tab2
----
18
32
60
query I rowsort
SELECT + col1 + col1 * col2 AS col0 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + - col2 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + - col1 * col0 + + col0 + - 74 AS col0 FROM tab2 AS cor0
----
-1338
-284
-4598
query I rowsort
SELECT + col1 + + 71 * col2 AS col2 FROM tab1 AS cor0
----
3860
4057
6829
query I rowsort
SELECT ALL + col1 + ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-938
SELECT col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-938
SELECT col0 + + 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-939
SELECT - + cor0.col2 DIV ( col0 ) FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-939
SELECT - + cor0.col2 / ( col0 ) FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT ALL + col2 * + col0 + - col2 DIV col0 FROM tab0 AS cor0
----
35
7298
791
skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + col2 * + col0 + - col2 / col0 FROM tab0 AS cor0
----
35
7298
791
query I rowsort
SELECT DISTINCT col2 + col2 * + tab2.col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT + tab1.col0 + col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + tab0.col2 + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + cor0.col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 + col2 * col0 FROM tab2 AS cor0 WHERE NULL < NULL OR NOT ( col0 * - col0 + - col1 ) <= + col2
----
query I rowsort
SELECT ALL + col0 * - col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col0 col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + 23 * + col1 + col1 FROM tab1 AS cor0
----
240
312
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT + col0 DIV cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-951
SELECT + col0 / cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1088
-6723
0
query I rowsort
SELECT + 83 * col0 FROM tab0
----
1992
2905
7387
query I rowsort
SELECT + col0 * cor0.col1 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT ( col1 ) * cor0.col1 - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - col2 * - col2 + + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-956
SELECT tab2.col1 + col2 * CAST( NULL AS SIGNED ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-956
SELECT tab2.col1 + col2 * CAST ( NULL AS INTEGER ) + + 48 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - col1 + + 50 AS col1 FROM tab0
----
-7346
-8231
-9359
query I rowsort
SELECT - 11 + col1 AS col1 FROM tab0 AS cor0
----
75
80
86
query I rowsort
SELECT ALL 96 + - col0 AS col2 FROM tab0 cor0
----
61
7
72
query I rowsort
SELECT ALL col0 - + col2 FROM tab0 cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-961
SELECT col1 DIV - 33 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-961
SELECT col1 / - 33 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT + + col0 DIV + col0 + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-66
-79
skipif mysql # not compatible
query I rowsort label-962
SELECT + + col0 / + col0 + - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-66
-79
query I rowsort
SELECT DISTINCT - col2 * + 4 + - col0 FROM tab0 AS cor0
----
-156
-39
-417
query I rowsort
SELECT DISTINCT - col2 * - 9 + - col1 + - col2 FROM tab2 AS cor0
----
149
185
287
query I rowsort
SELECT - - col2 - 3 * - 6 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT ALL - col2 + - col0 * ( col0 ) AS col2 FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT + col2 * ( + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-968
SELECT + col1 + CAST( ( - col1 ) AS SIGNED ) * 10 FROM tab1 AS cor0
----
-117
-234
-90
skipif mysql # not compatible
query I rowsort label-968
SELECT + col1 + CAST ( ( - col1 ) AS INTEGER ) * 10 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT DISTINCT + - col1 + + cor0.col0 + - ( col2 * - col0 ) AS col2 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT DISTINCT col2 * col2 * + tab1.col0 - - tab1.col0 FROM tab1
----
208000
737360
8751
query I rowsort
SELECT ALL + tab1.col0 * col1 - col2 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT DISTINCT col2 DIV - col1 + col1 * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT col2 / - col1 + col1 * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col1 * + col0 col1 FROM tab1 AS cor0
----
-13507
-2002
-6390
query I rowsort
SELECT - col0 - col2 * - tab0.col1 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT ALL cor0.col0 DIV - 40 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-975
SELECT ALL cor0.col0 / - 40 FROM tab2 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT ALL + ( 67 ) * col2 + - col1 DIV 90 AS col0 FROM tab2 AS cor0
----
1742
1809
2546
skipif mysql # not compatible
query I rowsort label-976
SELECT ALL + ( 67 ) * col2 + - col1 / 90 AS col0 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT DISTINCT - + col2 * - 51 - + col0 FROM tab2 AS cor0
----
1248
1370
1859
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + - 88 - - col1 FROM tab1 cor0
----
-62
-75
-78
query I rowsort
SELECT ALL ( ( col0 ) ) + 1 AS col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * col2 - 88 * + 16 col1 FROM tab2 AS cor0
----
-571
-762
126
query I rowsort
SELECT - + 29 * col0 AS col0 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT DISTINCT + 82 + - cor0.col0 * - col0 AS col2 FROM tab0 cor0
----
1307
658
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 13 ) col1 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT col2 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-987
SELECT DISTINCT col1 * + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT col1 * + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + - ( + col2 ) + ( - cor0.col0 ) FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 + col1 col0 FROM tab0 cor0
----
118
123
129
query I rowsort
SELECT + cor1.col1 + - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 74 + + col0 FROM tab2 AS cor0
----
-67
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + col1 col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - - col2 * - col0 + + ( 45 ) - col0 FROM tab0 AS cor0
----
-25
-7342
-771
query I rowsort
SELECT + ( cor0.col0 ) AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT 16 FROM tab0, tab1, tab0 cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT tab1.col2 + 50 * + col1 AS col0 FROM tab1
----
1354
557
746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - 28 * col2 AS col0 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT ALL - 94 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT ALL 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - tab0.col0 * - 79 + + col1 FROM tab0
----
1982
2862
7122
onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT DISTINCT col1 DIV + col2 + col0 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT col1 / + col2 + col0 FROM tab0
----
132
26
90
query I rowsort
SELECT DISTINCT + col1 - - col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col2 * - ( + 94 ) - col2 AS col0 FROM tab1 cor0
----
5022
5301
8928
query I rowsort
SELECT ALL - cor0.col1 * col2 + + 33 * col1 AS col2 FROM tab0 AS cor0
----
-4459
0
3104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT ALL + ( - col2 ) + col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col0 col2 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT ALL - ( - 36 ) + col1 DIV col0 FROM tab1 AS cor0
----
36
36
44
skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL - ( - 36 ) + col1 / col0 FROM tab1 AS cor0
----
36
36
44
query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2, tab1 AS cor0
----
84
query I rowsort
SELECT ALL + 46 * + col2 FROM tab1
----
2484
2622
4416
query I rowsort
SELECT ALL 43 * col2 + col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT ALL - col2 + 77 * col2 FROM tab0 cor0
----
2508
6232
76
query I rowsort
SELECT + + ( - col1 ) + - cor0.col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col2 + 60 FROM tab1 AS cor0
----
-36
3
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1019
SELECT ALL - col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - col0 + - ( - cor0.col2 * col2 + 63 * cor0.col1 ) AS col0 FROM tab2 cor0
----
-1231
-3119
294
query I rowsort
SELECT - + col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + col2 * - col1 FROM tab0 cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - - col2 * col2 + - 26 AS col0 FROM tab1 AS cor0
----
2890
3223
9190
query I rowsort
SELECT + + col2 * col2 + 81 AS col1 FROM tab1 AS cor0
----
2997
3330
9297
query I rowsort
SELECT - + cor0.col2 * - col0 + + 49 AS col0 FROM tab2 AS cor0
----
2077
238
3051
query I rowsort
SELECT DISTINCT col0 * col0 + - col0 * ( + tab0.col0 ) + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - + ( - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT 56 * col2 * ( col2 * col0 + - col2 ) FROM tab1 AS cor0
----
11462472
326592
40771584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 * col2 col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + - cor0.col0 + + col1 * col2 * col0 FROM tab1 AS cor0
----
36416
4209
99760
query I rowsort
SELECT col0 * tab1.col1 * tab1.col2 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + col0 + - ( col1 ) FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT ALL + col2 * col2 + - col1 DIV + col2 AS col0 FROM tab0
----
-96
1087
6723
skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + col2 * col2 + - col1 / + col2 AS col0 FROM tab0
----
-96
1087
6723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 36 * col2 col0 FROM tab0
----
-1155
-2870
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT + - col2 DIV - 62 + - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7299
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1037
SELECT + - col2 / - 62 + - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7299
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1038
SELECT + col1 DIV - 56 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1038
SELECT + col1 / - 56 FROM tab1
----
0
0
0
query I rowsort
SELECT - 86 * - col1 * col0 FROM tab2
----
115498
18662
395772
query I rowsort
SELECT ( 72 ) + + col0 FROM tab0 AS cor0
----
107
161
96
query I rowsort
SELECT ALL cor0.col0 - 80 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to aa956d0fcc660c9147c8b85f2f723d65
query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab0, tab0 AS cor0
----
44
query I rowsort
SELECT DISTINCT 63 * cor0.col0 FROM tab0, tab2 cor0
----
441
4914
4977
query I rowsort
SELECT + 11 + col1 + + cor0.col0 FROM tab2 AS cor0
----
107
148
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 * + col2 - + cor0.col1 col0 FROM tab0 AS cor0
----
-147
-1736
-4191
query I rowsort
SELECT - 77 + - col0 * - col0 + + col1 FROM tab1 AS cor0
----
-42
4029
6336
query I rowsort
SELECT col2 * col2 + col0 - col2 FROM tab1 AS cor0
----
2865
3256
9200
query I rowsort
SELECT + 48 + col2 + col0 AS col0 FROM tab1 AS cor0
----
105
169
224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col1 + col0 * - col2 ) col2 FROM tab1
----
-3581
-7571
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT DISTINCT col0 DIV - tab0.col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT col0 / - tab0.col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL - col0 - + ( col0 ) FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT + 53 + ( col2 ) * - col0 FROM tab1 cor0
----
-109
-3595
-7627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1053
SELECT - CAST( NULL AS DECIMAL ) / - 13 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1053
SELECT - CAST ( NULL AS REAL ) / - 13 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col1 + col2 * - ( + 70 ) col2 FROM tab0 AS cor0
----
-14021
-9479
-9706
query I rowsort
SELECT + + 97 * cor0.col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT tab1.col0 + col2 * + tab1.col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT + - 13 FROM tab0 cor0
----
-13
-13
-13
query I rowsort
SELECT ALL + + ( 22 ) AS col0 FROM tab2 cor0
----
22
22
22
query I rowsort
SELECT 80 * + 38 FROM tab0 AS cor0
----
3040
3040
3040
query I rowsort
SELECT + - 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) + col0 col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col1 * cor0.col2 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL - + ( + ( col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT - + col0 * cor0.col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-12
-6
-87
skipif mysql # not compatible
query I rowsort label-1064
SELECT - + col0 * cor0.col0 / col1 AS col2 FROM tab0 AS cor0
----
-12
-6
-87
query I rowsort
SELECT DISTINCT + col0 * 75 AS col1 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT + 39 * cor0.col0 + + col1 FROM tab1 AS cor0
----
143
2506
3133
query I rowsort
SELECT - ( col1 ) + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT 47 * + col0 + + tab2.col1 AS col1 FROM tab2
----
360
3725
3730
query I rowsort
SELECT + 4 + + col0 + + 11 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT ALL ( - col2 ) * + 76 AS col0 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT DISTINCT + col0 * - col2 * 51 AS col2 FROM tab2 AS cor0
----
-103428
-153102
-9639
query I rowsort
SELECT + col2 + + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + cor0.col0 + col0 * + 25 + col2 FROM tab1 AS cor0
----
132
1721
2176
query I rowsort
SELECT DISTINCT - 22 * col1 FROM tab2 AS cor0
----
-1298
-374
-682
onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT DISTINCT - col1 DIV col2 - col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - col1 / col2 - col1 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT - + col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1077
SELECT ALL col1 + - CAST( NULL AS SIGNED ) + - col1 * - col2 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-1077
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) + - col1 * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1078
SELECT DISTINCT col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col2 * 5 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-14554
-16235
-46067
query I rowsort
SELECT ALL - ( 72 ) FROM tab1, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT col2 + - ( + col0 ) DIV col2 col0 FROM tab0 AS cor0
----
-34
33
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1081
SELECT col2 + - ( + col0 ) / col2 col0 FROM tab0 AS cor0
----
-34
33
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1082
SELECT col2 * 82 + + col0 * - col0 * + 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-1082
SELECT col2 * 82 + + col0 * - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - col1 + - cor0.col1 - + cor0.col2 FROM tab1 cor0
----
-106
-122
-77
query I rowsort
SELECT + col0 * + 81 AS col1 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT - col2 + + 17 FROM tab0 cor0
----
-16
-65
16
query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col0 + - CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 5 col2 FROM tab1 AS cor0
----
-15
-320
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT DISTINCT - col1 * CAST( 30 AS SIGNED ) + - col1 - - 26 col2 FROM tab2 AS cor0
----
-1803
-501
-935
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - col1 * CAST ( 30 AS INTEGER ) + - col1 - - 26 col2 FROM tab2 AS cor0
----
-1803
-501
-935
query I rowsort
SELECT DISTINCT - col2 * - 52 + 21 FROM tab1 AS cor0
----
2829
2985
5013
query I rowsort
SELECT DISTINCT - col0 - + col2 AS col1 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT + - col2 * - col1 + - 28 FROM tab0 AS cor0
----
2810
69
7434
query I rowsort
SELECT + 35 * - tab1.col1 FROM tab1
----
-350
-455
-910
query I rowsort
SELECT + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1096
SELECT col0 DIV col0 + + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
105
1054
651
skipif mysql # not compatible
query I rowsort label-1096
SELECT col0 / col0 + + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
105
1054
651
query I rowsort
SELECT ALL - 47 * col2 AS col1 FROM tab1 AS cor0
----
-2538
-2679
-4512
query I rowsort
SELECT col0 + + col1 * + ( - col1 + - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-1129
-676
-751
onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT - - col1 + col1 + 82 DIV - cor0.col0 FROM tab0 cor0
----
169
182
192
skipif mysql # not compatible
query I rowsort label-1099
SELECT - - col1 + col1 + 82 / - cor0.col0 FROM tab0 cor0
----
169
182
192
query I rowsort
SELECT DISTINCT - 74 + + col0 FROM tab0
----
-39
-50
15
query I rowsort
SELECT 33 + + col0 FROM tab2
----
111
112
40
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1103
SELECT DISTINCT + tab2.col1 * col0 + - CAST( NULL AS SIGNED ) / + col1 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + tab2.col1 * col0 + - CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 47 + + col2 FROM tab1
----
101
104
143
query I rowsort
SELECT ALL + cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 + col2 + + col2 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
54
57
96
query I rowsort
SELECT + 62 * - cor0.col0 FROM tab2 cor0
----
-434
-4836
-4898
query I rowsort
SELECT ALL - - cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT cor0.col1 + - 63 FROM tab1 AS cor0
----
-37
-50
-53
query I rowsort
SELECT DISTINCT + + 46 + col2 AS col2 FROM tab2 AS cor0
----
72
73
84
query I rowsort
SELECT ALL + - col0 * 38 AS col0 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT - 42 * col1 + col2 AS col1 FROM tab2 cor0
----
-1275
-2452
-676
query I rowsort
SELECT - + cor0.col2 * col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( col1 ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - 47 * + col2 * 5 FROM tab1 AS cor0
----
-12690
-13395
-22560
onlyif mysql # use DIV operator for integer division
query I rowsort label-1118
SELECT - - col0 DIV + col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1118
SELECT - - col0 / + col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT cor0.col0 + 85 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec19353e862db9a26748615f80fabe55
query I rowsort
SELECT + + cor0.col1 + - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 + + col0 * + 50 FROM tab2 AS cor0
----
377
3926
3988
query I rowsort
SELECT DISTINCT + + col0 + + 29 FROM tab2 AS cor0
----
107
108
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( - col0 ) col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 * + col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT 43 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT tab1.col0 DIV col1 AS col0 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1126
SELECT tab1.col0 / col1 AS col0 FROM tab1
----
0
6
6
query I rowsort
SELECT DISTINCT - col2 * col1 + + 40 AS col2 FROM tab1
----
-1208
-1364
-530
query I rowsort
SELECT + ( - ( col2 ) ) + + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 55 + col0 FROM tab0 AS cor0
----
144
79
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + + 0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + + col0 col2 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT ALL + + 11 AS col2 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT ALL - + col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + - col2 - + 85 * col2 AS col1 FROM tab2 cor0
----
-2236
-2322
-3268
query I rowsort
SELECT ALL - - ( - 35 ) * + cor0.col0 FROM tab1 AS cor0
----
-105
-2240
-2800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1137
SELECT DISTINCT cor0.col1 DIV tab0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
0
10
13
26
skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT cor0.col1 / tab0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
0
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT col0 * - col2 * - CAST( + col2 AS SIGNED ) - col2 FROM tab1 AS cor0
----
207879
737184
8694
skipif mysql # not compatible
query I rowsort label-1138
SELECT col0 * - col2 * - CAST ( + col2 AS INTEGER ) - col2 FROM tab1 AS cor0
----
207879
737184
8694
query I rowsort
SELECT DISTINCT - 75 + col1 FROM tab2 cor0
----
-16
-44
-58
query I rowsort
SELECT + col0 * + cor0.col1 + + col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT 23 * + col1 AS col0 FROM tab2
----
1357
391
713
query I rowsort
SELECT ( col2 ) * + tab1.col1 - ( + col2 * - col1 ) AS col0 FROM tab1
----
1140
2496
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT + 72 DIV 54 + + col1 - 49 AS col1 FROM tab2
----
-17
-31
11
skipif mysql # not compatible
query I rowsort label-1143
SELECT + 72 / 54 + + col1 - 49 AS col1 FROM tab2
----
-17
-31
11
query I rowsort
SELECT + 79 * + col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT ALL ( col0 ) - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col0 - + 90 FROM tab2
----
-11
-12
-83
query I rowsort
SELECT + cor0.col0 * + 38 * col1 AS col0 FROM tab1 cor0
----
24320
2964
39520
query I rowsort
SELECT DISTINCT + col2 * 70 FROM tab1 AS cor0
----
3780
3990
6720
query I rowsort
SELECT ALL + 47 * + col0 AS col0 FROM tab2
----
329
3666
3713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1150
SELECT + col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1150
SELECT + col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT - - col2 DIV 90 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1151
SELECT - - col2 / 90 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - col2 * + 33 AS col1 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT + - col1 * + col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col1 * + col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
118860
49560
720900
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT cor0.col0 + col2 DIV col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-1155
SELECT cor0.col0 + col2 / col1 FROM tab1 AS cor0
----
5
69
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1156
SELECT ALL - col2 DIV + col0 + + col2 FROM tab1
----
36
57
95
skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - col2 / + col0 + + col2 FROM tab1
----
36
57
95
query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT col0 + col0 * tab0.col1 * col2 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT - col1 - - tab2.col0 AS col2 FROM tab2
----
-24
19
62
query III rowsort
SELECT * FROM tab1 WHERE col2 = ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= + col0
----
35
97
1
89
91
82
query I rowsort
SELECT col2 * col1 + - col2 + col1 FROM tab1
----
1165
1376
523
query I rowsort
SELECT + tab1.col2 * col1 + tab1.col0 + + tab1.col1 FROM tab1
----
1341
1433
644
query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 * - col1 - col1 FROM tab0
----
635884
753389
912479
query I rowsort
SELECT ALL - col1 - + col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT + col1 * + col0 + col2 * col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
2770
5219
915
query I rowsort
SELECT ALL col2 * - col2 + - cor0.col2 FROM tab2 cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT ALL col1 DIV col0 + col1 * - col0 + col1 AS col2 FROM tab2
----
-1326
-182
-4543
skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL col1 / col0 + col1 * - col0 + col1 AS col2 FROM tab2
----
-1326
-182
-4543
query I rowsort
SELECT ALL col1 + + tab2.col0 * col2 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT + col0 * + cor0.col0 - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
53
6084
6241
skipif mysql # not compatible
query I rowsort label-1170
SELECT + col0 * + cor0.col0 - col1 / - col0 AS col2 FROM tab2 AS cor0
----
53
6084
6241
query I rowsort
SELECT ALL - tab2.col2 * col0 - + tab2.col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL col1 + col0 * - col2 + tab1.col0 * tab1.col2 FROM tab1
----
10
13
26
query I rowsort
SELECT - - col2 * + col2 * col1 + + col0 AS col2 FROM tab2 cor0
----
22606
24627
39962
query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 + + col1 * col1 AS col2 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT - col1 * col0 * col1 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col1 + + col2 * col1 + + col0 * col2 FROM tab2 AS cor0
----
1057
3621
3665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + col1 * + col0 + col2 * col2 col2 FROM tab1 AS cor0
----
16656
3003
7985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL col2 * col1 + col2 * col0 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT - tab0.col2 - - 49 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 0b0d5ea34e385d34922316b225bc162f
query I rowsort
SELECT - - 43 * col2 + 72 FROM tab0 AS cor0
----
115
1491
3598
query I rowsort
SELECT cor0.col0 * 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8737f3748d122892edfdd23eb38eae11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 79 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8260294914aa43c485391fbad0a353b
query I rowsort
SELECT + 25 * - col0 + 52 AS col0 FROM tab1 cor0
----
-1548
-1948
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab1 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * - 62 * - cor0.col1 AS col1 FROM tab2 cor0
----
40052
51894
95108
query I rowsort
SELECT col2 + - 77 FROM tab1 AS cor0
----
-20
-23
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 58 + 71 + cor0.col1 col2 FROM tab2 cor0
----
4654
4670
508
query I rowsort
SELECT + cor0.col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * + cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT DISTINCT - col1 DIV + col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT - col1 / + col2 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT DISTINCT - col1 DIV + 44 + col2 AS col1 FROM tab2 AS cor0
----
25
27
38
skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT - col1 / + 44 + col2 AS col1 FROM tab2 AS cor0
----
25
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1196
SELECT cor0.col1 * CAST( + col2 * - col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
skipif mysql # not compatible
query I rowsort label-1196
SELECT cor0.col1 * CAST ( + col2 * - col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-1197
SELECT DISTINCT col0 DIV col0 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT col0 / col0 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT + tab0.col0 - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * + col1 * col1 - + col1 AS col0 FROM tab1
----
16211
36478
5690
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND - col2 + col1 * - col1 * col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * - col0 - + col1 col0 FROM tab2 WHERE NOT NULL <= - col1 + col1 * col1
----
query I rowsort
SELECT DISTINCT + col1 + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT tab0.col0 + + col0 * - col0 FROM tab0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 * - col0 col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT - tab2.col2 - + tab2.col0 AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col1 * + col1 + col2 - cor0.col0 * col1 * - col2 FROM tab1 AS cor0
----
100105
36637
4942
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col0 + - tab0.col0 )
----
query I rowsort
SELECT + + col1 * + col1 * + col1 FROM tab0 AS cor0
----
636056
753571
912673
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col0 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT DISTINCT - col1 DIV - col1 + + col1 + + col0 AS col2 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT - col1 / - col1 + + col1 + + col0 AS col2 FROM tab1
----
30
75
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT ALL - tab0.col1 DIV col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - tab0.col1 / col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 * col2 + col1 + col2 AS col0 FROM tab2
----
-1449
-591
-779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE + col2 IN ( - col2 )
----
query I rowsort
SELECT - - col1 * + col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1178
1632
8083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( + 1 ) col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 11 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
1032
912
922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col1 * - col0 + 58 FROM tab2
----
-1285
-159
-4544
query I rowsort
SELECT + + col0 + - ( cor0.col0 ) * col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-133
3318
4134
query I rowsort
SELECT 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-1221
SELECT - - col2 * - CAST( + col0 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-1221
SELECT - - col2 * - CAST ( + col0 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col2 * - 58 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT + + col1 - - 20 AS col2 FROM tab1 AS cor0
----
30
33
46
query I rowsort
SELECT DISTINCT 99 * col0 AS col0 FROM tab0
----
2376
3465
8811
query I rowsort
SELECT DISTINCT 75 + col0 + - col0 AS col1 FROM tab0 AS cor0
----
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1226
SELECT ALL + + col0 * col1 + col1 + col0 DIV - col1 FROM tab2 cor0
----
1356
248
4660
skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + + col0 * col1 + col1 + col0 / - col1 FROM tab2 cor0
----
1356
248
4660
query I rowsort
SELECT + - ( 89 ) FROM tab2 AS cor0
----
-89
-89
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT ALL + col2 DIV - 67 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + col2 / - 67 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 col0 FROM tab2 AS cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT col1 DIV col2 + + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT col1 / col2 + + col0 / col1 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + col1 - col2 * + cor0.col0 * col2 FROM tab0 AS cor0
----
-26050
-598345
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT ALL + 13 DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + 13 / - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col0 * - col0 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-12800
-18
-8192
onlyif mysql # use DIV operator for integer division
query I rowsort label-1234
SELECT - col2 * col0 + cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-190
-2029
-3003
skipif mysql # not compatible
query I rowsort label-1234
SELECT - col2 * col0 + cor0.col0 / - col0 FROM tab2 AS cor0
----
-190
-2029
-3003
onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1235
SELECT cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - 78 + cor0.col1 AS col1 FROM tab0 AS cor0
----
13
19
8
query I rowsort
SELECT - - 14 * col1 FROM tab2 cor0
----
238
434
826
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * col0 col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT DISTINCT - 4 FROM tab0, tab1 cor0
----
-4
query I rowsort
SELECT + 11 + + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 35d675b12daeeedaff0e73beb4adf032
query I rowsort
SELECT - ( - 39 ) FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + 8 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
234
243
342
query I rowsort
SELECT - 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL 90 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL + + ( - col0 ) - + col2 * - col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + cor0.col2 * col0 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL + 20 AS col0 FROM tab0 cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + 79 * + col0 + + col1 * col2 FROM tab0 AS cor0
----
14493
2862
4734
query I rowsort
SELECT - ( + col0 ) * col0 - tab0.col0 * col1 FROM tab0
----
-16020
-2640
-4620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1252
SELECT CAST( col2 AS SIGNED ) * + tab0.col0 col2 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1252
SELECT CAST ( col2 AS INTEGER ) * + tab0.col0 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT ( 43 ) * col1 + col2 AS col0 FROM tab0
----
3731
3995
4172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 * ( - col1 ) * - col1 + - tab2.col1 col2 FROM tab2
----
17267
5185
62599
query I rowsort
SELECT + 97 * col0 + + col0 * + 46 * 14 FROM tab2 AS cor0
----
5187
57798
58539
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col2 + + col1 * - col1 FROM tab2 cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT - col1 + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 + 90 * + col2 FROM tab2 AS cor0
----
2399
2461
3437
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 * col0 + + 56 col0 FROM tab0 AS cor0
----
-177448
-329259
-736953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1261
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0, 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-1261
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - 35 + 24 + + col1 * col2 FROM tab2 AS cor0
----
1523
635
826
query I rowsort
SELECT + 83 * 12 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1029
1078
997
query I rowsort
SELECT DISTINCT + 87 + + col0 AS col0 FROM tab2 AS cor0
----
165
166
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 + col1 col1 FROM tab1 AS cor0
----
-10
-23
-26
query I rowsort
SELECT ALL col1 + - 29 FROM tab0
----
57
62
68
query I rowsort
SELECT ALL 41 + col2 * tab1.col0 * + ( ( + tab1.col0 ) ) FROM tab1
----
233513
527
614441
query I rowsort
SELECT DISTINCT - col1 + + 10 FROM tab2
----
-21
-49
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * 20 + - tab1.col0 col1 FROM tab1
----
800
816
877
query I rowsort
SELECT + 64 * - ( col0 ) AS col1 FROM tab2
----
-448
-4992
-5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT col2 * - ( col0 ) * - col1 + - col0 DIV - col1 AS col1 FROM tab2
----
119653
51038
5859
skipif mysql # not compatible
query I rowsort label-1271
SELECT col2 * - ( col0 ) * - col1 + - col0 / - col1 AS col1 FROM tab2
----
119653
51038
5859
query I rowsort
SELECT DISTINCT + 49 + - cor0.col2 FROM tab2, tab1 AS cor0
----
-47
-5
-8
query I rowsort
SELECT + 92 AS col2 FROM tab2
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1274
SELECT 2 DIV + tab2.col0 + col0 * - 7 FROM tab2
----
-49
-546
-553
skipif mysql # not compatible
query I rowsort label-1274
SELECT 2 / + tab2.col0 + col0 * - 7 FROM tab2
----
-49
-546
-553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT ALL - - col1 * - col2 - col0 * col1 DIV + col0 FROM tab2 AS cor0
----
-1593
-663
-868
skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - - col1 * - col2 - col0 * col1 / + col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT + - col0 * 36 AS col2 FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT + cor0.col1 + 74 FROM tab2 cor0
----
105
133
91
query I rowsort
SELECT ALL + - col1 + - 4 * + col1 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT ALL col1 * 77 AS col0 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT ALL col1 * 92 AS col1 FROM tab2 AS cor0
----
1564
2852
5428
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT DISTINCT + col0 DIV cor0.col1 + + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + col0 / cor0.col1 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 72 + tab2.col1 FROM tab2
----
103
131
89
query I rowsort
SELECT - tab2.col2 * + col1 - - 92 AS col0 FROM tab2
----
-1442
-554
-745
query I rowsort
SELECT - col1 + col2 * - tab0.col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 - 41 * col1 AS col1 FROM tab2 cor0
----
-1264
-2341
-618
query I rowsort
SELECT - ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT DISTINCT - col2 DIV + 95 AS col1 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - col2 / + 95 AS col1 FROM tab1
----
-1
0
query I rowsort
SELECT + 96 FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to e03080212e3345d8b37e64e3264019c4
query I rowsort
SELECT DISTINCT + - 89 * col1 AS col2 FROM tab2 AS cor0
----
-1513
-2759
-5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 - + col2 * - col1 col1 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT - col1 + col0 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7458
-8283
-9471
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ( + col2 ) DIV col2 + 13 FROM tab1 AS cor0
----
14
14
14
skipif mysql # not compatible
query I rowsort label-1294
SELECT ( + col2 ) / col2 + 13 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT DISTINCT - - ( - 93 ) * + col2 FROM tab1 AS cor0
----
-5022
-5301
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT + 27 DIV + col1 + - col1 + ( - 81 ) * cor0.col0 FROM tab2 cor0
----
-598
-6377
-6415
skipif mysql # not compatible
query I rowsort label-1296
SELECT + 27 / + col1 + - col1 + ( - 81 ) * cor0.col0 FROM tab2 cor0
----
-598
-6377
-6415
query I rowsort
SELECT - - col1 * col2 - col0 * - col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT + col1 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - - 48 * 58 AS col0 FROM tab1 AS cor0
----
2784
2784
2784
query I rowsort
SELECT ALL + + ( col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - ( 6 ) FROM tab1 AS cor0
----
-6
query I rowsort
SELECT ALL 47 + cor0.col0 AS col0 FROM tab1 AS cor0
----
111
127
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT col1 DIV col0 + ( - col0 ) * - cor0.col2 FROM tab0 AS cor0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-1303
SELECT col1 / col0 + ( - col0 ) * - cor0.col2 FROM tab0 AS cor0
----
37
7299
795
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + col1 - + 15 FROM tab0 AS cor0
----
117
7374
863
query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 * 55 + + col1 FROM tab1 AS cor0
----
1592
2575
4045
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * + 58 AS col2 FROM tab2 AS cor0
----
-1065
-1805
-3500
query I rowsort
SELECT + 71 * - col0 + + 49 AS col1 FROM tab0 AS cor0
----
-1655
-2436
-6270
query I rowsort
SELECT ALL - col2 * col0 + - col2 * ( - col1 ) * - col2 FROM tab2 AS cor0
----
-22788
-27550
-41912
query I rowsort
SELECT DISTINCT col2 + col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT 54 + col2 AS col1 FROM tab2 AS cor0
----
80
81
92
query I rowsort
SELECT ALL - col1 * - 78 AS col1 FROM tab0 AS cor0
----
6708
7098
7566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT ALL + - cor0.col0 + + CAST( col0 AS SIGNED ) + col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL + - cor0.col0 + + CAST ( col0 AS INTEGER ) + col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT ALL + col0 DIV - col0 + + cor0.col0 * col0 col0 FROM tab1 AS cor0
----
4095
6399
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + col0 / - col0 + + cor0.col0 * col0 col0 FROM tab1 AS cor0
----
4095
6399
8
query I rowsort
SELECT ALL + col2 * + ( 47 ) FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT ALL col1 + - 64 * - cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-10342
-233462
-491507
query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ( 52 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT - cor0.col0 * 53 FROM tab0, tab2 AS cor0
----
9 values hashing to 0763304b10895db416b6f4daebc9ca6e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 * col1 col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT - + 7 AS col0 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT - col2 + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - - 27 AS col1 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT ALL ( + 49 ) FROM tab2
----
49
49
49
query I rowsort
SELECT ALL 0 * col1 * col1 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1325
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - ( + col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor1.col0 - cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + - cor0.col1 col0 FROM tab2 AS cor0
----
3
31
45
query I rowsort
SELECT ALL - col1 * + 99 AS col0 FROM tab2
----
-1683
-3069
-5841
query I rowsort
SELECT + 33 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT + col1 DIV + col0 + col2 * + col2 AS col2 FROM tab1 cor0
----
2924
3249
9216
skipif mysql # not compatible
query I rowsort label-1332
SELECT + col1 / + col0 + col2 * + col2 AS col2 FROM tab1 cor0
----
2924
3249
9216
query I rowsort
SELECT DISTINCT - 54 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
586
986
onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT - + 9 DIV col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1334
SELECT - + 9 / col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL 57 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1337
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT 7 + tab2.col2 FROM tab2
----
33
34
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT ALL 64 DIV + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
16
17
28
skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 64 / + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
16
17
28
query I rowsort
SELECT ALL + col1 + - col0 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL col2 + col1 * col0 - col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - + col1 * col0 * + col2 + - cor0.col2 FROM tab0 AS cor0
----
-3396
-664200
-68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 89 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 89 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT DISTINCT col0 DIV col1 + col1 DIV 61 col2 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT col0 / col1 + col1 / 61 col2 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT + col1 DIV cor0.col2 AS col1 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1345
SELECT + col1 / cor0.col2 AS col1 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT ALL ( col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( 9 ) + col1 FROM tab1 AS cor0
----
19
22
35
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * - col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT col2 * - col0 * - col2 + col2 FROM tab0
----
26169
36
598518
query I rowsort
SELECT + col0 + col0 + + col2 * col1 FROM tab1
----
1408
1410
698
query I rowsort
SELECT DISTINCT - 50 - + tab0.col2 FROM tab0
----
-132
-51
-83
query I rowsort
SELECT - 29 + tab0.col1 + - 74 FROM tab0
----
-12
-17
-6
query I rowsort
SELECT DISTINCT - 29 + + col2 + 50 AS col2 FROM tab0
----
103
22
54
query I rowsort
SELECT - ( col2 ) + col2 * col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - 13 + - col0 FROM tab1 AS cor0
----
-16
-77
-93
query I rowsort
SELECT DISTINCT + - cor0.col2 + - cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT DISTINCT - 84 DIV col1 AS col2 FROM tab1
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - 84 / col1 AS col2 FROM tab1
----
-3
-6
-8
query I rowsort
SELECT ALL + + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT DISTINCT - col1 DIV ( + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-48
0
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - col1 / ( + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-48
0
query I rowsort
SELECT + col2 + + 65 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + col1 + - 48 * - cor0.col1 * col0 FROM tab0 AS cor0
----
163057
388843
99158
query I rowsort
SELECT + cor0.col1 + + col1 * cor0.col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT 96 * - col2 + col2 + + 4 DIV col2 AS col2 FROM tab1
----
-5130
-5415
-9120
skipif mysql # not compatible
query I rowsort label-1364
SELECT 96 * - col2 + col2 + + 4 / col2 AS col2 FROM tab1
----
-5130
-5415
-9120
query I rowsort
SELECT - - col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - col2 + 76 AS col1 FROM tab2 AS cor0
----
38
49
50
query I rowsort
SELECT DISTINCT + - 88 + cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
-31
-34
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT - 43 DIV - col0 + tab2.col0 AS col0 FROM tab2
----
13
78
79
skipif mysql # not compatible
query I rowsort label-1368
SELECT - 43 / - col0 + tab2.col0 AS col0 FROM tab2
----
13
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT ALL + - CAST( NULL AS SIGNED ) + 40 * - col2 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-1369
SELECT ALL + - CAST ( NULL AS INTEGER ) + 40 * - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT ALL ( - 66 ) * col2 DIV col2 col2 FROM tab1 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL ( - 66 ) * col2 / col2 col2 FROM tab1 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 + 25 col1 FROM tab1 AS cor0
----
-233447
-461
-614375
query I rowsort
SELECT + 38 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 9124b06d33995d82062026964cce3a38
query I rowsort
SELECT ALL - ( - col1 ) * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + 1 + col2 AS col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL - ( col0 ) + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + 17 AS col1 FROM tab1 cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab1, tab0 AS cor0
----
-77
query I rowsort
SELECT DISTINCT + col0 * col1 + ( + 3 ) * + col2 AS col0 FROM tab2 cor0
----
1457
298
4680
query I rowsort
SELECT ALL col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT ALL ( cor0.col0 ) * + ( col0 ) DIV col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL ( cor0.col0 ) * + ( col0 ) / col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 98 * - col0 + - col1 AS col1 FROM tab2
----
-717
-7703
-7759
onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT - 39 DIV - 62 + col0 * + col1 * + col2 col2 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1382
SELECT - 39 / - 62 + col0 * + col1 * + col2 col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT 90 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT 83 * col1 + + col0 * 83 AS col0 FROM tab1
----
2407
6142
7719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - - col0 col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col2 FROM tab1 AS cor0
----
-4
query I rowsort
SELECT + 45 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 048a82ffa04b0ada9eac019eb4aef6b3
query I rowsort
SELECT - + col2 * 74 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT - col2 * ( 13 ) + col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT ALL - 92 AS col1 FROM tab2
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL tab2.col2 + col2 * - col2 * - col1 FROM tab2
----
22626
24586
39910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1393
SELECT CAST( NULL AS SIGNED ) + - col2 * - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1393
SELECT CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + 77 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
2164
4418
8681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1395
SELECT + col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1395
SELECT + col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1396
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1397
SELECT - CAST( + col1 * + col1 AS SIGNED ) + col0 AS col1 FROM tab0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-1397
SELECT - CAST ( + col1 * + col1 AS INTEGER ) + col0 AS col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + col0 * ( + col2 * col2 ) AS col1 FROM tab0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT + 79 * col0 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT ALL - + col2 * 6 + col2 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT + - cor0.col0 * + cor0.col1 + + col2 FROM tab0 cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-1403
SELECT - col0 + + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1403
SELECT - col0 + + col1 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT ALL + col0 * - col2 - col0 * 10 FROM tab2 AS cor0
----
-259
-2808
-3792
query I rowsort
SELECT ALL col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 83 + 23 FROM tab0 AS cor0
----
106
106
106
onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT ( + col2 ) * - col1 + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-1408
SELECT ( + col2 ) * - col1 + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 84 * + col0 col2 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT DISTINCT col0 + col2 * - 50 AS col0 FROM tab0
----
-15
-1626
-4011
query I rowsort
SELECT DISTINCT + col0 + - 21 FROM tab0
----
14
3
68
query I rowsort
SELECT - cor0.col0 * 75 + 11 * + col1 * col2 + 51 FROM tab2 AS cor0
----
11075
1232
8733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - 45 ) + + col1 col2 FROM tab1 AS cor0
----
-1144
-440
-572
onlyif mysql # use DIV operator for integer division
query I rowsort label-1414
SELECT - ( + col0 ) DIV col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1414
SELECT - ( + col0 ) / col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT 49 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT DISTINCT + col2 + 57 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1418
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1418
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1419
SELECT ALL + CAST( ( cor0.col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + CAST ( ( cor0.col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ( - col0 ) DIV col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1420
SELECT ( - col0 ) / col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT ALL col1 + - col0 * col2 FROM tab2 cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT DISTINCT + col0 DIV col2 col0 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + col0 / col2 col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + ( + 80 ) * - col2 FROM tab2 AS cor0
----
-2080
-2160
-3040
query I rowsort
SELECT + col2 + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - 88 AS col1 FROM tab1 cor0
----
-88
-88
-88
query I rowsort
SELECT - 64 + col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
1470
582
773
onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT col1 DIV col1 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1427
SELECT col1 / col1 + col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * ( - cor0.col0 ) col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 14 * col2 + - 16 FROM tab1 cor0
----
1328
740
782
query I rowsort
SELECT ALL 34 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT DISTINCT col0 * - col2 + - col1 DIV col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-133
-7390
-879
skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT col0 * - col2 + - col1 / col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-133
-7390
-879
query I rowsort
SELECT ALL - col1 - col0 * - col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + col0 + 86 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT ALL col0 + - 21 * col1 AS col2 FROM tab0 AS cor0
----
-1782
-1822
-2002
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + CAST ( 46 AS REAL ) AS col1 FROM tab0 AS cor0
----
128
47
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 38 * col2 col0 FROM tab0 AS cor0
----
1340
135
3207
query I rowsort
SELECT + col1 * + 29 AS col0 FROM tab1 AS cor0
----
290
377
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1440
SELECT DISTINCT + col1 + - CAST( + 49 AS SIGNED ) * cor0.col2 col1 FROM tab1 AS cor0
----
-2620
-2783
-4691
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT + col1 + - CAST ( + 49 AS INTEGER ) * cor0.col2 col1 FROM tab1 AS cor0
----
-2620
-2783
-4691
onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT ALL - + col1 DIV 8 AS col0 FROM tab0 AS cor0
----
-10
-11
-12
skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - + col1 / 8 AS col0 FROM tab0 AS cor0
----
-10
-11
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + ( + col1 + col1 ) col1 FROM tab1 AS cor0
----
1280
156
2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT DISTINCT ( - col1 ) * + col0 - - col2 DIV - col0 FROM tab0
----
-2065
-3395
-8099
skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT ( - col1 ) * + col0 - - col2 / - col0 FROM tab0
----
-2065
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT ALL + 54 - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL + 54 - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 + col1 * - 74 * col0 + col0 * - col2 FROM tab2 AS cor0
----
-102401
-16278
-342635
query I rowsort
SELECT ALL col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT - col2 * col2 + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
-1090
-2
-6725
skipif mysql # not compatible
query I rowsort label-1447
SELECT - col2 * col2 + cor0.col0 / - col0 FROM tab0 AS cor0
----
-1090
-2
-6725
query I rowsort
SELECT 97 * col0 + col1 AS col1 FROM tab0 AS cor0
----
2414
3492
8724
query I rowsort
SELECT DISTINCT + + 1 FROM tab0, tab1 AS cor0, tab1, tab0 cor1
----
1
query I rowsort
SELECT + 59 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL + 2 * + 69 * + col2 FROM tab0
----
11316
138
4554
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 AS col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 * tab1.col0 * + col2 AS col1 FROM tab1
----
2808
35910
98592
query I rowsort
SELECT ALL ( col1 ) - 70 * col2 AS col0 FROM tab1
----
-3754
-3980
-6707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 * col0 col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col0 * - col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT + + ( + col1 ) + 79 + - 56 DIV col2 col2 FROM tab1 AS cor0
----
104
89
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1457
SELECT + + ( + col1 ) + 79 + - 56 / col2 col2 FROM tab1 AS cor0
----
104
89
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT + col0 * cor0.col2 - - CAST( + 24 AS SIGNED ) FROM tab2 AS cor0
----
2052
213
3026
skipif mysql # not compatible
query I rowsort label-1458
SELECT + col0 * cor0.col2 - - CAST ( + 24 AS INTEGER ) FROM tab2 AS cor0
----
2052
213
3026
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT col2 DIV - tab2.col0 + - col1 FROM tab2
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-1460
SELECT col2 / - tab2.col0 + - col1 FROM tab2
----
-17
-34
-59
query I rowsort
SELECT DISTINCT col1 * - ( + tab0.col2 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + 38 + col0 + + col2 AS col2 FROM tab1
----
159
214
95
query I rowsort
SELECT + tab2.col0 + tab2.col0 * - col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 79 AS col0 FROM tab2 cor0
----
-79
-79
-79
query I rowsort
SELECT 87 * col1 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT - col1 + + 35 FROM tab2 AS cor0
----
-24
18
4
query I rowsort
SELECT 34 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL + cor0.col1 + - col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + 44 + - 81 * col2 FROM tab0 AS cor0
----
-2629
-37
-6598
query I rowsort
SELECT + ( + col1 ) + 77 FROM tab2
----
108
136
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT + ( col1 ) DIV + ( + col0 * col1 ) + - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1473
SELECT + ( col1 ) / + ( + col0 * col1 ) + - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - 63 * - col1 + + col0 + + col0 * tab1.col1 FROM tab1
----
1334
1719
1939
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * - col0 col1 FROM tab1 cor0
----
-282
-6016
-7520
query I rowsort
SELECT ALL col2 + col2 * 57 AS col1 FROM tab2 AS cor0
----
1508
1566
2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - col1 col0 FROM tab2 AS cor0
----
-327
-3507
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 39 * - col0 + ( - col0 ) col0 FROM tab2 AS cor0
----
-280
-3120
-3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) + - 72 col2 FROM tab1 cor0
----
-46
-59
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1480
SELECT col1 * col1 * + CAST( 98 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
28339
341197
94209
skipif mysql # not compatible
query I rowsort label-1480
SELECT col1 * col1 * + CAST ( 98 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
28339
341197
94209
query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col0 + + 44 * col1 * + cor0.col0 FROM tab0 AS cor0
----
149415
356445
90840
query I rowsort
SELECT DISTINCT - col0 + + ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT col2 * - 49 AS col0 FROM tab2 AS cor0
----
-1274
-1323
-1862
query I rowsort
SELECT DISTINCT - col0 + col1 * ( - col1 + 9 ) FROM tab1 AS cor0
----
-132
-445
-74
query I rowsort
SELECT - cor0.col1 * col1 + + col2 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT ALL + col2 * - col1 * - col1 AS col2 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT - + col0 + 42 * ( col2 + + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
2750
3357
4498
query I rowsort
SELECT ALL + ( + tab1.col0 ) * - col1 + 3 AS col0 FROM tab1
----
-1037
-637
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( + col2 ) col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + col2 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + + col2 + ( + col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - cor0.col2 + ( col1 * cor0.col1 ) AS col0 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab0, tab0 AS cor0
----
18
query I rowsort
SELECT col1 + 72 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT + + col2 + 24 AS col2 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT ALL - col1 * 97 + col2 FROM tab0 AS cor0
----
-8309
-8745
-9408
query I rowsort
SELECT - - 46 * + 93 AS col0 FROM tab1 cor0
----
4278
4278
4278
query I rowsort
SELECT 68 * - ( cor0.col0 ) FROM tab2 cor0
----
-476
-5304
-5372
query I rowsort
SELECT + col0 * - 59 FROM tab2
----
-413
-4602
-4661
query I rowsort
SELECT - col2 + + tab1.col2 * 51 FROM tab1
----
2700
2850
4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - cor0.col2 + cor0.col1 col0 FROM tab0 AS cor0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 * - col1 col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT - col0 DIV col1 - 64 FROM tab1 cor0
----
-64
-70
-70
skipif mysql # not compatible
query I rowsort label-1504
SELECT - col0 / col1 - 64 FROM tab1 cor0
----
-64
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) + + 95 * cor0.col1 col2 FROM tab0 cor0
----
8146
8556
9180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT DISTINCT - col1 * + col1 * CAST( + ( - col1 ) + + col0 AS SIGNED ) FROM tab0 AS cor0
----
16562
458552
583358
skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - col1 * + col1 * CAST ( + ( - col1 ) + + col0 AS INTEGER ) FROM tab0 AS cor0
----
16562
458552
583358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 28 * - col0 FROM tab0 cor0
----
-2492
-672
-980
query I rowsort
SELECT DISTINCT + - 7 * col0 + - 62 AS col1 FROM tab1 AS cor0
----
-510
-622
-83
query I rowsort
SELECT ALL 95 - - col1 AS col2 FROM tab0
----
181
186
192
query I rowsort
SELECT ALL + col2 + tab0.col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - col0 * col0 - + ( col0 ) * col1 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT ALL 77 - col0 FROM tab2
----
-1
-2
70
query I rowsort
SELECT - 39 * 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col2 col1 FROM tab0 cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL tab1.col2 * col0 + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - - 38 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL + col1 * - 43 * col2 FROM tab2
----
-27778
-35991
-65962
onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT - + 96 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
96
skipif mysql # not compatible
query I rowsort label-1519
SELECT - + 96 / - col2 AS col2 FROM tab0 AS cor0
----
1
2
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1520
SELECT + col2 + + col1 DIV + col1 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1520
SELECT + col2 + + col1 / + col1 FROM tab0 cor0
----
2
34
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1521
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL + 30 * - 62 AS col1 FROM tab2
----
-1860
-1860
-1860
query I rowsort
SELECT DISTINCT + col2 + + 41 * col2 + + col0 FROM tab0
----
1410
3533
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT ALL ( + col0 ) + + tab2.col1 DIV + 99 - - col2 * + col0 * ( + col1 ) FROM tab2
----
119730
51113
5866
skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL ( + col0 ) + + tab2.col1 / + 99 - - col2 * + col0 * ( + col1 ) FROM tab2
----
119730
51113
5866
query I rowsort
SELECT + ( + 35 + col0 ) AS col2 FROM tab2
----
113
114
42
query I rowsort
SELECT 81 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2145
3476
8180
query I rowsort
SELECT + col0 * col0 + 14 AS col0 FROM tab2 AS cor0
----
6098
6255
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT + + cor0.col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1528
SELECT + + cor0.col0 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 FROM tab2 cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + col0 col1 FROM tab1 AS cor0
----
108
124
47
query I rowsort
SELECT - + ( col1 ) * - col2 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - col1 * - col0 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
1377
279
4720
query I rowsort
SELECT 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
skipif mysql # not compatible
query I rowsort
SELECT + col2 / CAST ( ( col2 ) AS REAL ) AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - + col0 + col1 * - cor0.col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT - col1 - + 59 FROM tab1 cor0
----
-69
-72
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
1617
729
920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + 9 + - col0 col0 FROM tab1 AS cor0
----
-13
-29
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 * + col0 * - col1 + cor0.col1 col2 FROM tab2 AS cor0
----
-11904
-253051
-73848
query I rowsort
SELECT - tab1.col0 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT + 13 + 18 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT ALL - col2 * - col0 + - col0 AS col1 FROM tab2 cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 86 ) + col0 + 45 col1 FROM tab1 AS cor0
----
134
195
211
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1544
SELECT + CAST( NULL AS SIGNED ) - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1544
SELECT + CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 92 + + col2 FROM tab0
----
-10
-59
-91
query I rowsort
SELECT + cor0.col1 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT - col1 + - 42 DIV - col1 AS col2 FROM tab2 AS cor0
----
-15
-30
-59
skipif mysql # not compatible
query I rowsort label-1547
SELECT - col1 + - 42 / - col1 AS col2 FROM tab2 AS cor0
----
-15
-30
-59
query I rowsort
SELECT ALL cor0.col2 - ( col1 ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col0 * + cor0.col2 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - cor0.col1 * + 90 - col0 FROM tab1 AS cor0
----
-1250
-2343
-964
query I rowsort
SELECT DISTINCT 55 + col0 * col0 FROM tab0 AS cor0
----
1280
631
7976
query I rowsort
SELECT ALL cor0.col0 + ( + cor0.col1 ) * col0 AS col0 FROM tab2 cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT DISTINCT - ( - 2 ) * + col0 + + col2 DIV - col1 FROM tab1 AS cor0
----
123
153
4
skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT - ( - 2 ) * + col0 + + col2 / - col1 FROM tab1 AS cor0
----
123
153
4
query I rowsort
SELECT ALL 17 * cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
1300
1305
92
query I rowsort
SELECT DISTINCT + + col0 * col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - 91 + - 13 AS col0 FROM tab1 AS cor0
----
-104
-104
-104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT ALL - + ( col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL - + ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1558
SELECT ALL + CAST( NULL AS SIGNED ) / 31 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + CAST ( NULL AS INTEGER ) / 31 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 17 + col1 AS col1 FROM tab1 AS cor0
----
-4
-7
9
query I rowsort
SELECT DISTINCT - col0 * col0 - col0 AS col2 FROM tab2 cor0
----
-56
-6162
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT - col2 + col1 DIV - col0 + + 13 * col0 AS col2 FROM tab0
----
1074
276
452
skipif mysql # not compatible
query I rowsort label-1561
SELECT - col2 + col1 / - col0 + + 13 * col0 AS col2 FROM tab0
----
1074
276
452
query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 * tab1.col2 - 7 AS col2 FROM tab1
----
-119815
-32497
-75823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1564
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1565
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT 76 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT + 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ( + col0 * ( col0 ) + col1 * tab2.col0 ) FROM tab2
----
10686
266
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT - col2 DIV ( - col0 ) - + tab2.col1 AS col2 FROM tab2
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-1571
SELECT - col2 / ( - col0 ) - + tab2.col1 AS col2 FROM tab2
----
-17
-28
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1572
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col1 - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col1 - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + - ( col2 ) FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col1 - col1 col2 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - col2 * + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - col0 + ( 21 * - col2 ) FROM tab0 AS cor0
----
-1811
-56
-717
query I rowsort
SELECT - + col0 * + 29 FROM tab0 AS cor0
----
-1015
-2581
-696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1578
SELECT ALL - cor0.col0 + + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL - cor0.col0 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * + 97 + + col0 * col1 FROM tab1 AS cor0
----
10352
5316
6169
query I rowsort
SELECT ALL - col0 + + col2 + col1 FROM tab0 cor0
----
63
84
95
query I rowsort
SELECT ALL + cor0.col1 * col2 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL col1 + - col1 * col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT col2 * col1 + tab0.col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL col1 * - col2 + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-2776
-35
-7460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1585
SELECT + - col0 + 70 * ( - col1 + + CAST( - 54 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-5049
-5957
-7988
skipif mysql # not compatible
query I rowsort label-1585
SELECT + - col0 + 70 * ( - col1 + + CAST ( - 54 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-5049
-5957
-7988
query I rowsort
SELECT - ( - 91 ) FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT col2 * + tab0.col1 * + 47 FROM tab0
----
133386
350714
4559
query I rowsort
SELECT DISTINCT 54 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
54
query I rowsort
SELECT + + ( col2 ) + - col2 * + col1 + - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 53 * col1 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 92 * + tab2.col0 * col2 AS col2 FROM tab2
----
17388
186576
276184
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - col0 * col0 + + 30 FROM tab0 AS cor0
----
-1195
-546
-7891
query I rowsort
SELECT ALL - col2 * col1 + ( cor0.col0 ) AS col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ( col1 ) + + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + - col2 + - cor0.col1 * ( col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1599
SELECT ALL col2 / - col0 + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL col2 / - col0 + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + col1 ) * col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT 21 * + 53 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
1113
onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT - - col2 + col2 + 54 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
114
126
192
skipif mysql # not compatible
query I rowsort label-1602
SELECT - - col2 + col2 + 54 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
114
126
192
query I rowsort
SELECT DISTINCT + col0 + + col2 + + col2 * + 0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col1 + col0 + - col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + ( 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT - 63 * - cor1.col1 * CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1607
SELECT - 63 * - cor1.col1 * CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + + col1 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col1 * col1 + - col0 * cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
-2696
1512
803
query I rowsort
SELECT + col0 * ( - col0 ) + col0 * col0 + ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col1 * - col1 + + col0 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT - 24 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1612
SELECT - 24 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 + col2 * + 13 AS col2 FROM tab0 AS cor0
----
12
396
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT + col2 + col1 DIV - col0 + col2 AS col0 FROM tab2 AS cor0
----
50
52
76
skipif mysql # not compatible
query I rowsort label-1614
SELECT + col2 + col1 / - col0 + col2 AS col0 FROM tab2 AS cor0
----
50
52
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT ALL col2 DIV col0 + - ( + cor0.col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL col2 / col0 + - ( + cor0.col2 ) / col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - - col0 * - cor0.col1 + 84 + + cor0.col2 FROM tab2 AS cor0
----
-106
-1221
-4492
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1617
SELECT 74 * col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1617
SELECT 74 * col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 28 + + col2 * ( - 64 ) * col2 AS col2 FROM tab2 cor0
----
-43236
-46628
-92388
query I rowsort
SELECT 29 + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
318
3510
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1620
SELECT ALL - CAST( col2 AS SIGNED ) col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - CAST ( col2 AS INTEGER ) col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT ALL - col2 DIV 36 AS col2 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - col2 / 36 AS col2 FROM tab1
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * col0 col0 FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT + - 43 * col0 FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT - ( + 94 ) + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1154
1310
476
query I rowsort
SELECT DISTINCT - ( - 66 ) + - col0 FROM tab2 AS cor0
----
-12
-13
59
query I rowsort
SELECT + 80 - cor0.col1 AS col1 FROM tab1 AS cor0
----
54
67
70
query I rowsort
SELECT - 30 * - cor0.col1 + cor0.col2 * col0 FROM tab2 AS cor0
----
1119
3512
3798
query I rowsort
SELECT + ( col2 ) * - col2 - + col0 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) * col1 * + col2 + - col1 col0 FROM tab1 AS cor0
----
-119821
-32500
-75842
query I rowsort
SELECT col0 * 56 AS col0 FROM tab2
----
392
4368
4424
query I rowsort
SELECT - - col1 * - col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col1 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT - ( - col1 ) * col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 + + col0 * col1 * col2 FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col1 + col2 - + col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 31 col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT col2 * ( 22 ) AS col1 FROM tab1 AS cor0
----
1188
1254
2112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1639
SELECT col2 + - col1 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1639
SELECT col2 + - col1 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col1 * col0 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT DISTINCT + 5 DIV 75 FROM tab1, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT + 5 / 75 FROM tab1, tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * 24 AS col1 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT DISTINCT ( - 43 ) FROM tab2, tab0 cor0
----
-43
query I rowsort
SELECT + col1 * - ( - col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col2 + 30 AS col2 FROM tab1
----
126
84
87
query I rowsort
SELECT DISTINCT - 52 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-52
query I rowsort
SELECT DISTINCT col1 * - 9 AS col0 FROM tab1
----
-117
-234
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col0 ) col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - 4 + cor0.col1 * + col2 - + col1 * col0 FROM tab1 AS cor0
----
-66
1330
212
query I rowsort
SELECT ALL 3 AS col1 FROM tab0 AS cor0
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1651
SELECT CAST( 69 AS SIGNED ) * col2 - + col1 AS col2 FROM tab0 AS cor0
----
-28
2191
5567
skipif mysql # not compatible
query I rowsort label-1651
SELECT CAST ( 69 AS INTEGER ) * col2 - + col1 AS col2 FROM tab0 AS cor0
----
-28
2191
5567
query I rowsort
SELECT DISTINCT - 26 + + col2 * col0 * 8 AS col0 FROM tab0 AS cor0
----
254
58358
6310
onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1653
SELECT + + col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 * - col1 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT 55 * - cor0.col2 * 53 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 0073faa4e76aabf3d86575e52a1f0a0d
query I rowsort
SELECT + 57 * - col1 AS col2 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT 3 * col0 AS col2 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT ALL - ( col1 ) * + col2 * col2 + - 56 AS col1 FROM tab0 AS cor0
----
-153
-611940
-93710
query I rowsort
SELECT ALL + ( - col2 ) * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + ( col0 ) * col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + col1 * + col1 + ( - col1 ) FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - 42 * col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT - col2 + col1 * cor0.col1 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT DISTINCT - 35 * col2 + CAST( NULL AS DECIMAL ) * 75 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 35 * col2 + CAST ( NULL AS REAL ) * 75 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * col1 + + col1 * col2 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT DISTINCT 90 * col0 * 67 FROM tab1 cor0
----
18090
385920
482400
query I rowsort
SELECT DISTINCT + + 41 + col0 + col0 FROM tab0 AS cor0
----
111
219
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * ( + cor0.col2 * + col1 ) col1 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT + - col0 + + cor0.col1 * col1 * - ( - col2 * col1 + col2 ) FROM tab2 AS cor0
----
175633
5249270
778403
query I rowsort
SELECT ALL + 66 * + col2 AS col2 FROM tab2 AS cor0
----
1716
1782
2508
onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT ALL + col0 + + col1 DIV + col1 AS col2 FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL + col0 + + col1 / + col1 AS col2 FROM tab2 cor0
----
79
8
80
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - col1 * + col1 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT ALL cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col1 + 92 AS col1 FROM tab0 AS cor0
----
178
183
189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 * col2 col1 FROM tab2 AS cor0
----
22606
24627
39962
query I rowsort
SELECT DISTINCT col0 + 69 * 88 AS col1 FROM tab0 AS cor0
----
6096
6107
6161
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1677
SELECT DISTINCT - col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT ALL - col1 + + 64 / ( - cor0.col1 ) + CAST( NULL AS DECIMAL ) 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-1678
SELECT ALL - col1 + + 64 / ( - cor0.col1 ) + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT 84 * col0 + col2 AS col2 FROM tab0
----
2049
2941
7558
query I rowsort
SELECT + col2 * col2 + + col2 AS col0 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - 34 * + ( + col2 ) + + col2 * - col0 FROM tab2
----
-1107
-2912
-4294
query I rowsort
SELECT DISTINCT + tab0.col0 * + cor0.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col0 FROM tab1 AS cor0
----
-2
query I rowsort
SELECT ALL 98 + 10 FROM tab1 AS cor0
----
108
108
108
query I rowsort
SELECT DISTINCT + + 18 AS col0 FROM tab2 cor0
----
18
query I rowsort
SELECT ALL - - ( col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 / col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 / col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 + + ( col0 ) AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT - 52 + - col2 AS col0 FROM tab1 AS cor0
----
-106
-109
-148
query I rowsort
SELECT - 42 + 62 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT ( 93 ) + col2 AS col0 FROM tab1 AS cor0
----
147
150
189
query I rowsort
SELECT ALL - + 40 + 85 * col1 + - 22 AS col0 FROM tab1 AS cor0
----
1043
2148
788
query I rowsort
SELECT ALL - col2 + 8 FROM tab2 AS cor0
----
-18
-19
-30
query I rowsort
SELECT col0 * + col0 * ( 67 ) + - col2 FROM tab2 AS cor0
----
3256
407602
418109
query I rowsort
SELECT + - 70 + + col2 FROM tab2 AS cor0
----
-32
-43
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT ALL - - cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - - cor0.col1 / + col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 * cor0.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - 23 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
166
2005
2979
query I rowsort
SELECT - - cor0.col1 * col0 + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1280
156
2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT - ( col1 ) DIV ( + 94 ) + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1701
SELECT - ( col1 ) / ( + 94 ) + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 32 + col1 AS col1 FROM tab0 AS cor0
----
118
123
129
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT - col1 * - ( 27 ) * - cor0.col2 - cor0.col1 DIV 39 AS col0 FROM tab0 AS cor0
----
-201476
-2621
-76628
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - col1 * - ( 27 ) * - cor0.col2 - cor0.col1 / 39 AS col0 FROM tab0 AS cor0
----
-201476
-2621
-76628
query I rowsort
SELECT cor0.col2 + ( - 89 ) AS col0 FROM tab0 cor0
----
-56
-7
-88
query I rowsort
SELECT ALL - cor0.col1 + + ( - cor0.col0 ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT - cor0.col2 * + CAST( ( - col2 ) AS SIGNED ) + - col0 DIV + ( + col0 * + col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - cor0.col2 * + CAST ( ( - col2 ) AS INTEGER ) + - col0 / + ( + col0 * + col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-1707
SELECT DISTINCT + col1 DIV - col1 + - 35 AS col1 FROM tab2 AS cor0
----
-36
skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + col1 / - col1 + - 35 AS col1 FROM tab2 AS cor0
----
-36
query I rowsort
SELECT DISTINCT - col2 * - 86 AS col2 FROM tab1 AS cor0
----
4644
4902
8256
query I rowsort
SELECT DISTINCT - col0 - - 72 AS col0 FROM tab1
----
-8
69
8
query I rowsort
SELECT 55 * col1 * - col0 - col1 FROM tab1 AS cor0
----
-35210
-4316
-57213
query I rowsort
SELECT DISTINCT + col2 - + 50 AS col0 FROM tab0
----
-17
-49
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col2 - col2 col1 FROM tab2 cor0
----
1406
650
702
query I rowsort
SELECT ALL col2 + 20 AS col0 FROM tab1
----
116
74
77
query I rowsort
SELECT ALL col2 + ( - 9 ) AS col2 FROM tab2
----
17
18
29
query I rowsort
SELECT ALL + 4 FROM tab1, tab2 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL - tab2.col1 * - 90 AS col1 FROM tab2
----
1530
2790
5310
query I rowsort
SELECT - col0 + + ( + col1 ) FROM tab0
----
2
62
62
query I rowsort
SELECT 0 * - 71 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 * + 16 AS col1 FROM tab2
----
2444
3610
621
query I rowsort
SELECT ( 78 ) * + col0 FROM tab2
----
546
6084
6162
query I rowsort
SELECT 10 * col1 FROM tab0
----
860
910
970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1722
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT ALL + CAST( 10 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + CAST ( 10 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1724
SELECT ALL - ( col1 ) * - col1 * + ( col1 ) + col1 * + CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
325031
35650
55947
skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL - ( col1 ) * - col1 * + ( col1 ) + col1 * + CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
325031
35650
55947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col0 col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT - + col1 * - 21 FROM tab0 AS cor0
----
1806
1911
2037
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT DISTINCT col0 DIV col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT col0 / col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT + ( + col1 * - 11 ) + - col2 FROM tab2
----
-225
-368
-675
query I rowsort
SELECT ALL - 70 AS col2 FROM tab1 cor0
----
-70
-70
-70
query I rowsort
SELECT 34 * col2 AS col1 FROM tab2
----
1292
884
918
query I rowsort
SELECT ALL col0 * 98 + + 28 * col1 FROM tab2 AS cor0
----
1554
8218
9296
query I rowsort
SELECT DISTINCT - + cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - - col0 * col2 + col2 * - col0 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
3430
671416
68904
query I rowsort
SELECT - - col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 * 22 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682
query I rowsort
SELECT DISTINCT col1 * - 79 AS col1 FROM tab2 cor0
----
-1343
-2449
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1737
SELECT DISTINCT col0 DIV 41 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT col0 / 41 FROM tab2
----
0
1
query I rowsort
SELECT cor0.col0 * col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT - col1 * 24 AS col2 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT - ( + col2 ) + + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL 47 * + col0 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT ALL - col2 * col0 + col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL col0 * - ( col2 ) - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT + + col1 DIV - col1 + 84 FROM tab1 AS cor0
----
83
83
83
skipif mysql # not compatible
query I rowsort label-1744
SELECT + + col1 / - col1 + 84 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT + cor0.col2 + + 68 AS col0 FROM tab2 AS cor0
----
106
94
95
query I rowsort
SELECT - col1 * - 10 + cor0.col1 * + col2 + - cor0.col1 FROM tab0 cor0
----
3612
8281
970
query I rowsort
SELECT - - col2 + cor0.col1 * + col2 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
1501
667
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT + ( + tab1.col2 ) DIV - col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1748
SELECT + ( + tab1.col2 ) / - col2 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * + col0 + col0 + col1 AS col1 FROM tab2 cor0
----
6221
6337
87
query I rowsort
SELECT + + col0 + - ( col0 * col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - col2 + 62 FROM tab1 AS cor0
----
-34
5
8
query I rowsort
SELECT DISTINCT + - col1 * 64 + col0 AS col2 FROM tab2 AS cor0
----
-1009
-1977
-3698
query I rowsort
SELECT 39 + col1 * 53 FROM tab2
----
1682
3166
940
query I rowsort
SELECT DISTINCT 0 FROM tab2, tab0, tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT DISTINCT - 32 DIV + col0 FROM tab1
----
-10
0
skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - 32 / + col0 FROM tab1
----
-10
0
query I rowsort
SELECT + - cor0.col0 + + col1 FROM tab1 cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 * col2 col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - cor0.col0 * + 78 + + col0 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT + 43 FROM tab0, tab2 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL + col0 * col1 - + col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT col1 + tab1.col0 * + col1 * - tab1.col2 AS col2 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT col1 * 88 * - tab0.col1 FROM tab0
----
-650848
-728728
-827992
query I rowsort
SELECT 60 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
query I rowsort
SELECT + cor1.col2 + 76 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a01fd694603c3de31c58584b208fd18
query I rowsort
SELECT + + col2 * - 24 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT ALL + cor0.col1 + + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col0 * + col2 + col0 * col1 AS col1 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT + - 49 AS col0 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ALL - 54 * col0 FROM tab1 cor0
----
-162
-3456
-4320
query I rowsort
SELECT DISTINCT 89 + tab2.col2 AS col1 FROM tab2
----
115
116
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT DISTINCT col2 DIV - tab1.col1 + + col0 AS col1 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT col2 / - tab1.col1 + + col0 AS col1 FROM tab1
----
1
59
73
query I rowsort
SELECT 36 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col1 col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - col2 * - 23 FROM tab1
----
1242
1311
2208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + - col2 col2 FROM tab0
----
-7
42
74
query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97
query I rowsort
SELECT ALL + 79 * - col0 FROM tab1
----
-237
-5056
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 64 * - cor0.col0 + - 38 col2 FROM tab0 AS cor0
----
1498
2202
5658
query I rowsort
SELECT 69 * col2 FROM tab1 AS cor0
----
3726
3933
6624
query I rowsort
SELECT DISTINCT col1 + col0 * 1 * col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT col0 * - col2 * 48 + - col0 AS col0 FROM tab1 AS cor0
----
-175168
-368720
-7779
query I rowsort
SELECT ALL + col2 * cor0.col0 - 30 AS col1 FROM tab1 AS cor0
----
132
3618
7650
query I rowsort
SELECT + 29 * - col0 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT ALL + - 78 * - cor0.col0 FROM tab2 cor0
----
546
6084
6162
query I rowsort
SELECT ALL + col2 - 8 * tab1.col1 FROM tab1
----
-154
-23
-8
query I rowsort
SELECT tab1.col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - col0 - + ( ( - col1 ) + + 19 ) FROM tab1 cor0
----
-73
-86
4
query I rowsort
SELECT + - col2 * + col1 * col0 - col2 AS col0 FROM tab1 cor0
----
-36537
-4266
-99936
query I rowsort
SELECT + col1 * 75 + col0 FROM tab2 cor0
----
1354
2332
4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 79 ) * + col2 col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT + ( col1 ) * col2 + 35 FROM tab0 cor0
----
132
2873
7497
query I rowsort
SELECT ALL - col0 + 93 AS col0 FROM tab2 AS cor0
----
14
15
86
query I rowsort
SELECT ALL + col2 * ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 19 + col2 + col1 * - col0 FROM tab2
----
-1286
-171
-4557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT + col2 + + CAST( NULL AS SIGNED ) * - 48 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1796
SELECT + col2 + + CAST ( NULL AS INTEGER ) * - 48 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT - col2 DIV - col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1797
SELECT - col2 / - col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + + cor0.col0 * col1 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 52 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT DISTINCT - + ( + 30 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-30
query I rowsort
SELECT DISTINCT 44 FROM tab1, tab1 cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT DISTINCT - col0 DIV 48 AS col2 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - col0 / 48 AS col2 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT + col0 * + ( + col2 ) AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col1 + + col0 * - 81 AS col0 FROM tab1 AS cor0
----
-217
-5174
-6467
query I rowsort
SELECT cor0.col2 * 30 + cor0.col0 FROM tab1 AS cor0
----
1623
1774
2960
query I rowsort
SELECT - col1 - + col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1807
SELECT col2 * + CAST( - col2 * - col2 + + 49 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
18850
21006
56734
skipif mysql # not compatible
query I rowsort label-1807
SELECT col2 * + CAST ( - col2 * - col2 + + 49 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
18850
21006
56734
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT DISTINCT col2 DIV - col2 + + 28 FROM tab1 cor0
----
27
skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT col2 / - col2 + + 28 FROM tab1 cor0
----
27
query I rowsort
SELECT DISTINCT + col1 * + col0 - 98 * - col1 * col2 FROM tab2 AS cor0
----
154934
64651
82243
query I rowsort
SELECT DISTINCT - 17 * + tab1.col2 FROM tab1
----
-1632
-918
-969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 53 + + col1 * col0 col0 FROM tab0
----
12445
3448
3813
query I rowsort
SELECT DISTINCT - + 39 * 16 FROM tab1 AS cor0
----
-624
query I rowsort
SELECT ALL - - 81 AS col1 FROM tab1 cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT + col2 DIV + 83 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1815
SELECT + col2 / + 83 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 91 + cor0.col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT 27 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-110592
-172800
-243
query I rowsort
SELECT ALL + ( col1 ) * col2 + + ( + ( - col1 ) + + 11 ) * - col0 FROM tab0 AS cor0
----
14582
3107
4638
query I rowsort
SELECT - 2 * cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-14924
-194
-5676
query I rowsort
SELECT - col0 * + ( - cor0.col2 ) AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT col0 * + 8 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT ALL + + ( 0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT + 26 * col2 DIV col1 FROM tab2 AS cor0
----
11
22
58
skipif mysql # not compatible
query I rowsort label-1823
SELECT + 26 * col2 / col1 FROM tab2 AS cor0
----
11
22
58
query I rowsort
SELECT DISTINCT - col0 * 21 FROM tab0 AS cor0
----
-1869
-504
-735
query I rowsort
SELECT DISTINCT ( + col1 ) * - 78 FROM tab0 cor0
----
-6708
-7098
-7566
query I rowsort
SELECT + col0 + col1 * + ( - 83 ) FROM tab1 AS cor0
----
-2155
-766
-999
onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT - ( + col0 ) DIV ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1827
SELECT - ( + col0 ) / ( col0 ) FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 80 - - 15 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1829
SELECT + CAST( 88 AS SIGNED ) - + col1 * - 24 AS col2 FROM tab1
----
328
400
712
skipif mysql # not compatible
query I rowsort label-1829
SELECT + CAST ( 88 AS INTEGER ) - + col1 * - 24 AS col2 FROM tab1
----
328
400
712
onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT DISTINCT 42 * tab2.col1 DIV - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
-12
-13
-22
-24
-25
-43
-45
-7
skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT 42 * tab2.col1 / - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
-12
-13
-22
-24
-25
-43
-45
-7
query I rowsort
SELECT ALL - 90 * col0 FROM tab1
----
-270
-5760
-7200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col1 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT - col2 DIV - col0 + - col1 * + 61 FROM tab0 AS cor0
----
-5245
-5551
-5917
skipif mysql # not compatible
query I rowsort label-1833
SELECT - col2 / - col0 + - col1 * + 61 FROM tab0 AS cor0
----
-5245
-5551
-5917
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT col1 DIV + 24 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1834
SELECT col1 / + 24 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + col1 * + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1836
SELECT DISTINCT col2 + + CAST( + col1 + + col1 AS SIGNED ) FROM tab0
----
195
205
264
skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT col2 + + CAST ( + col1 + + col1 AS INTEGER ) FROM tab0
----
195
205
264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1837
SELECT ALL col1 + CAST( + col2 AS SIGNED ) FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL col1 + CAST ( + col2 AS INTEGER ) FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT DISTINCT - CAST( cor0.col0 AS SIGNED ) FROM tab2, tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - CAST ( cor0.col0 AS INTEGER ) FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - ( + cor0.col0 ) * col1 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 45 FROM tab2, tab2 AS cor0
----
45
query I rowsort
SELECT 93 * tab2.col2 * col2 AS col1 FROM tab2
----
134292
62868
67797
query I rowsort
SELECT - 23 + + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 55826b63b45bd9d99e96935f23e3f74a
query I rowsort
SELECT DISTINCT + 49 + col0 * - col1 FROM tab2 AS cor0
----
-1294
-168
-4553
query I rowsort
SELECT + ( col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT col1 * col2 + + cor0.col1 DIV 39 FROM tab2 AS cor0
----
1535
646
837
skipif mysql # not compatible
query I rowsort label-1845
SELECT col1 * col2 + + cor0.col1 / 39 FROM tab2 AS cor0
----
1535
646
837
query I rowsort
SELECT ALL ( 89 + col1 ) FROM tab2
----
106
120
148
query I rowsort
SELECT DISTINCT tab1.col0 + col0 * col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT - - 87 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-29
skipif mysql # not compatible
query I rowsort label-1848
SELECT - - 87 / - col0 FROM tab1 AS cor0
----
-1
-1
-29
query I rowsort
SELECT col2 * + col1 + col1 * ( - col1 ) AS col1 FROM tab1
----
1079
470
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 94 - col1 AS col1 FROM tab1 AS cor0
----
-104
-107
-120
query I rowsort
SELECT ALL cor0.col2 * - 10 AS col1 FROM tab1 cor0
----
-540
-570
-960
query I rowsort
SELECT ALL - cor0.col0 * - 90 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT DISTINCT + - cor2.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
-24
-35
-89
query I rowsort
SELECT + col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col1 + + col0 * - ( ( - col1 ) ) FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL - ( col2 ) * + col1 + - col1 AS col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT + col2 * col2 + 9 FROM tab2 AS cor0
----
1453
685
738
query I rowsort
SELECT - + col0 * - col0 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
106018
1512
358878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1861
SELECT ALL - + col1 + - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - + col1 + - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + - cor0.col0 * + col1 + cor0.col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT col0 * - 78 AS col0 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT ALL + 0 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - col1 + 12 FROM tab2 AS cor0
----
-19
-47
-5
query I rowsort
SELECT - col1 + - 0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * - col0 * - col0 + col2 FROM tab1 AS cor0
----
288
41017
83296
query I rowsort
SELECT ALL + 39 * col1 FROM tab0
----
3354
3549
3783
query I rowsort
SELECT 41 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT - col1 + 71 FROM tab0 AS cor0
----
-15
-20
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1872
SELECT DISTINCT col0 + ( + col0 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT col0 + ( + col0 ) / - col0 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + - cor0.col0 + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col1 * 98 AS col2 FROM tab1
----
1274
2548
980
query I rowsort
SELECT ALL - 31 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 5 * ( col1 ) col2 FROM tab0 AS cor0
----
463
486
537
query I rowsort
SELECT DISTINCT - cor0.col1 * + 85 + + col0 FROM tab1 cor0
----
-1025
-2207
-786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 14 col1 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT + ( col0 ) + col0 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT ALL + - ( - col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 33 * col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
340
442
884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1882
SELECT ALL + - CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + - CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col1 + - ( col2 ) FROM tab0
----
-63
-84
-95
query I rowsort
SELECT col1 * + ( + ( col1 ) * - col1 ) FROM tab0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT DISTINCT - col2 DIV + col1 + - tab2.col0 AS col1 FROM tab2
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - col2 / + col1 + - tab2.col0 AS col1 FROM tab2
----
-7
-78
-81
query I rowsort
SELECT ALL col1 * 2 + + ( col2 + ( 53 ) ) * - col2 * 35 FROM tab0
----
-1696
-387268
-99158
query I rowsort
SELECT col2 * ( + 10 ) AS col2 FROM tab2
----
260
270
380
query I rowsort
SELECT col2 + cor0.col0 * ( ( + col1 ) ) FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - + ( + col1 ) * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col2 * cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - 65 * col0 - - 71 AS col1 FROM tab2 AS cor0
----
-384
-4999
-5064
query I rowsort
SELECT - col1 * + col2 - 47 * 96 * col2 FROM tab1 AS cor0
----
-245052
-257754
-434400
query I rowsort
SELECT DISTINCT col2 * col1 + + col0 - - col0 AS col0 FROM tab0 cor0
----
167
2886
7640
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - + tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col1 * col0 - + col0 FROM tab1
----
576
75
960
query I rowsort
SELECT tab2.col1 * + col2 + - col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT ALL - 75 * col1 + - tab2.col1 FROM tab2
----
-1292
-2356
-4484
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT col1 / + col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1900
SELECT col1 / + col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1901
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT DISTINCT col2 + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT col2 + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT + ( - col0 ) DIV - col1 + - 83 FROM tab2 cor0
----
-79
-82
-83
skipif mysql # not compatible
query I rowsort label-1903
SELECT + ( - col0 ) / - col1 + - 83 FROM tab2 cor0
----
-79
-82
-83
query I rowsort
SELECT ALL col0 + col1 * + 70 * col0 AS col2 FROM tab2 AS cor0
----
15197
322218
94089
query I rowsort
SELECT ALL + - col1 + + col0 + 18 AS col2 FROM tab0 AS cor0
----
-44
-44
16
query I rowsort
SELECT - col1 * + col0 + ( + col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT cor0.col1 * - cor0.col2 - 57 AS col1 FROM tab0 AS cor0
----
-154
-2895
-7519
query I rowsort
SELECT DISTINCT + col2 * + col0 - col1 AS col0 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + + col0 * tab2.col1 col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col1 * col1 + + col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT - tab1.col0 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT col1 * + col0 + + col1 * - col2 AS col1 FROM tab0
----
-774
3298
637
query I rowsort
SELECT DISTINCT col0 * - col2 * col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND + col1 * - col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT + col0 DIV - col0 + tab1.col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-1915
SELECT + col0 / - col0 + tab1.col2 FROM tab1
----
53
56
95
query I rowsort
SELECT ALL col1 * + col2 + + cor0.col0 * - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-3127
-714
589
query I rowsort
SELECT - tab1.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT col1 + tab1.col0 * col0 * col1 FROM tab1
----
260
40970
83213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - cor0.col2 * - col2 + + col0 + - cor0.col2 col0 FROM tab1 AS cor0
----
119792
32497
75765
onlyif mysql # use DIV operator for integer division
query I rowsort label-1920
SELECT + ( tab1.col0 ) DIV tab1.col0 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1920
SELECT + ( tab1.col0 ) / tab1.col0 + col0 FROM tab1
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT DISTINCT col2 DIV - tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT col2 / - tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
15
31
59
query I rowsort
SELECT - - col1 + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + 8 + col2 FROM tab0 AS cor0
----
41
9
90
query I rowsort
SELECT DISTINCT - col1 * col1 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + col0 * col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col0 + - cor0.col1 * col1 FROM tab0 cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT - col2 DIV col0 + + col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-1927
SELECT - col2 / col0 + + col0 FROM tab0 AS cor0
----
23
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + col2 col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - col1 * + cor0.col1 - col0 * col0 AS col2 FROM tab2 AS cor0
----
-1010
-6530
-9565
query I rowsort
SELECT DISTINCT + col2 * + col2 - col1 FROM tab2
----
1427
617
698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + col0 col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT tab2.col1 / - col0 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0 * col2
----
query I rowsort
SELECT col1 + + tab1.col0 + tab1.col2 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN - col1 AND NULL
----
query I rowsort
SELECT col2 + col0 * tab1.col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - col2 * - col0 - col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - col1 + + tab1.col1 + col2 AS col1 FROM tab1 WHERE NOT + col0 + col2 * - col1 <= NULL
----
query I rowsort
SELECT ALL tab0.col2 * col0 + + tab0.col2 + - tab0.col1 * col0 * col1 FROM tab0
----
-176679
-329279
-729629
query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + col0 + col2 = NULL
----
query I rowsort
SELECT - col2 * + tab2.col2 + col0 FROM tab2
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 * - col1 col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT 15 + - col0 * - 69 AS col0 FROM tab0 cor0
----
1671
2430
6156
query I rowsort
SELECT + col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - 64 AS col1 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT - col2 * + col1 * - tab1.col1 - col2 AS col0 FROM tab1
----
16128
36450
5643
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE + col1 * - col2 <> col0
----
7
78
79
query I rowsort
SELECT - - col0 + - cor0.col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1427
-617
-698
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( col0 )
----
query I rowsort
SELECT + col0 * - cor0.col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - tab1.col1 * + col0 + - tab1.col2 * + col1 AS col0 FROM tab1
----
-1210
-1482
-2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col2 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + tab2.col1 * - col2 * col0 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE NULL BETWEEN ( + col0 + + col2 * + col1 ) AND NULL
----
query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 + col1 / - col1 + + tab1.col2 IN ( col1 * + tab1.col2 )
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col1 * - tab1.col0 - col1 AS col2 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT tab2.col1 * col2 + col2 * + col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT - col0 - - tab1.col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - col1 + col0 / + col1 + col0 ) >= NULL
----
query I rowsort
SELECT + col0 / tab0.col1 AS col0 FROM tab0 WHERE ( - col0 + + col1 ) <> NULL
----
query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col0 > col2
----
query I rowsort
SELECT ALL + ( + col0 ) * + ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col0 * col2 + 62 AS col1 FROM tab1
----
-100
-3586
-7618
query I rowsort
SELECT DISTINCT + col0 * col2 + 17 FROM tab1
----
179
3665
7697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 * + tab2.col1 ) + - col1 * - col1 * + col0 col1 FROM tab2
----
22542
268037
5766
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 * + 86 * col0 AS col2 FROM tab0
----
-174666
-291873
-689052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + col1 col0 FROM tab0
----
147
152
158
query I rowsort
SELECT ALL - ( col2 * + col2 ) + + 22 FROM tab0
----
-1067
-6702
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT DISTINCT tab1.col0 DIV + tab1.col0 + + col2 DIV col1 AS col1 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT tab1.col0 / + tab1.col0 + + col2 / col1 AS col1 FROM tab1
----
3
6
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + + 60 col1 FROM tab1 AS cor0
----
222
3708
7740
query I rowsort
SELECT DISTINCT + col1 + col0 * col0 - cor0.col0 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-229366
-451
-607987
query I rowsort
SELECT 85 * col1 + col1 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT col2 + col2 * 80 * - col2 AS col1 FROM tab2
----
-115482
-54054
-58293
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - 58 AS REAL ) * + col1 AS col1 FROM tab1
----
37120
4524
60320
query I rowsort
SELECT DISTINCT - col2 * - ( col1 + + col2 ) FROM tab2
----
1566
2090
2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * - ( + ( col0 ) + - col1 ) col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT col1 * - 61 * col0 AS col1 FROM tab0
----
-125904
-207095
-494039
query I rowsort
SELECT - col2 * - 55 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1, tab2 AS cor0
----
-42
query I rowsort
SELECT ALL - tab0.col0 - 84 * + 89 FROM tab0
----
-7500
-7511
-7565
query I rowsort
SELECT + col2 + 30 FROM tab1
----
126
84
87
query I rowsort
SELECT col2 - + ( + col0 ) AS col0 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col0 ) col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 66 * 69 + col2 AS col2 FROM tab1 AS cor0
----
4608
4611
4650
query I rowsort
SELECT + ( 35 ) + - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-141
-22
-86
query I rowsort
SELECT ALL cor0.col2 * - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col1 - - 7 col2 FROM tab1 AS cor0
----
1047
647
85
query I rowsort
SELECT ALL + - 13 FROM tab1 AS cor0
----
-13
-13
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT DISTINCT + ( col2 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + ( col2 ) / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + 35 * - col0 + - cor0.col1 FROM tab0 AS cor0
----
-1322
-3206
-926
query I rowsort
SELECT - 7 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-182
-70
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT 83 * ( - col1 ) DIV cor0.col2 + - ( - col2 ) * col0 FROM tab0 AS cor0
----
-8016
576
7206
skipif mysql # not compatible
query I rowsort label-1992
SELECT 83 * ( - col1 ) / cor0.col2 + - ( - col2 ) * col0 FROM tab0 AS cor0
----
-8016
576
7206
query I rowsort
SELECT ALL - + ( + col2 ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - 24 + 28 AS col0 FROM tab1
----
4
4
4
query I rowsort
SELECT tab0.col0 * + col1 * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab0, tab2 AS cor0
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL + col2 DIV col1 + + col1 * + col2 FROM tab2
----
1534
648
837
skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + col2 / col1 + + col1 * + col2 FROM tab2
----
1534
648
837
query I rowsort
SELECT ALL 50 + - col1 AS col2 FROM tab0
----
-36
-41
-47
query I rowsort
SELECT ALL + + ( - col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col0 * 25 FROM tab0 AS cor0
----
2225
600
875
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT ALL - 76 DIV + col2 col2 FROM tab0 AS cor0
----
-2
-76
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - 76 / + col2 col2 FROM tab0 AS cor0
----
-2
-76
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * - col1 col2 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT ALL + ( + 20 ) FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ALL - - 14 + cor0.col2 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT DISTINCT - cor0.col1 * ( - col2 * cor0.col2 ) FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT cor0.col0 + - col1 * + col1 * col0 + + col2 FROM tab0 AS cor0
----
-177447
-329279
-736838
query I rowsort
SELECT ALL + - 2 * - col1 + + cor0.col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + col0 + cor0.col1 + col1 FROM tab1 AS cor0
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT col1 * col0 + - cor0.col0 * col0 FROM tab0 AS cor0
----
1488
178
2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT DISTINCT - + col2 + col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT - + col2 + col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT col1 + col2 + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
118
172
97
skipif mysql # not compatible
query I rowsort label-2012
SELECT col1 + col2 + col0 / - col0 AS col1 FROM tab0 AS cor0
----
118
172
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT + - col1 DIV col1 + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
108
66
79
skipif mysql # not compatible
query I rowsort label-2013
SELECT + - col1 / col1 + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
108
66
79
query I rowsort
SELECT DISTINCT 14 * col0 AS col1 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT DISTINCT - col2 + tab2.col1 - - col1 * col1 FROM tab2
----
268
3514
965
query I rowsort
SELECT ALL - 22 + + 48 - col0 FROM tab2
----
-52
-53
19
query I rowsort
SELECT + ( col2 ) - - col1 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ( col2 * col2 ) + + col0 + - tab0.col2 AS col2 FROM tab0
----
1080
35
6731
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * - 19 AS col0 FROM tab2 AS cor0
----
-12274
-15903
-29146
query I rowsort
SELECT ALL + col2 + 55 FROM tab2 AS cor0
----
81
82
93
query I rowsort
SELECT ALL col0 + + cor0.col1 * col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT + cor0.col1 + + col1 DIV + col0 - - col0 * col1 col0 FROM tab0 AS cor0
----
2153
3494
8191
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + cor0.col1 + + col1 / + col0 - - col0 * col1 col0 FROM tab0 AS cor0
----
2153
3494
8191
onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT DISTINCT col0 + cor0.col1 DIV + cor0.col0 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT col0 + cor0.col1 / + cor0.col0 FROM tab0 cor0
----
27
37
90
query I rowsort
SELECT DISTINCT col0 * col1 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2025
SELECT ALL - col0 * CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL - col0 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col0 + col0 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - + col0 - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + col1 * 33 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT ALL + col1 + 22 FROM tab2 AS cor0
----
39
53
81
query I rowsort
SELECT ALL - col2 + 81 AS col2 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col0 + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * + col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2035
SELECT CAST( NULL AS SIGNED ) + 69 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2035
SELECT CAST ( NULL AS INTEGER ) + 69 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT cor0.col0 + - ( - 5 ) * + col1 FROM tab2 cor0
----
162
164
373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + cor0.col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT ALL col0 DIV col1 + + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-163
-676
-94
skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL col0 / col1 + + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-163
-676
-94
query I rowsort
SELECT cor0.col0 * - col0 + - col0 * col0 FROM tab1 AS cor0
----
-12800
-18
-8192
query I rowsort
SELECT + cor0.col0 * + cor0.col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT col1 DIV ( col2 * + ( - 42 ) ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2041
SELECT col1 / ( col2 * + ( - 42 ) ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT + 7 * col2 DIV - col2 FROM tab1 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-2042
SELECT + 7 * col2 / - col2 FROM tab1 AS cor0
----
-7
-7
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 6 col2 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT 5 * - col0 FROM tab1 cor0
----
-15
-320
-400
query I rowsort
SELECT DISTINCT 58 * - 90 AS col0 FROM tab0, tab0 AS cor0
----
-5220
query I rowsort
SELECT DISTINCT - + col2 * + col0 - - 1 * 56 AS col2 FROM tab0 AS cor0
----
-7242
-736
21
query I rowsort
SELECT 69 + + col1 FROM tab1 AS cor0
----
79
82
95
query I rowsort
SELECT DISTINCT - 66 * + col1 + 16 AS col2 FROM tab0 AS cor0
----
-5660
-5990
-6386
query I rowsort
SELECT + - col1 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT col0 + col1 * + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
119888
32554
75819
query I rowsort
SELECT - cor0.col2 - + col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + 88 col2 FROM tab2 AS cor0
----
-1356
-588
-641
onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT DISTINCT - 45 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
45
skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT - 45 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
45
query I rowsort
SELECT 94 + - col1 AS col1 FROM tab2 AS cor0
----
35
63
77
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col2 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL col0 - + 99 AS col1 FROM tab2
----
-20
-21
-92
query I rowsort
SELECT tab1.col1 + 42 * col2 + tab1.col1 AS col0 FROM tab1
----
2320
2414
4058
query I rowsort
SELECT - - col1 * col1 + col0 - col1 FROM tab1 AS cor0
----
154
236
653
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 35 FROM tab1, tab1 cor0, tab0 AS cor1
----
-35
query I rowsort
SELECT cor0.col1 * 87 AS col0 FROM tab0 AS cor0
----
7482
7917
8439
onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT 32 DIV - tab2.col0 AS col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2062
SELECT 32 / - tab2.col0 AS col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT cor0.col1 * tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to 73681df8216070e2d6c1ade2e7109825
query I rowsort
SELECT ALL ( cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT - + col1 DIV col0 + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7399
-8282
-9411
skipif mysql # not compatible
query I rowsort label-2065
SELECT - + col1 / col0 + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7399
-8282
-9411
query I rowsort
SELECT + - cor0.col0 * col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + 78 * 67 FROM tab2 AS cor0
----
5226
5226
5226
query I rowsort
SELECT + col1 * 64 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT - 25 + 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT CAST( NULL AS SIGNED ) * col2 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2070
SELECT CAST ( NULL AS INTEGER ) * col2 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT col2 * 20 + col0 AS col0 FROM tab2 AS cor0
----
547
598
839
query I rowsort
SELECT DISTINCT 90 + col0 AS col2 FROM tab0
----
114
125
179
query I rowsort
SELECT ALL - + col2 * - 1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * + col0 + - cor0.col2 * ( col0 ) FROM tab0 AS cor0
----
-1260
-1368
-15219
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( - cor0.col1 AS REAL ) + + cor0.col2 * + col2 AS col0 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT + 15 - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-11
-12
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2079
SELECT ALL + CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 36 + 91 + + col1 FROM tab0 AS cor0
----
141
146
152
query I rowsort
SELECT DISTINCT 40 + + 38 * - cor0.col1 FROM tab0 cor0
----
-3228
-3418
-3646
query I rowsort
SELECT + cor0.col1 + + 79 AS col2 FROM tab1 AS cor0
----
105
89
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT + col2 * - cor0.col2 + - col1 + 84 DIV + ( + col1 + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-1175
-6815
-98
skipif mysql # not compatible
query I rowsort label-2083
SELECT + col2 * - cor0.col2 + - col1 + 84 / + ( + col1 + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT - 30 * 40 FROM tab1 AS cor0
----
-1200
query I rowsort
SELECT - col2 * - col0 + - col0 + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
7291
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2086
SELECT ALL - col0 + cor0.col1 * - CAST( NULL AS SIGNED ) + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - col0 + cor0.col1 * - CAST ( NULL AS INTEGER ) + col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 74 AS col0 FROM tab2
----
74
74
74
query I rowsort
SELECT - 85 * - col2 + col1 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
3160
4265
6899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab2 cor0
----
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2090
SELECT 25 + col0 DIV - col1 + - col2 col1 FROM tab0 AS cor0
----
-57
-8
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2090
SELECT 25 + col0 / - col1 + - col2 col1 FROM tab0 AS cor0
----
-57
-8
24
query I rowsort
SELECT DISTINCT 49 + + col1 FROM tab2
----
108
66
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2092
SELECT DISTINCT + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 * + 37 AS col1 FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT DISTINCT col0 DIV - ( - 19 + col0 * + 40 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT col0 / - ( - 19 + col0 * + 40 ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col0 col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL 16 * + 51 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d0d74838f42e16790a5441d65147272a
query I rowsort
SELECT col2 - col2 * col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT + col1 + - 26 * - 21 FROM tab2 AS cor0
----
563
577
605
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2100
SELECT DISTINCT - col1 * + CAST( + tab2.col0 AS SIGNED ) AS col2 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - col1 * + CAST ( + tab2.col0 AS INTEGER ) AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT col1 + 88 FROM tab0
----
174
179
185
query I rowsort
SELECT ALL - col2 + 50 FROM tab2
----
12
23
24
query I rowsort
SELECT ALL - 19 * - 25 FROM tab0
----
475
475
475
query I rowsort
SELECT - 87 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT DISTINCT col0 + + col2 DIV + col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT col0 + + col2 / + col0 FROM tab1
----
21
64
81
query I rowsort
SELECT ALL 85 + - ( col0 ) * + col1 AS col2 FROM tab1
----
-555
-955
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2107
SELECT ALL ( + ( + col0 ) ) * ( col2 ) * tab2.col1 + - CAST( col1 AS SIGNED ) FROM tab2
----
119593
51017
5828
skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL ( + ( + col0 ) ) * ( col2 ) * tab2.col1 + - CAST ( col1 AS INTEGER ) FROM tab2
----
119593
51017
5828
query I rowsort
SELECT DISTINCT - - 36 FROM tab2 AS cor0
----
36
query I rowsort
SELECT ALL - - cor0.col1 * + col0 + - col1 * 55 + + col0 FROM tab2 AS cor0
----
-1481
1435
487
query I rowsort
SELECT 35 * + 17 FROM tab0 AS cor0
----
595
595
595
query I rowsort
SELECT ALL - 1 + + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT ALL + 40 AS col0 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT - col1 + - col2 + ( col1 ) * - col0 AS col1 FROM tab1
----
-1149
-158
-707
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT DISTINCT + col1 * col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + col1 * col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2115
SELECT - + col2 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2115
SELECT - + col2 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col0 col2 FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col0 ) col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 * + 48 FROM tab1 AS cor0
----
-1248
-480
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT - col1 + 44 DIV col2 col1 FROM tab0 cor0
----
-53
-85
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2119
SELECT - col1 + 44 / col2 col1 FROM tab0 cor0
----
-53
-85
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT col1 DIV ( 35 ) FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2120
SELECT col1 / ( 35 ) FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 51 col0 FROM tab1 AS cor0
----
2754
2907
4896
query I rowsort
SELECT - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT - cor0.col0 * ( 26 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2225
-600
-875
query I rowsort
SELECT ALL + col1 * 70 FROM tab2 AS cor0
----
1190
2170
4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT DISTINCT - col2 DIV 12 AS col0 FROM tab1 cor0
----
-4
-8
skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT - col2 / 12 AS col0 FROM tab1 cor0
----
-4
-8
query I rowsort
SELECT ALL + col2 * - 24 AS col2 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT ALL col0 + - col0 + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + - cor0.col2 * 32 + + col0 AS col1 FROM tab2 AS cor0
----
-1137
-754
-857
onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT - col0 DIV ( + 89 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2129
SELECT - col0 / ( + 89 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 - 95 FROM tab1 AS cor0
----
-105
-108
-121
query I rowsort
SELECT + col2 * + 7 AS col1 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT ALL - col0 + col0 * - col2 AS col1 FROM tab1 cor0
----
-165
-3712
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2133
SELECT - col1 + - CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2133
SELECT - col1 + - CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2134
SELECT ALL col1 DIV - ( col1 ) - - col1 * col1 FROM tab2 AS cor0
----
288
3480
960
skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL col1 / - ( col1 ) - - col1 * col1 FROM tab2 AS cor0
----
288
3480
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT CAST( + col0 AS SIGNED ) * - col0 * - tab0.col2 AS col1 FROM tab0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-2135
SELECT CAST ( + col0 AS INTEGER ) * - col0 * - tab0.col2 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col0 + ( - col2 ) AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2137
SELECT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2137
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + 48 AS col0 FROM tab2
----
126
127
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT DISTINCT - 88 * col1 DIV - col1 FROM tab0
----
88
skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - 88 * col1 / - col1 FROM tab0
----
88
query I rowsort
SELECT cor0.col2 * 29 AS col2 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT ALL - + ( + col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2142
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2143
SELECT + ( col0 + col1 ) * - CAST( + 44 AS SIGNED ) AS col1 FROM tab0
----
-4840
-5808
-7920
skipif mysql # not compatible
query I rowsort label-2143
SELECT + ( col0 + col1 ) * - CAST ( + 44 AS INTEGER ) AS col1 FROM tab0
----
-4840
-5808
-7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT - col2 DIV ( + col2 ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2144
SELECT - col2 / ( + col2 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - 13 * - col2 FROM tab2
----
338
351
494
query I rowsort
SELECT - - ( - cor0.col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - - col2 + col1 * 27 FROM tab2 AS cor0
----
1619
497
864
query I rowsort
SELECT ALL 26 * col2 AS col1 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 * - ( + col0 ) AS col2 FROM tab0 cor0
----
13824
42875
704969
query I rowsort
SELECT + 63 * cor0.col2 * 9 FROM tab1 AS cor0
----
30618
32319
54432
query I rowsort
SELECT + 48 + col1 AS col1 FROM tab2 AS cor0
----
107
65
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT ALL 23 + ( col2 ) DIV + col2 FROM tab1
----
24
24
24
skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 23 + ( col2 ) / + col2 FROM tab1
----
24
24
24
query I rowsort
SELECT DISTINCT col0 * ( 97 ) AS col2 FROM tab0 cor0
----
2328
3395
8633
query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col0 FROM tab0 cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT ALL - col0 DIV + col1 + 67 + + col1 FROM tab2 AS cor0
----
125
80
98
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - col0 / + col1 + 67 + + col1 FROM tab2 AS cor0
----
125
80
98
query I rowsort
SELECT DISTINCT + cor0.col2 * ( 13 ) AS col1 FROM tab1 AS cor0
----
1248
702
741
query I rowsort
SELECT DISTINCT - + col1 * + 36 FROM tab2 AS cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT - cor0.col2 DIV ( + col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2158
SELECT - cor0.col2 / ( + col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT col2 + col1 * + 34 AS col1 FROM tab0 AS cor0
----
2957
3176
3299
query I rowsort
SELECT DISTINCT - - col1 * 63 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT - - 28 + + cor0.col0 * col0 + col0 * - ( + col0 ) * col0 FROM tab2 AS cor0
----
-266
-468440
-486770
query I rowsort
SELECT DISTINCT col0 + 11 AS col2 FROM tab0
----
100
35
46
query I rowsort
SELECT + 95 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT + ( + 32 ) FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT col0 * col0 + + 35 * - col2 - + col2 AS col1 FROM tab2
----
-923
4873
5148
query I rowsort
SELECT ( - cor0.col0 ) + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + 22 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT + + col2 * - col0 + + col1 + + col0 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT ALL - + cor0.col0 * col0 + + col1 * + col2 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT DISTINCT + 72 + + col0 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT ALL - cor1.col0 * 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4a696ae40ceaf86ac4a787c53789cef6
query I rowsort
SELECT + + 82 FROM tab1 cor0
----
82
82
82
query I rowsort
SELECT DISTINCT - 49 * 1 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2175
SELECT ALL - CAST( 39 AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - CAST ( 39 AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT ALL + col0 + + 72 FROM tab0 AS cor0
----
107
161
96
query I rowsort
SELECT - col1 + - col2 * col2 * col2 AS col0 FROM tab2 AS cor0
----
-17635
-19714
-54889
query I rowsort
SELECT 4 + - col1 * - ( + 37 ) AS col1 FROM tab0 cor0
----
3186
3371
3593
query I rowsort
SELECT - cor0.col2 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( - 83 ) col0 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT - + col0 * 24 AS col1 FROM tab1 AS cor0
----
-1536
-1920
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT ALL + - col2 + CAST( NULL AS DECIMAL ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + - col2 + CAST ( NULL AS REAL ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + 69 col0 FROM tab2 AS cor0
----
-1173
-2139
-4071
onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT ALL + cor0.col1 DIV col1 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + cor0.col1 / col1 AS col2 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT + col1 DIV + col2 + + col2 * + 21 FROM tab0 AS cor0
----
118
1723
695
skipif mysql # not compatible
query I rowsort label-2185
SELECT + col1 / + col2 + + col2 * + 21 FROM tab0 AS cor0
----
118
1723
695
query I rowsort
SELECT + ( 61 ) AS col2 FROM tab0
----
61
61
61
query I rowsort
SELECT - col2 - + 17 * + col0 FROM tab1
----
-105
-1145
-1456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT + 77 + cor0.col0 AS col0 FROM tab1 AS cor0
----
141
157
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT DISTINCT + 64 DIV col2 + col2 * - cor0.col0 FROM tab0 cor0
----
-7298
-791
29
skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 64 / col2 + col2 * - cor0.col0 FROM tab0 cor0
----
-7298
-791
29
query I rowsort
SELECT DISTINCT + ( - ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 + + 45 FROM tab0 AS cor0
----
-41
-46
-52
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - 73 FROM tab1 AS cor0
----
2843
3176
9143
query I rowsort
SELECT ALL + ( col2 ) + 39 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT DISTINCT + col0 * col2 DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT + col0 * col2 / col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT ALL - 63 * + col1 * CAST( + col1 AS SIGNED ) + col2 * col1 * col2 AS col0 FROM tab2 AS cor0
----
-179419
-37944
6341
skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - 63 * + col1 * CAST ( + col1 AS INTEGER ) + col2 * col1 * col2 AS col0 FROM tab2 AS cor0
----
-179419
-37944
6341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 - + 11 AS col0 FROM tab0
----
-102
-108
-97
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
13448
2
2178
onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT DISTINCT + col1 * + cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + col1 * + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - 85 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT ALL + 45 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + 45 / - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col2 ) - + 65 col0 FROM tab2 AS cor0
----
-27
-38
-39
query I rowsort
SELECT DISTINCT - 47 + - col0 FROM tab2
----
-125
-126
-54
query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab2, tab0, tab0 cor0
----
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT + 28 * col0 DIV ( + col1 * col2 ) + - ( + col0 ) * - col0 FROM tab1
----
4099
6401
9
skipif mysql # not compatible
query I rowsort label-2207
SELECT + 28 * col0 / ( + col1 * col2 ) + - ( + col0 ) * - col0 FROM tab1
----
4099
6401
9
query I rowsort
SELECT DISTINCT + ( - tab2.col0 + 80 * col0 ) FROM tab2
----
553
6162
6241
query I rowsort
SELECT + 89 + - col0 * - col1 AS col2 FROM tab0
----
2153
3484
8188
query I rowsort
SELECT 90 * tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16c0d3b099a20fa915204b12395cc8eb
query I rowsort
SELECT ALL col1 + 20 - 47 AS col2 FROM tab2
----
-10
32
4
query I rowsort
SELECT DISTINCT + col2 - 6 FROM tab0
----
-5
27
76
query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 56 FROM tab2, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
-16
query I rowsort
SELECT ALL + - col1 * + 69 + - col0 * 65 FROM tab2 AS cor0
----
-2594
-6308
-9141
query I rowsort
SELECT - + 80 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
233280
259920
737280
query I rowsort
SELECT ALL + + ( - cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + tab2.col0 + col1 * + ( + tab2.col1 * tab2.col0 ) - - col2 * col1 AS col1 FROM tab2
----
23556
273130
7571
query I rowsort
SELECT ALL 90 + + 99 FROM tab0, tab1 AS cor0
----
9 values hashing to 8e00c29e0c7f801e9477a1b6fa0cfef6
query I rowsort
SELECT ( 77 ) FROM tab1, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 * + col2 col1 FROM tab2
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT ALL col1 DIV - col0 + - col0 FROM tab1
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL col1 / - col0 + - col0 FROM tab1
----
-11
-64
-80
query I rowsort
SELECT ALL col1 + + 14 * + tab2.col0 * col2 AS col2 FROM tab2
----
2677
28451
42045
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL ( tab0.col0 * - col2 ) + + col1 FROM tab0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) * col2 + - col2 AS col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT + - col2 + - 3 AS col2 FROM tab1 AS cor0
----
-57
-60
-99
query I rowsort
SELECT + + ( col0 ) * + col2 + 37 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-20900
-30780
-54730
query I rowsort
SELECT + - ( 74 ) + col0 FROM tab1 AS cor0
----
-10
-71
6
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - 0 * col0 - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + 38 - col2 * col0 FROM tab0 cor0
----
-7260
-754
3
query I rowsort
SELECT ALL cor0.col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + + col2 / ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + + col2 / ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
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 + col2 + - 57 + + col2 FROM tab1 AS cor0
----
135
51
57
query I rowsort
SELECT - cor0.col0 * - col0 + - col0 AS col1 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT cor0.col0 DIV col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
skipif mysql # not compatible
query I rowsort label-2240
SELECT cor0.col0 / col0 + + col1 * - col1 FROM tab0 AS cor0
----
-7395
-8280
-9408
query I rowsort
SELECT 38 + tab1.col0 FROM tab1
----
102
118
41
query I rowsort
SELECT ALL + col0 * 93 AS col0 FROM tab2
----
651
7254
7347
query I rowsort
SELECT - col0 * 89 + + col1 * - col2 * col1 FROM tab2
----
-18013
-26570
-97448
query I rowsort
SELECT - 92 * cor0.col2 FROM tab0 AS cor0
----
-3036
-7544
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 41 ) + + col2 col0 FROM tab2
----
-14
-15
-3
query I rowsort
SELECT ALL 75 + ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
1164
6799
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT DISTINCT col2 DIV + cor0.col2 + + col1 DIV col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7392
-8279
-9406
skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT col2 / + cor0.col2 + + col1 / col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7392
-8279
-9406
query I rowsort
SELECT + 38 + - col2 * + cor0.col1 * - col2 FROM tab0 AS cor0
----
135
611922
93692
query I rowsort
SELECT ALL 75 AS col0 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + col1 + col2 * col2 )
----
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL IN ( - col1 + - col2 * tab2.col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - col1 * - col0 * - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT tab0.col2 + - col1 * col0 FROM tab0
----
-2031
-3394
-8017
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IN ( col2 * + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col0 * col0 AS col0 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + tab0.col2 * - col2 * - col1 col2 FROM tab0
----
-611966
-93687
-98
query I rowsort
SELECT ALL + tab0.col1 - - col0 * + col0 AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col2 BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col0 * - col0 col2 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col0 * + col0 = NULL
----
query I rowsort
SELECT + col0 + - tab0.col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - col0 * - col1 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT + col2 DIV col1 + cor0.col2 AS col0 FROM tab1 cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2263
SELECT + col2 / col1 + cor0.col2 AS col0 FROM tab1 cor0
----
103
56
62
query I rowsort
SELECT - - col2 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT ALL + col2 + - col2 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + col2 + - col2 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col2 + + tab2.col0 + col0 * - col1 AS col0 FROM tab2
----
-1226
-183
-4498
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col2 BETWEEN NULL AND col2 * + col2 * col1
----
query I rowsort
SELECT - col0 * - col1 * - cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT + col2 DIV col1 + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-2269
SELECT + col2 / col1 + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3004
query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col1 IN ( tab2.col0 )
----
query I rowsort
SELECT ALL col1 + - 25 AS col0 FROM tab1
----
-12
-15
1
query I rowsort
SELECT - - ( 85 ) AS col0 FROM tab2 AS cor0
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col1 col1 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT DISTINCT col1 DIV + col0 + + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-2274
SELECT DISTINCT col1 / + col0 + + col0 AS col2 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT DISTINCT 69 * + col0 * col1 + 42 DIV - col0 FROM tab0 AS cor0
----
142415
234254
558831
skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT 69 * + col0 * col1 + 42 / - col0 FROM tab0 AS cor0
----
142415
234254
558831
query I rowsort
SELECT ALL - + col0 * - 21 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT - col2 * - 26 FROM tab1 cor0
----
1404
1482
2496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2278
SELECT ALL - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * tab2.col2 + col1 * col0 FROM tab2
----
2787
5278
946
query I rowsort
SELECT col2 + 22 FROM tab0
----
104
23
55
query I rowsort
SELECT tab0.col0 * + tab0.col1 + - 85 AS col2 FROM tab0
----
1979
3310
8014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2282
SELECT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2282
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - - ( - col1 + - tab0.col1 ) AS col0 FROM tab0
----
-195
-205
-264
query I rowsort
SELECT - col0 + - 49 AS col2 FROM tab0
----
-138
-73
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT ALL CAST( cor0.col2 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL CAST ( cor0.col2 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT DISTINCT col1 DIV col2 + col0 DIV col0 FROM tab0 AS cor0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT col1 / col2 + col0 / col0 FROM tab0 AS cor0
----
2
3
98
query I rowsort
SELECT DISTINCT + col2 * - col1 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT ALL CAST( - 16 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-13
48
64
skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL CAST ( - 16 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-13
48
64
query I rowsort
SELECT ALL + + 12 FROM tab1 cor0
----
12
12
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT ALL + CAST( ( col2 ) AS SIGNED ) * col0 + + 67 FROM tab1 AS cor0
----
229
3715
7747
skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL + CAST ( ( col2 ) AS INTEGER ) * col0 + + 67 FROM tab1 AS cor0
----
229
3715
7747
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - 99 + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7ea6654561cf7f12aec14fe2a82ea98f
query I rowsort
SELECT + col1 * - col1 * tab2.col1 - col0 AS col2 FROM tab2
----
-205457
-29798
-4992
query I rowsort
SELECT col1 * col1 + col2 * col1 * cor0.col2 FROM tab1 cor0
----
119977
32590
76492
query I rowsort
SELECT + + col0 * + col1 - + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT col1 DIV cor0.col0 + + 28 * - col1 + + col0 FROM tab1 AS cor0
----
-216
-284
-717
skipif mysql # not compatible
query I rowsort label-2297
SELECT col1 / cor0.col0 + + 28 * - col1 + + col0 FROM tab1 AS cor0
----
-216
-284
-717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab2
----
118
34
62
query I rowsort
SELECT - + col0 - col0 * 37 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT col1 + - ( - col0 ) * cor0.col2 + - ( - col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1057
3621
3665
query I rowsort
SELECT ALL + col0 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - col0 ) col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT col1 * - 66 + col0 * - col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
-14187
-7773
-9798
query I rowsort
SELECT DISTINCT - + col0 * - 33 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT + + col2 + - 29 + 8 AS col1 FROM tab1 AS cor0
----
33
36
75
query I rowsort
SELECT ALL + col2 - + 4 AS col1 FROM tab0 AS cor0
----
-3
29
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT - col2 + 49 * 29 - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1384
1395
1396
skipif mysql # not compatible
query I rowsort label-2307
SELECT - col2 + 49 * 29 - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1384
1395
1396
query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + col1 + - ( col1 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + - 24 + 73 * col0 FROM tab1 AS cor0
----
195
4648
5816
query I rowsort
SELECT + col1 * - col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 14 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col0 FROM tab2 AS cor0
----
80
query I rowsort
SELECT - col0 + 86 AS col2 FROM tab1 AS cor0
----
22
6
83
query I rowsort
SELECT - col0 + + ( cor0.col2 ) FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT - 55 * col1 * + col0 AS col0 FROM tab1 cor0
----
-35200
-4290
-57200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT DISTINCT cor0.col2 DIV cor0.col0 FROM tab0, tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT cor0.col2 / cor0.col0 FROM tab0, tab2 AS cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 * ( 70 ) col1 FROM tab2 cor0
----
107380
45220
58590
query I rowsort
SELECT - 72 * col1 - col0 * - col2 FROM tab1 AS cor0
----
-1710
2928
6744
query I rowsort
SELECT DISTINCT - 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT ALL + 52 * col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT - + 92 * col0 + + 85 FROM tab1 cor0
----
-191
-5803
-7275
onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT - 78 DIV - col2 col1 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2324
SELECT - 78 / - col2 col1 FROM tab1
----
0
1
1
query I rowsort
SELECT + + col2 + col0 + col1 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + - col2 * + ( + cor0.col0 ) + + cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT DISTINCT - col2 + col2 - 48 AS col0 FROM tab0
----
-48
query I rowsort
SELECT ALL - 87 + + tab2.col0 * - tab2.col0 AS col2 FROM tab2
----
-136
-6171
-6328
onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT ALL tab2.col0 * tab2.col2 DIV 2 + 91 AS col2 FROM tab2
----
1105
1592
185
skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL tab2.col0 * tab2.col2 / 2 + 91 AS col2 FROM tab2
----
1105
1592
185
query I rowsort
SELECT tab2.col1 FROM tab2, tab0, tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col2 + col0 * 28 AS col2 FROM tab1 AS cor0
----
138
1849
2336
query I rowsort
SELECT - 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT 85 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL col0 + + col1 DIV col2 AS col2 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL col0 + + col1 / col2 AS col2 FROM tab0
----
132
26
90
query I rowsort
SELECT col2 * tab0.col1 + col0 * + col0 FROM tab0
----
1322
15383
3414
query I rowsort
SELECT + col2 + - col1 * - ( col0 ) AS col1 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT - col1 DIV + tab2.col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2339
SELECT - col1 / + tab2.col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col1 * - ( - col2 ) * tab0.col0 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL tab0.col2 * col0 + col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - 48 + - cor0.col1 FROM tab1, tab2 AS cor0
----
-107
-65
-79
query I rowsort
SELECT + + col0 + + ( + col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + ( 79 ) + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
114
7377
871
query I rowsort
SELECT DISTINCT + col0 * - 19 + col1 FROM tab0 AS cor0
----
-1600
-370
-568
onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT ALL + col1 DIV 41 + col1 AS col0 FROM tab0 AS cor0
----
88
93
99
skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + col1 / 41 + col1 AS col0 FROM tab0 AS cor0
----
88
93
99
query I rowsort
SELECT col2 * - 12 FROM tab0
----
-12
-396
-984
query I rowsort
SELECT + col2 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT col2 + ( + cor0.col2 ) * col0 + - 92 AS col1 FROM tab0 AS cor0
----
-56
7288
733
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col1 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * col1 + - 86 col2 FROM tab2 AS cor0
----
1448
560
751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT CAST( + ( col0 ) AS SIGNED ) AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2352
SELECT CAST ( + ( col0 ) AS INTEGER ) AS col1 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT ALL - col2 * 44 DIV + col1 AS col2 FROM tab1
----
-250
-324
-91
skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - col2 * 44 / + col1 AS col2 FROM tab1
----
-250
-324
-91
query I rowsort
SELECT - col1 + + col2 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT col1 * ( col2 ) * 51 FROM tab1
----
29070
63648
71604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + + col1 * ( ( - col1 ) ) * ( col0 ) col0 FROM tab2 AS cor0
----
-23477
-273052
-7564
query I rowsort
SELECT ( col0 ) * 92 AS col1 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT + col2 * - col2 * + col2 + 33 AS col0 FROM tab0 AS cor0
----
-35904
-551335
32
query I rowsort
SELECT DISTINCT ( - col1 ) * 21 - col2 * cor0.col1 FROM tab1 AS cor0
----
-1521
-1950
-780
query I rowsort
SELECT - 5 * - col2 + + ( col2 * col1 ) FROM tab2 AS cor0
----
1664
836
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT - col0 * + col2 * cor0.col2 + + col1 DIV + col0 FROM tab0 AS cor0
----
-26133
-33
-598435
skipif mysql # not compatible
query I rowsort label-2361
SELECT - col0 * + col2 * cor0.col2 + + col1 / + col0 FROM tab0 AS cor0
----
-26133
-33
-598435
query I rowsort
SELECT col0 * col2 - + 21 FROM tab1 AS cor0
----
141
3627
7659
query I rowsort
SELECT - cor0.col2 + - 22 FROM tab1 AS cor0
----
-118
-76
-79
query I rowsort
SELECT col0 * - col0 + col2 + col0 FROM tab1 AS cor0
----
-3975
-6224
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 * col0 col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT col1 + + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - 65 + col2 + col2 AS col0 FROM tab2 AS cor0
----
117
119
141
query I rowsort
SELECT DISTINCT tab0.col1 * - col2 * 62 AS col1 FROM tab0
----
-175956
-462644
-6014
query I rowsort
SELECT ALL + 73 * + 23 - + col2 * + col0 FROM tab1 AS cor0
----
-1969
-6001
1517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2370
SELECT - CAST( 59 AS SIGNED ) + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1475
587
778
skipif mysql # not compatible
query I rowsort label-2370
SELECT - CAST ( 59 AS INTEGER ) + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1475
587
778
query I rowsort
SELECT DISTINCT col1 * col0 * - ( cor0.col1 ) + + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-170108
-319906
-728728
query I rowsort
SELECT cor0.col0 + 38 AS col0 FROM tab0 AS cor0
----
127
62
73
query I rowsort
SELECT ALL + col2 * - col2 + col1 + - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-10451
-3809
-4294
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT ALL - col2 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - col2 / + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 25 AS col0 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT cor0.col0 + ( + 78 + cor0.col0 * col1 ) FROM tab1 AS cor0
----
1198
159
782
onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT - cor0.col2 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-2377
SELECT - cor0.col2 + col1 / col2 AS col0 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT ALL col0 * col2 + + cor0.col0 + + col1 * + 21 FROM tab0 cor0
----
2107
2622
9298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT + col0 + CAST( - 71 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-68
-7
9
skipif mysql # not compatible
query I rowsort label-2379
SELECT + col0 + CAST ( - 71 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-68
-7
9
query I rowsort
SELECT ALL - col2 + 31 FROM tab0 AS cor0
----
-2
-51
30
query I rowsort
SELECT - 61 * + col0 - 93 FROM tab0
----
-1557
-2228
-5522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT DISTINCT cor0.col0 * - ( - 44 ) / col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT cor0.col0 * - ( - 44 ) / col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * + col2 - - col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + col1 + 77 + ( col1 * - col2 ) AS col2 FROM tab0 AS cor0
----
-2675
-7294
77
query I rowsort
SELECT ALL + + col0 - + ( col1 ) * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + col1 * - 7 AS col0 FROM tab0 AS cor0
----
-602
-637
-679
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2, tab2
----
13122 values hashing to c868dc8c46f3a7daaa8510a2b9a93201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT ALL 43 * cor0.col2 + CAST( cor1.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2e85825d650298455b7c893449d7d348
skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 43 * cor0.col2 + CAST ( cor1.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2e85825d650298455b7c893449d7d348
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 * col0 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT + col0 * - col1 - + tab2.col1 AS col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT tab1.col2 + - col2 * + tab1.col0 * + tab1.col0 FROM tab1
----
-233415
-432
-614304
query I rowsort
SELECT col2 + col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2 - + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT + col0 * col1 DIV + col1 + col0 * tab1.col0 AS col0 FROM tab1
----
12
4160
6480
skipif mysql # not compatible
query I rowsort label-2393
SELECT + col0 * col1 / + col1 + col0 * tab1.col0 AS col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - + cor0.col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col1 * cor0.col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT ( - col0 * + col0 ) < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT tab0.col0 DIV + tab0.col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2398
SELECT tab0.col0 / + tab0.col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT col1 FROM tab2 WHERE col0 < ( NULL )
----
query I rowsort
SELECT - col2 * + col0 + + col0 + - col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col2 <= NULL
----
query I rowsort
SELECT ALL - col2 * + col2 + + col1 FROM tab1
----
-2890
-3239
-9203
query I rowsort
SELECT + tab2.col2 + tab2.col1 * col2 AS col2 FROM tab2
----
1560
684
864
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - tab0.col2 )
----
query I rowsort
SELECT + - 82 * + col1 + col2 FROM tab0 AS cor0
----
-7019
-7380
-7953
query I rowsort
SELECT ALL + 28 + col2 AS col2 FROM tab1
----
124
82
85
query I rowsort
SELECT ALL 15 * - tab0.col2 + 98 AS col0 FROM tab0
----
-1132
-397
83
query I rowsort
SELECT DISTINCT - + col2 * + col2 + + 68 * + col2 FROM tab1 AS cor0
----
-2688
627
756
query I rowsort
SELECT - 42 + col0 FROM tab2 AS cor0
----
-35
36
37
query I rowsort
SELECT DISTINCT - col1 + col0 + - tab1.col0 * 4 FROM tab1
----
-202
-253
-35
query I rowsort
SELECT - + 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT DISTINCT - col0 + col1 - - 38 * col0 AS col0 FROM tab0
----
1392
3384
974
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + col2 * + ( 70 + col0 ) col2 FROM tab1 AS cor0
----
14444
3986
7682
query I rowsort
SELECT DISTINCT 23 + col0 * - col1 AS col1 FROM tab2 cor0
----
-1320
-194
-4579
query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 13 AS col0 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT ALL + col2 * + 17 AS col2 FROM tab1 AS cor0
----
1632
918
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT ALL col1 DIV 24 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL col1 / 24 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT + - col1 * 21 + + col2 + - col0 FROM tab0 AS cor0
----
-1797
-1918
-2071
query I rowsort
SELECT 10 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 - 22 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 769404e1a65cab1647b1156a13500eea
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * - col1 * col1 FROM tab1 AS cor0
----
17573
2117
936
query I rowsort
SELECT + 29 * col1 FROM tab2 AS cor0
----
1711
493
899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col1 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT 66 * col1 AS col0 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ALL + - 75 * 99 + + col2 AS col1 FROM tab0 cor0
----
-7343
-7392
-7424
query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2429
SELECT ALL + - CAST( NULL AS SIGNED ) + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + - CAST ( NULL AS INTEGER ) + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 32 + - col0 FROM tab1 AS cor0
----
-32
-48
29
query I rowsort
SELECT ALL + 82 * + col0 AS col0 FROM tab1 AS cor0
----
246
5248
6560
onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT + + col0 * col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2432
SELECT + + col0 * col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - + col2 * col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - 15 + col1 * - 51 * - cor0.col2 AS col1 FROM tab1 cor0
----
29055
63633
71589
query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * 45 AS col1 FROM tab0
----
1485
3690
45
query I rowsort
SELECT + ( - 43 ) + - col1 * 42 * 77 AS col1 FROM tab1
----
-32383
-42085
-84127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * cor1.col2 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 32f889850b4faa376fcab5bab0353f01
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col1 ) + cor0.col2 col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT cor0.col1 * col0 + cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT + col1 + cor0.col2 DIV col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2443
SELECT + col1 + cor0.col2 / col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab2, tab2 cor0
----
95
query I rowsort
SELECT DISTINCT - 53 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2862
3021
5088
onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT - ( col2 ) DIV + cor0.col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-2446
SELECT - ( col2 ) / + cor0.col0 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT + 75 + - 55 AS col0 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT + 94 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + 33 + + col0 - col0 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT col2 * + 42 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-2389
1307
173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT - col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-2451
SELECT - col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 + - col2 + - col1 * - col1 col1 FROM tab0 AS cor0
----
15497
8155
9443
query I rowsort
SELECT - cor0.col2 * col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT col0 * - tab0.col2 * col2 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT + col0 + + 98 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT col2 + + cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT + col0 DIV col0 + 15 * col1 FROM tab2 AS cor0
----
256
466
886
skipif mysql # not compatible
query I rowsort label-2457
SELECT + col0 / col0 + 15 * col1 FROM tab2 AS cor0
----
256
466
886
query I rowsort
SELECT cor0.col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT cor0.col0 DIV cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-2461
SELECT cor0.col0 / cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL - - col1 + - cor0.col0 * 38 AS col1 FROM tab2 AS cor0
----
-235
-2905
-2985
query I rowsort
SELECT ALL - col0 * - col2 + - 92 FROM tab1 cor0
----
3556
70
7588
onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT DISTINCT col1 DIV + col0 - 75 AS col2 FROM tab1 AS cor0
----
-67
-75
skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT col1 / + col0 - 75 AS col2 FROM tab1 AS cor0
----
-67
-75
query I rowsort
SELECT + col2 * ( 37 ) FROM tab1
----
1998
2109
3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab2.col0 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - ( - 36 ) FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT col0 * + 96 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT ALL - col0 + + col2 + - tab1.col1 AS col0 FROM tab1
----
-17
25
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * ( - col1 ) - col0 col2 FROM tab0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT 70 + + col2 AS col1 FROM tab2 AS cor0
----
108
96
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT ALL - - 47 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
47
48
51
skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - - 47 + col0 / col1 AS col1 FROM tab2 AS cor0
----
47
48
51
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col0 * ( - col0 * col1 ) + - col1 FROM tab0 AS cor0
----
-11526122
-4260182
-65593892
query I rowsort
SELECT ALL 99 + col2 * + 16 FROM tab0 AS cor0
----
115
1411
627
query I rowsort
SELECT ALL + 98 * cor0.col2 AS col1 FROM tab1 AS cor0
----
5292
5586
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 + col0 col1 FROM tab1 cor0
----
111
178
272
query I rowsort
SELECT ALL - 97 - - col0 * 70 * - col2 AS col0 FROM tab1 AS cor0
----
-11437
-255457
-537697
query I rowsort
SELECT - ( + col1 ) * col2 + 3 AS col2 FROM tab0
----
-2835
-7459
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab2
----
86
86
86
query I rowsort
SELECT col2 * col1 + + tab1.col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL 77 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - 43 * cor0.col0 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT DISTINCT - tab1.col2 + - 29 + + col1 AS col1 FROM tab1
----
-112
-57
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2484
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 66 * + col0 FROM tab0
----
1584
2310
5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT ALL - col1 DIV 51 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - col1 / 51 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 + + cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT DISTINCT col1 + ( + cor0.col1 ) AS col0 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL ( - ( col2 ) ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT ALL - - CAST( - col1 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - - CAST ( - col1 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor1.col2 * + 57 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8b57ec4b7abd816eb44bb5e567daae92
query I rowsort
SELECT - 92 AS col2 FROM tab0 cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + col2 * - col2 - - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL + col1 * col1 + - col1 * - col2 - - col0 AS col1 FROM tab1 cor0
----
1497
2083
734
query I rowsort
SELECT col0 * - cor0.col1 + 94 * 63 FROM tab0 AS cor0
----
-2177
2527
3858
query I rowsort
SELECT DISTINCT + col1 + + col1 * ( - cor0.col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT ALL col1 + + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT 10 + 67 AS col0 FROM tab2
----
77
query I rowsort
SELECT ALL + col1 - + 92 * + col1 AS col0 FROM tab2
----
-1547
-2821
-5369
query I rowsort
SELECT + 58 + - col0 AS col1 FROM tab1
----
-22
-6
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT ALL col2 DIV + col2 + col1 * + col1 AS col2 FROM tab1
----
101
170
677
skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL col2 / + col2 + col1 * + col1 AS col2 FROM tab1
----
101
170
677
onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT + + col1 + + col2 DIV + ( cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
36
62
skipif mysql # not compatible
query I rowsort label-2503
SELECT + + col1 + + col2 / + ( cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
118
36
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT + 76 DIV col0 + + ( - col2 ) + - col2 DIV + 75 FROM tab0 AS cor0
----
-30
-83
1
skipif mysql # not compatible
query I rowsort label-2504
SELECT + 76 / col0 + + ( - col2 ) + - col2 / + 75 FROM tab0 AS cor0
----
-30
-83
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT + cor0.col1 DIV col0 + + 25 AS col0 FROM tab0 AS cor0
----
26
27
28
skipif mysql # not compatible
query I rowsort label-2505
SELECT + cor0.col1 / col0 + + 25 AS col0 FROM tab0 AS cor0
----
26
27
28
query I rowsort
SELECT 16 + + col0 * + col0 - col2 * + col0 AS col0 FROM tab1
----
-1264
-137
464
query I rowsort
SELECT - 61 + + col1 FROM tab0
----
25
30
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT col2 DIV - 43 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2508
SELECT col2 / - 43 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-2510
SELECT DISTINCT + - col0 + - 56 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + - col0 + - 56 / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - col1 * - ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col2 * 12 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT + col0 * + col1 + - col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - + cor0.col2 * 15 AS col0 FROM tab2 AS cor0
----
-390
-405
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2515
SELECT - cor0.col1 DIV + 47 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2515
SELECT - cor0.col1 / + 47 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT ALL - col1 DIV 54 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - col1 / 54 AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + col0 + + 28 AS col1 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT ALL + col1 + cor0.col0 * + ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col0 + - ( 56 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT - - col0 * 66 + 68 * col1 FROM tab2 AS cor0
----
2570
6370
9160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 79 col2 FROM tab2 AS cor0
----
-157
-158
-86
query I rowsort
SELECT + cor0.col2 * - 18 FROM tab1 AS cor0
----
-1026
-1728
-972
query I rowsort
SELECT + ( + ( col1 ) ) * 70 FROM tab0 cor0
----
6020
6370
6790
query I rowsort
SELECT col0 * - 67 + ( + col2 ) AS col0 FROM tab2
----
-442
-5200
-5255
query I rowsort
SELECT - + 18 FROM tab2 cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT ( 72 ) + - col1 * ( col1 ) * col1 FROM tab1 cor0
----
-17504
-2125
-928
query I rowsort
SELECT ALL - 8 * 65 FROM tab1 AS cor0
----
-520
-520
-520
query I rowsort
SELECT 92 + - col0 + - col1 AS col1 FROM tab2
----
-4
-45
54
query I rowsort
SELECT ALL - 84 + + col0 * col1 + - 19 AS col1 FROM tab0
----
1961
3292
7996
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab0.col1 * - ( col2 ) + CAST ( 32 AS REAL ) + - col1 * col1 FROM tab0
----
-10202
-15711
-9474
onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT DISTINCT col1 DIV + tab1.col0 AS col2 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT col1 / + tab1.col0 AS col2 FROM tab1
----
0
8
query I rowsort
SELECT 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL 80 * - col1 FROM tab2 AS cor0
----
-1360
-2480
-4720
query I rowsort
SELECT ( 19 ) * - col0 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + CAST ( NULL AS REAL ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT ALL + + col1 DIV - 73 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + + col1 / - 73 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + 60 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT - 4 * + 49 FROM tab2 cor0
----
-196
query I rowsort
SELECT - 36 + + 59 AS col0 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT + + 19 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-121600
-171
-77824
query I rowsort
SELECT cor1.col2 + + 20 * + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 78eab105c66fa79f63f5fc96a47790b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2542
SELECT ALL col2 + col2 DIV 51 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL col2 + col2 / 51 FROM tab1
----
55
58
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2543
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + 89 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc1381d798d6e2509f49d5db7a874c06
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 + 11 FROM tab1 AS cor0
----
-2879
-3228
-9192
query I rowsort
SELECT ALL 16 * + col0 FROM tab1 cor0
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col0 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 - 34 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f15b10bad40db20faa5588ba4eecc7f1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col2 + col0 col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - col0 - col1 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col0 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT ALL col0 DIV + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL col0 / + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
9
query I rowsort
SELECT DISTINCT ( - 63 ) AS col0 FROM tab2, tab1 AS cor0
----
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * + 41 col0 FROM tab1 AS cor0
----
1063
346
453
query I rowsort
SELECT + col2 + 96 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT DISTINCT + col1 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - + col2 + + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 42 col1 FROM tab1
----
-2268
-2394
-4032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT ALL col2 + col1 DIV ( 83 + + col0 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL col2 + col1 / ( 83 + + col0 ) FROM tab1
----
54
57
96
query I rowsort
SELECT col2 + col2 * - col1 FROM tab0 cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + - col1 col2 FROM tab1 AS cor0
----
16
19
3
query I rowsort
SELECT + 46 + col0 * + col1 FROM tab0 cor0
----
2110
3441
8145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( - col0 ) col2 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT DISTINCT 65 DIV - 32 FROM tab2, tab2 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT 65 / - 32 FROM tab2, tab2 AS cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col2 ) col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT - cor0.col2 * - col0 - col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2569
SELECT - cor0.col2 * - col0 - col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + 40 * col1 AS col1 FROM tab2 AS cor0
----
-1240
-2360
-680
query I rowsort
SELECT - 97 * - col0 + - cor0.col1 * 63 AS col2 FROM tab0 AS cor0
----
-2716
-3090
2900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * col1 col0 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT + col1 + col1 * col1 + + col2 FROM tab0 AS cor0
----
7515
8454
9507
query I rowsort
SELECT ( col2 ) - cor0.col0 * + 19 FROM tab0 AS cor0
----
-1609
-423
-664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT + ( col1 ) * - col2 + - CAST( col0 * + col0 + 21 * + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2547
-5863
-9664
skipif mysql # not compatible
query I rowsort label-2575
SELECT + ( col1 ) * - col2 + - CAST ( col0 * + col0 + 21 * + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2547
-5863
-9664
query I rowsort
SELECT - col1 * ( + col1 ) + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT 72 DIV - col0 AS col0 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-2578
SELECT 72 / - col0 AS col0 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT ALL - cor1.col2 * 42 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 987e527ff74335520cbbc2fbc45c80cf
query I rowsort
SELECT ALL 88 * col1 FROM tab2
----
1496
2728
5192
query I rowsort
SELECT ALL tab2.col0 * ( + col0 * - col0 ) FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT ALL - 72 AS col2 FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT - 2 + cor0.col1 * + col1 FROM tab0 cor0
----
7394
8279
9407
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - col0 * + cor0.col2 - - ( col2 ) FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + ( - col1 ) + 32 FROM tab0 AS cor0
----
-54
-59
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT DISTINCT col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1508
-740
-793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col1 FROM tab1 AS cor0
----
12
12
12
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-2592
SELECT CAST( col1 AS SIGNED ) DIV + tab0.col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2592
SELECT CAST ( col1 AS INTEGER ) / + tab0.col0 col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT ( + col0 ) * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ( + col1 ) * + col1 * + 36 AS col2 FROM tab1
----
24336
3600
6084
query I rowsort
SELECT - cor0.col2 + + 37 FROM tab1 AS cor0
----
-17
-20
-59
query I rowsort
SELECT col2 + - 12 * 22 FROM tab0 cor0
----
-182
-231
-263
query I rowsort
SELECT + col0 * 8 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT 94 FROM tab2, tab1, tab1 cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT col1 * + col2 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - col1 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2601
SELECT ALL - col0 + + CAST( col0 * - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL - col0 + + CAST ( col0 * - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT - cor0.col1 * 54 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 513def6a875a1243a5b5f72722215c3f
query I rowsort
SELECT + col0 * - col0 * 94 FROM tab2 AS cor0
----
-4606
-571896
-586654
query I rowsort
SELECT - ( - col2 * col1 ) + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT - 64 * + col0 AS col2 FROM tab1
----
-192
-4096
-5120
query I rowsort
SELECT col2 * col0 + 96 FROM tab2
----
2124
285
3098
query I rowsort
SELECT col2 * - col2 - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2608
SELECT DISTINCT + col2 * + 14 * + 79 + - cor0.col1 * CAST( cor0.col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
27222
29025
41382
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + col2 * + 14 * + 79 + - cor0.col1 * CAST ( cor0.col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
27222
29025
41382
query I rowsort
SELECT DISTINCT + col0 + 37 - col2 FROM tab1 AS cor0
----
-14
21
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT + col0 + col2 DIV col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-2610
SELECT + col0 + col2 / col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT ALL - col1 * 79 AS col0 FROM tab1 cor0
----
-1027
-2054
-790
query I rowsort
SELECT - col0 * + col1 - - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - + col0 * 50 + + col2 - col0 FROM tab1 AS cor0
----
-3207
-3984
-99
query I rowsort
SELECT DISTINCT + - col1 * col2 * - col2 + col1 * ( - col2 ) FROM tab2 cor0
----
21762
23902
38350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + - col0 * cor0.col1 * + col0 - ( + col1 ) col0 FROM tab1 AS cor0
----
-40870
-83044
416
query I rowsort
SELECT col1 + - ( cor0.col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT + - col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 * + col0 col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - col2 + - cor0.col0 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT + col0 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2620
SELECT + col0 + col0 / col0 AS col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL col1 + 99 * col0 AS col0 FROM tab0 AS cor0
----
2462
3562
8902
query I rowsort
SELECT + col2 * + 63 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT - 49 * col2 * - col1 FROM tab2 AS cor0
----
31654
41013
75166
query I rowsort
SELECT - + col0 * col2 * - cor0.col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + 69 + col1 AS col0 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT ALL 73 * col1 + col0 FROM tab1 AS cor0
----
1029
1901
794
query I rowsort
SELECT DISTINCT cor0.col2 + 26 FROM tab0 cor0
----
108
27
59
query I rowsort
SELECT DISTINCT - col1 * + 36 FROM tab1
----
-360
-468
-936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 31 * col2 * col1 + ( + col2 ) col0 FROM tab2 AS cor0
----
-19988
-25920
-47528
query I rowsort
SELECT DISTINCT col1 * col0 + ( col1 ) + col2 FROM tab1 AS cor0
----
1149
158
707
query I rowsort
SELECT DISTINCT - - col0 + + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col2 * + col2 + 54 FROM tab2 AS cor0
----
-1390
-622
-675
query I rowsort
SELECT - cor0.col0 + col0 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + 22 + col0 * + cor0.col2 * + 69 FROM tab2 AS cor0
----
13063
139954
207160
query I rowsort
SELECT + + 59 * + col0 AS col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT ALL tab2.col1 + - col0 + col1 FROM tab2
----
-45
40
55
query I rowsort
SELECT ALL + 50 + col0 FROM tab1 cor0
----
114
130
53
query I rowsort
SELECT - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col0 + ( 57 ) AS col1 FROM tab0 cor0
----
-32
22
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2640
SELECT ALL CAST( NULL AS SIGNED ) * 72 + - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL CAST ( NULL AS INTEGER ) * 72 + - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - 62 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
query I rowsort
SELECT ALL ( 2 ) + - cor0.col0 FROM tab1 AS cor0
----
-1
-62
-78
query I rowsort
SELECT ALL + 3 + - col1 FROM tab0 AS cor0
----
-83
-88
-94
query I rowsort
SELECT ALL + 9 + ( col0 * col1 ) AS col0 FROM tab2 AS cor0
----
1352
226
4611
onlyif mysql # use DIV operator for integer division
query I rowsort label-2646
SELECT DISTINCT - col1 DIV col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - col1 / col2 + col1 FROM tab1 AS cor0
----
10
13
26
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb
query I rowsort
SELECT - tab1.col0 + + col1 - - col1 FROM tab1
----
-44
-54
49
query I rowsort
SELECT ALL - col2 * tab2.col1 - col0 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT ALL - 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT - col2 + 78 FROM tab2
----
40
51
52
query I rowsort
SELECT ALL col2 + 77 AS col1 FROM tab2
----
103
104
115
query I rowsort
SELECT DISTINCT + ( 30 * + col2 ) FROM tab0
----
2460
30
990
query I rowsort
SELECT ( 48 ) * + col1 AS col2 FROM tab0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT 88 FROM tab1, tab2, tab0 cor0
----
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT CAST( NULL AS SIGNED ) + + col2 + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2656
SELECT CAST ( NULL AS INTEGER ) + + col2 + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - cor0.col0 + 12 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT 45 * - col2 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT - + 62 * - col1 + cor0.col1 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT DISTINCT + ( - ( col1 ) ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2663
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT - 29 DIV + 48 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2664
SELECT - 29 / + 48 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col2 * 85 col1 FROM tab2 AS cor0
----
122740
57460
61965
query I rowsort
SELECT col1 * + 25 + + col1 * - col0 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-22444
-270069
-5979
query I rowsort
SELECT - 58 - - col0 * col0 FROM tab1 AS cor0
----
-49
4038
6342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2668
SELECT + CAST( - col0 AS SIGNED ) + + col1 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-80
29
61
skipif mysql # not compatible
query I rowsort label-2668
SELECT + CAST ( - col0 AS INTEGER ) + + col1 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT + 85 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-104
-1943
-2917
onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT col2 * + 35 + col1 DIV - 60 FROM tab0 AS cor0
----
1154
2869
34
skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT col2 * + 35 + col1 / - 60 FROM tab0 AS cor0
----
1154
2869
34
query I rowsort
SELECT col2 + - 12 FROM tab2 AS cor0
----
14
15
26
query I rowsort
SELECT ALL + ( - col2 ) * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 95 AS col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT - 58 * + col0 + 65 AS col0 FROM tab0 AS cor0
----
-1327
-1965
-5097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 + - col2 * 49 + - col1 FROM tab0 AS cor0
----
-1727
-181
-4198
query I rowsort
SELECT DISTINCT 88 * + col2 * col1 FROM tab1
----
109824
123552
50160
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + ( col0 * + col2 + - col0 ) AS col2 FROM tab2
----
182
1950
2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT + CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2680
SELECT + CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL col0 DIV - 37 FROM tab0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL col0 / - 37 FROM tab0
----
-2
0
0
query I rowsort
SELECT ALL + 66 * cor0.col1 AS col2 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to efdf857f32819ad9a80de5c2c8f5dff6
query I rowsort
SELECT col1 - + 13 FROM tab1
----
-3
0
13
query I rowsort
SELECT ALL - cor0.col2 * + ( + col0 ) + + ( col0 ) FROM tab0 AS cor0
----
-7209
-768
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT + + cor0.col2 * CAST( col1 AS SIGNED ) + + col1 col2 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2687
SELECT + + cor0.col2 * CAST ( col1 AS INTEGER ) + + col1 col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab2
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT - - CAST( NULL AS SIGNED ) + 59 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2690
SELECT - - CAST ( NULL AS INTEGER ) + 59 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 85 * + cor0.col0 * cor0.col1 - + 75 * 25 AS col0 FROM tab1 AS cor0
----
-56275
-8505
-90275
query I rowsort
SELECT ALL cor1.col1 * ( + ( - tab2.col2 ) ) FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 29760b2f582ecfa8189eb18d08ead3fd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT - CAST( col0 AS SIGNED ) + - col1 AS col1 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-2693
SELECT - CAST ( col0 AS INTEGER ) + - col1 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - cor1.col2 + + 62 + cor1.col0 * + cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5d3eece82109019015cd70852a312c79
query I rowsort
SELECT ALL + - col1 * ( - col2 ) AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL 42 + + col2 * + col1 AS col1 FROM tab1 cor0
----
1290
1446
612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2697
SELECT ALL - 88 * + ( - col2 ) + ( + cor0.col1 ) * col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - 88 * + ( - col2 ) + ( + cor0.col1 ) * col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 93 * col2 * + col0 + + 42 + col2 FROM tab1
----
15162
339363
714378
query I rowsort
SELECT - 54 * + col0 AS col2 FROM tab0
----
-1296
-1890
-4806
query I rowsort
SELECT ALL - 64 + col0 FROM tab2
----
-57
14
15
query I rowsort
SELECT - ( col1 ) * - 38 + + 10 * col1 + - ( - col0 * + col2 + 96 ) AS col0 FROM tab1 cor0
----
1314
4032
8208
query I rowsort
SELECT - col0 * col0 * - ( 6 ) + col0 - + ( + 67 ) AS col0 FROM tab0 AS cor0
----
3413
47548
7318
onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT + 19 * - col1 + cor0.col2 DIV 58 + - cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-10009
-11252
-9030
skipif mysql # not compatible
query I rowsort label-2703
SELECT + 19 * - col1 + cor0.col2 / 58 + - cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-10009
-11252
-9030
query I rowsort
SELECT ALL - 51 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT - col1 * col2 + - col0 + 4 * - col2 AS col1 FROM tab0 AS cor0
----
-136
-2994
-7879
query I rowsort
SELECT DISTINCT - cor0.col2 * + 33 + - col2 AS col0 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT ALL - - col0 * 19 AS col0 FROM tab0 cor0
----
1691
456
665
query I rowsort
SELECT DISTINCT + - col2 * - 61 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT - cor0.col1 + cor0.col0 * col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + col2 * + 0 + col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + col2 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - + col1 * 55 + col1 * col2 FROM tab1 AS cor0
----
-26
20
533
onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT - col2 DIV col2 + + 40 * + col2 + ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
10741
136
4157
skipif mysql # not compatible
query I rowsort label-2713
SELECT - col2 / col2 + + 40 * + col2 + ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
10741
136
4157
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + col2 + col2 + + 74 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-13932
-150020
-222072
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL + col0 * col1 + 2 FROM tab0 AS cor0
----
2066
3397
8101
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT col2 * col0 + + col0 DIV + col2 AS col0 FROM tab1
----
162
3649
7680
skipif mysql # not compatible
query I rowsort label-2719
SELECT col2 * col0 + + col0 / + col2 AS col0 FROM tab1
----
162
3649
7680
query I rowsort
SELECT - tab1.col0 * - tab1.col1 FROM tab1
----
1040
640
78
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col2 + col2 + col2 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col1 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + col1 + col0 * - col1 FROM tab2
----
-1326
-186
-4543
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 * + col2 ) AND ( - col1 )
----
query I rowsort
SELECT ALL - 40 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2727
SELECT col0 * + col1 + CAST( col1 AS SIGNED ) * col1 FROM tab1
----
1209
740
754
skipif mysql # not compatible
query I rowsort label-2727
SELECT col0 * + col1 + CAST ( col1 AS INTEGER ) * col1 FROM tab1
----
1209
740
754
query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col2 + + cor0.col0 * 92 AS col1 FROM tab0 AS cor0
----
2175
3219
8106
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT ALL col2 + + col1 + col1 * - col0 AS col2 FROM tab1
----
-573
-931
2
query I rowsort
SELECT - col0 * - tab1.col0 * - col2 AS col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL - col2 - + tab0.col1 * + col0 FROM tab0 WHERE NOT ( - col1 ) NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT DISTINCT col0 * tab2.col2 DIV col0 AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT col0 * tab2.col2 / col0 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col1 * + col2 - tab1.col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT col2 + - col2 * + tab2.col0 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col2 + col1 - col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col1 + tab0.col2 FROM tab0 WHERE NULL IN ( - col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + tab1.col1 * col1 + + col0 * - tab1.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT ALL tab1.col0 * col1 + col0 DIV col0 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL tab1.col0 * col1 + col0 / col0 FROM tab1
----
1041
641
79
query I rowsort
SELECT tab2.col1 * + col0 * col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT + col0 <= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * + col2 + col1 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * - col1 + col2 * col2 * col2 col1 FROM tab0
----
-57717
-60516
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 - + col1 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col0 * col0 * col1 + - col1 * - col0 AS col1 FROM tab1
----
312
41600
84240
query I rowsort
SELECT + col0 * - col1 + col0 AS col2 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT + col2 + + col2 DIV + tab1.col1 AS col0 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2748
SELECT + col2 + + col2 / + tab1.col1 AS col0 FROM tab1
----
103
56
62
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( - tab2.col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col1 + + col1 * + col0
----
query I rowsort
SELECT ALL - col0 - col1 AS col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + ( + 17 ) FROM tab0
----
17
query I rowsort
SELECT 76 * + col1 + + col1 AS col1 FROM tab1
----
1001
2002
770
query I rowsort
SELECT DISTINCT - 15 * - col2 * + col2 FROM tab1 AS cor0
----
138240
43740
48735
query I rowsort
SELECT + 33 + 22 + + col0 AS col1 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT ( 82 ) * - col0 AS col1 FROM tab1 cor0
----
-246
-5248
-6560
query I rowsort
SELECT DISTINCT - - 99 + + col2 AS col2 FROM tab1 AS cor0
----
153
156
195
query I rowsort
SELECT ALL col0 + col0 + - col2 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT col0 * + 66 AS col2 FROM tab2
----
462
5148
5214
query I rowsort
SELECT + 63 AS col0 FROM tab1
----
63
63
63
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT ALL + 72 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
103
131
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT ALL - CAST( NULL AS SIGNED ) / col2 + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col0 * - 15 AS col0 FROM tab1 cor0
----
-1024
-1280
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT - col0 + col2 DIV ( 92 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2765
SELECT - col0 + col2 / ( 92 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + + ( col2 ) FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - cor0.col1 * + col0 * - 76 FROM tab0 AS cor0
----
156864
258020
615524
query I rowsort
SELECT - + cor0.col1 * + 96 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT col2 * ( + tab1.col0 ) + col0 * + 84 + col1 * col2 AS col0 FROM tab1
----
15648
1818
9594
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b
query I rowsort
SELECT ALL + - col1 + ( - cor0.col2 ) FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT DISTINCT - - col1 + - ( - col0 ) DIV + cor0.col0 col2 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT - - col1 + - ( - col0 ) / + cor0.col0 col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + + col1 * 78 AS col0 FROM tab1 AS cor0
----
1014
2028
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT col0 * ( col2 ) DIV - col2 - col2 * - col0 * + col1 FROM tab0 AS cor0
----
3360
664029
68088
skipif mysql # not compatible
query I rowsort label-2774
SELECT col0 * ( col2 ) / - col2 - col2 * - col0 * + col1 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT + 33 + cor0.col0 * + ( col1 ) * + col2 FROM tab2 AS cor0
----
119685
51067
5892
query I rowsort
SELECT cor0.col0 * + col0 * + 83 FROM tab2 AS cor0
----
4067
504972
518003
query I rowsort
SELECT - col0 * col2 * ( col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-1225
-53260804
-627264
query I rowsort
SELECT 68 + - col1 AS col0 FROM tab2 cor0
----
37
51
9
query I rowsort
SELECT - col1 + col2 * cor0.col2 * + col2 FROM tab2 cor0
----
17517
19652
54855
query I rowsort
SELECT DISTINCT + 5 FROM tab2, tab0 cor0, tab0 AS cor1
----
5
query I rowsort
SELECT tab1.col1 * 22 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 332cd34219f791d095aea8a894eae8c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2782
SELECT + CAST( NULL AS SIGNED ) * - col2 + + col2 * + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2782
SELECT + CAST ( NULL AS INTEGER ) * - col2 + + col2 * + 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * + 59 * + col2 + cor0.col0 * - col2 AS col0 FROM tab2 cor0
----
35112
49194
88478
query I rowsort
SELECT DISTINCT - 4 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
-4
query I rowsort
SELECT - ( col1 ) + + col0 * 85 AS col1 FROM tab1 AS cor0
----
229
5430
6787
query I rowsort
SELECT + - 65 + col1 * + col2 AS col1 FROM tab2 cor0
----
1469
581
772
query I rowsort
SELECT + col1 * - col2 + 21 * + col2 AS col1 FROM tab2
----
-270
-988
152
query I rowsort
SELECT - - col1 + col1 * + 43 * - col1 AS col2 FROM tab0 cor0
----
-317942
-355992
-404490
query I rowsort
SELECT col2 * - 59 FROM tab2
----
-1534
-1593
-2242
query I rowsort
SELECT 80 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT - + 52 * - col1 FROM tab1 AS cor0
----
1352
520
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT DISTINCT - 2 + + cor0.col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - 2 + + cor0.col0 / + col1 AS col0 FROM tab0 AS cor0
----
-2
query I rowsort
SELECT + - 55 + + col1 * - col2 FROM tab2 AS cor0
----
-1589
-701
-892
query I rowsort
SELECT - col2 * - col0 - tab2.col0 * col0 AS col0 FROM tab2
----
-3239
-4056
140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab1, tab2, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 19 + - col0 * + ( - col0 * + col1 ) FROM tab2
----
106116
1538
358975
query I rowsort
SELECT ALL 99 + col1 * 10 * - 88 + col1 AS col0 FROM tab2
----
-14844
-27150
-51762
query I rowsort
SELECT + - 46 * + cor0.col1 AS col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e1e1a54c64c2015d8d53651e259e896f
query I rowsort
SELECT col1 + - col2 * col0 + - 12 * + col2 FROM tab0 cor0
----
-1102
-8191
50
query I rowsort
SELECT DISTINCT 86 * col0 + + ( + 87 ) AS col0 FROM tab2 AS cor0
----
6795
6881
689
query I rowsort
SELECT 98 * + tab1.col0 FROM tab1
----
294
6272
7840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT + tab1.col1 DIV col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2802
SELECT + tab1.col1 / col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT DISTINCT col1 - tab0.col0 DIV col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT col1 - tab0.col0 / col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col2 * - 96 AS col2 FROM tab1
----
-5184
-5472
-9216
query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT - col1 * 38 + + 78 + col1 DIV - 50 FROM tab0
----
-3191
-3381
-3609
skipif mysql # not compatible
query I rowsort label-2806
SELECT - col1 * 38 + + 78 + col1 / - 50 FROM tab0
----
-3191
-3381
-3609
query I rowsort
SELECT - col1 * ( ( col1 ) ) * - 22 + + col1 * + col0 - + col0 * - tab0.col1 AS col2 FROM tab0
----
166840
198380
213788
query I rowsort
SELECT tab1.col0 + 75 * col0 * col2 AS col1 FROM tab1
----
12153
273664
576080
query I rowsort
SELECT tab0.col2 * 50 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 01e76136518b46f56b64850cb962537f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT tab1.col2 DIV - col0 + + 31 - col0 FROM tab1
----
-33
-50
10
skipif mysql # not compatible
query I rowsort label-2810
SELECT tab1.col2 / - col0 + + 31 - col0 FROM tab1
----
-33
-50
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + col0 * 44 - - col0 DIV ( ( - cor0.col2 ) ) AS col1 FROM tab0 cor0
----
1056
1505
3915
skipif mysql # not compatible
query I rowsort label-2811
SELECT + col0 * 44 - - col0 / ( ( - cor0.col2 ) ) AS col1 FROM tab0 cor0
----
1056
1505
3915
query I rowsort
SELECT - 24 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
1898
1934
195
query I rowsort
SELECT DISTINCT col1 * col2 + col1 * - col0 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT 20 + col0 AS col0 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT + col1 * - col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT 54 + + 26 * - col1 + cor0.col1 FROM tab1 AS cor0
----
-196
-271
-596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 - - col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col0 * + col2 col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + ( - col0 ) + - col1 * - ( col2 ) AS col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT - - col0 + 53 AS col1 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT ALL - 1 * col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 * + col2 + - col1 col2 FROM tab2 cor0
----
119593
51017
5828
query I rowsort
SELECT + col1 * + ( + col2 ) + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT 34 * 72 FROM tab2, tab1 cor0
----
9 values hashing to c5b41933c80c8417bd69a6f412af196d
query I rowsort
SELECT - col1 * - 59 AS col0 FROM tab1
----
1534
590
767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2826
SELECT DISTINCT col1 * - CAST( - ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT col1 * - CAST ( - ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - ( - col2 * tab0.col0 ) + col0 * col0 - - 20 * + ( col0 * tab0.col0 ) FROM tab0
----
12888
173639
25760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT ALL + col0 * CAST( + col0 AS SIGNED ) + col2 * 21 DIV 18 + col2 * - CAST( + col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-113538
-44749
-5779
skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + col0 * CAST ( + col0 AS INTEGER ) + col2 * 21 / 18 + col2 * - CAST ( + col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-113538
-44749
-5779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 58 col2 FROM tab0 AS cor0
----
-144
-149
-155
query I rowsort
SELECT - 76 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ( - col2 ) + col0 * + col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + ( - 36 ) FROM tab0 cor0
----
-36
-36
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2834
SELECT + ( col1 ) * cor0.col2 + + CAST( 58 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1306
1462
628
skipif mysql # not compatible
query I rowsort label-2834
SELECT + ( col1 ) * cor0.col2 + + CAST ( 58 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1306
1462
628
query I rowsort
SELECT - - 93 + col2 FROM tab0 cor0
----
126
175
94
query I rowsort
SELECT col0 + - ( + col2 * - col1 + - col1 ) FROM tab0
----
229
2948
7642
query I rowsort
SELECT ALL col1 + - col0 + tab1.col1 * tab1.col0 FROM tab1
----
101
586
973
query I rowsort
SELECT DISTINCT col2 + cor0.col2 * 83 * - col2 FROM tab1 AS cor0
----
-241974
-269610
-764832
query I rowsort
SELECT ALL 63 + + col0 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT ALL ( - cor0.col0 ) + - col1 * col2 AS col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT - - col1 + - col0 * ( + col0 * - cor0.col2 ) - + col0 * col2 AS col0 FROM tab2 AS cor0
----
1165
156215
234173
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT - col2 + - col2 + ( col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
3534
54
7488
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2844
SELECT + + col0 * - col1 - - CAST( col1 AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2844
SELECT + + col0 * - col1 - - CAST ( col1 AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT 50 * + cor0.col0 + col1 FROM tab0 AS cor0
----
1286
1847
4541
query I rowsort
SELECT + col0 + col0 * - tab1.col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT 98 - + col1 * col0 * col1 FROM tab2
----
-22733
-271420
-6629
query I rowsort
SELECT ( + ( - col1 ) ) + + ( col2 ) FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + tab0.col0 col1 FROM tab0
----
130
65
76
query I rowsort
SELECT ALL - 34 + col1 FROM tab0
----
52
57
63
query I rowsort
SELECT ALL 5 + col2 + - col2 * col0 FROM tab2
----
-157
-1997
-2959
query I rowsort
SELECT 53 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1396
270
4655
query I rowsort
SELECT DISTINCT + - ( col0 ) * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 45 + col1 AS col2 FROM tab1
----
-19
-32
-35
query I rowsort
SELECT - col2 * + col0 - 30 FROM tab2 cor0
----
-2058
-219
-3032
query I rowsort
SELECT ALL + - 77 + - col0 + + col0 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL + 75 + col2 AS col2 FROM tab2
----
101
102
113
query I rowsort
SELECT - - col0 - + ( - col0 ) AS col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT tab1.col0 DIV tab1.col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2860
SELECT tab1.col0 / tab1.col0 AS col0 FROM tab1
----
1
1
1
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NULL IN ( + tab0.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - - col2 + ( 90 ) AS col2 FROM tab1 AS cor0
----
144
147
186
query I rowsort
SELECT col1 + + 6 AS col1 FROM tab2 cor0
----
23
37
65
query I rowsort
SELECT DISTINCT - col2 + - ( + 97 ) AS col1 FROM tab1 AS cor0
----
-151
-154
-193
query I rowsort
SELECT ALL + col2 * + ( + col0 ) + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL col2 * - 93 FROM tab1
----
-5022
-5301
-8928
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b24ecd0e424d2b21b31092e4a9b94f1c
query I rowsort
SELECT tab1.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL + col1 + cor0.col1 * + col0 AS col1 FROM tab1 cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2872
SELECT + CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab0 cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-2872
SELECT + CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT 94 * + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-3290
-686012
-74448
query I rowsort
SELECT DISTINCT 11 * - col1 + - col1 FROM tab2 cor0
----
-204
-372
-708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2875
SELECT ALL + CAST( NULL AS DECIMAL ) - - col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL + CAST ( NULL AS REAL ) - - col0 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2876
SELECT - CAST( + col0 + col0 AS SIGNED ) AS col0 FROM tab1
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-2876
SELECT - CAST ( + col0 + col0 AS INTEGER ) AS col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT ALL - col0 DIV 97 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - col0 / 97 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + 22 * + col2 AS col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT ALL + + 49 * col1 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT + 14 * ( col2 ) FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT + cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2883
SELECT ALL - col0 * col1 / CAST( NULL AS SIGNED ) + + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL - col0 * col1 / CAST ( NULL AS INTEGER ) + + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * + col1 * cor0.col0 - col0 * - 86 FROM tab1 AS cor0
----
11961
20496
2340
query I rowsort
SELECT - - 21 + + col0 AS col2 FROM tab1 AS cor0
----
101
24
85
query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT col2 * - col2 * + col0 AS col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col2 * - ( tab1.col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col1 + - 44 * col0 * - 7 FROM tab0 cor0
----
10877
27503
7478
query I rowsort
SELECT DISTINCT - + 56 * col0 FROM tab1 AS cor0
----
-168
-3584
-4480
query I rowsort
SELECT ALL + col2 + - 39 FROM tab2
----
-1
-12
-13
query I rowsort
SELECT ALL tab2.col1 + - 0 * ( col0 ) + col2 FROM tab2
----
55
58
85
query I rowsort
SELECT - col2 + col2 * + col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT ALL col1 - + cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + + 90 * + col2 AS col0 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT + 80 * 72 + + col2 * - 60 AS col2 FROM tab2 AS cor0
----
3480
4140
4200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT col0 DIV + ( - col2 ) FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2897
SELECT col0 / + ( - col2 ) FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT 39 * 59 + + col1 FROM tab1 AS cor0
----
2311
2314
2327
query I rowsort
SELECT 4 + 91 AS col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT - cor0.col2 * col1 + 89 FROM tab1 cor0
----
-1159
-1315
-481
onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT + col0 DIV - col0 + col1 + col2 AS col1 FROM tab2 AS cor0
----
54
57
84
skipif mysql # not compatible
query I rowsort label-2901
SELECT + col0 / - col0 + col1 + col2 AS col1 FROM tab2 AS cor0
----
54
57
84
query I rowsort
SELECT - - col1 * + col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + + col2 * col1 + - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT + tab1.col2 DIV tab1.col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2904
SELECT + tab1.col2 / tab1.col2 FROM tab1
----
1
1
1
query I rowsort
SELECT - 77 * + 12 + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6280c27e812db513d6bd86f2bce5d756
query I rowsort
SELECT + col1 * - col2 + - ( cor0.col0 ) * col0 FROM tab2 AS cor0
----
-6887
-7618
-886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2908
SELECT col0 * + cor0.col1 + - col2 * col0 / - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2908
SELECT col0 * + cor0.col1 + - col2 * col0 / - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT - col2 + CAST( NULL AS SIGNED ) / 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-2909
SELECT - col2 + CAST ( NULL AS INTEGER ) / col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + ( + ( col0 ) ) FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT - col2 * ( - ( + col1 ) ) AS col0 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT ALL - + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - + col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + - col0 * - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 - - col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT + col0 DIV - 5 + col2 * col1 col1 FROM tab0 AS cor0
----
2834
7445
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2915
SELECT + col0 / - 5 + col2 * col1 col1 FROM tab0 AS cor0
----
2834
7445
90
query I rowsort
SELECT DISTINCT - + col2 * + 68 AS col0 FROM tab0 cor0
----
-2244
-5576
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2917
SELECT ALL - + col2 * - ( col1 ) * col2 + CAST( - 8 AS SIGNED ) * col2 FROM tab0 AS cor0
----
611228
89
93390
skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - + col2 * - ( col1 ) * col2 + CAST ( - 8 AS INTEGER ) * col2 FROM tab0 AS cor0
----
611228
89
93390
onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT + col2 DIV + cor0.col0 + cor0.col2 FROM tab1 cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-2918
SELECT + col2 / + cor0.col0 + cor0.col2 FROM tab1 cor0
----
57
72
97
query I rowsort
SELECT + - col1 * + col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + cor0.col2 * + 67 * 31 FROM tab0 AS cor0
----
170314
2077
68541
query I rowsort
SELECT - col2 + - 26 + + cor0.col1 FROM tab1 AS cor0
----
-109
-54
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT - CAST( - col0 AS SIGNED ) * - cor0.col0 + 98 FROM tab1 AS cor0
----
-3998
-6302
89
skipif mysql # not compatible
query I rowsort label-2922
SELECT - CAST ( - col0 AS INTEGER ) * - cor0.col0 + 98 FROM tab1 AS cor0
----
-3998
-6302
89
query I rowsort
SELECT ALL 40 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT ALL 35 DIV + col2 - - col2 * - 88 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448
skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL 35 / + col2 - - col2 * - 88 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 - + 63 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7cb18469bd899ad44c95e80efc1aa155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col0 FROM tab2 AS cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
query I rowsort
SELECT DISTINCT - 87 + col2 * + col0 AS col2 FROM tab0 cor0
----
-52
705
7211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT 23 * - col2 AS col2 FROM tab2 AS cor0
----
-598
-621
-874
onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT col1 * cor0.col1 DIV 91 FROM tab0 AS cor0
----
103
81
91
skipif mysql # not compatible
query I rowsort label-2932
SELECT col1 * cor0.col1 / 91 FROM tab0 AS cor0
----
103
81
91
query I rowsort
SELECT DISTINCT + 16 * - 97 FROM tab2
----
-1552
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT ALL cor1.col0 - - cor0.col1 DIV + 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0b804b43c997c9b5b982138247f74abf
skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL cor1.col0 - - cor0.col1 / + 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0b804b43c997c9b5b982138247f74abf
query I rowsort
SELECT - 56 - - col2 FROM tab1
----
-2
1
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2936
SELECT col2 + + col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-2936
SELECT col2 + + col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 * col2 + - col0 * col1 col1 FROM tab0
----
-3394
33873
543269
query I rowsort
SELECT col2 * - 47 + tab0.col1 AS col1 FROM tab0
----
-1465
-3763
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT CAST( - 3 AS SIGNED ) DIV - col0 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2939
SELECT CAST ( - 3 AS INTEGER ) / - col0 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT + CAST( - col0 AS SIGNED ) * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2940
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-2941
SELECT DISTINCT + CAST( - cor0.col0 AS SIGNED ) DIV + cor0.col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT + CAST ( - cor0.col0 AS INTEGER ) / + cor0.col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL + ( + col0 ) * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + col1 * + cor0.col1 + - col0 AS col1 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * ( col2 * + col0 ) col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT 90 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT DISTINCT - - 31 + col0 DIV - 76 col0 FROM tab0 AS cor0
----
30
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT - - 31 + col0 / - 76 col0 FROM tab0 AS cor0
----
30
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * + ( - col0 ) col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - ( + tab0.col2 ) * + 12 AS col2 FROM tab0
----
-12
-396
-984
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT ALL - 25 DIV + col2 + col2 * - 6 AS col1 FROM tab0 AS cor0
----
-198
-31
-492
skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - 25 / + col2 + col2 * - 6 AS col1 FROM tab0 AS cor0
----
-198
-31
-492
onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT DISTINCT - 88 DIV col2 + - col2 + 9 FROM tab0 cor0
----
-26
-74
-80
skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - 88 / col2 + - col2 + 9 FROM tab0 cor0
----
-26
-74
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2951
SELECT ALL cor0.col0 * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL cor0.col0 * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + + 23 FROM tab2, tab2 AS cor0
----
9 values hashing to baa3de508afc19b77ea3f119b0a49202
onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT DISTINCT + - col1 DIV - CAST( 72 + + col1 * - CAST( ( col2 ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + - col1 / - CAST ( 72 + + col1 * - CAST ( ( col2 ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 + 2 AS col2 FROM tab2
----
80
81
9
query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * - cor0.col2 col2 FROM tab2, tab2 cor0
----
9 values hashing to a357fc3a77638b571b44fb55cd16cd5c
query I rowsort
SELECT ALL col0 * + 25 * cor0.col0 FROM tab0 AS cor0
----
14400
198025
30625
query I rowsort
SELECT cor0.col1 * ( 72 ) AS col1 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT ALL + col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - - col1 * + 52 AS col1 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT ( cor0.col1 ) * - col0 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-2686
-434
-9204
onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT ALL - 27 + 91 DIV col0 AS col2 FROM tab2 AS cor0
----
-14
-26
-26
skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - 27 + 91 / col0 AS col2 FROM tab2 AS cor0
----
-14
-26
-26
query I rowsort
SELECT DISTINCT + - 57 + - ( - cor0.col0 ) FROM tab2 AS cor0
----
-50
21
22
query I rowsort
SELECT ALL - col2 + ( - col0 ) * - col1 * col0 AS col0 FROM tab1 AS cor0
----
180
40903
83104
query I rowsort
SELECT DISTINCT - 31 - col1 FROM tab0 AS cor0
----
-117
-122
-128
onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT DISTINCT + + col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT + + col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT ALL - + 48 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT tab2.col0 + - 63 FROM tab2
----
-56
15
16
query I rowsort
SELECT 60 FROM tab0, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT DISTINCT tab0.col2 DIV + 53 FROM tab0, tab2, tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT tab0.col2 / + 53 FROM tab0, tab2, tab2 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT col0 * + 65 AS col0 FROM tab2
----
455
5070
5135
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT - 11 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2972
SELECT - 11 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 45 * 85 AS col1 FROM tab0 AS cor0
----
3825
3825
3825
query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 16 * + col2 AS col0 FROM tab0
----
1312
16
528
query I rowsort
SELECT - col2 * col2 + + col2 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT ALL - tab0.col2 DIV + 94 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - tab0.col2 / + 94 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 55 + - col0 AS col0 FROM tab1
----
-25
-9
52
query I rowsort
SELECT - col2 * + 72 FROM tab2 cor0
----
-1872
-1944
-2736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT - + col1 * CAST( col0 AS SIGNED ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-2980
SELECT - + col1 * CAST ( col0 AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 37 * + 35 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d78da9f9d40e1c8364bb498dfa09b0bc
query I rowsort
SELECT ALL - col2 + + col2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT - cor0.col1 + - col2 * 82 AS col2 FROM tab0 cor0
----
-179
-2792
-6815
query I rowsort
SELECT + col0 * ( + 15 * col0 ) FROM tab0 AS cor0
----
118815
18375
8640
query I rowsort
SELECT ALL + col2 * - col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + 92 * - col1 FROM tab0 AS cor0
----
-273
-5529
-5848
onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT ALL col2 * ( 74 ) + cor0.col1 DIV col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
2003
2006
2892
skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL col2 * ( 74 ) + cor0.col1 / col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
2003
2006
2892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + cor0.col0 col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - 33 * cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-1016
-1869
-482
query I rowsort
SELECT + 25 * cor0.col0 + + col2 + col2 FROM tab2 AS cor0
----
2002
2051
229
onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT 14 DIV + 51 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2991
SELECT 14 / + 51 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 * - 83 FROM tab2
----
1411
2573
4897
query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col1 col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - tab0.col0 - col0 AS col2 FROM tab0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2997
SELECT + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2997
SELECT + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * 70 AS col0 FROM tab1
----
210
4480
5600
query I rowsort
SELECT - - 30 * 61 FROM tab1 AS cor0
----
1830
1830
1830
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ( 10 ) * + col1 FROM tab1
----
100
130
260
query I rowsort
SELECT - col2 - ( - col1 ) FROM tab2
----
-21
33
4
query I rowsort
SELECT + col0 + col1 * - col0 + + col2 FROM tab0
----
-2007
-3359
-7928
query I rowsort
SELECT ALL col2 + col1 * col2 + + col0 * col2 * + col0 AS col1 FROM tab2 AS cor0
----
159744
2187
237842
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - 89 AS col1 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT ALL + - col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - col1 * col2 + + col2 - - col2 AS col2 FROM tab1 AS cor0
----
1440
1512
684
query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL >= col1 * col2
----
query I rowsort
SELECT ALL - col0 * col0 - col2 FROM tab0 cor0 WHERE NULL >= col1
----
query I rowsort
SELECT col1 + - cor0.col2 AS col1 FROM tab2 cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * col0 col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 * col0 + - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
query I rowsort
SELECT ALL - col0 * cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - cor0.col1 * - col1 + col2 * col2 FROM tab0 AS cor0
----
15005
8485
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT + col2 DIV + col2 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3018
SELECT + col2 / + col2 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL col1 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - cor0.col1 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + col0 + + col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT - - col2 * + col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col1 + + tab1.col1 * tab1.col2 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL - col2 * 40 + + tab2.col0 FROM tab2
----
-1073
-1441
-962
query I rowsort
SELECT ALL col0 * col0 + + col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL col1 * + col1 * + col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT DISTINCT - col1 * + col1 * col0 + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-12480
-1950
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT ALL cor0.col2 DIV - ( col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL cor0.col2 / - ( col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * ( ( + cor0.col0 ) ) + + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT DISTINCT + tab0.col0 + ( col2 ) AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 63 * col0 AS col1 FROM tab1
----
189
4032
5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3032
SELECT ALL 22 * 76 + + col2 * 59 DIV + 89 AS col1 FROM tab2
----
1689
1689
1697
skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 22 * 76 + + col2 * 59 / + 89 AS col1 FROM tab2
----
1689
1689
1697
onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT ALL col0 DIV - 41 AS col0 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL col0 / - 41 AS col0 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT + - 74 + 83 FROM tab2 cor0
----
9
9
9
query I rowsort
SELECT DISTINCT - col1 + col1 * col0 * col1 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
12467
1924
5750
query I rowsort
SELECT DISTINCT - ( 86 ) AS col1 FROM tab0 AS cor0
----
-86
query I rowsort
SELECT 71 + + col1 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL + ( + col0 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - cor0.col0 + col2 * - ( 73 ) FROM tab2 AS cor0
----
-1976
-1978
-2853
query I rowsort
SELECT ALL - col1 * + col0 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT 43 * col2 DIV + 55 AS col2 FROM tab0 AS cor0
----
0
25
64
skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT 43 * col2 / + 55 AS col2 FROM tab0 AS cor0
----
0
25
64
query I rowsort
SELECT DISTINCT col2 * - col1 - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 + - col0 col0 FROM tab2 AS cor0
----
-58
-59
13
query I rowsort
SELECT DISTINCT 67 * col1 + - 16 FROM tab2 AS cor0
----
1123
2061
3937
query I rowsort
SELECT DISTINCT + - 33 + cor0.col2 FROM tab1 AS cor0
----
21
24
63
query I rowsort
SELECT col1 * + col0 + - cor0.col1 FROM tab0 cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-3048
SELECT ALL + col0 DIV + col2 + col2 * + tab1.col2 FROM tab1
----
2916
3250
9216
skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL + col0 / + col2 + col2 * + tab1.col2 FROM tab1
----
2916
3250
9216
query I rowsort
SELECT - col0 * col1 + 59 * col2 FROM tab1 cor0
----
2723
3108
4624
query I rowsort
SELECT DISTINCT 61 - - col2 FROM tab1 AS cor0
----
115
118
157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL ( + col1 ) * - 42 FROM tab1
----
-1092
-420
-546
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 + 5 * - 45 * col2 col0 FROM tab1 AS cor0
----
-15066
-16074
-30816
query I rowsort
SELECT col1 * - col1 + - 30 + - 66 * - col2 FROM tab0 AS cor0
----
-2899
-5248
-9373
query I rowsort
SELECT ALL ( + 68 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - - col0 * + 92 AS col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT cor0.col0 + - cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ALL 44 * 51 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to e708dd5c8a6c048c9b50247212bacf15
query I rowsort
SELECT DISTINCT tab1.col1 * + col0 * 78 FROM tab1
----
49920
6084
81120
onlyif mysql # use DIV operator for integer division
query I rowsort label-3065
SELECT DISTINCT + ( - col0 ) DIV col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + ( - col0 ) / col0 FROM tab2
----
-1
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 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3068
SELECT + 54 DIV - 81 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3068
SELECT + 54 / - 81 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col1 * col0 + + col0 * - ( + 85 ) - col2 FROM tab2 cor0
----
-11258
-8096
-839
query I rowsort
SELECT DISTINCT ( + 9 ) + col2 * - 33 AS col0 FROM tab1 AS cor0
----
-1773
-1872
-3159
query I rowsort
SELECT DISTINCT - 98 + 1 * col0 AS col0 FROM tab1 AS cor0
----
-18
-34
-95
query I rowsort
SELECT + + col1 * - col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT CAST( + 21 AS SIGNED ) + col0 DIV - 8 + col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1546
658
858
skipif mysql # not compatible
query I rowsort label-3073
SELECT CAST ( + 21 AS INTEGER ) + col0 / - 8 + col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1546
658
858
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + col2 * - 18 + col2 * - col1 + - 86 AS col2 FROM tab2
----
-1409
-1416
-2088
onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT - tab1.col1 + - 19 DIV col2 + tab1.col0 FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-3076
SELECT - tab1.col1 + - 19 / col2 + tab1.col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 70 - - 62 * - col1 AS col0 FROM tab2 AS cor0
----
-1124
-1992
-3728
query I rowsort
SELECT 52 - + 88 * col1 AS col0 FROM tab0 AS cor0
----
-7516
-7956
-8484
query I rowsort
SELECT + ( col0 ) - + cor0.col2 * 95 FROM tab2 AS cor0
----
-2392
-2558
-3531
onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT + col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-3080
SELECT + col1 + - col0 / + col2 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT 69 * + col1 AS col1 FROM tab1 AS cor0
----
1794
690
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + cor0.col0 col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + col1 * 23 AS col1 FROM tab0
----
1978
2093
2231
query I rowsort
SELECT col0 + - col2 * + col0 * - 58 FROM tab2
----
10969
117702
174195
onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT - col0 DIV 24 AS col0 FROM tab1
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-3085
SELECT - col0 / 24 AS col0 FROM tab1
----
-2
-3
0
query I rowsort
SELECT - - 49 AS col2 FROM tab2 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT DISTINCT - - col2 * + col1 - cor0.col2 DIV + 20 AS col1 FROM tab1 AS cor0
----
1244
1402
568
skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - - col2 * + col1 - cor0.col2 / + 20 AS col1 FROM tab1 AS cor0
----
1244
1402
568
query I rowsort
SELECT - + 70 * + col2 - + 96 AS col0 FROM tab2 AS cor0
----
-1916
-1986
-2756
query I rowsort
SELECT ALL col2 * cor0.col1 + + 12 FROM tab0 AS cor0
----
109
2850
7474
query I rowsort
SELECT ALL + 27 + col2 * - col0 * col2 AS col2 FROM tab2 cor0
----
-114049
-5076
-52701
query I rowsort
SELECT ALL + + 83 + col2 * ( + 41 ) FROM tab0 AS cor0
----
124
1436
3445
query I rowsort
SELECT ALL + cor0.col2 * + col0 + + ( + 32 ) FROM tab0 AS cor0
----
67
7330
824
query I rowsort
SELECT ALL ( + col0 ) - + col0 * col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - col1 * tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 * + 10 AS col1 FROM tab1
----
30
640
800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - tab0.col1 + col1 * - col1 - col0 * + col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT tab1.col2 - + ( - col1 ) AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL - tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT col1 DIV ( + col0 ) FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3099
SELECT col1 / ( + col0 ) FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - - col1 * + 41 AS col2 FROM tab1 AS cor0
----
1066
410
533
query I rowsort
SELECT - col1 * - tab1.col0 * col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL cor0.col2 + + ( + cor0.col0 + col0 ) AS col1 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT - - 50 * cor0.col2 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT DISTINCT + + 72 AS col0 FROM tab0 AS cor0
----
72
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 70 AS REAL ) + col0 AS col1 FROM tab1 cor0
----
134
150
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT ALL - 99 DIV - col2 + - cor0.col0 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - 99 / - col2 + - cor0.col0 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col1 ) * + cor0.col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 66 + + 7 * - col0 FROM tab2 cor0
----
-480
-487
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT ALL - ( - 14 ) * col0 DIV ( - col0 ) + - col0 DIV col0 FROM tab0 AS cor0
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - ( - 14 ) * col0 / ( - col0 ) + - col0 / col0 FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL - col2 + + col2 * - col0 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL col2 * ( + col0 + + col1 ) FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL + - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT DISTINCT - col1 DIV 40 FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - col1 / 40 FROM tab0 AS cor0
----
-2
query I rowsort
SELECT ALL + 92 * + col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT ALL + 40 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
40
46
46
skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + 40 + col0 / col1 AS col1 FROM tab1 AS cor0
----
40
46
46
query I rowsort
SELECT + 61 - col2 FROM tab1
----
-35
4
7
query I rowsort
SELECT 58 * - col1 AS col0 FROM tab2 AS cor0
----
-1798
-3422
-986
query I rowsort
SELECT ALL tab0.col1 * col1 + - col2 FROM tab0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - col0 + - ( - col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col1 + 43 FROM tab0
----
-43
-48
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + - 49 col0 FROM tab1 AS cor0
----
-1089
-127
-689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT ALL - col1 * + col2 * + col1 - col2 * - CAST( ( col1 ) AS SIGNED ) * - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-11400
-32448
-73008
skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - col1 * + col2 * + col1 - col2 * - CAST ( ( col1 ) AS INTEGER ) * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-11400
-32448
-73008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT DISTINCT - col0 + + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - col0 + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT + col1 * ( cor0.col0 * - cor0.col1 ) - CAST( col1 + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-177557
-329411
-737018
skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + col1 * ( cor0.col0 * - cor0.col1 ) - CAST ( col1 + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-177557
-329411
-737018
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT col0 + - 55 DIV col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3128
SELECT col0 + - 55 / col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT DISTINCT - + col0 * ( - col1 ) * + col2 + col1 DIV - 15 AS col0 FROM tab2 AS cor0
----
119649
51033
5857
skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - + col0 * ( - col1 ) * + col2 + col1 / - 15 AS col0 FROM tab2 AS cor0
----
119649
51033
5857
query I rowsort
SELECT ALL - 96 + col1 FROM tab2 cor0
----
-37
-65
-79
query I rowsort
SELECT + + 46 + col0 FROM tab1 AS cor0
----
110
126
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 55 * - col2 col1 FROM tab1 AS cor0
----
-2970
-3135
-5280
query I rowsort
SELECT ( - cor0.col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL col1 * cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT DISTINCT + col0 DIV col1 col2 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + col0 / col1 col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT - 11 * col1 FROM tab1 AS cor0
----
-110
-143
-286
onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT ALL + 90 - + col1 DIV - 95 AS col1 FROM tab2 cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + 90 - + col1 / - 95 AS col1 FROM tab2 cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + 17 * - col2 + cor0.col2 FROM tab2 AS cor0
----
-416
-432
-608
onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL col1 + - cor0.col2 DIV ( col0 ) FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL col1 + - cor0.col2 / ( col0 ) FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT + + 29 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1569
-1717
-2864
query I rowsort
SELECT ALL 48 + col2 FROM tab0
----
130
49
81
query I rowsort
SELECT ALL col0 + - ( + col2 + col1 ) AS col1 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT ALL - col2 + - tab1.col2 * + col2 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT - 17 * col1 * - col2 FROM tab2 AS cor0
----
10982
14229
26078
onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT + - 90 + col2 DIV - ( + col0 ) FROM tab2 AS cor0
----
-90
-90
-93
skipif mysql # not compatible
query I rowsort label-3145
SELECT + - 90 + col2 / - ( + col0 ) FROM tab2 AS cor0
----
-90
-90
-93
query I rowsort
SELECT - + 19 + 81 * col1 FROM tab0 AS cor0
----
6947
7352
7838
query I rowsort
SELECT - col2 * 24 + - col0 + + col2 FROM tab2 AS cor0
----
-628
-676
-953
query I rowsort
SELECT - 20 * + col0 + + cor0.col0 FROM tab2 AS cor0
----
-133
-1482
-1501
query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT + col2 * ( - 7 ) + + col0 * col2 AS col0 FROM tab0
----
28
561
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 col0 FROM tab1, 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-3151
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0, tab0 AS cor0
----
38
query I rowsort
SELECT ALL - col0 * + col0 + - col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT - col1 * 89 AS col0 FROM tab0
----
-7654
-8099
-8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col1 FROM tab0, tab1 AS cor0
----
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - 0 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - 13 + ( col2 ) FROM tab2 cor0
----
13
14
25
query I rowsort
SELECT col1 + - 31 AS col2 FROM tab1 AS cor0
----
-18
-21
-5
query I rowsort
SELECT 82 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1330
1486
652
query I rowsort
SELECT 75 * col0 FROM tab1
----
225
4800
6000
query I rowsort
SELECT ALL + + ( + col0 ) + - col2 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + 17 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1513
-408
-595
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3165
SELECT ALL ( ( - col1 ) * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL ( ( - col1 ) * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + 15 + tab0.col1 ) AS col1 FROM tab0
----
-101
-106
-112
query I rowsort
SELECT + - col0 * col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT + 91 AS col1 FROM tab2
----
91
91
91
query I rowsort
SELECT ALL col2 * col0 * col2 AS col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + 61 + + col0 AS col2 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT 6 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT - + cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3172
SELECT - + cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - col0 * + col0 * + col2 col1 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT + ( + col1 ) * + col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT + + col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + col1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 - col1 col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ( - cor0.col2 ) * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - ( col1 ) - + col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + - 66 FROM tab0 cor0
----
-66
-66
-66
query I rowsort
SELECT DISTINCT col1 + 10 AS col0 FROM tab2
----
27
41
69
query I rowsort
SELECT ALL col1 + - 79 * col0 AS col0 FROM tab0
----
-1810
-2668
-6940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3183
SELECT CAST( col2 AS SIGNED ) * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-3183
SELECT CAST ( col2 AS INTEGER ) * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + 8 + + 29 FROM tab0 cor0
----
37
37
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) + + 75 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dcfae05c62282abef528cb86d471f4cc
query I rowsort
SELECT DISTINCT - + col2 * ( + col1 ) + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - col2 + - ( - col0 ) FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - cor0.col1 * 68 AS col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT + + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3189
SELECT + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 49 AS col1 FROM tab2 cor0
----
1519
2891
833
query I rowsort
SELECT - col1 + 54 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT ALL col1 * 8 - col0 FROM tab1 AS cor0
----
16
205
24
query I rowsort
SELECT ALL - col2 * col1 + 63 * + col1 FROM tab0 AS cor0
----
-1729
2580
6014
query I rowsort
SELECT DISTINCT + col2 + col0 * - 82 * + col0 FROM tab2 AS cor0
----
-3991
-498862
-511724
query I rowsort
SELECT ALL + col0 * + col1 + 0 + + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL - + col1 * ( col2 ) + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3197
SELECT DISTINCT + col0 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 12 + - cor0.col2 FROM tab1 cor0
----
-42
-45
-84
query I rowsort
SELECT + ( col1 ) * - col2 + 4 AS col1 FROM tab2 AS cor0
----
-1530
-642
-833
query I rowsort
SELECT col1 + - col2 * cor0.col0 AS col0 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 AS col1 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT + col0 * + col2 + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
154
3648
7680
skipif mysql # not compatible
query I rowsort label-3202
SELECT + col0 * + col2 + col1 / - cor0.col0 FROM tab1 AS cor0
----
154
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT DISTINCT + CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT + CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3204
SELECT - CAST( NULL AS DECIMAL ) * ( + col1 + + col2 ) / - 10 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3204
SELECT - CAST ( NULL AS REAL ) * ( + col1 + + col2 ) / - 10 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 71 * + 90 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
6390
6390
6390
query I rowsort
SELECT ALL + 22 - - col1 FROM tab1 AS cor0
----
32
35
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT + + col0 + col1 * CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3207
SELECT + + col0 + col1 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) + + 87 AS col0 FROM tab1 cor0
----
100
113
97
query I rowsort
SELECT DISTINCT 91 * col2 AS col0 FROM tab0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * + col2 col1 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - - ( + col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col0 * col2 + 10 FROM tab2 AS cor0
----
-179
-2018
-2992
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT 5 * col2 AS col2 FROM tab0 cor0
----
165
410
5
query I rowsort
SELECT DISTINCT + 85 * cor0.col0 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT + col0 + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + 88 + col2 FROM tab0 AS cor0
----
121
170
89
query I rowsort
SELECT DISTINCT 74 + + col2 FROM tab0 cor0
----
107
156
75
skipif mysql # not compatible
query I rowsort
SELECT - col0 * col2 + CAST ( - 59 AS REAL ) AS col1 FROM tab0 AS cor0
----
-7357
-851
-94
query I rowsort
SELECT tab0.col2 * - col1 * - col0 + 73 * + 73 FROM tab0
----
669447
73441
8724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + col1 * - col1 + - ( col0 ) col0 FROM tab1
----
-236
-321
-751
query I rowsort
SELECT ALL + + col2 + + col0 * 79 FROM tab2 AS cor0
----
580
6188
6279
query I rowsort
SELECT ALL 66 + + col0 FROM tab0 AS cor0
----
101
155
90
query I rowsort
SELECT DISTINCT ( + 7 + col2 * col1 ) FROM tab2
----
1541
653
844
query I rowsort
SELECT ALL + col1 * col2 + + 75 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1921
3162
5959
query I rowsort
SELECT DISTINCT + tab1.col0 * + 14 FROM tab1, tab2 cor0, tab0 AS cor1
----
1120
42
896
query I rowsort
SELECT DISTINCT - 26 * col0 * 53 AS col2 FROM tab0
----
-122642
-33072
-48230
query I rowsort
SELECT DISTINCT - col2 * + 55 + + col1 * + col0 AS col0 FROM tab1 cor0
----
-2495
-2892
-4240
query I rowsort
SELECT + col1 + 72 AS col2 FROM tab1 cor0
----
82
85
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 * - 80 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5440
query I rowsort
SELECT DISTINCT 18 + col0 AS col1 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT 44 * 33 + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to efd96f68c54fc0cf1fa3cd1063a475c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3233
SELECT DISTINCT + 84 * + col0 * + CAST( 57 AS SIGNED ) FROM tab2
----
33516
373464
378252
skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + 84 * + col0 * + CAST ( 57 AS INTEGER ) FROM tab2
----
33516
373464
378252
query I rowsort
SELECT ALL + 27 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3235
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT DISTINCT - 59 DIV + 74 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT - 59 / + 74 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 60 * ( col1 ) FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT + col0 + + col0 + col1 AS col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT DISTINCT - - ( + col2 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - col2 - - 49 AS col2 FROM tab0
----
-33
16
48
query I rowsort
SELECT - 26 * ( col2 ) + col1 FROM tab2 AS cor0
----
-617
-671
-971
query I rowsort
SELECT DISTINCT 22 * + col2 + col1 FROM tab1
----
1214
1264
2125
onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT ALL - 57 * tab0.col2 DIV col0 + + col0 + + ( col1 ) * - 26 FROM tab0
----
-2290
-2329
-2488
skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 57 * tab0.col2 / col0 + + col0 + + ( col1 ) * - 26 FROM tab0
----
-2290
-2329
-2488
query I rowsort
SELECT ( + col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - + cor0.col1 * - 62 + col0 FROM tab0 AS cor0
----
5356
5731
6049
query I rowsort
SELECT cor0.col0 + + cor0.col0 * col2 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + - col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + col0 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + 61 + col2 * + col0 FROM tab1 AS cor0
----
223
3709
7741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT DISTINCT cor0.col2 * - col2 / - col2 + CAST( NULL AS SIGNED ) * ( + cor0.col0 ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT cor0.col2 * - col2 / - col2 + CAST ( NULL AS INTEGER ) * ( + cor0.col0 ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 49 + + col2 FROM tab0 cor0
----
131
50
82
query I rowsort
SELECT - col0 + + 83 FROM tab0 AS cor0
----
-6
48
59
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - cor0.col0 * col0 + + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + col0 * + col1 + - cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 + ( col0 ) * col2 * - col1 + 4 * col1 AS col2 FROM tab2 cor0
----
-119338
-50887
-5728
query I rowsort
SELECT DISTINCT - col2 * 68 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-12852
-137904
-204136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT col2 + ( cor0.col1 ) DIV col1 + + col1 AS col0 FROM tab0 cor0
----
120
174
99
skipif mysql # not compatible
query I rowsort label-3260
SELECT col2 + ( cor0.col1 ) / col1 + + col1 AS col0 FROM tab0 cor0
----
120
174
99
query I rowsort
SELECT + + col0 - - 30 * col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col0 * + col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT col1 + + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + ( cor0.col1 ) * - col0 + col2 * 3 FROM tab2 AS cor0
----
-1229
-136
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3266
SELECT CAST( - col1 AS SIGNED ) + + col1 * ( col1 ) FROM tab2 AS cor0
----
272
3422
930
skipif mysql # not compatible
query I rowsort label-3266
SELECT CAST ( - col1 AS INTEGER ) + + col1 * ( col1 ) FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + - col0 + - 72 AS col1 FROM tab0 AS cor0
----
-107
-161
-96
query I rowsort
SELECT DISTINCT - - col1 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT DISTINCT 11 DIV col0 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT 11 / col0 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - - ( col0 ) + - col0 * - ( - ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + - ( + col2 ) * + ( - col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + ( - col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT DISTINCT - 93 DIV + col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - 93 / + col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + + col2 + cor0.col0 + 5 FROM tab2 AS cor0
----
109
122
39
query I rowsort
SELECT ALL 17 + cor0.col0 FROM tab1 AS cor0
----
20
81
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT - + 61 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-61
0
skipif mysql # not compatible
query I rowsort label-3276
SELECT - + 61 / cor0.col2 FROM tab0 AS cor0
----
-1
-61
0
query I rowsort
SELECT - 12 + + cor0.col1 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT - 24 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT ALL + col1 DIV col0 + tab2.col2 col2 FROM tab2
----
26
31
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + col1 / col0 + tab2.col2 col2 FROM tab2
----
26
31
38
query I rowsort
SELECT col0 * col1 + - 83 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1470
2119
2236
query I rowsort
SELECT ALL + 8 * + col1 + - 14 * + tab2.col1 + tab2.col1 AS col0 FROM tab2
----
-155
-295
-85
query I rowsort
SELECT ALL col0 + + col2 + 5 FROM tab0
----
176
41
62
query I rowsort
SELECT + tab0.col0 * + 92 + + 81 FROM tab0, tab0 cor0
----
9 values hashing to ca0a494bc6144ee8bb5e2db59561ae57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3284
SELECT + col2 + CAST( + col0 AS SIGNED ) * col2 col1 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3284
SELECT + col2 + CAST ( + col0 AS INTEGER ) * col2 col1 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( ( cor0.col0 ) ) + + col2 col2 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT - col0 * col0 + - col2 + - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-4253
-6665
-739
query I rowsort
SELECT + col1 + ( col0 ) * col2 + - cor0.col2 FROM tab2 AS cor0
----
193
2061
2981
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT col1 * + CAST( NULL AS SIGNED ) + col2 + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3288
SELECT col1 * + CAST ( NULL AS INTEGER ) + col2 + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col2 * - 8 * col0 AS col0 FROM tab1
----
-1296
-29184
-61440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT ALL col1 * + CAST( 33 AS SIGNED ) FROM tab0
----
2838
3003
3201
skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL col1 * + CAST ( 33 AS INTEGER ) FROM tab0
----
2838
3003
3201
onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT col2 * col2 DIV ( col1 ) + col0 FROM tab1 AS cor0
----
115
388
788
skipif mysql # not compatible
query I rowsort label-3291
SELECT col2 * col2 / ( col1 ) + col0 FROM tab1 AS cor0
----
115
388
788
query I rowsort
SELECT - + col0 + + ( - col2 ) * cor0.col2 FROM tab0 cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL + 56 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - col0 * - 21 AS col1 FROM tab0
----
1869
504
735
query I rowsort
SELECT ( - 4 + + col2 * ( - col2 ) ) FROM tab2
----
-1448
-680
-733
query I rowsort
SELECT - 44 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col0 col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 32 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1311
-185
-4570
query I rowsort
SELECT ALL - + col1 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT col2 + + col1 * + ( 12 ) AS col0 FROM tab0 AS cor0
----
1065
1165
1174
query I rowsort
SELECT DISTINCT + - 56 + col0 FROM tab2 cor0
----
-49
22
23
query I rowsort
SELECT ALL - - 17 * col0 AS col1 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT col0 * cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col0 * + col1 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
118860
49560
720900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 96 ) col0 FROM tab1 AS cor0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - col1 * + 86 + + 9 * + col1 FROM tab1
----
-1001
-2002
-770
query I rowsort
SELECT DISTINCT + 41 FROM tab2, tab2 AS cor0
----
41
query I rowsort
SELECT ALL ( - col2 ) * + tab2.col0 * - col1 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT tab1.col2 + + 35 * col1 FROM tab1
----
407
551
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT ALL tab2.col2 DIV - tab2.col0 AS col2 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL tab2.col2 / - tab2.col0 AS col2 FROM tab2
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT ALL + CAST( cor0.col1 AS SIGNED ) + - col2 + - col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) + - col2 + - col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT DISTINCT CAST( NULL AS SIGNED ) + 77 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 77 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3315
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT + tab0.col0 DIV tab0.col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3316
SELECT + tab0.col0 / tab0.col0 AS col2 FROM tab0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT DISTINCT col0 - col2 * + CAST( 96 AS SIGNED ) col1 FROM tab2
----
-2418
-2585
-3569
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT col0 - col2 * + CAST ( 96 AS INTEGER ) col1 FROM tab2
----
-2418
-2585
-3569
query I rowsort
SELECT DISTINCT + 85 - tab2.col2 AS col1 FROM tab2
----
47
58
59
query I rowsort
SELECT - ( + col0 ) * 46 FROM tab0
----
-1104
-1610
-4094
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT + 38 * - col2 + col0 - + col0 AS col2 FROM tab1
----
-2052
-2166
-3648
query I rowsort
SELECT DISTINCT + col0 - + col2 * 5 AS col2 FROM tab0
----
-141
-321
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT col1 * - CAST( NULL AS SIGNED ) + 46 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3323
SELECT col1 * - CAST ( NULL AS INTEGER ) + 46 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3325
SELECT + col2 - - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3325
SELECT + col2 - - col1 / - col1 AS col1 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT ALL + - col0 + 57 DIV + col2 AS col1 FROM tab0 AS cor0
----
-23
-89
22
skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + - col0 + 57 / + col2 AS col1 FROM tab0 AS cor0
----
-23
-89
22
query I rowsort
SELECT - col2 * + 71 + - 10 FROM tab0 AS cor0
----
-2353
-5832
-81
query I rowsort
SELECT ALL + cor0.col1 + + ( + col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT DISTINCT - col0 DIV CAST( cor0.col2 AS SIGNED ) - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - col0 / CAST ( cor0.col2 AS INTEGER ) - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
569
query I rowsort
SELECT col1 * - col0 + + 73 FROM tab2 AS cor0
----
-1270
-144
-4529
query I rowsort
SELECT DISTINCT + cor0.col2 + + 98 * ( cor0.col0 ) AS col1 FROM tab1 cor0
----
348
6329
7936
query I rowsort
SELECT ALL - + col0 * + 77 + 71 FROM tab1 AS cor0
----
-160
-4857
-6089
query I rowsort
SELECT ALL - col0 * + col0 * col2 + col2 FROM tab0
----
-1224
-18975
-649440
query I rowsort
SELECT col2 + col2 + + col0 * col2 * col0 AS col1 FROM tab1
----
233586
594
614592
query I rowsort
SELECT ALL + col2 + - tab2.col0 * col0 AS col1 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT ALL - col2 * - col1 * - col0 + col1 FROM tab1
----
-36470
-4186
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT + + col2 DIV col1 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3337
SELECT + + col2 / col1 - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 * col1 col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT DISTINCT col0 DIV + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT col0 / + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col1 * col0 + + cor0.col1 * col2 * + col2 FROM tab2 AS cor0
----
22382
23205
35282
query I rowsort
SELECT DISTINCT - + cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT DISTINCT col2 DIV - col2 + - col1 AS col0 FROM tab1 cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT col2 / - col2 + - col1 AS col0 FROM tab1 cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT ALL + col1 + - cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + col1 + - cor0.col0 / - col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * + col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT ALL - col2 * col2 + cor0.col1 DIV col0 + col1 FROM tab0 AS cor0
----
-1000
-6632
98
skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - col2 * col2 + cor0.col1 / col0 + col1 FROM tab0 AS cor0
----
-1000
-6632
98
query I rowsort
SELECT DISTINCT + - col0 * col2 * + cor0.col0 - + col0 FROM tab0 AS cor0
----
-1260
-19032
-649611
query I rowsort
SELECT DISTINCT + col1 * col1 - - col2 * - col2 * + col1 FROM tab1 AS cor0
----
-119639
-32390
-75140
query I rowsort
SELECT ALL col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT col1 DIV - col2 + col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-3349
SELECT col1 / - col2 + col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT col0 * col1 + col0 DIV col0 AS col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-3351
SELECT col0 * col1 + col0 / col0 AS col0 FROM tab0
----
2065
3396
8100
query I rowsort
SELECT cor0.col2 * - cor0.col0 + + col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT - cor0.col1 + cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT + cor0.col0 * + col1 + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
1341
217
4602
skipif mysql # not compatible
query I rowsort label-3354
SELECT + cor0.col0 * + col1 + - col2 / cor0.col1 FROM tab2 AS cor0
----
1341
217
4602
query I rowsort
SELECT col2 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 * - col1 col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT 38 * col1 AS col2 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT + 36 * - col2 FROM tab2 cor0
----
-1368
-936
-972
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 + + col0 * - cor0.col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT ALL - cor0.col0 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - cor0.col0 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-4
-78
-79
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL IN ( cor0.col2 )
----
query I rowsort
SELECT ALL - - 81 * + col1 AS col0 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT DISTINCT - 94 * cor0.col2 FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT + + cor0.col0 * col1 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - + 91 * col1 AS col2 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT ALL - + cor0.col1 * col0 * col1 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 4 * - col1 AS col1 FROM tab0
----
-344
-364
-388
query I rowsort
SELECT 94 * col1 - col1 FROM tab2
----
1581
2883
5487
onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT tab2.col0 DIV - 64 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3370
SELECT tab2.col0 / - 64 FROM tab2
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col1 col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT + 10 DIV 15 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3372
SELECT + 10 / 15 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT DISTINCT ( - col2 * col2 ) + + 34 * 22 DIV + col0 + + col2 * - 75 col0 FROM tab2
----
-2617
-2648
-4285
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT ( - col2 * col2 ) + + 34 * 22 / + col0 + + col2 * - 75 col0 FROM tab2
----
-2617
-2648
-4285
query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col0 + 3 * col2 FROM tab1
----
107
159
208
query I rowsort
SELECT - col1 * - cor0.col2 + - col1 FROM tab2 cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + col0 col0 FROM tab0 AS cor0
----
152
87
98
query I rowsort
SELECT + 48 + + col0 AS col0 FROM tab2 AS cor0
----
126
127
55
query I rowsort
SELECT + ( - col1 ) + ( col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT tab1.col1 * + 45 AS col1 FROM tab1
----
1170
450
585
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + CAST ( NULL AS REAL ) + tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT - 32 + + col1 AS col1 FROM tab0 AS cor0
----
54
59
65
query I rowsort
SELECT 18 + + col2 - col0 AS col0 FROM tab0 cor0
----
-16
11
27
query I rowsort
SELECT ALL - + 48 + + col2 FROM tab1 cor0
----
48
6
9
query I rowsort
SELECT + col0 + col2 - + ( col0 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + - col2 * - col1 + col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-3263
-548
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT DISTINCT cor0.col1 * 47 + + col2 DIV - col0 FROM tab2 AS cor0
----
1454
2773
799
skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT cor0.col1 * 47 + + col2 / - col0 FROM tab2 AS cor0
----
1454
2773
799
query I rowsort
SELECT DISTINCT + + col0 - col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT ALL + col1 + 1 DIV 73 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + col1 + 1 / 73 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - cor0.col1 + ( col2 ) AS col2 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3391
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 16 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 16 AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3392
SELECT - CAST( + cor0.col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3392
SELECT - CAST ( + cor0.col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - + cor0.col0 * 49 - col1 AS col2 FROM tab1 cor0
----
-173
-3146
-3933
query I rowsort
SELECT DISTINCT cor0.col2 - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + tab1.col2 * tab1.col0 * + col2 AS col0 FROM tab1
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3396
SELECT + CAST( 8 AS SIGNED ) FROM tab2
----
8
8
8
skipif mysql # not compatible
query I rowsort label-3396
SELECT + CAST ( 8 AS INTEGER ) FROM tab2
----
8
8
8
query I rowsort
SELECT ( ( + col0 ) ) * + 65 * col2 FROM tab0 AS cor0
----
2275
474370
51480
query I rowsort
SELECT + col0 * 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 55 ) AS col1 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT - 46 * - col1 AS col0 FROM tab2 AS cor0
----
1426
2714
782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + - col1 col0 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT - col2 + + col0 * + col0 * - 3 + + col2 AS col0 FROM tab0 AS cor0
----
-1728
-23763
-3675
query I rowsort
SELECT - + 7 + col1 AS col0 FROM tab1 AS cor0
----
19
3
6
query I rowsort
SELECT DISTINCT - col2 * col2 * + col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT + ( col0 + col0 ) FROM tab2
----
14
156
158
query I rowsort
SELECT - col0 * + col2 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702
query I rowsort
SELECT col0 * + ( - col2 ) + col2 FROM tab2 cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT - + col1 * col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-3408
SELECT - + col1 * col1 / + col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
query I rowsort
SELECT DISTINCT - + 98 * col0 FROM tab0 AS cor0
----
-2352
-3430
-8722
query I rowsort
SELECT 77 + + 56 * col1 AS col1 FROM tab2 AS cor0
----
1029
1813
3381
query I rowsort
SELECT + + col1 * - 68 + + 41 AS col1 FROM tab2 AS cor0
----
-1115
-2067
-3971
query I rowsort
SELECT col0 + + 96 FROM tab0 cor0
----
120
131
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL - col2 * ( - 33 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-29
-39
-594
skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - col2 * ( - 33 ) / - col0 AS col1 FROM tab1 AS cor0
----
-29
-39
-594
query I rowsort
SELECT ALL - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - cor0.col1 + - ( col2 ) + - cor0.col1 FROM tab1 AS cor0
----
-106
-122
-77
query I rowsort
SELECT DISTINCT - col1 * + col1 * - 17 + col2 FROM tab0 AS cor0
----
125765
140859
159954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 34 - - col2 * col2 col1 FROM tab2 cor0
----
-189
-208
152
query I rowsort
SELECT cor1.col2 * 65 FROM tab0, tab2 AS cor0, tab2, tab1 cor1
----
81 values hashing to bf9e7f7ee270e93f8a19bc9fa2bfcfed
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + + ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT ALL - CAST( col1 AS SIGNED ) + - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - CAST ( col1 AS INTEGER ) + - col1 col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col2 * + ( + col2 ) AS col0 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT DISTINCT - col2 + - ( - 18 ) DIV - col0 AS col2 FROM tab1
----
-57
-60
-96
skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - col2 + - ( - 18 ) / - col0 AS col2 FROM tab1
----
-57
-60
-96
query I rowsort
SELECT - col1 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - col0 + + 15 * + 72 AS col0 FROM tab2
----
1001
1002
1073
query I rowsort
SELECT DISTINCT - col0 + 33 AS col1 FROM tab0
----
-2
-56
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT ALL - col1 * - 31 + tab1.col2 DIV col0 + 74 FROM tab1
----
384
478
898
skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - col1 * - 31 + tab1.col2 / col0 + 74 FROM tab1
----
384
478
898
query I rowsort
SELECT ALL + tab1.col0 * + ( col2 ) + col1 * ( + col0 ) FROM tab1
----
240
4288
8720
query I rowsort
SELECT - col1 + col0 - ( + col2 ) AS col0 FROM tab0
----
-63
-84
-95
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 25 AS REAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT DISTINCT - col1 DIV + 8 FROM tab2
----
-2
-3
-7
skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - col1 / + 8 FROM tab2
----
-2
-3
-7
query I rowsort
SELECT ALL - - 1 + - cor0.col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - + 87 AS col2 FROM tab1 AS cor0
----
-87
-87
-87
query I rowsort
SELECT DISTINCT + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT ALL - - 63 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
query I rowsort
SELECT DISTINCT 18 + 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
115
query I rowsort
SELECT - - col2 * - cor0.col1 - 98 * col2 FROM tab1 AS cor0
----
-10656
-6156
-6696
query I rowsort
SELECT col0 + - col2 * - col2 FROM tab0 cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT DISTINCT + 59 - + cor0.col0 DIV - 89 FROM tab0 AS cor0
----
59
60
skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT + 59 - + cor0.col0 / - 89 FROM tab0 AS cor0
----
59
60
query I rowsort
SELECT ALL ( col1 ) * - 63 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT tab2.col2 * col2 + col0 * + col1 FROM tab2
----
2787
5278
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT ALL + col2 + + cor0.col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + col2 + + cor0.col1 / - col1 AS col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - col1 + - col2 + - 39 FROM tab0 cor0
----
-137
-158
-212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3448
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3448
SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + 99 AS col2 FROM tab1 AS cor0
----
109
112
125
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT col2 DIV col2 + - col1 AS col2 FROM tab0 cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3450
SELECT col2 / col2 + - col1 AS col2 FROM tab0 cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 - 85 FROM tab2 cor0
----
-1428
-302
-4687
query I rowsort
SELECT - col1 * 17 + - col0 AS col1 FROM tab0 AS cor0
----
-1486
-1636
-1684
query I rowsort
SELECT - col0 * - 48 AS col0 FROM tab0 cor0
----
1152
1680
4272
query I rowsort
SELECT - - col1 * 95 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT - col2 - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 94 * + 74 FROM tab2 AS cor0
----
-6956
-6956
-6956
query I rowsort
SELECT DISTINCT + 76 * - col0 FROM tab0
----
-1824
-2660
-6764
query I rowsort
SELECT ALL 7 FROM tab1 cor0
----
7
7
7
query I rowsort
SELECT ALL - 18 + col1 * - col0 AS col0 FROM tab2 cor0
----
-1361
-235
-4620
onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT 10 + - col0 * col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-44
-47
-86
skipif mysql # not compatible
query I rowsort label-3460
SELECT 10 + - col0 * col2 / col0 AS col2 FROM tab1 AS cor0
----
-44
-47
-86
query I rowsort
SELECT - + ( cor0.col0 ) + - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + - ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col2 + + col0 + + 3 AS col2 FROM tab2 AS cor0
----
107
120
37
query I rowsort
SELECT ALL 48 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT ALL - col1 + + col0 * - 57 FROM tab0 AS cor0
----
-1454
-2092
-5164
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL 80 * col2 FROM tab2 cor0
----
2080
2160
3040
query I rowsort
SELECT + 82 - 49 * + col2 AS col2 FROM tab0
----
-1535
-3936
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + + col1 * + col1 col0 FROM tab0
----
7405
8274
9375
onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT - tab0.col2 + col2 DIV col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-3470
SELECT - tab0.col2 + col2 / col2 AS col0 FROM tab0
----
-32
-81
0
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + col0
----
query I rowsort
SELECT ALL col1 * col2 - col1 AS col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT - col1 + - tab0.col0 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT col2 + + col1 AS col0 FROM tab1 WHERE ( col0 * col0 ) NOT IN ( - tab1.col0 )
----
109
67
80
query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL <= ( + col2 + + col1 * col1 )
----
query I rowsort
SELECT ALL col0 * - col2 * + tab2.col0 AS col2 FROM tab2
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * - col0 col0 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT col0 DIV tab0.col0 - col0 * col2 col0 FROM tab0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3478
SELECT col0 / tab0.col0 - col0 * col2 col0 FROM tab0
----
-34
-7297
-791
onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT DISTINCT - col1 * - col0 * col0 + col2 * + tab0.col0 + col0 DIV - col1 FROM tab0
----
118860
50328
728109
skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - col1 * - col0 * col0 + col2 * + tab0.col0 + col0 / - col1 FROM tab0
----
118860
50328
728109
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col2 - - col1 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * - col0 col0 FROM tab2
----
-42
-6006
-6162
query III rowsort
SELECT * FROM tab2 WHERE col2 * + col0 IN ( - col0 * - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + cor0.col2 + col1 * + col1 * col0 + col1 FROM tab2 AS cor0
----
22886
271603
6785
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL NOT IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + tab0.col0 * col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * + col2 * col0 FROM tab0 AS cor0
----
-1224
-18975
-649440
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----
query I rowsort
SELECT ALL tab0.col0 * - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2 * - col2
----
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * - col1 - - col0 FROM tab2
----
205457
29798
4992
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 - col0 * col0 AND col0
----
query I rowsort
SELECT ALL col0 + col2 * + col1 + col1 AS col1 FROM tab1 cor0
----
1341
1433
644
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) = col2
----
query I rowsort
SELECT DISTINCT + col2 * col1 * + col0 - cor0.col1 FROM tab0 AS cor0 WHERE col0 NOT IN ( + col0 * - col2 )
----
3298
664027
68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT col0 * - col0 - + col2 DIV col0 FROM tab0
----
-1225
-577
-7921
skipif mysql # not compatible
query I rowsort label-3497
SELECT col0 * - col0 - + col2 / col0 FROM tab0
----
-1225
-577
-7921
query I rowsort
SELECT - col1 * 1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 90 + - col1 * col1 AS col2 FROM tab1
----
-190
-259
-766
query I rowsort
SELECT DISTINCT - 88 FROM tab0, tab0 AS cor0
----
-88
query I rowsort
SELECT ALL + col0 * - 77 AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853
query I rowsort
SELECT + 69 + + 37 AS col2 FROM tab0 AS cor0
----
106
106
106
query I rowsort
SELECT ALL col2 + 41 * col2 FROM tab2 cor0
----
1092
1134
1596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT - col2 * - col1 * 98 FROM tab1
----
122304
137592
55860
query I rowsort
SELECT ( + col0 ) * tab0.col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - col0 * col0 * col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT col0 * - col1 * 27 + + col1 * col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-16720
-26845
-728
query I rowsort
SELECT + 5 + - col1 * 53 + 37 FROM tab2 AS cor0
----
-1601
-3085
-859
query I rowsort
SELECT col1 + + col1 + - 95 * col0 FROM tab2 AS cor0
----
-603
-7292
-7471
query I rowsort
SELECT + col1 * - col1 + col2 + col0 FROM tab0 AS cor0
----
-7339
-8110
-9373
query I rowsort
SELECT + + col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL 60 AS col2 FROM tab1
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT DISTINCT + 66 + + col1 DIV + col1 + + 23 * - col1 AS col2 FROM tab1 AS cor0
----
-163
-232
-531
skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + 66 + + col1 / + col1 + + 23 * - col1 AS col2 FROM tab1 AS cor0
----
-163
-232
-531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + 64 col1 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT - 29 * + col1 FROM tab2 AS cor0
----
-1711
-493
-899
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3517
SELECT DISTINCT cor0.col2 * 25 * - col0 - - CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT cor0.col2 * 25 * - col0 - - CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - + 7 AS col2 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT - - 66 * col0 AS col2 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT DISTINCT 73 * col2 AS col2 FROM tab1 cor0
----
3942
4161
7008
query I rowsort
SELECT - ( col2 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + cor0.col1 + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + + col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL + - 99 + + col2 FROM tab1 AS cor0
----
-3
-42
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3526
SELECT DISTINCT + tab2.col2 * 25 * col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + tab2.col2 * 25 * col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT ALL col1 * - col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - 50 * col0 - col0 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT ALL cor0.col2 * - col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT ALL - col2 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - col2 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * - 32 AS col1 FROM tab1 AS cor0
----
2048
2560
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 77 * col0 col2 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT DISTINCT + - col0 * + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + - col2 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT - - ( + 84 ) + + col0 * - 76 FROM tab0 AS cor0
----
-1740
-2576
-6680
query I rowsort
SELECT DISTINCT col2 * - col1 * - col2 AS col1 FROM tab0 cor0
----
611884
93654
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT - CAST( - ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3539
SELECT - CAST ( - ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( - col0 ) * col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 89 ) col1 FROM tab0 AS cor0
----
89
query I rowsort
SELECT ALL col1 * 96 FROM tab1
----
1248
2496
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT ALL CAST( NULL AS SIGNED ) + 54 FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL CAST ( NULL AS INTEGER ) + 54 FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab0, tab0 cor0
----
16
query I rowsort
SELECT ALL + - col2 * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT col1 * + col0 * 77 FROM tab1
----
49280
6006
80080
query I rowsort
SELECT DISTINCT - - 50 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
50
query I rowsort
SELECT DISTINCT 74 - 31 FROM tab0, tab2 AS cor0
----
43
query I rowsort
SELECT - col1 * + col1 - - 38 AS col1 FROM tab2
----
-251
-3443
-923
onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT - col2 + col2 DIV col0 FROM tab0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-3551
SELECT - col2 + col2 / col0 FROM tab0
----
-1
-32
-82
query I rowsort
SELECT + 50 + - col1 * + tab0.col1 FROM tab0
----
-7346
-8231
-9359
query I rowsort
SELECT ( + col0 ) + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - 22 * cor0.col2 * + col0 FROM tab2 AS cor0
----
-4158
-44616
-66044
query I rowsort
SELECT - + ( + 54 ) AS col0 FROM tab2 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL - ( col1 ) * - col1 * + col2 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + + col0 - col2 col1 FROM tab2
----
103
114
42
query I rowsort
SELECT DISTINCT 75 * + col1 * 7 + col2 AS col0 FROM tab1
----
13704
5307
6921
query I rowsort
SELECT ALL + + cor0.col1 * - col1 + + 23 * cor0.col1 FROM tab0 AS cor0
----
-5418
-6188
-7178
query I rowsort
SELECT + - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT DISTINCT + col1 * col0 + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + col1 * col0 + cor0.col0 / - col0 FROM tab1 AS cor0
----
1039
639
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT - col1 + + ( ( cor0.col0 ) ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3562
SELECT - col1 + + ( ( cor0.col0 ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - 69 AS col0 FROM tab2 AS cor0
----
-107
-95
-96
query I rowsort
SELECT + col2 * tab1.col0 - col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT 85 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT - 3 DIV - col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3566
SELECT - 3 / - col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - ( + 90 ) FROM tab2, tab2 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT - - col1 DIV + ( col0 ) FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3568
SELECT - - col1 / + ( col0 ) FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - col1 + - 56 * - 89 AS col2 FROM tab2 AS cor0
----
4925
4953
4967
query I rowsort
SELECT ALL - cor0.col2 * 61 FROM tab2 AS cor0
----
-1586
-1647
-2318
onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT - cor0.col0 * cor0.col0 DIV cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
14
3
skipif mysql # not compatible
query I rowsort label-3571
SELECT - cor0.col0 * cor0.col0 / cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
14
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL col0 * CAST( col1 AS SIGNED ) + - col2 * - ( + 57 + + col0 ) col0 FROM tab2 AS cor0
----
1945
6511
8112
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL col0 * CAST ( col1 AS INTEGER ) + - col2 * - ( + 57 + + col0 ) col0 FROM tab2 AS cor0
----
1945
6511
8112
query I rowsort
SELECT cor0.col2 + - ( + col2 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + ( + 13 ) * + col1 AS col2 FROM tab2 AS cor0
----
142
396
689
query I rowsort
SELECT ALL cor0.col0 * + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 * - 52 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT - cor0.col2 * - col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT DISTINCT + col1 DIV col0 + - cor0.col1 col1 FROM tab2 cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + col1 / col0 + - cor0.col1 col1 FROM tab2 cor0
----
-17
-27
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3579
SELECT cor0.col0 * + CAST( 61 AS SIGNED ) * col1 + 26 FROM tab2 AS cor0
----
13263
280748
81949
skipif mysql # not compatible
query I rowsort label-3579
SELECT cor0.col0 * + CAST ( 61 AS INTEGER ) * col1 + 26 FROM tab2 AS cor0
----
13263
280748
81949
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT - col0 + 35 * ( col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
-34
-57
24
skipif mysql # not compatible
query I rowsort label-3581
SELECT - col0 + 35 * ( col2 ) / cor0.col0 FROM tab0 AS cor0
----
-34
-57
24
query I rowsort
SELECT ALL + + col0 * - 21 * + col1 + + col2 * - 17 * 91 FROM tab0 cor0
----
-296933
-72842
-94395
query I rowsort
SELECT DISTINCT 11 - - col2 * + col0 FROM tab0 AS cor0
----
46
7309
803
query I rowsort
SELECT - 97 + + col2 FROM tab0 AS cor0
----
-15
-64
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT - col1 + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-3585
SELECT - col1 + col1 / - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL 80 + - 59 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 77 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + 24 + cor0.col2 FROM tab0 AS cor0
----
106
25
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 53 ) + cor0.col0 * col0 * - col0 + + cor0.col2 col2 FROM tab1 cor0
----
-262034
-511851
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * 11 col1 FROM tab1 AS cor0
----
13728
15444
6270
query I rowsort
SELECT ALL - - 92 * + col1 AS col0 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT ALL - + 99 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-14
skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - + 99 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT col1 + col0 DIV CAST( - 51 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-3594
SELECT col1 + col0 / CAST ( - 51 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
16
31
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3595
SELECT 75 + cor0.col1 * CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3595
SELECT 75 + cor0.col1 * CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + col0 * - 94 AS col0 FROM tab0 AS cor0
----
-2223
-3289
-8284
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 + col1 col2 FROM tab2 cor0
----
-4
35
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT DISTINCT ( - col1 ) DIV - col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT ( - col1 ) / - col1 FROM tab0
----
1
query I rowsort
SELECT ALL - ( - col0 + + 92 ) * col2 FROM tab2
----
-2295
-364
-494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * cor0.col1 + cor0.col2 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - col1 + cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT col2 * + col0 + - ( - 78 + col0 ) * 13 FROM tab2 AS cor0
----
1112
2028
2989
query I rowsort
SELECT ALL col2 * col0 * col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + + col1 + col2 * col2 * col1 + + ( + cor0.col2 * - 90 ) AS col2 FROM tab0 AS cor0
----
104
604595
90770
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT col2 + + 68 * col2 FROM tab1
----
3726
3933
6624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3607
SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col1 * col1 col0 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT - col1 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 15 - + 25 AS col1 FROM tab0
----
-10
query I rowsort
SELECT col1 - 9 AS col0 FROM tab2
----
22
50
8
query I rowsort
SELECT - 62 * col1 FROM tab0
----
-5332
-5642
-6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3614
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 3 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT DISTINCT - + cor0.col0 * 33 DIV - 42 FROM tab1 AS cor0
----
2
50
62
skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - + cor0.col0 * 33 / - 42 FROM tab1 AS cor0
----
2
50
62
query I rowsort
SELECT ALL 77 - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 06085cac82443fd0cfdbb8841d5fe668
query I rowsort
SELECT cor0.col1 * col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + cor0.col2 * - ( - 97 + + cor0.col2 ) FROM tab1 AS cor0
----
2280
2322
96
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT ALL - + cor0.col0 * + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - + cor0.col0 * + col1 / - col1 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col0 * - 22 FROM tab2 AS cor0
----
-154
-1716
-1738
query I rowsort
SELECT + tab1.col1 - 75 AS col0 FROM tab1
----
-49
-62
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + + cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + col2 + + 89 AS col0 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT - 46 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT ALL + col2 DIV col1 + ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
52
54
78
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + col2 / col1 + ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
52
54
78
query I rowsort
SELECT - 37 + - col0 AS col1 FROM tab0 cor0
----
-126
-61
-72
query I rowsort
SELECT - 87 * - col0 + col1 FROM tab0 AS cor0
----
2174
3142
7834
query I rowsort
SELECT ALL - + col1 + cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - ( + 23 ) * + col2 FROM tab1
----
-1242
-1311
-2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT DISTINCT - - col1 DIV - col0 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-37
-7299
-795
skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - - col1 / - col0 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-37
-7299
-795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT 23 + + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3638
SELECT 23 + + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + 21 * + col1 - + col1 AS col0 FROM tab2 AS cor0
----
1180
340
620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * - col0 col0 FROM tab1
----
-195
-4160
-5200
query I rowsort
SELECT 36 + - col1 * - 69 AS col2 FROM tab2
----
1209
2175
4107
query I rowsort
SELECT DISTINCT + col1 * - col0 * + 11 + 65 FROM tab2 AS cor0
----
-14708
-2322
-50557
query I rowsort
SELECT ALL 93 * + col0 - + col2 FROM tab2 AS cor0
----
624
7228
7309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - + 96 * col1 FROM tab2 AS cor0
----
-1632
-2976
-5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-3647
SELECT 46 DIV col2 + - col1 * 73 AS col0 FROM tab0 AS cor0
----
-6277
-6643
-7035
skipif mysql # not compatible
query I rowsort label-3647
SELECT 46 / col2 + - col1 * 73 AS col0 FROM tab0 AS cor0
----
-6277
-6643
-7035
query I rowsort
SELECT - 45 * cor0.col1 FROM tab2 AS cor0
----
-1395
-2655
-765
query I rowsort
SELECT DISTINCT + 99 * + col2 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT - + col1 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + 75 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
6426
6736
7240
query I rowsort
SELECT + col2 + col2 * + 82 FROM tab2 AS cor0
----
2158
2241
3154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 15 col2 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT ALL + col0 * 19 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT DISTINCT - + col1 * - 58 FROM tab2 AS cor0
----
1798
3422
986
onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT DISTINCT - - col1 DIV ( col2 ) FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - - col1 / ( col2 ) FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3658
SELECT 57 + - col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3658
SELECT 57 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * - col1 + - 59 * + col2 col2 FROM tab2
----
-3517
-3918
-5959
query I rowsort
SELECT ALL 31 + + col1 * + 59 AS col2 FROM tab0
----
5105
5400
5754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT DISTINCT - + col2 + + col0 DIV col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - + col2 + + col0 / col1 FROM tab2 cor0
----
-25
-27
-34
query I rowsort
SELECT col0 * col0 * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT + + CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3663
SELECT + + CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + cor0.col1 ) + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - + col0 * + 61 + col2 FROM tab2 AS cor0
----
-400
-4732
-4781
query I rowsort
SELECT ALL + col0 * + ( cor0.col2 ) * + 71 AS col2 FROM tab2 AS cor0
----
13419
143988
213142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3667
SELECT CAST( 14 AS SIGNED ) col1 FROM tab1 AS cor0
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3667
SELECT CAST ( 14 AS INTEGER ) col1 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT + 65 * + col0 AS col2 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT ALL - cor0.col1 * col2 + col1 + cor0.col0 AS col2 FROM tab1 cor0
----
-1155
-1375
-496
query I rowsort
SELECT ALL - col2 * 50 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col1 + + ( - col2 ) * - col1 * ( col0 ) AS col1 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT + - cor0.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL + ( - col0 ) + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * 20 + - col2 AS col2 FROM tab1
----
1026
1083
1824
query I rowsort
SELECT col2 + + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT + + col1 + + col2 + + col1 AS col1 FROM tab1 AS cor0
----
106
122
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT ( cor0.col2 ) DIV col1 + + col1 + col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3678
SELECT ( cor0.col2 ) / col1 + + col1 + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + + 23 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
312
3504
984
query I rowsort
SELECT + col1 * - col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ( ( - col1 ) ) + - 6 + col0 FROM tab2 AS cor0
----
-30
13
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + col2 col0 FROM tab0
----
-2050
-25
-825
query I rowsort
SELECT - col0 * - ( 70 ) AS col1 FROM tab0
----
1680
2450
6230
query I rowsort
SELECT ALL col0 * - 92 FROM tab2
----
-644
-7176
-7268
query I rowsort
SELECT DISTINCT + - col0 + 84 AS col1 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT DISTINCT - - col1 * + 53 FROM tab0 AS cor0
----
4558
4823
5141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 55 * col1 col1 FROM tab1 cor0
----
-1427
-486
-635
query I rowsort
SELECT ALL + + col1 + 72 FROM tab0 cor0
----
158
163
169
query I rowsort
SELECT col1 * - 32 FROM tab1
----
-320
-416
-832
query I rowsort
SELECT DISTINCT - - col0 + - 72 + + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1540
653
772
query I rowsort
SELECT cor0.col0 + 0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( 6 ) * - col1 FROM tab2 AS cor0
----
-102
-186
-354
onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT - - cor0.col1 * col2 DIV - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-3693
SELECT - - cor0.col1 * col2 / - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col2 + col2 + - col0 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT + col0 + + cor0.col2 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
219
3769
7856
query I rowsort
SELECT ALL ( cor0.col1 ) * - cor0.col0 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3697
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 69 + - cor0.col2 AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 69 + - cor0.col2 AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT 72 * + col2 AS col1 FROM tab2 AS cor0
----
1872
1944
2736
onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT DISTINCT - ( + col1 ) DIV - col0 - col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - ( + col1 ) / - col0 - col0 AS col1 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT DISTINCT - + 66 * - col2 + cor0.col1 FROM tab1 cor0
----
3590
3772
6349
onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT ALL 0 DIV + col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 0 / + col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT ( - col0 + + col0 ) AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT DISTINCT - 22 DIV - col2 + 47 FROM tab1 cor0
----
47
skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - 22 / - col2 + 47 FROM tab1 cor0
----
47
query I rowsort
SELECT ALL + col1 - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - - cor0.col1 * col1 - + col0 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT + + 0 + cor0.col0 * CAST( 63 AS SIGNED ) * - col2 col2 FROM tab0 AS cor0
----
-2205
-459774
-49896
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3707
SELECT + + 0 + cor0.col0 * CAST ( 63 AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
-2205
-459774
-49896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - 9 col2 FROM tab1 AS cor0
----
-1257
-1413
-579
onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT col2 DIV 69 - ( + cor0.col0 + col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-179
skipif mysql # not compatible
query I rowsort label-3709
SELECT col2 / 69 - ( + cor0.col0 + col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-179
query I rowsort
SELECT + col0 * col2 + - 5 FROM tab2 AS cor0
----
184
2023
2997
query I rowsort
SELECT cor0.col2 - 63 FROM tab2 AS cor0
----
-25
-36
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT + col1 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3712
SELECT + col1 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - col0 * ( 93 ) AS col1 FROM tab2 AS cor0
----
-651
-7254
-7347
query I rowsort
SELECT - col1 * - ( 44 ) AS col0 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT ALL - col2 * ( + col1 * col2 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT + col2 DIV + tab0.col0 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3716
SELECT + col2 / + tab0.col0 col2 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT col0 * - 55 + col0 DIV tab1.col1 AS col1 FROM tab1
----
-165
-3514
-4394
skipif mysql # not compatible
query I rowsort label-3717
SELECT col0 * - 55 + col0 / tab1.col1 AS col1 FROM tab1
----
-165
-3514
-4394
query I rowsort
SELECT DISTINCT - 18 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-18
query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( - col2 ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT CAST ( NULL AS REAL ) * ( - col2 ) FROM tab2
----
NULL
query I rowsort
SELECT ALL + 57 * + tab2.col1 AS col0 FROM tab2
----
1767
3363
969
query I rowsort
SELECT + 7 + col0 FROM tab1
----
10
71
87
query I rowsort
SELECT col1 + cor0.col2 * + 67 AS col1 FROM tab2 cor0
----
1801
1840
2563
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 + col2 col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + cor0.col2 * + col0 * - ( - col1 ) FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + col0 * col1 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + col1 * - col0 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + 54 + + col0 FROM tab1 AS cor0
----
118
134
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - col2 * - col1 col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL - ( col0 ) + ( + col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col2 FROM tab0 cor0
----
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT + 97 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3733
SELECT + 97 / cor0.col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + - 96 * col2 FROM tab0 AS cor0
----
-3168
-7872
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * - 3 col0 FROM tab2 AS cor0
----
1938
2511
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT tab0.col0 + col0 DIV col0 + - 56 * - 27 FROM tab0
----
1537
1548
1602
skipif mysql # not compatible
query I rowsort label-3736
SELECT tab0.col0 + col0 / col0 + - 56 * - 27 FROM tab0
----
1537
1548
1602
query I rowsort
SELECT - ( col1 ) + + tab1.col1 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT 4 + + col2 DIV + col0 FROM tab0
----
4
4
5
skipif mysql # not compatible
query I rowsort label-3738
SELECT 4 + + col2 / + col0 FROM tab0
----
4
4
5
query I rowsort
SELECT + - col0 * cor0.col0 * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL - col2 + + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT col0 + col1 * + 45 FROM tab0 AS cor0
----
3894
4184
4400
query I rowsort
SELECT ALL + + 49 AS col0 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT DISTINCT + + 52 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
52
query I rowsort
SELECT + + col1 * + col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
10256
2994
3889
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT ALL - col0 DIV - col1 + col2 + ( + 85 ) * col1 AS col1 FROM tab0 AS cor0
----
7343
7817
8246
skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - col0 / - col1 + col2 + ( + 85 ) * col1 AS col1 FROM tab0 AS cor0
----
7343
7817
8246
query I rowsort
SELECT col2 - 80 * - col1 AS col1 FROM tab1
----
1136
2134
857
query I rowsort
SELECT 89 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT col1 + - col1 + col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + 47 + - col2 FROM tab0
----
-35
14
46
query I rowsort
SELECT DISTINCT + col0 * tab0.col2 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL - ( - tab2.col0 ) * col2 + 83 * col2 + + col2 AS col1 FROM tab2
----
2457
4212
6194
query I rowsort
SELECT DISTINCT 60 + col2 + - col0 * col1 AS col1 FROM tab1
----
-523
-884
36
query I rowsort
SELECT DISTINCT - col2 * + col2 + tab2.col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT - col0 * 52 AS col2 FROM tab0
----
-1248
-1820
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + col0 * col2 col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - + 88 * col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 36 col1 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
24
35
89
query I rowsort
SELECT - - col0 + col2 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-27
7296
730
query I rowsort
SELECT DISTINCT + cor0.col1 * + 49 FROM tab2 cor0
----
1519
2891
833
query I rowsort
SELECT DISTINCT + 56 * + col1 AS col1 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT ALL - - 98 FROM tab0 cor0
----
98
98
98
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT DISTINCT - col1 * + cor0.col2 + cor0.col2 * col2 DIV col0 FROM tab1 AS cor0
----
-1133
-432
-520
skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - col1 * + cor0.col2 + cor0.col2 * col2 / col0 FROM tab1 AS cor0
----
-1133
-432
-520
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - 61 + + 82 FROM tab2 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - col1 + - col1 * + col1 AS col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT 70 + - col2 AS col1 FROM tab2 cor0
----
32
43
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT 72 DIV col0 + - ( + col2 + - col1 ) FROM tab1 AS cor0
----
-4
-46
-83
skipif mysql # not compatible
query I rowsort label-3770
SELECT 72 / col0 + - ( + col2 + - col1 ) FROM tab1 AS cor0
----
-4
-46
-83
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT ALL + - cor0.col2 + 56 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 69150553ec8894e8cbcf2827ac5f52d1
query I rowsort
SELECT - ( + col2 ) * - col2 - + col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + ( col1 ) + 94 - - col1 AS col1 FROM tab0 AS cor0
----
266
276
288
onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT - col1 * + col2 + - 26 DIV - col2 AS col2 FROM tab0
----
-2838
-71
-7462
skipif mysql # not compatible
query I rowsort label-3775
SELECT - col1 * + col2 + - 26 / - col2 AS col2 FROM tab0
----
-2838
-71
-7462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + col2 * - ( col1 * - col2 ) + - col2 AS col0 FROM tab0
----
611802
93621
96
query I rowsort
SELECT - col2 + 22 FROM tab2
----
-16
-4
-5
query I rowsort
SELECT DISTINCT 62 FROM tab0, tab2 cor0
----
62
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
37
query I rowsort
SELECT ALL - + col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col2 * 62 + - col0 * - col2 FROM tab1 AS cor0
----
13632
3510
7182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 + 69 * + cor0.col2 col1 FROM tab0 AS cor0
----
-18
2190
5571
query I rowsort
SELECT DISTINCT col2 * col2 + col0 * col2 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT cor0.col1 * cor0.col2 - + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-3298
-637
774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 14 * col0 + + col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 14 * col0 + + col1 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - cor0.col1 / + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - cor0.col1 / + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 + col2 * - 8 AS col1 FROM tab1
----
-458
-466
-781
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col0 )
----
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT + col0 + col0 + + col2 AS col0 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT + col2 + col2 * col2 + col1 FROM tab0
----
1208
6897
99
query I rowsort
SELECT ALL tab0.col1 + col1 * col2 * + col1 FROM tab0
----
244154
679133
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT DISTINCT - col2 - + col2 DIV + col0 FROM tab0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - col2 - + col2 / + col0 FROM tab0
----
-1
-34
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT col2 DIV col2 + col2 * col1 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-3795
SELECT col2 / col2 + col2 * col1 FROM tab0
----
2839
7463
98
query I rowsort
SELECT + col2 + col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
54
57
96
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN ( NULL ) AND - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT tab2.col0 DIV - col0 + tab2.col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-3798
SELECT tab2.col0 / - col0 + tab2.col1 FROM tab2
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT DISTINCT + col1 DIV + col0 col0 FROM tab1
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT + col1 / + col0 col0 FROM tab1
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT tab0.col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + col2 col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT ALL + col0 * col2 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL + col0 * col2 + col1 / col1 AS col1 FROM tab0 AS cor0
----
36
7299
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT - cor0.col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3805
SELECT - cor0.col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT + col0 * tab1.col0 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3806
SELECT + col0 * tab1.col0 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 9 + col0 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT ALL col2 * 58 AS col0 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT - col2 * cor0.col1 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3811
SELECT ALL col2 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL col2 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT - col0 * + CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3812
SELECT - col0 * + CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT cor0.col0 * 26 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT DISTINCT col2 * col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT col2 * + 84 + + ( - cor0.col1 ) FROM tab1 cor0
----
4510
4778
8051
query I rowsort
SELECT + col0 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - col2 - - col0 * - col0 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT ALL col1 * col0 * + col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT ALL col2 DIV col2 + + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL col2 / col2 + + col1 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + tab2.col1 col0 FROM tab2
----
-33
-4
21
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> ( + col1 )
----
query I rowsort
SELECT ALL col0 + - col2 * tab0.col0 FROM tab0
----
-7209
-768
0
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----
query I rowsort
SELECT ALL tab1.col2 - + col2 * - col1 * col2 AS col2 FROM tab1
----
119904
32547
75870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * col0 col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - col2 * tab2.col0 * + col0 + - col1 AS col0 FROM tab2
----
-1354
-158243
-237175
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 * col0 AS col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT - - cor0.col0 + - cor0.col0 AS col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * col1 col2 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 AS col1 FROM tab0
----
1113
36
6813
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) NOT IN ( + col2 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col2 - col0 * + col2 * col0 FROM tab1
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT col0 + + col2 + col1 AS col1 FROM tab0
----
133
143
262
query I rowsort
SELECT - col0 + - cor0.col1 + 81 AS col1 FROM tab0 AS cor0
----
-29
-51
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 2 col2 FROM tab1 AS cor0
----
-56
-59
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
query I rowsort
SELECT DISTINCT col0 + + col0 * - col2 AS col2 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT col2 * col0 + - 41 FROM tab1 cor0
----
121
3607
7639
query I rowsort
SELECT - col0 + 53 * + cor0.col2 * col0 + + col0 * - col2 FROM tab2 AS cor0
----
105378
156025
9821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3841
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col0 * 94 - + col2 FROM tab1 cor0
----
228
5959
7424
query I rowsort
SELECT DISTINCT + + col0 * + 95 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
231
6023
7504
query I rowsort
SELECT col2 * 42 + 99 * col2 FROM tab0 AS cor0
----
11562
141
4653
query I rowsort
SELECT ALL - + col0 + 31 FROM tab1 cor0
----
-33
-49
28
query I rowsort
SELECT ALL - col2 * 5 AS col0 FROM tab2 AS cor0
----
-130
-135
-190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3847
SELECT + col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + - col0 + 22 * col0 AS col0 FROM tab0 cor0
----
1787
471
734
query I rowsort
SELECT ALL + + col2 * - ( ( col2 ) ) - - cor0.col2 * + ( - col2 ) FROM tab1 AS cor0
----
-18432
-5832
-6498
query I rowsort
SELECT + - col1 + ( cor0.col2 + - col0 ) FROM tab2 AS cor0
----
-11
-111
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT ALL col1 DIV col0 - + 8 * col1 FROM tab0 AS cor0
----
-685
-727
-774
skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL col1 / col0 - + 8 * col1 FROM tab0 AS cor0
----
-685
-727
-774
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT DISTINCT + 39 DIV - col0 AS col1 FROM tab1 AS cor0
----
-13
0
skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + 39 / - col0 AS col1 FROM tab1 AS cor0
----
-13
0
query I rowsort
SELECT DISTINCT - col0 * - 96 AS col2 FROM tab1 cor0
----
288
6144
7680
query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 + - col0 FROM tab1 cor0
----
1155
1375
496
query I rowsort
SELECT ALL + col0 + - cor0.col0 + col1 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT DISTINCT + col2 DIV + col1 - col2 AS col2 FROM tab1 AS cor0
----
-52
-89
skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + col2 / + col1 - col2 AS col2 FROM tab1 AS cor0
----
-52
-89
query I rowsort
SELECT + + ( - 20 ) + col1 AS col2 FROM tab0 AS cor0
----
66
71
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT col2 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-3859
SELECT col2 + col0 / col2 AS col0 FROM tab1 AS cor0
----
54
58
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT ALL col2 * + ( + col1 ) + + col2 DIV col2 FROM tab1
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL col2 * + ( + col1 ) + + col2 / col2 FROM tab1
----
1249
1405
571
query I rowsort
SELECT + col2 * 64 + - col0 AS col1 FROM tab1
----
3453
3584
6064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col1 FROM tab0 AS cor0
----
62
query I rowsort
SELECT ALL + + 53 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1272
1855
4717
query I rowsort
SELECT 99 + + col0 * 67 AS col1 FROM tab1 AS cor0
----
300
4387
5459
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3865
SELECT ALL col0 * - col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL col0 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col0 * - col1 ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3867
SELECT ALL col1 DIV - col0 - - 45 FROM tab1
----
37
45
45
skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL col1 / - col0 - - 45 FROM tab1
----
37
45
45
query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 + 96 - - col1 * 43 FROM tab1
----
-15569
-35290
-5174
query I rowsort
SELECT + tab2.col1 + col0 - - 19 FROM tab2
----
115
156
57
query I rowsort
SELECT ( + tab0.col1 + ( + col1 ) * + col0 ) AS col2 FROM tab0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3871
SELECT col0 - col0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3871
SELECT col0 - col0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 82 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT ALL + col1 + - ( + col2 ) * + tab1.col0 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL col1 + + ( 29 + col2 ) AS col0 FROM tab2
----
114
84
87
query I rowsort
SELECT DISTINCT + col2 * - ( - ( + col2 ) ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 + col2 AS col1 FROM tab1
----
-111
-3655
-7664
query I rowsort
SELECT ALL + col1 + col0 * col0 FROM tab0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-3878
SELECT + col1 + - col1 * col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-171
-2
-222
skipif mysql # not compatible
query I rowsort label-3878
SELECT + col1 + - col1 * col1 / + col0 AS col1 FROM tab0 AS cor0
----
-171
-2
-222
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3879
SELECT cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + cor0.col0 * + 47 FROM tab1 cor0
----
141
3008
3760
query I rowsort
SELECT - - col1 * + 59 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT DISTINCT + + col2 + 34 FROM tab0 AS cor0
----
116
35
67
query I rowsort
SELECT ALL - cor0.col1 * - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT ( 17 ) AS col1 FROM tab0
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT DISTINCT 51 DIV col0 + - col1 DIV col1 + col2 DIV - col2 FROM tab1 cor0
----
-2
15
skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT 51 / col0 + - col1 / col1 + col2 / - col2 FROM tab1 cor0
----
-2
15
query I rowsort
SELECT ALL + 23 - - ( col1 ) * col0 * col1 AS col0 FROM tab2 AS cor0
----
22854
271541
6750
query I rowsort
SELECT DISTINCT + cor0.col0 * - 78 - - col2 FROM tab1 AS cor0
----
-180
-4935
-6144
query I rowsort
SELECT + ( + cor0.col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 * - tab1.col1 + col1 AS col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT - 79 + col1 * col0 FROM tab1 AS cor0
----
-1
561
961
query I rowsort
SELECT DISTINCT - 68 + col0 FROM tab2 cor0
----
-61
10
11
query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * + col1 + + CAST ( col2 AS REAL ) * + cor0.col2 FROM tab2 cor0
----
-108
-858
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT ALL + - col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + - col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT DISTINCT col1 + + cor0.col1 DIV 83 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT col1 + + cor0.col1 / 83 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - + col0 * - col1 + 85 AS col1 FROM tab0 AS cor0
----
2149
3480
8184
query I rowsort
SELECT DISTINCT + + 87 - + cor0.col0 FROM tab1 AS cor0
----
23
7
84
query I rowsort
SELECT DISTINCT - - col1 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 + col1 FROM tab0 AS cor0
----
13910
42972
705060
onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT - - cor0.col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3900
SELECT - - cor0.col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3901
SELECT ALL col1 * col0 + CAST( + 79 AS SIGNED ) AS col0 FROM tab1 cor0
----
1119
157
719
skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL col1 * col0 + CAST ( + 79 AS INTEGER ) AS col0 FROM tab1 cor0
----
1119
157
719
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab1 AS cor0
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + 63 * cor0.col2 + col1 FROM tab2 AS cor0
----
1697
1732
2411
query I rowsort
SELECT + 85 + 59 AS col2 FROM tab0 AS cor0
----
144
144
144
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-3907
SELECT + 64 DIV - col2 FROM tab0
----
-1
-64
0
skipif mysql # not compatible
query I rowsort label-3907
SELECT + 64 / - col2 FROM tab0
----
-1
-64
0
query I rowsort
SELECT - 59 * - col2 - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
3160
3353
5651
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3909
SELECT + cor0.col2 * - col1 + CAST( - 0 * col1 AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-3909
SELECT + cor0.col2 * - col1 + CAST ( - 0 * col1 AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 30 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-110
-33
-94
query I rowsort
SELECT ALL ( 92 ) AS col1 FROM tab0
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT ALL 86 DIV col2 + + col1 * + col0 FROM tab0
----
2066
3481
8100
skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL 86 / col2 + + col1 * + col0 FROM tab0
----
2066
3481
8100
query I rowsort
SELECT - + col2 * ( - col2 ) + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT ALL + col2 + + col0 DIV 9 + 43 AS col0 FROM tab1
----
107
147
97
skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + col2 + + col0 / 9 + 43 AS col0 FROM tab1
----
107
147
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3915
SELECT - + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3915
SELECT - + col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 63 * tab0.col2 * - tab0.col2 FROM tab0
----
-423612
-63
-68607
onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT ALL - 14 DIV + col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - 14 / + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3919
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1, tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT ALL - - col2 * + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - - col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + cor0.col0 + + 39 * + col0 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT DISTINCT col1 * + 29 AS col2 FROM tab1 AS cor0
----
290
377
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT - + col2 + - cor0.col1 DIV - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3923
SELECT - + col2 + - cor0.col1 / - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col0 * + col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT col0 + col1 * 24 DIV col2 AS col2 FROM tab0 AS cor0
----
115
2363
86
skipif mysql # not compatible
query I rowsort label-3925
SELECT col0 + col1 * 24 / col2 AS col2 FROM tab0 AS cor0
----
115
2363
86
query I rowsort
SELECT ALL col0 * - 16 AS col1 FROM tab2 AS cor0
----
-112
-1248
-1264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT + col2 * CAST( col0 AS SIGNED ) FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3927
SELECT + col2 * CAST ( col0 AS INTEGER ) FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3928
SELECT DISTINCT - 65 * col1 + cor0.col0 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - 65 * col1 + cor0.col0 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + 3 FROM tab2 AS cor0
----
-4
-75
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT ALL col1 DIV ( 31 ) + + col0 FROM tab2
----
79
79
8
skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL col1 / ( 31 ) + + col0 FROM tab2
----
79
79
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * col0 + col2 col0 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT + col1 * + ( col2 ) AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + tab1.col1 * + col1 + + col0 * col1 FROM tab1
----
1209
740
754
query I rowsort
SELECT ALL + 13 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67
query I rowsort
SELECT col1 + 76 * col1 AS col2 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT DISTINCT + + 77 AS col1 FROM tab2 AS cor0
----
77
query I rowsort
SELECT DISTINCT + 53 + col0 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT ALL + 55 + cor0.col1 AS col1 FROM tab2 AS cor0
----
114
72
86
query I rowsort
SELECT DISTINCT + - 8 AS col1 FROM tab2 AS cor0
----
-8
query I rowsort
SELECT + col0 * col0 * + cor0.col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT - ( - 96 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT - col0 * col2 - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
skipif mysql # not compatible
query I rowsort label-3942
SELECT - col0 * col2 - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT 46 * cor0.col2 * + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
31155
33565
66441
query I rowsort
SELECT - 78 + - col1 * - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
16146
36426
5622
query I rowsort
SELECT - - col0 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + col2 * col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT cor0.col2 * 3 + cor0.col1 AS col1 FROM tab1 AS cor0
----
181
188
301
query I rowsort
SELECT - col1 + + 33 * - col1 AS col1 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT ALL + col0 * cor0.col1 + - 63 * col1 FROM tab2 AS cor0
----
-1736
272
885
query I rowsort
SELECT DISTINCT + 65 * col2 * + col1 AS col1 FROM tab1
----
37050
81120
91260
query I rowsort
SELECT ALL + tab0.col2 * col0 * + col0 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - 23 * 12 * - col2 AS col0 FROM tab2
----
10488
7176
7452
query I rowsort
SELECT ALL col2 + 52 * - col2 FROM tab0 AS cor0
----
-1683
-4182
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT ALL col0 DIV col2 + + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL col0 / col2 + + col1 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT DISTINCT - - cor0.col0 DIV col2 col0 FROM tab1 cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT - - cor0.col0 / col2 col0 FROM tab1 cor0
----
0
1
query I rowsort
SELECT 6 * 49 + + col2 AS col2 FROM tab0
----
295
327
376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col2 * - col1 - - col1 AS col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT - ( - col1 ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 12 * + col0 + 45 FROM tab2
----
129
981
993
query I rowsort
SELECT col0 + - col0 + + col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + 40 + - col1 * cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1991
-3354
-7977
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + 13 AS col2 FROM tab1 cor0
----
16
77
93
query I rowsort
SELECT col1 + col2 + 89 * cor0.col2 AS col0 FROM tab0 AS cor0
----
187
3056
7471
query I rowsort
SELECT + - col1 * - col2 + col1 + col2 AS col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT + + cor0.col1 - + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * col1 col0 FROM tab1 AS cor0
----
-210
-273
-546
query I rowsort
SELECT - cor0.col1 - - col1 * - col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - 68 + + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to be87229da71c4bbd8c346247c7370e8b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3971
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + col0 / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + col0 / col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col1 * 83 - col1 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT ALL col0 - 87 FROM tab1 AS cor0
----
-23
-7
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT DISTINCT col1 DIV + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT col1 / + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT col1 * - 60 + col1 AS col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT DISTINCT - col2 + 25 * col1 AS col2 FROM tab2 AS cor0
----
1449
387
748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT DISTINCT - 69 DIV 1 + col1 * col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
177435
329246
736940
skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - 69 / 1 + col1 * col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
177435
329246
736940
query I rowsort
SELECT ALL + col1 * 44 FROM tab0 AS cor0
----
3784
4004
4268
onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3979
SELECT + col2 / - cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + 67 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT DISTINCT 68 * col1 AS col1 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT DISTINCT - + ( col2 ) + col0 * col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + 20 AS col1 FROM tab1 cor0
----
-34
-37
-76
query I rowsort
SELECT cor0.col1 * + 69 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT DISTINCT + - col2 * - 47 AS col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT ALL col1 + + 31 * col2 AS col0 FROM tab2 AS cor0
----
1195
865
868
query I rowsort
SELECT DISTINCT + 88 + + 25 * - col1 * 6 FROM tab1 AS cor0
----
-1412
-1862
-3812
skipif mysql # not compatible
query I rowsort
SELECT 18 * + col2 + col0 * - CAST ( 24 AS REAL ) FROM tab2 AS cor0
----
-1212
-1404
318
query I rowsort
SELECT - col2 * col2 + - col1 + col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col1 + 32 + - cor0.col0 FROM tab1 AS cor0
----
-42
-61
3
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 * - cor0.col0 col2 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3994
SELECT ALL + + col1 + + CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + + col1 + + CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT 46 + + col2 FROM tab1
----
100
103
142
query I rowsort
SELECT ALL col0 + + col0 + tab1.col2 AS col2 FROM tab1
----
185
256
60
query I rowsort
SELECT - col2 * + 69 FROM tab0
----
-2277
-5658
-69
query I rowsort
SELECT ALL - ( - 4 * - cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd71609c013c1cdfd05d04067e0c7dab
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - col1 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 17 col0 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT col0 * col1 + - col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT ALL + 30 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 AS col0 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT cor1.col0 DIV 69 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-4004
SELECT cor1.col0 / 69 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT - 51 * col1 AS col0 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT ALL ( - 3 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT DISTINCT - col2 + + col1 * 14 AS col1 FROM tab1 AS cor0
----
310
83
86
query I rowsort
SELECT + + col1 + col1 * col0 + col2 AS col1 FROM tab0 AS cor0
----
2183
3493
8272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT DISTINCT CAST( 71 AS SIGNED ) FROM tab0
----
71
skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT CAST ( 71 AS INTEGER ) FROM tab0
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT DISTINCT col2 * 53 + col2 DIV - ( + 96 ) FROM tab2 AS cor0
----
1378
1431
2014
skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT col2 * 53 + col2 / - ( + 96 ) FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT ALL + - cor0.col2 + 47 * + 38 FROM tab0, tab2 cor0
----
9 values hashing to d996d394ee571c2afbea96d44baf5514
query I rowsort
SELECT 85 + - col2 AS col2 FROM tab1 AS cor0
----
-11
28
31
query I rowsort
SELECT + - col2 * 7 + col1 FROM tab2 AS cor0
----
-123
-158
-249
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + + 69 + col1 AS col2 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab1
----
-88
query I rowsort
SELECT ALL 58 + cor0.col0 FROM tab1 AS cor0
----
122
138
61
query I rowsort
SELECT - col1 * + col1 + 43 AS col2 FROM tab2 AS cor0
----
-246
-3438
-918
onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT DISTINCT + - col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT + - col0 / + col0 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL - 87 * - col0 AS col0 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT - col0 * - col0 + + 4 * col0 + cor0.col2 FROM tab1 AS cor0
----
4409
6816
75
query I rowsort
SELECT ALL - 80 * col2 + cor0.col2 FROM tab0 cor0
----
-2607
-6478
-79
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 * col0 FROM tab1 cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4024
SELECT - col0 + col0 DIV col1 + col0 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4024
SELECT - col0 + col0 / col1 + col0 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT - + col2 + col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT cor0.col0 DIV - col0 + 56 FROM tab2 AS cor0
----
55
55
55
skipif mysql # not compatible
query I rowsort label-4026
SELECT cor0.col0 / - col0 + 56 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT col1 + + col1 + - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ( cor0.col0 ) * ( + col1 ) - col1 * - ( col0 ) FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT ALL - + 15 * cor0.col2 - - 13 FROM tab1 AS cor0
----
-1427
-797
-842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT - col1 * + col2 * CAST( + col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
skipif mysql # not compatible
query I rowsort label-4031
SELECT - col1 * + col2 * CAST ( + col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT + 84 + + col1 AS col2 FROM tab1
----
110
94
97
query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL col2 + col2 * + col2 - col0 AS col2 FROM tab2 AS cor0
----
1403
624
749
onlyif mysql # use DIV operator for integer division
query I rowsort label-4035
SELECT DISTINCT + cor0.col2 DIV + 99 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + cor0.col2 / + 99 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - + ( + col1 ) col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - cor0.col0 * 86 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT ALL col1 + tab2.col0 * ( tab2.col1 ) AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + 33 + - col0 FROM tab1
----
-31
-47
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + col0 * + col1 * + col1 col1 FROM tab2
----
22750
271437
6646
query I rowsort
SELECT DISTINCT col2 * col1 + 17 AS col0 FROM tab0
----
114
2855
7479
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 cor0 WHERE cor0.col1 > NULL
----
query I rowsort
SELECT DISTINCT - 59 + + col0 AS col1 FROM tab2 AS cor0
----
-52
19
20
query I rowsort
SELECT 15 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT - - col2 * + col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL 34 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + - 1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - ( ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 57 + + col1 AS col1 FROM tab1 AS cor0
----
67
70
83
query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab1 cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab1, tab2 AS cor0
----
64
query I rowsort
SELECT + ( cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - ( + 9 ) + + col0 * - 50 FROM tab2 AS cor0
----
-359
-3909
-3959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + 63 * - col2 * - 57 AS col1 FROM tab1 AS cor0
----
193968
204744
344832
query I rowsort
SELECT + 64 + col1 AS col2 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT ( + col2 + + 34 ) AS col1 FROM tab2
----
60
61
72
query I rowsort
SELECT DISTINCT col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col0 + + 6 * col2 AS col0 FROM tab1 AS cor0
----
327
406
656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT DISTINCT - col1 DIV ( + col2 ) + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT - col1 / ( + col2 ) + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + col2 * 62 AS col1 FROM tab1 AS cor0
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT DISTINCT - 4 DIV - col2 FROM tab0
----
0
4
skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - 4 / - col2 FROM tab0
----
0
4
query I rowsort
SELECT DISTINCT - ( + 20 ) + tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
-13
58
59
query I rowsort
SELECT DISTINCT 0 + cor0.col2 AS col1 FROM tab1, tab2, tab0 cor0
----
1
33
82
query I rowsort
SELECT + ( col2 ) + + col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - 0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + col0 * col1 * col2 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT tab2.col2 * + ( - col1 * + col1 + col1 ) FROM tab2
----
-10336
-25110
-88972
onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT DISTINCT + ( cor0.col0 ) DIV cor0.col1 FROM tab0, tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + ( cor0.col0 ) / cor0.col1 FROM tab0, tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + col1 + 95 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT DISTINCT col1 * 66 FROM tab2 cor0
----
1122
2046
3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( 52 ) * cor0.col0 col2 FROM tab1 cor0
----
-212992
-332800
-468
query I rowsort
SELECT ALL + cor0.col0 * - 74 FROM tab0 AS cor0
----
-1776
-2590
-6586
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - 40 ) col0 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT DISTINCT + 48 * 54 + col2 FROM tab1
----
2646
2649
2688
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + - ( - 16 ) * + col1 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT - + ( 70 ) + - col1 AS col1 FROM tab2 AS cor0
----
-101
-129
-87
query I rowsort
SELECT DISTINCT col0 * - 34 - + col0 * col0 * - cor0.col2 FROM tab2 AS cor0
----
1085
155532
234472
query I rowsort
SELECT cor0.col1 * - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT ALL - CAST( NULL AS SIGNED ) * - 50 * col1 + CAST( - 9 * col2 AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - CAST ( NULL AS INTEGER ) * - 50 * col1 + CAST ( - 9 * col2 AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT ALL + + cor0.col0 + cor0.col0 * cor0.col1 DIV col1 + col0 FROM tab0 AS cor0
----
105
267
72
skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + + cor0.col0 + cor0.col0 * cor0.col1 / col1 + col0 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT ALL + col1 * col2 + + 24 * + col1 AS col0 FROM tab2 AS cor0
----
1054
1581
2950
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT 74 * + col1 + + 72 DIV col0 FROM tab1 cor0
----
1948
741
962
skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT 74 * + col1 + + 72 / col0 FROM tab1 cor0
----
1948
741
962
query I rowsort
SELECT ALL + cor0.col1 * col2 + col0 * col2 AS col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT 57 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT ALL 47 * col0 AS col1 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT ALL + 34 * + col0 - - col0 FROM tab2 cor0
----
245
2730
2765
query I rowsort
SELECT 37 * - col2 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT ALL cor0.col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + + 25 + + col1 * - col0 FROM tab1 AS cor0
----
-1015
-53
-615
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + col0 col2 FROM tab2 AS cor0
----
-10
-11
-82
query I rowsort
SELECT ALL col2 - col1 * + col0 * col2 FROM tab2 cor0
----
-119626
-50996
-5832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col0 + col2 * + col1 col1 FROM tab1 AS cor0
----
1210
1482
2288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 * cor0.col1 col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + + col1 * + cor0.col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + - col1 * col1 FROM tab1 AS cor0
----
1079
470
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4104
SELECT CAST( col1 AS SIGNED ) + col2 DIV - col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-4104
SELECT CAST ( col1 AS INTEGER ) + col2 / - col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL + - ( + cor0.col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + col0 * col2 col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + - ( 63 ) FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT + 57 + + 16 FROM tab2 AS cor0
----
73
query I rowsort
SELECT - - col1 * ( col2 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - cor0.col2 * 84 + cor0.col1 FROM tab1 AS cor0
----
-4510
-4778
-8051
query I rowsort
SELECT - ( 53 ) * col2 + + col0 FROM tab0
----
-1725
-18
-4257
query I rowsort
SELECT + 95 + col1 * col2 + col1 * + col0 AS col1 FROM tab2
----
1149
2084
6231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT CAST( NULL AS SIGNED ) / 32 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4113
SELECT CAST ( NULL AS INTEGER ) / 32 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - col1 - + cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 31 * col0 + - col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
-3792
-434
-7020
query I rowsort
SELECT ALL + ( 74 ) * + col2 + col0 FROM tab1
----
3999
4282
7184
query I rowsort
SELECT DISTINCT 71 * tab2.col0 + + col0 AS col2 FROM tab2
----
504
5616
5688
query I rowsort
SELECT ALL ( col0 * + col2 ) + - col1 FROM tab0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT + ( 15 ) DIV - col0 + - col0 FROM tab1
----
-64
-8
-80
skipif mysql # not compatible
query I rowsort label-4120
SELECT + ( 15 ) / - col0 + - col0 FROM tab1
----
-64
-8
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4121
SELECT CAST( NULL AS SIGNED ) * + 37 * col1 + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4121
SELECT CAST ( NULL AS INTEGER ) * + 37 * col1 + - col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4122
SELECT + CAST( col0 AS SIGNED ) * + col2 + ( col2 ) col0 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4122
SELECT + CAST ( col0 AS INTEGER ) * + col2 + ( col2 ) col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - 53 + - ( col2 ) FROM tab0 AS cor0
----
-135
-54
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT - col2 * + ( 38 ) - - col2 DIV col0 AS col2 FROM tab0 cor0
----
-1253
-3116
-38
skipif mysql # not compatible
query I rowsort label-4124
SELECT - col2 * + ( 38 ) - - col2 / col0 AS col2 FROM tab0 cor0
----
-1253
-3116
-38
query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT - + 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT - 54 DIV 52 AS col2 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to f3aaea07874d9328a91c424c0907a688
skipif mysql # not compatible
query I rowsort label-4127
SELECT - 54 / 52 AS col2 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to f3aaea07874d9328a91c424c0907a688
query I rowsort
SELECT ALL 73 * col0 + + col0 FROM tab2
----
518
5772
5846
query I rowsort
SELECT - 49 + - col0 * - cor0.col1 FROM tab1 AS cor0
----
29
591
991
onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT DISTINCT + tab2.col0 DIV col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + tab2.col0 / col0 AS col1 FROM tab2
----
1
query I rowsort
SELECT - ( - ( - col1 ) ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - ( - ( col1 ) ) FROM tab1
----
10
13
26
query I rowsort
SELECT + cor0.col0 + 52 FROM tab1 AS cor0
----
116
132
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + - 73 col2 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT ALL - 93 * + col1 AS col2 FROM tab2
----
-1581
-2883
-5487
query I rowsort
SELECT - 91 + col0 FROM tab0
----
-2
-56
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 90 * col0 AS col0 FROM tab2 cor0
----
630
7020
7110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 * + col1 col0 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT cor1.col2 + 29 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to fe8bd3452e594b4741dbae587589793c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4141
SELECT col2 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4141
SELECT col2 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 50 * - col2 FROM tab1
----
2700
2850
4800
query I rowsort
SELECT ALL col0 * - col0 + - 29 AS col0 FROM tab2
----
-6113
-6270
-78
query I rowsort
SELECT - col0 + + ( 40 ) - + cor0.col1 FROM tab0 cor0
----
-140
-70
-92
query I rowsort
SELECT + col1 * + ( col2 ) + - col1 * + 82 - - col1 FROM tab1 cor0
----
-240
-702
195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col0 col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT + col2 + col1 + - col0 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT col0 - ( + col1 ) FROM tab0
----
-2
-62
skipif mysql # not compatible
query I rowsort
SELECT ALL - + cor0.col2 * CAST ( col2 AS REAL ) + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + - col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT - - col1 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - - col1 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT - 13 * + col2 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT ALL + + ( + col1 ) + + col0 * + 39 FROM tab0 AS cor0
----
1022
1462
3562
query I rowsort
SELECT + col0 * col0 * - col0 + + ( + col2 ) FROM tab2 cor0
----
-316
-474526
-493001
query I rowsort
SELECT DISTINCT - 20 + col2 AS col1 FROM tab0 AS cor0
----
-19
13
62
query I rowsort
SELECT - ( + 80 ) * - col0 + - 56 AS col1 FROM tab2 AS cor0
----
504
6184
6264
query I rowsort
SELECT DISTINCT 67 - - 81 AS col1 FROM tab2 AS cor0
----
148
query I rowsort
SELECT - - col1 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 95 * cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT + ( cor0.col2 ) + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 * 85 AS col1 FROM tab2
----
1445
2635
5015
query I rowsort
SELECT ALL tab0.col1 - 25 AS col2 FROM tab0
----
61
66
72
query I rowsort
SELECT DISTINCT + col0 - + 92 AS col1 FROM tab1
----
-12
-28
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4164
SELECT ALL + col2 DIV col0 - 64 * - col1 * + col2 col1 FROM tab0 cor0
----
181633
477568
6208
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + col2 / col0 - 64 * - col1 * + col2 col1 FROM tab0 cor0
----
181633
477568
6208
query I rowsort
SELECT - cor0.col1 + - col0 * + ( col1 ) FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - - 30 * - col0 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT + col2 * col2 * col1 FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT col2 * + 5 FROM tab0
----
165
410
5
query I rowsort
SELECT + col2 * 77 FROM tab1
----
4158
4389
7392
query I rowsort
SELECT cor0.col0 * col2 * - 57 FROM tab0 AS cor0
----
-1995
-415986
-45144
query I rowsort
SELECT DISTINCT + + 94 + - cor0.col1 FROM tab1 AS cor0
----
68
81
84
query I rowsort
SELECT - + ( col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 7 * tab1.col0 FROM tab1
----
21
448
560
query I rowsort
SELECT DISTINCT - 62 * col2 - 26 * 86 AS col2 FROM tab0 cor0
----
-2298
-4282
-7320
query I rowsort
SELECT DISTINCT 87 + + col2 * - col0 FROM tab1 AS cor0
----
-3561
-75
-7593
query I rowsort
SELECT + - 43 + - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-140
-2881
-7505
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 * + 51 FROM tab0 AS cor0
----
29290
403880
62378
query I rowsort
SELECT ALL 34 + col2 + 39 AS col1 FROM tab1 cor0
----
127
130
169
query I rowsort
SELECT DISTINCT + col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - ( - col2 ) + 97 AS col1 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT ALL 72 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ( - 66 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT ALL - col2 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT col2 * + CAST( cor0.col0 AS SIGNED ) + cor0.col2 * ( - col0 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4184
SELECT col2 * + CAST ( cor0.col0 AS INTEGER ) + cor0.col2 * ( - col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * 26 FROM tab0 cor0
----
-2236
-2366
-2522
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT - ( + col2 ) * + col2 + col0 + 14 FROM tab0 AS cor0
----
-1051
-6621
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 12 col2 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT DISTINCT ( 52 ) AS col1 FROM tab0 AS cor0
----
52
query I rowsort
SELECT + ( 72 ) * col0 * ( cor0.col2 ) + col0 AS col0 FROM tab2 AS cor0
----
13615
146094
216223
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col0 * + 29 AS col1 FROM tab2 AS cor0
----
203
2262
2291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + col1 col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - col0 - - ( + col2 ) * + ( - col2 ) FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT - col2 * + 58 AS col1 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT DISTINCT - - 88 * cor0.col1 FROM tab2 AS cor0
----
1496
2728
5192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT ALL - CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col2 * - col2 - + col1 FROM tab2 AS cor0
----
-1461
-735
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4200
SELECT ALL - CAST( 56 AS SIGNED ) FROM tab1 AS cor0
----
-56
-56
-56
skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - CAST ( 56 AS INTEGER ) FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT ALL + 14 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT DISTINCT col1 - - 10 AS col1 FROM tab1
----
20
23
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4203
SELECT + tab1.col2 * + CAST( NULL AS SIGNED ) + + col0 + + tab1.col2 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4203
SELECT + tab1.col2 * + CAST ( NULL AS INTEGER ) + + col0 + + tab1.col2 * - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - 30 AS col2 FROM tab2 AS cor0
----
-210
-2340
-2370
query I rowsort
SELECT + col2 * + col0 + + 48 AS col0 FROM tab2
----
2076
237
3050
query I rowsort
SELECT ALL - col1 - ( col0 + - tab1.col1 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 * + col2 + - col0 * 26 * tab0.col2 FROM tab0
----
-196472
-21681
-911
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2, tab1 cor1
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + cor0.col2 + - 13 * col1 FROM tab2 cor0
----
-1213
-2275
-829
query I rowsort
SELECT DISTINCT col0 + - 79 FROM tab0 AS cor0
----
-44
-55
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT ALL - col1 - + 64 DIV col2 AS col1 FROM tab1 cor0
----
-11
-13
-27
skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - col1 - + 64 / col2 AS col1 FROM tab1 cor0
----
-11
-13
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT col2 + 43 DIV col2 FROM tab0 cor0
----
34
44
82
skipif mysql # not compatible
query I rowsort label-4213
SELECT col2 + 43 / col2 FROM tab0 cor0
----
34
44
82
query I rowsort
SELECT DISTINCT ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col1 * + col1 * col1 + - col0 * tab1.col0 AS col2 FROM tab1
----
-3096
-4203
17567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * + tab1.col2 col0 FROM tab1
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT - 47 + cor0.col0 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4217
SELECT - 47 + cor0.col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col1 ) * 46 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT DISTINCT + 67 * 33 FROM tab2, tab0, tab0 AS cor0
----
2211
query I rowsort
SELECT col2 * + col0 + + col2 * + 34 + + col0 FROM tab2
----
1114
2990
4373
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * + ( + 76 ) * col1 FROM tab0 AS cor0
----
-562063
-629274
-715083
query I rowsort
SELECT + 77 * col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT - cor0.col0 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - col2 * - col1 + - 32 + 71 * col0 FROM tab0 AS cor0
----
13749
2550
4510
query I rowsort
SELECT - col2 + col1 * ( - col0 ) AS col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - 84 FROM tab1, tab0 cor0, tab0, tab1 AS cor1
----
-84
query I rowsort
SELECT ALL col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + - col0 + - 66 FROM tab0 AS cor0
----
-101
-155
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT ALL + cor0.col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + cor0.col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - cor0.col0 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-118922
-49622
-720902
query I rowsort
SELECT ALL - - col2 * + 8 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT col0 + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL + 33 * col0 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT DISTINCT 0 * col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + col1 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( 91 ) FROM tab0 cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT - + 52 DIV 37 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4243
SELECT - + 52 / 37 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 + ( 84 + - cor0.col0 ) * + col1 AS col0 FROM tab2 cor0
----
123
2414
380
query I rowsort
SELECT - col1 * - col0 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col0 - + cor0.col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - col0 - + col0 AS col0 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT ALL - - col2 * - col0 - 4 * col1 FROM tab2 AS cor0
----
-2264
-3070
-313
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + 74 * + col2 AS col2 FROM tab2 AS cor0
----
-2678
1469
1781
query I rowsort
SELECT + 2 AS col1 FROM tab2
----
2
2
2
query I rowsort
SELECT DISTINCT + col0 * - 62 AS col2 FROM tab2 AS cor0
----
-434
-4836
-4898
query I rowsort
SELECT - col2 * + 42 AS col1 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT - - col1 - ( - 69 ) * col2 FROM tab0 AS cor0
----
166
2363
5749
query I rowsort
SELECT ALL col1 * ( 52 ) + + col1 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
11547
5142
5647
onlyif mysql # use DIV operator for integer division
query I rowsort label-4255
SELECT DISTINCT - col1 DIV + 4 AS col1 FROM tab0 AS cor0
----
-21
-22
-24
skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - col1 / + 4 AS col1 FROM tab0 AS cor0
----
-21
-22
-24
query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT DISTINCT ( cor0.col2 ) DIV col1 - - cor0.col0 * 20 col1 FROM tab2 AS cor0
----
140
1560
1582
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT ( cor0.col2 ) / col1 - - cor0.col0 * 20 col1 FROM tab2 AS cor0
----
140
1560
1582
query I rowsort
SELECT 73 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
104
132
90
query I rowsort
SELECT + + col0 * col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT ( 23 ) - col2 FROM tab2 AS cor0
----
-15
-3
-4
query I rowsort
SELECT DISTINCT col1 - - tab2.col0 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + 84 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT ALL + col0 * col1 DIV - tab2.col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + col0 * col1 / - tab2.col1 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - ( tab0.col1 + col1 ) col2 FROM tab0
----
15006
195
5709
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 44 * col1 + col1 FROM tab1
----
-1118
-430
-559
query I rowsort
SELECT col1 + col1 * - 81 + + col2 FROM tab1 AS cor0
----
-2026
-743
-944
query I rowsort
SELECT DISTINCT - 17 + + cor0.col1 AS col1 FROM tab1, tab2 cor0
----
0
14
42
query I rowsort
SELECT 46 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + col1 * tab0.col0 + 12 AS col2 FROM tab0
----
2076
3407
8111
onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT col2 DIV + tab0.col2 + + 37 AS col0 FROM tab0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-4273
SELECT col2 / + tab0.col2 + + 37 AS col0 FROM tab0
----
38
38
38
query I rowsort
SELECT col1 * 89 FROM tab2 cor0
----
1513
2759
5251
query I rowsort
SELECT + 62 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT ALL - col0 * - CAST( - 41 AS SIGNED ) * + col0 + 64 FROM tab1 AS cor0
----
-167872
-262336
-305
skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - col0 * - CAST ( - 41 AS INTEGER ) * + col0 + 64 FROM tab1 AS cor0
----
-167872
-262336
-305
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT - 29 * ( - col0 ) + ( col0 * - col1 ) FROM tab0
----
-1368
-2380
-5518
query I rowsort
SELECT - col0 * - tab1.col2 * - col1 - col0 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT - 82 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT 24 + col1 AS col2 FROM tab1
----
34
37
50
query I rowsort
SELECT ALL - ( - col2 ) * col1 + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + + 7 AS col1 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT 16 * col2 FROM tab2 AS cor0
----
416
432
608
query I rowsort
SELECT ALL cor0.col1 * col2 + - ( col1 ) + col0 FROM tab1 AS cor0
----
1315
1381
624
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * cor0.col2 + 35 FROM tab0 AS cor0
----
1157
37
6841
query I rowsort
SELECT ( col1 + col0 ) * tab2.col1 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT + col2 * + ( col2 ) * + col0 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 51 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-153
-3264
-4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT - + col2 DIV - col2 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4293
SELECT - + col2 / - col2 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col1 + col2 * 69 FROM tab0
----
166
2363
5749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT col1 + 33 AS col0 FROM tab0
----
119
124
130
query I rowsort
SELECT ALL + col1 * + tab2.col2 + 69 AS col1 FROM tab2
----
1603
715
906
query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 + 37 * col1 FROM tab0 AS cor0
----
-4554
2364
2606
query I rowsort
SELECT DISTINCT - col0 * + ( cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT ALL cor0.col2 DIV 98 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL cor0.col2 / 98 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col1 * col1 + cor0.col1 FROM tab1 AS cor0
----
-17550
-2184
-990
query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT + - col1 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4303
SELECT + - col1 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 79 * 54 + col2 * + cor0.col1 FROM tab1 AS cor0
----
-2862
-3018
-3696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 6 * col2 col0 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT DISTINCT - col1 * 53 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT ALL 89 + 2 + col1 AS col0 FROM tab2 AS cor0
----
108
122
150
query I rowsort
SELECT ALL - - 55 + + 89 AS col2 FROM tab1 AS cor0
----
144
144
144
query I rowsort
SELECT + - cor0.col0 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + - col2 * - col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + tab2.col1 * + col2 + - col1 AS col2 FROM tab2
----
1475
629
806
query I rowsort
SELECT tab0.col2 * col0 + - col2 + + col0 FROM tab0
----
69
7305
783
query I rowsort
SELECT + tab1.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col1 col1 FROM tab0 AS cor0
----
2
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT - CAST( + 41 AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
skipif mysql # not compatible
query I rowsort label-4315
SELECT - CAST ( + 41 AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT - ( - col0 ) * + ( - 89 ) + - col1 AS col1 FROM tab1 AS cor0
----
-293
-5706
-7133
onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT ALL col2 - + col2 DIV 45 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL col2 - + col2 / 45 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL - 86 * + col1 AS col1 FROM tab2 AS cor0
----
-1462
-2666
-5074
query I rowsort
SELECT ALL - col0 * col0 * + col1 + 34 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-104805
-358072
-601
query I rowsort
SELECT + + ( cor0.col1 ) AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - 58 - col1 AS col1 FROM tab2 AS cor0
----
-117
-75
-89
query I rowsort
SELECT DISTINCT col2 + col1 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - - col1 * col1 + ( 86 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
14792
16107
17751
query I rowsort
SELECT ALL - - 25 * - cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT ( col2 ) * - 68 AS col1 FROM tab2 AS cor0
----
-1768
-1836
-2584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + + ( - col2 ) + col0 col1 FROM tab2 AS cor0
----
1485
709
728
query I rowsort
SELECT 12 FROM tab0 cor0
----
12
12
12
query I rowsort
SELECT ALL - col0 * - col0 * cor0.col2 + + 67 FROM tab0 AS cor0
----
1292
19075
649589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 - 23 * + col0 * cor0.col1 FROM tab0 AS cor0
----
-186186
-47386
-77988
query I rowsort
SELECT DISTINCT col2 + + ( 84 ) * - col2 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT DISTINCT + col1 * - ( - 86 ) + - col2 * - 41 * + col0 FROM tab2 AS cor0
----
10415
124544
88222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col1 col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + cor0.col0 * + 20 + col2 FROM tab1 AS cor0
----
114
1337
1696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT - + col1 + CAST( NULL AS DECIMAL ) / + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4336
SELECT - + col1 + CAST ( NULL AS REAL ) / + cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - col0 * tab2.col2 + ( + 71 ) * + col0 FROM tab2
----
2607
308
3510
query I rowsort
SELECT 69 + - col2 FROM tab1
----
-27
12
15
query I rowsort
SELECT 13 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT col0 DIV - cor0.col0 - col1 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-4341
SELECT col0 / - cor0.col0 - col1 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL + col2 + col0 * col1 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2, tab0 AS cor3
----
25
query I rowsort
SELECT ALL - + col0 - + 66 FROM tab2 cor0
----
-144
-145
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT DISTINCT + + col1 DIV - 77 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + + col1 / - 77 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col2 * - 18 FROM tab0 AS cor0
----
-1476
-18
-594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4347
SELECT ALL - col1 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - col1 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4348
SELECT DISTINCT - col2 * + CAST( - col2 AS SIGNED ) * col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT - col2 * + CAST ( - col2 AS INTEGER ) * col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col0 + + col1 * - col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT + 82 * - cor0.col0 + col1 * - ( col1 * col1 ) AS col0 FROM tab0 cor0
----
-638024
-760869
-915543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT 31 DIV col2 + col1 FROM tab0
----
128
86
91
skipif mysql # not compatible
query I rowsort label-4351
SELECT 31 / col2 + col1 FROM tab0
----
128
86
91
query I rowsort
SELECT DISTINCT col0 * 14 AS col2 FROM tab0
----
1246
336
490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * - col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1 cor0
----
25
query I rowsort
SELECT - 72 * col1 + - col1 * 27 AS col0 FROM tab0 cor0
----
-8514
-9009
-9603
query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 22 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
22
query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - 47 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT ALL + col0 * col1 DIV + cor0.col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + col0 * col1 / + cor0.col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + 26 * + col2 AS col1 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
12
query I rowsort
SELECT 92 * + col0 FROM tab0 AS cor0
----
2208
3220
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT 83 * - tab1.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4364
SELECT 83 * - tab1.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 4 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - + 67 * + col2 AS col2 FROM tab0 AS cor0
----
-2211
-5494
-67
query I rowsort
SELECT ALL 69 * col0 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col0 + 25 AS col0 FROM tab1 AS cor0
----
118
54
99
query I rowsort
SELECT - 52 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2786
45
7410
query I rowsort
SELECT - - 81 * - cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-2103
-746
-973
query I rowsort
SELECT cor0.col1 * - col1 + 56 FROM tab0 AS cor0
----
-7340
-8225
-9353
query I rowsort
SELECT col0 + col2 * + col1 * col0 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT + col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 * col2 + - 79 * + col2 FROM tab2 cor0
----
-1296
-2356
-520
query I rowsort
SELECT cor0.col2 + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7
query I rowsort
SELECT DISTINCT - col2 * + 41 AS col1 FROM tab0
----
-1353
-3362
-41
query I rowsort
SELECT + col2 * 5 FROM tab0 AS cor0
----
165
410
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT - + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - col2 * - 28 FROM tab0
----
2296
28
924
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29
query I rowsort
SELECT - - cor0.col2 + + 94 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1318
2498
997
query I rowsort
SELECT DISTINCT - 63 * + col2 AS col0 FROM tab1 cor0
----
-3402
-3591
-6048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT DISTINCT CAST( - 73 AS SIGNED ) * - col0 + col2 * + col1 FROM tab1 AS cor0
----
1623
5242
7088
skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT CAST ( - 73 AS INTEGER ) * - col0 + col2 * + col1 FROM tab1 AS cor0
----
1623
5242
7088
query I rowsort
SELECT - - col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * + col0 * + col2 col1 FROM tab0 AS cor0
----
3045
634926
68904
query I rowsort
SELECT DISTINCT col1 * - col1 * + col1 AS col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL 56 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT 47 FROM tab0, tab0 cor0
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT - CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4389
SELECT - CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 45 * - 46 FROM tab1 AS cor0
----
-2070
query I rowsort
SELECT DISTINCT 24 * + col0 * col1 FROM tab1 cor0
----
15360
1872
24960
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT + - 52 FROM tab0 cor0
----
-52
-52
-52
query I rowsort
SELECT ALL - - 90 + - cor0.col2 FROM tab0 AS cor0
----
57
8
89
query I rowsort
SELECT ALL ( + tab0.col2 ) - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT tab1.col1 + col2 * + tab1.col2 - col0 * - col0 AS col1 FROM tab1
----
15629
2951
7355
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4397
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col0 col2 FROM tab0, 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-4397
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col0 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort
SELECT col2 + - col2 * CAST ( - col0 AS REAL ) / col0 - - 83 FROM tab0
----
149
247
85
query I rowsort
SELECT 30 + - col0 + ( col0 ) FROM tab1
----
30
30
30
query I rowsort
SELECT + cor0.col1 * col0 + 27 FROM tab1 AS cor0
----
105
1067
667
query I rowsort
SELECT - 93 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT - + col1 * - ( - col2 ) + col2 * + cor0.col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 * ( 17 ) + col2 AS col0 FROM tab1 AS cor0
----
227
317
496
query I rowsort
SELECT DISTINCT - col0 * 47 FROM tab1 AS cor0
----
-141
-3008
-3760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4405
SELECT ALL + col2 + 43 DIV + 37 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL + col2 + 43 / + 37 AS col1 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + - col1 + + col0 * + ( col0 ) FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT ALL + col0 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + col0 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - cor0.col0 + - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT - 41 * 20 + col1 DIV 97 AS col2 FROM tab2
----
-820
-820
-820
skipif mysql # not compatible
query I rowsort label-4409
SELECT - 41 * 20 + col1 / 97 AS col2 FROM tab2
----
-820
-820
-820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col0 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 32 * + col1 * col2 AS col2 FROM tab2
----
-20672
-26784
-49088
query I rowsort
SELECT ALL 79 * + tab0.col2 + col1 AS col2 FROM tab0
----
176
2693
6569
onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT ALL col2 DIV col1 + + 21 * col2 + + tab2.col1 FROM tab2
----
598
605
817
skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL col2 / col1 + + 21 * col2 + + tab2.col1 FROM tab2
----
598
605
817
query I rowsort
SELECT + 67 * + col2 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT + col1 + col0 * cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - ( - col1 ) * + 79 FROM tab2 AS cor0
----
-1343
-2449
-4661
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - + 14 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT DISTINCT - 17 * - cor0.col0 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT ALL ( - 60 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT ALL col2 * col1 DIV tab1.col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL col2 * col1 / tab1.col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( 13 ) + - cor0.col1 col2 FROM tab2 AS cor0
----
279
320
477
query I rowsort
SELECT ALL cor0.col0 * - 90 AS col0 FROM tab2 AS cor0
----
-630
-7020
-7110
query I rowsort
SELECT ( + 81 ) + col1 AS col0 FROM tab2 AS cor0
----
112
140
98
query I rowsort
SELECT ALL - col2 * - 35 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT ALL - cor0.col0 + + col0 * - col1 + col2 * - 58 FROM tab2 AS cor0
----
-1790
-3626
-6188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT ALL 42 DIV col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL 42 / col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + - col0 * - col2 + col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
211584
744960
8910
query I rowsort
SELECT - + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - ( - col1 ) * - col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + col2 * col0 + cor0.col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT ALL - col2 + + col1 DIV + cor0.col1 FROM tab2 cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - col2 + + col1 / + cor0.col1 FROM tab2 cor0
----
-25
-26
-37
query I rowsort
SELECT + ( + cor0.col2 ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * + col2 + col2 col0 FROM tab1 AS cor0
----
270
3762
7872
query I rowsort
SELECT - ( + ( col1 ) ) * - col2 * + col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL col1 - 42 FROM tab2 cor0
----
-11
-25
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab1
----
94
94
94
query I rowsort
SELECT - cor0.col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 + col0 ) * col2 col0 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * col0 + col0 col2 FROM tab0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 26 col2 FROM tab1 AS cor0
----
-23
38
54
query I rowsort
SELECT col1 + + col0 + + cor0.col1 FROM tab1 cor0
----
106
55
84
query I rowsort
SELECT + col2 + - 89 * - 86 * col2 FROM tab0 AS cor0
----
252615
627710
7655
query I rowsort
SELECT ALL - col1 + - 26 * 47 AS col0 FROM tab0 AS cor0
----
-1308
-1313
-1319
onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT ALL col2 + - 63 DIV - 42 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL col2 + - 63 / - 42 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT col0 * col1 - + col2 * col1 FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT DISTINCT + col0 DIV col2 - col0 col2 FROM tab0 cor0
----
-24
-88
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + col0 / col2 - col0 col2 FROM tab0 cor0
----
-24
-88
0
query I rowsort
SELECT DISTINCT + col0 * + col0 + - ( col2 ) FROM tab1
----
-45
4039
6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + tab2.col0 * 28 * col0 col2 FROM tab2
----
1345
170326
174710
query I rowsort
SELECT + - col2 * ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + - col1 * + 33 + cor0.col0 FROM tab0 AS cor0
----
-2814
-2914
-3166
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 - 29 + 15 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 5 col0 FROM tab1 AS cor0
----
101
59
62
query I rowsort
SELECT col1 + + 27 FROM tab2
----
44
58
86
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 - - col1 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - 87 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT + 60 * + col0 FROM tab0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT + - cor0.col2 DIV - cor0.col1 + - 88 FROM tab2 AS cor0
----
-86
-88
-88
skipif mysql # not compatible
query I rowsort label-4461
SELECT + - cor0.col2 / - cor0.col1 + - 88 FROM tab2 AS cor0
----
-86
-88
-88
query I rowsort
SELECT DISTINCT cor0.col0 * col1 * + col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - cor0.col0 * + 50 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT + 1 + col2 DIV - 75 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4464
SELECT + 1 + col2 / - 75 AS col1 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT DISTINCT + 92 DIV - col0 + + col2 * col1 + + col0 AS col0 FROM tab0
----
130
2859
7550
skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + 92 / - col0 + + col2 * col1 + + col0 AS col0 FROM tab0
----
130
2859
7550
query I rowsort
SELECT ALL + col0 * + ( + col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT col1 - + ( 74 ) AS col1 FROM tab2
----
-15
-43
-57
query I rowsort
SELECT DISTINCT - 4 FROM tab2, tab1 cor0
----
-4
query I rowsort
SELECT ALL + col0 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - col2 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col2 * - ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col1 * ( - col0 ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - col0 - - col0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + - col1 - + col0 FROM tab2 AS cor0
----
-175
-215
-45
query I rowsort
SELECT + - col0 + 69 + cor0.col0 FROM tab1 AS cor0
----
69
69
69
query I rowsort
SELECT - - col2 + - 67 * col2 FROM tab0 AS cor0
----
-2178
-5412
-66
query I rowsort
SELECT ( 66 ) + - col1 * 91 AS col2 FROM tab2 AS cor0
----
-1481
-2755
-5303
onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT + col2 * + col2 + col0 DIV col2 - + cor0.col2 FROM tab1 AS cor0
----
2862
3193
9120
skipif mysql # not compatible
query I rowsort label-4478
SELECT + col2 * + col2 + col0 / col2 - + cor0.col2 FROM tab1 AS cor0
----
2862
3193
9120
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + - col2 FROM tab2 cor0
----
-6110
-6279
-76
query I rowsort
SELECT - col0 + + col0 * + col0 * + col2 FROM tab1 AS cor0
----
233408
483
614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT - + col1 DIV col1 + CAST( - 66 AS SIGNED ) * + col0 FROM tab2 cor0
----
-463
-5149
-5215
skipif mysql # not compatible
query I rowsort label-4481
SELECT - + col1 / col1 + CAST ( - 66 AS INTEGER ) * + col0 FROM tab2 cor0
----
-463
-5149
-5215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col2 * - 85 col0 FROM tab0 AS cor0
----
120
2829
7059
query I rowsort
SELECT DISTINCT + - col2 + - col2 * - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT - cor0.col2 * - col1 + col2 * col2 FROM tab2 AS cor0
----
1566
2090
2210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT DISTINCT - col1 * - col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - col1 * - col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT - col0 + + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT - col2 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - + 0 - + col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT col1 DIV + col0 + + cor0.col0 * - col1 col2 FROM tab0 AS cor0
----
-2061
-3393
-8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4489
SELECT col1 / + col0 + + cor0.col0 * - col1 col2 FROM tab0 AS cor0
----
-2061
-3393
-8098
query I rowsort
SELECT DISTINCT 61 * col2 * 90 FROM tab1 AS cor0
----
296460
312930
527040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT DISTINCT cor0.col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT cor0.col1 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - 23 * + col2 - col1 FROM tab0 AS cor0
----
-120
-1977
-845
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 - col2 col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - col1 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * + col0 col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + col2 * col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT DISTINCT + + col1 + col1 DIV + cor0.col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + + col1 + col1 / + cor0.col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT - + col2 * col1 - 32 * col2 FROM tab0 AS cor0
----
-10086
-129
-3894
query I rowsort
SELECT ALL + col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT DISTINCT 37 DIV + col0 - cor0.col0 AS col0 FROM tab0 cor0
----
-23
-34
-89
skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT 37 / + col0 - cor0.col0 AS col0 FROM tab0 cor0
----
-23
-34
-89
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + ( col1 ) * + CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - + col2 * col1 + + col2 * col0 * 77 FROM tab1 AS cor0
----
11070
280326
590112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT - col1 * - col0 + - col2 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
2033
3491
8018
skipif mysql # not compatible
query I rowsort label-4504
SELECT - col1 * - col0 + - col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
2033
3491
8018
query I rowsort
SELECT DISTINCT - col2 * + col1 * 46 + col2 * - col0 FROM tab2 AS cor0
----
-32718
-38691
-72592
onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT - col2 + + ( + col0 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-4506
SELECT - col2 + + ( + col0 ) / col1 AS col0 FROM tab2 AS cor0
----
-25
-27
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4507
SELECT CAST( 60 AS SIGNED ) FROM tab1 AS cor0
----
60
60
60
skipif mysql # not compatible
query I rowsort label-4507
SELECT CAST ( 60 AS INTEGER ) FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT - col1 * - 70 AS col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT DISTINCT 26 + col1 FROM tab0 AS cor0
----
112
117
123
query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col2 * col2 + - col1 AS col0 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT - 97 + col2 * col0 * + col0 + tab1.col0 AS col1 FROM tab1
----
233439
392
614383
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 - - col0 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 64 FROM tab2, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT ( col2 ) * + col0 * 66 - - 86 AS col2 FROM tab0
----
2396
481754
52358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 81 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + CAST ( NULL AS REAL ) + 81 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT - - ( - col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - ( 26 ) * col0 AS col2 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT DISTINCT + ( 77 ) + cor0.col1 * col0 FROM tab0 AS cor0
----
2141
3472
8176
query I rowsort
SELECT + + 16 * 41 AS col2 FROM tab2 cor0
----
656
656
656
query I rowsort
SELECT ALL + - col2 - cor0.col2 * - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 21 FROM tab2, tab0 AS cor0
----
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 - col2 col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT 11 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
60
6095
6252
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + col0 col2 FROM tab0
----
113
48
59
query I rowsort
SELECT ( col2 + col2 ) AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT 59 + - 94 * - tab0.col2 FROM tab0
----
153
3161
7767
query I rowsort
SELECT DISTINCT - + 69 * - col0 - + col2 AS col1 FROM tab2 AS cor0
----
456
5356
5413
query I rowsort
SELECT 80 + ( + col0 + + 81 ) * col0 FROM tab2
----
12482
12720
696
query I rowsort
SELECT DISTINCT + col0 + - ( cor0.col2 ) * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
28
47
83
query I rowsort
SELECT ALL + col0 + - col1 + + 15 AS col2 FROM tab1
----
-8
69
82
query I rowsort
SELECT tab2.col2 + col2 + - 13 AS col1 FROM tab2
----
39
41
63
query I rowsort
SELECT ALL 3 + col2 FROM tab1
----
57
60
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4537
SELECT ALL + col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + col0 / - col2 FROM tab0 cor0
----
-1
-35
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
query I rowsort
SELECT - cor0.col2 * col0 + + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - - col0 * cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT cor0.col0 * 34 + col0 FROM tab1 AS cor0
----
105
2240
2800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 14 * + col0 col2 FROM tab0 cor0
----
1157
312
455
query I rowsort
SELECT + col1 * + 49 + 35 FROM tab2 cor0
----
1554
2926
868
query I rowsort
SELECT + + col1 + ( cor0.col2 ) AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + cor0.col1 * + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - col2 + col0 * 72 FROM tab0 cor0
----
1695
2519
6326
query I rowsort
SELECT DISTINCT col1 - 82 AS col0 FROM tab2 AS cor0
----
-23
-51
-65
query I rowsort
SELECT ALL - col0 * 36 * - col1 FROM tab1
----
23040
2808
37440
onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT ALL col2 DIV + tab1.col0 col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL col2 / + tab1.col0 col1 FROM tab1
----
0
1
18
query I rowsort
SELECT + tab1.col2 * tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 97 * + col0 FROM tab2 cor0
----
-679
-7566
-7663
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) * cor0.col1 + + col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT CAST( NULL AS SIGNED ) + - col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS INTEGER ) + - col2 * col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - + 93 * + 4 + col0 AS col2 FROM tab2 AS cor0
----
-293
-294
-365
query I rowsort
SELECT + col0 * ( tab2.col2 ) AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4557
SELECT - + CAST( NULL AS SIGNED ) * - 73 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4557
SELECT - + CAST ( NULL AS INTEGER ) * - 73 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - col0 * cor0.col0 AS col1 FROM tab0 cor0
----
-13824
-42875
-704969
query I rowsort
SELECT + 36 + col2 * col2 FROM tab0 AS cor0
----
1125
37
6760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT ALL - 90 DIV col0 + - ( col2 ) DIV + col1 FROM tab2 AS cor0
----
-1
-12
-3
skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - 90 / col0 + - ( col2 ) / + col1 FROM tab2 AS cor0
----
-1
-12
-3
query I rowsort
SELECT DISTINCT - + 69 AS col0 FROM tab0 cor0
----
-69
query I rowsort
SELECT DISTINCT - col1 * col2 - cor0.col1 * col0 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + - 15 * cor0.col1 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT + col0 * col0 - col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT - col1 * col0 - 34 FROM tab1 AS cor0
----
-1074
-112
-674
query I rowsort
SELECT col1 - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab1 cor2
----
3
query I rowsort
SELECT col0 * - col0 + ( col0 ) * ( col2 ) FROM tab0 cor0
----
-1190
-623
216
query I rowsort
SELECT cor0.col0 + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
98
query I rowsort
SELECT cor0.col1 * col0 + col0 * cor0.col2 + - col2 * col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col1 * col2 col1 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT col1 + - col0 + cor0.col0 DIV cor0.col1 FROM tab2 AS cor0
----
-18
-58
24
skipif mysql # not compatible
query I rowsort label-4573
SELECT col1 + - col0 + cor0.col0 / cor0.col1 FROM tab2 AS cor0
----
-18
-58
24
query I rowsort
SELECT ALL + + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 + - cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - - col0 * col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + col2 + col2 * col1 * col2 AS col0 FROM tab0
----
611966
93687
98
query I rowsort
SELECT + col1 + col2 + + col1 * + col1 FROM tab2 cor0
----
1019
344
3566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + col2 - - col2 * + col0 * col1 col1 FROM tab1
----
101088
37050
5616
query I rowsort
SELECT + tab2.col2 * col0 * tab2.col0 + col0 + + col0 * - col2 FROM tab2
----
1141
156234
234235
query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - tab2.col0 + col0 - col1 * + col1 * + col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT + - col2 * col2 + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-2836
-3182
-9107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - col1 col0 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT ALL tab2.col2 + tab2.col0 + col2 DIV col0 AS col1 FROM tab2
----
104
117
37
skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL tab2.col2 + tab2.col0 + col2 / col0 AS col1 FROM tab2
----
104
117
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * col0 + - col1 + col0 col1 FROM tab0
----
118763
49474
720809
query I rowsort
SELECT + tab0.col1 * tab0.col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col2 )
----
query I rowsort
SELECT DISTINCT col1 + col0 * + col1 + tab2.col2 AS col1 FROM tab2
----
1398
275
4687
query I rowsort
SELECT ALL - col0 + col1 + + col1 * col0 FROM tab0
----
2126
3457
8101
query I rowsort
SELECT + col0 + - col2 * + tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT col1 + + col0 * col1 + col2 * col2 * - col2 AS col1 FROM tab1
----
-157360
-184543
-883683
query I rowsort
SELECT col0 + - col2 * col2 AS col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL col1 * + col0 * col2 - - tab1.col0 FROM tab1
----
36544
4215
99920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4594
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4594
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT - + col2 + - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4595
SELECT - + col2 + - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4596
SELECT ALL col0 + cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL col0 + cor0.col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 * col1 * - ( - col2 * + col1 ) AS col2 FROM tab0 AS cor0
----
20989848
61792822
912673
query I rowsort
SELECT 8 + - col2 * col2 FROM tab2 cor0
----
-1436
-668
-721
query I rowsort
SELECT ALL + col2 + - col1 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col2 + tab0.col2 * col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT 14 FROM tab0, tab0 AS cor0, tab1 cor1
----
14
query I rowsort
SELECT - cor0.col1 + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col1 * - col2 + + 86 * col0 AS col1 FROM tab1 AS cor0
----
-1146
4934
5632
query I rowsort
SELECT - + 83 + col0 * 41 FROM tab0 AS cor0
----
1352
3566
901
query I rowsort
SELECT col0 * + col1 + col2 - col1 AS col1 FROM tab2 cor0
----
1364
213
4569
query I rowsort
SELECT col0 * + tab0.col2 + col0 + - col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col0 * + col1 FROM tab2 AS cor0 WHERE + col1 * - col1 BETWEEN ( NULL ) AND col2
----
query I rowsort
SELECT + cor0.col0 + + cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + col2 + col0 * col2 * col1 AS col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT + col1 + - col0 * col0 * - col1 FROM tab0 cor0
----
118922
49622
720902
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * col2 IN ( col2 * + col0 - + col0 )
----
query I rowsort
SELECT DISTINCT col1 * + tab1.col0 - - tab1.col1 * col0 FROM tab1
----
1280
156
2080
query I rowsort
SELECT - col2 + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----
query I rowsort
SELECT + col1 + + tab2.col2 * col2 FROM tab2
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT - col2 DIV + col0 col2 FROM tab1 WHERE NOT - col2 IN ( + col0 + - tab1.col1 )
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4616
SELECT - col2 / + col0 col2 FROM tab1 WHERE NOT - col2 IN ( + col0 + - tab1.col1 )
----
-1
-18
0
query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN NULL AND col0 * col0 - col2
----
query I rowsort
SELECT col2 + col0 * col0 + + tab1.col1 FROM tab1
----
4163
6509
89
query I rowsort
SELECT + col0 + col2 * - col0 FROM tab0 WHERE NOT tab0.col2 >= NULL
----
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL IN ( - col1 * + col1 * col2 )
----
query I rowsort
SELECT ALL + col0 * col2 * + col2 - col1 * tab1.col1 FROM tab1
----
207836
737111
8072
query I rowsort
SELECT DISTINCT col2 * col0 + col1 AS col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT - col2 - + col2 DIV tab2.col0 AS col0 FROM tab2
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-4623
SELECT - col2 - + col2 / tab2.col0 AS col0 FROM tab2
----
-26
-30
-38
query I rowsort
SELECT - col0 + col0 AS col1 FROM tab1 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT col1 FROM tab0 WHERE NULL IN ( - tab0.col2 )
----
query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
60
query I rowsort
SELECT col2 * + cor0.col2 * + col2 AS col2 FROM tab1 cor0
----
157464
185193
884736
query I rowsort
SELECT + 96 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7492
8377
9505
query I rowsort
SELECT ALL + col1 * col1 + col1 + col1 * + col0 * col0 AS col1 FROM tab2 cor0
----
106403
2511
362496
query I rowsort
SELECT - col2 * col2 + + 59 AS col2 FROM tab2 AS cor0
----
-1385
-617
-670
query I rowsort
SELECT DISTINCT - 97 * + col1 + - col2 FROM tab2 AS cor0
----
-1687
-3034
-5749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) + cor0.col2 col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT + cor0.col1 * 53 FROM tab0 AS cor0
----
4558
4823
5141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT - col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4634
SELECT - col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + cor0.col0 * + 94 * col2 + col2 FROM tab1 AS cor0
----
15282
342969
722016
query I rowsort
SELECT ALL 19 + - 77 AS col1 FROM tab0 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 + - 87 FROM tab2 AS cor0
----
-165
-166
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT ALL ( - col1 ) + - col2 DIV + ( + cor0.col2 ) FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL ( - col1 ) + - col2 / + ( + cor0.col2 ) FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT - 65 - 96 AS col1 FROM tab0 cor0
----
-161
-161
-161
query I rowsort
SELECT + col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT 50 + tab1.col0 FROM tab1
----
114
130
53
query I rowsort
SELECT - col0 * col1 * + col2 + col0 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT col1 * + col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT + + col2 + - col0 DIV 11 FROM tab1 AS cor0
----
52
54
89
skipif mysql # not compatible
query I rowsort label-4647
SELECT + + col2 + - col0 / 11 FROM tab1 AS cor0
----
52
54
89
query I rowsort
SELECT col2 + 1 + - col1 * 53 FROM tab1
----
-1323
-472
-592
query I rowsort
SELECT ALL + ( + tab1.col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - col0 * tab1.col0 + col2 * - col2 FROM tab1
----
-15616
-2925
-7345
query I rowsort
SELECT + ( - col0 ) * 72 + + col2 FROM tab1 cor0
----
-162
-4551
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - tab2.col2 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
25
query I rowsort
SELECT - cor0.col0 + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - - col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 - + col1 col2 FROM tab2
----
-2
-30
12
query I rowsort
SELECT ALL - 93 FROM tab2, tab1 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT col2 * + 39 AS col2 FROM tab0
----
1287
3198
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * col0 * - col0 col2 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4662
SELECT - + CAST( + col2 AS SIGNED ) * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4662
SELECT - + CAST ( + col2 AS INTEGER ) * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 * - cor0.col0 col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - 90 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-185760
-305550
-728910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4665
SELECT - CAST( + col0 AS SIGNED ) + col0 * col2 col2 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4665
SELECT - CAST ( + col0 AS INTEGER ) + col0 * col2 col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT tab2.col1 + - 9 + - 97 AS col2 FROM tab2
----
-47
-75
-89
query I rowsort
SELECT col0 * - col1 + ( + col2 ) AS col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col0 + + col2 + ( - col1 ) FROM tab2
----
100
3
45
query I rowsort
SELECT DISTINCT - col1 * - col0 + ( col2 ) FROM tab2 cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col0 FROM tab0 AS cor0
----
74
74
74
query I rowsort
SELECT + - 54 * + ( col2 ) + - 59 FROM tab2 AS cor0
----
-1463
-1517
-2111
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL ( col1 ) + col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * col0 + - 18 col2 FROM tab2 AS cor0
----
-6102
-6259
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT - ( - 58 ) * + col1 DIV ( + ( - col1 ) ) + col2 * col2 * col1 FROM tab1 cor0
----
119750
32432
75758
skipif mysql # not compatible
query I rowsort label-4676
SELECT - ( - 58 ) * + col1 / ( + ( - col1 ) ) + col2 * col2 * col1 FROM tab1 cor0
----
119750
32432
75758
query I rowsort
SELECT - col2 + 68 * - col2 FROM tab2 AS cor0
----
-1794
-1863
-2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4678
SELECT ALL - + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT cor0.col2 DIV 87 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4679
SELECT cor0.col2 / 87 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 69 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT DISTINCT - col2 * 42 + col0 - col2 AS col2 FROM tab0
----
-1395
-3437
-8
query I rowsort
SELECT DISTINCT 45 * tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
1080
1575
4005
query I rowsort
SELECT ALL - + cor0.col2 + col2 * - col2 * col2 FROM tab1 AS cor0
----
-157518
-185250
-884832
onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT DISTINCT + col0 DIV - col1 - - col1 AS col0 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT + col0 / - col1 - - col1 AS col0 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT ALL ( cor0.col2 ) + col2 * 92 * + col1 FROM tab0 AS cor0
----
261129
686586
8925
query I rowsort
SELECT - ( - col2 ) + + ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT ALL + col1 DIV - cor0.col1 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + col1 / - cor0.col1 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT col2 + 92 + col0 FROM tab0 AS cor0
----
128
149
263
query I rowsort
SELECT 15 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT + tab1.col0 - col1 DIV col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-4691
SELECT + tab1.col0 - col1 / col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT col2 * - 14 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT DISTINCT col2 + + 23 * + 22 * cor0.col1 + - col2 FROM tab0 AS cor0
----
43516
46046
49082
onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT ALL - + col2 - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - + col2 - cor0.col0 / col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 46 col2 FROM tab0 AS cor0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT DISTINCT col2 DIV col2 - - col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT col2 / col2 - - col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL + col1 * col2 * ( - col1 ) FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col1 * ( + col1 + col1 * - col1 ) FROM tab1
----
-16900
-2028
-900
query I rowsort
SELECT + - cor0.col0 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT ALL col1 * - 41 AS col1 FROM tab0
----
-3526
-3731
-3977
query I rowsort
SELECT ALL + + col1 * + ( col1 * - col0 ) + + col1 * col2 * + col0 + col1 FROM tab1 AS cor0
----
2210
30090
86333
query I rowsort
SELECT DISTINCT - col0 - 58 FROM tab1 AS cor0
----
-122
-138
-61
query I rowsort
SELECT DISTINCT + - col2 * - 76 - - col0 FROM tab1 AS cor0
----
4107
4396
7376
query I rowsort
SELECT + cor0.col2 + ( + ( + col0 ) ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - col1 + 92 * - col2 AS col0 FROM tab1 AS cor0
----
-4994
-5254
-8845
query I rowsort
SELECT - ( - tab2.col1 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL col0 + + 5 AS col1 FROM tab0
----
29
40
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4709
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col2 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL + ( 26 ) * tab0.col0 + col2 FROM tab0
----
2396
657
911
query I rowsort
SELECT col1 + + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col2 * + 37 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT - col1 * col0 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col2 + + 15 FROM tab1
----
-39
-42
-81
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * - 50 col1 FROM tab0 AS cor0
----
-4267
-4468
-4849
onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT - ( col1 ) DIV col0 + col1 AS col0 FROM tab0 cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-4717
SELECT - ( col1 ) / col0 + col1 AS col0 FROM tab0 cor0
----
83
90
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT DISTINCT - - col1 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - - col1 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 8 + col1 FROM tab0 AS cor0
----
78
83
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT ALL + ( - col1 ) + CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + ( - col1 ) + CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - + 33 * - col2 AS col1 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT col2 * col2 + 78 FROM tab2 AS cor0
----
1522
754
807
query I rowsort
SELECT 80 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT - col1 * + ( + ( col2 ) ) + - col0 - cor0.col2 * + col2 AS col0 FROM tab2 cor0
----
-1573
-2169
-2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT DISTINCT - col2 * CAST( + 26 AS SIGNED ) FROM tab1 AS cor0
----
-1404
-1482
-2496
skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT - col2 * CAST ( + 26 AS INTEGER ) FROM tab1 AS cor0
----
-1404
-1482
-2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT col2 * + ( 63 ) + col0 DIV + col2 + col2 * col0 * col2 FROM tab0 AS cor0
----
133
28215
603603
skipif mysql # not compatible
query I rowsort label-4727
SELECT col2 * + ( 63 ) + col0 / + col2 + col2 * col0 * col2 FROM tab0 AS cor0
----
133
28215
603603
query I rowsort
SELECT ALL + col1 + 19 FROM tab0 cor0
----
105
110
116
query I rowsort
SELECT - - col0 + 33 FROM tab0 AS cor0
----
122
57
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT + ( cor0.col2 ) DIV col1 + 45 * + col2 col1 FROM tab2 AS cor0
----
1170
1215
1712
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4730
SELECT + ( cor0.col2 ) / col1 + 45 * + col2 col1 FROM tab2 AS cor0
----
1170
1215
1712
query I rowsort
SELECT + 96 * + col2 + - col0 + col2 AS col2 FROM tab2 AS cor0
----
2444
2612
3607
query I rowsort
SELECT col1 * 70 * cor0.col0 + - 15 AS col0 FROM tab0 AS cor0
----
144465
237635
566915
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab0
----
93
query I rowsort
SELECT + - 79 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL + + 87 * col0 AS col0 FROM tab1 AS cor0
----
261
5568
6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * col0 col1 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT ALL + 53 + - col0 AS col0 FROM tab1 cor0
----
-11
-27
50
query I rowsort
SELECT ALL col1 - cor0.col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL 25 + + col2 * - 8 AS col2 FROM tab2 AS cor0
----
-183
-191
-279
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT 91 + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
93
96
98
skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT 91 + + col2 / col1 AS col0 FROM tab1 AS cor0
----
93
96
98
query I rowsort
SELECT - col1 + col1 * ( cor0.col0 * + col2 + - col0 * + col1 ) FROM tab1 AS cor0
----
2158
30070
86307
query I rowsort
SELECT - col0 * + 53 + 4 + + col2 AS col1 FROM tab0 AS cor0
----
-1235
-1850
-4631
query I rowsort
SELECT ALL - col0 + ( col1 + - col2 ) FROM tab2 cor0
----
-100
-3
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 54 col1 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT DISTINCT - + col0 + ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col2 * - 5 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT ALL + + col2 * + col1 + - 78 FROM tab0 AS cor0
----
19
2760
7384
query I rowsort
SELECT ALL + 20 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4751
SELECT - col1 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-4751
SELECT - col1 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL - 17 * - cor2.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 3a6ab2ad18b4637b4c60b79066e7173c
query I rowsort
SELECT ALL + 81 + - col2 * col1 FROM tab1 AS cor0
----
-1167
-1323
-489
query I rowsort
SELECT + + col2 * + col2 + - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL - + 59 + + 64 + col0 FROM tab0 cor0
----
29
40
94
query I rowsort
SELECT + 64 + + 39 FROM tab1 AS cor0
----
103
103
103
query I rowsort
SELECT 92 + + col0 AS col0 FROM tab1 cor0
----
156
172
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4759
SELECT ALL col1 * CAST( NULL AS SIGNED ) * + 45 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * + 45 AS col2 FROM tab2
----
NULL
NULL
NULL
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 tab2.col0 * 20 AS col1 FROM tab2
----
140
1560
1580
query I rowsort
SELECT - col0 + col2 * + col1 AS col1 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT 84 * col0 * col2 AS col2 FROM tab0 AS cor0
----
2940
613032
66528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT CAST( 85 + + col0 AS SIGNED ) * - 19 AS col1 FROM tab0
----
-2071
-2280
-3306
skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( 85 + + col0 AS INTEGER ) * - 19 AS col1 FROM tab0
----
-2071
-2280
-3306
query I rowsort
SELECT + 45 + col1 AS col2 FROM tab1
----
55
58
71
query I rowsort
SELECT ALL 51 * - col2 FROM tab0
----
-1683
-4182
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL ( + col1 ) * - 99 AS col0 FROM tab0 AS cor0
----
-8514
-9009
-9603
query I rowsort
SELECT ALL 96 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT ALL - + col0 + - col2 FROM tab2 cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( cor0.col1 ) AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col0 * col2 - - col0 * - col1 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT - 65 * + tab0.col2 AS col1 FROM tab0
----
-2145
-5330
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 90 col0 FROM tab1 AS cor0
----
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT ALL - col2 DIV col1 + ( + 82 ) AS col2 FROM tab0 AS cor0
----
82
82
82
skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL - col2 / col1 + ( + 82 ) AS col2 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT DISTINCT - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + ( col0 ) * - ( + cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col0 + - 72 FROM tab2 AS cor0
----
-65
6
7
query I rowsort
SELECT - col0 + col2 * - 68 FROM tab1 AS cor0
----
-3675
-3940
-6608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4781
SELECT col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4781
SELECT col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 65 + + col2 col1 FROM tab2 AS cor0
----
-11
-13
11
query I rowsort
SELECT + col0 * - cor0.col0 + col1 * col1 * col2 FROM tab1 AS cor0
----
1604
36495
9824
query I rowsort
SELECT ALL cor0.col1 + + ( + col1 ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - ( col2 ) + + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT col2 + - col1 DIV - col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4786
SELECT col2 + - col1 / - col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 * + ( col2 * col1 ) FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT + 62 + col1 AS col2 FROM tab1 AS cor0
----
72
75
88
query I rowsort
SELECT DISTINCT + + col2 * - 5 - + col0 FROM tab0 AS cor0
----
-189
-40
-499
query I rowsort
SELECT ALL + - 83 * - col0 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT + - 6 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-103
-2844
-7468
onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT DISTINCT - + col0 + col1 DIV - col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - + col0 + col1 / - col0 FROM tab1 AS cor0
----
-11
-64
-80
query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 * - ( + col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-2247696
-3395
-54457676
query I rowsort
SELECT ALL col2 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 92 * col0 - col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-15040
-438
-9536
query I rowsort
SELECT - + col2 * + 29 + col1 FROM tab1 AS cor0
----
-1540
-1643
-2771
query I rowsort
SELECT + col1 + + 51 - ( + col2 ) FROM tab0
----
104
147
60
query I rowsort
SELECT - col1 * 25 * + col2 AS col2 FROM tab0
----
-186550
-2425
-70950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT DISTINCT - tab2.col2 * CAST( NULL AS DECIMAL ) + col2 * col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - tab2.col2 * CAST ( NULL AS REAL ) + col2 * col1 FROM tab2
----
NULL
query I rowsort
SELECT + col1 * 78 + col0 FROM tab0
----
6732
7187
7601
query I rowsort
SELECT ALL - - col0 * - 91 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT + - ( - 56 ) + - cor0.col0 FROM tab1 AS cor0
----
-24
-8
53
query I rowsort
SELECT ALL - + 20 * - col2 AS col0 FROM tab0 AS cor0
----
1640
20
660
onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT + col0 * - col0 + col0 DIV + col0 col2 FROM tab1 AS cor0
----
-4095
-6399
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4805
SELECT + col0 * - col0 + col0 / + col0 col2 FROM tab1 AS cor0
----
-4095
-6399
-8
query I rowsort
SELECT - 56 + ( col1 ) FROM tab1
----
-30
-43
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 * + col2 + cor0.col1 col0 FROM tab2 AS cor0
----
-487
-536
-781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 + - col2 col2 FROM tab0 AS cor0
----
-15
-47
-96
query I rowsort
SELECT col2 + + col1 * 71 * col2 AS col2 FROM tab2 AS cor0
----
108940
45904
59454
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 79 col1 FROM tab2 AS cor0
----
-41
-52
-53
query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
31
query I rowsort
SELECT DISTINCT - col0 + + ( + col1 + - col0 ) FROM tab2
----
-141
-97
17
query I rowsort
SELECT ALL + col2 + - 97 * - col2 FROM tab0
----
3234
8036
98
query I rowsort
SELECT ALL + tab1.col2 + col1 AS col2 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT ALL col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - col0 * - col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT - + col1 * col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col2 - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * col2 - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col0 + 53 + + col2 AS col2 FROM tab0 AS cor0
----
-1978
-3341
-7964
query I rowsort
SELECT col0 * 90 FROM tab2 AS cor0
----
630
7020
7110
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( - col0 * - col0 AS REAL ) FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT + - col1 * - ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + cor0.col2 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col0 + + cor0.col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 1848c3b5824f2eb1da42eb7284f27dd9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 * - col2 col1 FROM tab1
----
162
171
288
query I rowsort
SELECT - - col1 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT DISTINCT + - col2 * - col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296
query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 - col0 * + tab0.col1 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL col0 - + col1 * - col1 AS col1 FROM tab0
----
7420
8370
9444
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 < NULL
----
query I rowsort
SELECT DISTINCT col2 * + col1 + + tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT col1 + - col1 * col1 * + col0 AS col0 FROM tab1
----
-13507
-2002
-6390
query I rowsort
SELECT col2 - + col2 * + tab0.col1 AS col2 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4837
SELECT ALL + col2 * + col2 DIV col2 col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + col2 * + col2 / col2 col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - col2 * - col1 * ( - col0 ) AS col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4839
SELECT + + col1 + col1 * CAST( 99 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1700
3100
5900
skipif mysql # not compatible
query I rowsort label-4839
SELECT + + col1 + col1 * CAST ( 99 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1700
3100
5900
onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT - col0 * + col0 * + ( - col0 ) + col2 DIV - col2 AS col0 FROM tab0 cor0
----
13823
42874
704968
skipif mysql # not compatible
query I rowsort label-4840
SELECT - col0 * + col0 * + ( - col0 ) + col2 / - col2 AS col0 FROM tab0 cor0
----
13823
42874
704968
query I rowsort
SELECT col0 * col1 + + ( col2 * col1 ) FROM tab0 AS cor0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT DISTINCT + 58 + col1 DIV 80 AS col0 FROM tab0
----
59
skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + 58 + col1 / 80 AS col0 FROM tab0
----
59
query I rowsort
SELECT + col1 + ( 59 ) AS col0 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT ALL ( + 81 ) * cor0.col0 + 2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1c3f8a7d07376403902ec02dc2045590
query I rowsort
SELECT - col0 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 95 * cor0.col0 FROM tab0 cor0
----
2280
3325
8455
query I rowsort
SELECT - cor0.col0 * - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4
query I rowsort
SELECT + col0 + col0 - + col1 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT + - col0 + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + 80 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
1281
2473
4642
query I rowsort
SELECT cor0.col2 * + col1 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT + - cor0.col2 * col1 DIV 91 FROM tab0 AS cor0
----
-1
-31
-82
skipif mysql # not compatible
query I rowsort label-4853
SELECT + - cor0.col2 * col1 / 91 FROM tab0 AS cor0
----
-1
-31
-82
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT ( col2 ) * - ( - 47 ) FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT ( col1 ) + + col0 DIV + ( - col2 ) FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-4856
SELECT ( col1 ) + + col0 / + ( - col2 ) FROM tab1 AS cor0
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + col0 col2 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT + 93 AS col2 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
query I rowsort
SELECT DISTINCT - + col2 - col0 * - col0 * + col2 FROM tab0 AS cor0
----
1224
18975
649440
query I rowsort
SELECT ALL - + col2 * col0 * col1 + col0 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT col0 + - col1 * col0 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT 98 * + col2 + + col0 * col0 * col0 FROM tab0
----
17058
42973
713005
query I rowsort
SELECT col0 * - col1 - + col0 * - col2 AS col2 FROM tab0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT DISTINCT col0 DIV col0 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT col0 / col0 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL - col1 + - col0 * col0 AS col0 FROM tab2 cor0
----
-6143
-6258
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col1 col2 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + 69 DIV - col0 col2 FROM tab1
----
-1
-23
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4867
SELECT + 69 / - col0 col2 FROM tab1
----
-1
-23
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + col1 + + col2 col1 FROM tab0
----
8031
8545
9022
query I rowsort
SELECT ALL col2 + col2 - col0 * - col1 FROM tab1
----
1232
186
754
query I rowsort
SELECT ALL 99 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT ALL 33 - col2 DIV col1 FROM tab1 AS cor0
----
26
28
31
skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL 33 - col2 / col1 FROM tab1 AS cor0
----
26
28
31
query I rowsort
SELECT ALL tab2.col2 * - ( col0 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col2 * col0 + col1 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
409
4115
6021
query I rowsort
SELECT + col2 * col1 + + col0 AS col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - ( - col2 ) - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL - col1 + + col0 * - col2 - - col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - ( - col0 ) + col1 - - col2 FROM tab2
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 69 * col1 col1 FROM tab1
----
1791
626
817
query I rowsort
SELECT - 49 + col1 + - col1 * + col1 FROM tab0
----
-7359
-8239
-9361
query I rowsort
SELECT + col0 * - col2 + - col1 FROM tab2 cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT tab1.col1 - - col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT 87 * cor0.col2 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT ALL + 21 + + cor0.col1 FROM tab0 AS cor0
----
107
112
118
query I rowsort
SELECT ALL + - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 37 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
123
128
134
query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 AS col1 FROM tab0 cor0
----
148
159
93
query I rowsort
SELECT DISTINCT - + col1 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + 48 + + col0 FROM tab1 AS cor0
----
112
128
51
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 * col0 col2 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT + col2 * + tab0.col0 - col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL - col2 * - col1 * - col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT - col2 * col0 * - col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col2 * + col0 + col1 * + cor0.col0 FROM tab2 AS cor0
----
406
4345
6630
query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * + cor0.col2 <= ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col1 NOT BETWEEN col2 AND col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL - col0 - tab2.col1 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT col0 - + tab0.col2 DIV col1 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4899
SELECT col0 - + tab0.col2 / col1 AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col1 * col1 * col2 AS col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL = - col0 + - col0 * col1
----
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT tab1.col0 * tab1.col2 + col2 FROM tab1
----
216
3705
7776
query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NULL IN ( tab2.col1 )
----
query I rowsort
SELECT - col2 * - col0 - col1 AS col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col1 + + tab1.col1 + tab1.col2 * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT tab0.col2 * col2 * col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT col0 * col2 + - col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL - col2 * tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 * col0 )
----
query I rowsort
SELECT DISTINCT + col1 + col2 - col1 FROM tab1
----
54
57
96
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( + col0 - + col1 )
----
query I rowsort
SELECT ALL + col1 * cor0.col1 + col1 + col2 AS col1 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT ALL - + col1 * + col2 + col0 * + col1 * - cor0.col0 + + col1 * col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + - col1 * - col0 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT ALL + col2 - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4919
SELECT ALL cor0.col1 * + col0 + - col1 DIV + col1 col2 FROM tab1 AS cor0
----
1039
639
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL cor0.col1 * + col0 + - col1 / + col1 col2 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT DISTINCT - col2 - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col1 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT ALL + cor0.col1 - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT col1 + - col2 * col2 - col2 FROM tab0
----
-1036
-6715
95
query I rowsort
SELECT ALL - col0 * - col0 - col2 * + col2 FROM tab1
----
-2816
-2907
847
query I rowsort
SELECT col1 * - col2 + + cor0.col2 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1027
-1951
-6110
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - cor0.col1 )
----
query I rowsort
SELECT + col1 / col2 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT - col2 + - col1 * - tab0.col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - + col2 * - 76 + col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT - 56 - col2 FROM tab2 AS cor0
----
-82
-83
-94
query I rowsort
SELECT DISTINCT + + 59 + + col2 FROM tab1 AS cor0
----
113
116
155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col1 ) * + col1 col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 50 ) col0 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT ALL - 53 * col1 AS col1 FROM tab1 AS cor0
----
-1378
-530
-689
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col2 * col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
10
query I rowsort
SELECT - col0 * 46 AS col1 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT - + ( + 91 ) * - col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT - col2 * + ( 61 ) + col0 FROM tab1 AS cor0
----
-3291
-3413
-5776
query I rowsort
SELECT ALL col0 * col1 + col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
1085
2006
6195
query I rowsort
SELECT ALL + col2 * 54 + col1 FROM tab1 AS cor0
----
2942
3088
5197
query I rowsort
SELECT + col0 * ( 22 ) AS col2 FROM tab2
----
154
1716
1738
query I rowsort
SELECT ALL col0 + + 27 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT ALL col2 + + 91 AS col2 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT ALL - col1 * - 63 + col1 AS col1 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT ALL + col2 * + 2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT + 48 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT - 62 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - 50 * + col0 + + col0 * - col2 FROM tab1 AS cor0
----
-11680
-312
-6848
query I rowsort
SELECT ALL col0 + - 81 * + cor0.col0 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab0, tab0 cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT - ( 19 ) + col2 AS col0 FROM tab0
----
-18
14
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) + col2 * 51 col1 FROM tab0 AS cor0
----
-46
1597
4091
query I rowsort
SELECT + col2 * col0 * ( col0 ) AS col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT + tab1.col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - 9 * - col0 AS col1 FROM tab2
----
63
702
711
query I rowsort
SELECT + 18 + col1 FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT + col1 * - ( 82 ) + + col2 + - col1 FROM tab2 AS cor0
----
-1373
-2546
-4871
query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 + - col1 * col0 AS col2 FROM tab1
----
232832
408
613360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT - + col2 * - 73 + col0 DIV col1 + - ( col0 + - cor0.col1 ) * col0 FROM tab0 cor0
----
2243
3897
6164
skipif mysql # not compatible
query I rowsort label-4962
SELECT - + col2 * - 73 + col0 / col1 + - ( col0 + - cor0.col1 ) * col0 FROM tab0 cor0
----
2243
3897
6164
query I rowsort
SELECT - col1 * col0 + 34 FROM tab1 AS cor0
----
-1006
-44
-606
onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT DISTINCT - ( col1 ) + - col1 DIV - cor0.col0 col2 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - ( col1 ) + - col1 / - cor0.col0 col2 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT - + 21 AS col1 FROM tab1 cor0
----
-21
-21
-21
query I rowsort
SELECT ALL + col1 * col1 - + ( 31 * col1 ) FROM tab1 AS cor0
----
-130
-210
-234
query I rowsort
SELECT 26 + + cor0.col0 FROM tab0 cor0
----
115
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT DISTINCT + col0 * - cor0.col1 + 58 * col1 DIV col2 FROM tab1 AS cor0
----
-1033
-51
-630
skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT + col0 * - cor0.col1 + 58 * col1 / col2 FROM tab1 AS cor0
----
-1033
-51
-630
query I rowsort
SELECT - + cor0.col0 + cor0.col1 * 9 FROM tab0 AS cor0
----
730
750
838
query I rowsort
SELECT - 78 AS col2 FROM tab1
----
-78
-78
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4971
SELECT col0 * + col1 + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4971
SELECT col0 * + col1 + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 - cor0.col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + - 2 - cor0.col2 FROM tab2 AS cor0
----
-28
-29
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT col0 - + col1 / + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4974
SELECT col0 - + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 * - col0 + col1 * 66 AS col0 FROM tab2
----
23953
275412
8773
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT DISTINCT col1 DIV col1 + ( tab0.col0 * col0 ) FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT col1 / col1 + ( tab0.col0 * col0 ) FROM tab0
----
1226
577
7922
query I rowsort
SELECT + 62 * col1 + col0 FROM tab1
----
1615
684
886
query I rowsort
SELECT ALL ( - ( cor1.col0 ) ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - col2 * - ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4980
SELECT - col1 / CAST( NULL AS SIGNED ) + + col2 / col1 + col2 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4980
SELECT - col1 / CAST ( NULL AS INTEGER ) + + col2 / col1 + col2 * col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * + col2 + + cor0.col2 * col0 FROM tab2 cor0
----
2704
4446
918
query I rowsort
SELECT + - col0 * + cor0.col0 + - 26 AS col1 FROM tab2 AS cor0
----
-6110
-6267
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col2 + 23 * + col1 col0 FROM tab0
----
2266
2770
9391
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + col2 col2 FROM tab1
----
123
126
165
query I rowsort
SELECT DISTINCT + 28 FROM tab0, tab2 cor0, tab1 AS cor1
----
28
query I rowsort
SELECT + - 41 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT DISTINCT col0 * + col2 + - 73 AS col0 FROM tab0
----
-38
719
7225
onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT DISTINCT - col0 DIV + tab1.col2 + col1 * tab1.col2 * col2 AS col0 FROM tab1
----
119808
32489
75816
skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - col0 / + tab1.col2 + col1 * tab1.col2 * col2 AS col0 FROM tab1
----
119808
32489
75816
query I rowsort
SELECT - col1 + col0 * 56 AS col2 FROM tab0
----
1258
1863
4893
query I rowsort
SELECT ( col0 ) * 46 FROM tab2
----
322
3588
3634
query I rowsort
SELECT DISTINCT - col0 - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + ( + col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + - col0 + cor0.col2 * col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col0 - - col0 * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + - 90 * col1 + + col0 * 83 FROM tab2 AS cor0
----
-2209
1164
5027
query I rowsort
SELECT ALL - - col2 * - 34 - + col1 AS col1 FROM tab0 cor0
----
-1208
-131
-2879
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + col1 * - 18 FROM tab1 AS cor0
----
1014
390
936
query I rowsort
SELECT ALL + col2 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab1, tab2 AS cor0
----
89
query I rowsort
SELECT ALL col1 * 75 FROM tab1
----
1950
750
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT - col1 DIV - col1 + - col0 AS col1 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-5002
SELECT - col1 / - col1 + - col0 AS col1 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT - - 97 - + col2 FROM tab2 AS cor0
----
59
70
71
query I rowsort
SELECT + + ( - ( col0 ) ) * col2 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5005
SELECT CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5005
SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 91 AS col0 FROM tab2
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT ALL ( col2 * col1 ) - - CAST( - 26 * col0 AS SIGNED ) AS col1 FROM tab1
----
-1094
-832
1326
skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL ( col2 * col1 ) - - CAST ( - 26 * col0 AS INTEGER ) AS col1 FROM tab1
----
-1094
-832
1326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5008
SELECT + CAST( NULL AS SIGNED ) * + 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-5008
SELECT + CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT DISTINCT - 57 DIV - col1 FROM tab2
----
0
1
3
skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - 57 / - col1 FROM tab2
----
0
1
3
query I rowsort
SELECT + col1 * + ( + col0 ) * 18 + 12 AS col2 FROM tab0
----
145794
37164
61122
query I rowsort
SELECT col0 + 40 AS col1 FROM tab2
----
118
119
47
query I rowsort
SELECT - + col1 * col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT - 18 * col1 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT col1 * col1 + - col1 + col2 FROM tab0 cor0
----
7343
8272
9313
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5017
SELECT col2 - col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5017
SELECT col2 - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - col1 * 26 FROM tab2 AS cor0
----
-1456
-363
-799
query I rowsort
SELECT ALL - - 60 * col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT - + 97 * cor0.col2 + - col0 * - 59 AS col2 FROM tab1 AS cor0
----
-1753
-4592
-5061
query I rowsort
SELECT - - cor0.col2 * + col1 * col2 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + - col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * col2 + - 91 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-55
1022
6722
query I rowsort
SELECT + col2 * + 29 FROM tab0 AS cor0
----
2378
29
957
query I rowsort
SELECT - + cor0.col2 + col2 * + 63 * col0 AS col1 FROM tab2 AS cor0
----
11880
127738
189088
onlyif mysql # use DIV operator for integer division
query I rowsort label-5026
SELECT DISTINCT + col1 DIV - ( - col1 ) + col1 * col0 - col0 FROM tab2 AS cor0
----
1265
211
4525
skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + col1 / - ( - col1 ) + col1 * col0 - col0 FROM tab2 AS cor0
----
1265
211
4525
query I rowsort
SELECT ALL - + col0 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * + CAST ( col2 * cor0.col0 AS REAL ) + - 61 + - 86 * + col0 FROM tab2 cor0
----
112883
44179
5196
query I rowsort
SELECT ALL - col2 * 45 + + col0 + + col0 FROM tab0 AS cor0
----
-1437
-3512
25
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT col1 + + 71 * + col2 FROM tab1 AS cor0
----
3860
4057
6829
query I rowsort
SELECT ALL - col1 * + cor0.col0 * - col0 + - cor0.col2 * col2 * ( col0 ) FROM tab2 AS cor0
----
-3584
-7979
306228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5033
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5033
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT + ( + 35 ) AS col0 FROM tab2 AS cor0
----
35
query I rowsort
SELECT ALL + 57 * - ( col1 ) + + col2 FROM tab2 AS cor0
----
-1740
-3337
-931
query I rowsort
SELECT DISTINCT ( + col0 ) + col2 * + 41 AS col2 FROM tab0 AS cor0
----
1377
3451
76
query I rowsort
SELECT - col2 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
1
33
82
query I rowsort
SELECT 22 * - col0 AS col2 FROM tab1
----
-1408
-1760
-66
query I rowsort
SELECT ALL + tab2.col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5041
SELECT ALL tab1.col0 DIV - col2 AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL tab1.col0 / - col2 AS col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT - col1 * ( - ( + cor0.col1 ) ) FROM tab1 AS cor0
----
100
169
676
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 5d28fbab8377f7a8b08a31395cb11d94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT + col0 DIV + 98 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5044
SELECT + col0 / + 98 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5045
SELECT + col2 * CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5045
SELECT + col2 * CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * + 14 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-111
-1239
-548
query I rowsort
SELECT - 67 * - 28 AS col0 FROM tab1 AS cor0
----
1876
1876
1876
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - 64 * - cor0.col2 + cor0.col2 * col0 - - cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
12546
2904
99
skipif mysql # not compatible
query I rowsort label-5048
SELECT - 64 * - cor0.col2 + cor0.col2 * col0 - - cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
12546
2904
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 21 col0 FROM tab0 AS cor0
----
103
22
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT 13 DIV - col2 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-12
1089
6724
skipif mysql # not compatible
query I rowsort label-5050
SELECT 13 / - col2 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-12
1089
6724
query I rowsort
SELECT - ( col1 ) - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT 22 * col0 * col1 FROM tab0 cor0
----
178178
45408
74690
query I rowsort
SELECT ALL + + ( 10 ) + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2906
-3239
-9206
query I rowsort
SELECT ALL - - col2 * + 78 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT - col1 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5056
SELECT + col1 * col0 + - CAST( + ( col1 ) AS SIGNED ) * - col1 FROM tab0 AS cor0
----
12804
16380
9460
skipif mysql # not compatible
query I rowsort label-5056
SELECT + col1 * col0 + - CAST ( + ( col1 ) AS INTEGER ) * - col1 FROM tab0 AS cor0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT + 2 * col2 DIV + 28 + - col1 FROM tab2 AS cor0
----
-15
-30
-58
skipif mysql # not compatible
query I rowsort label-5057
SELECT + 2 * col2 / + 28 + - col1 FROM tab2 AS cor0
----
-15
-30
-58
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 - - col0 + + col2 * col1 AS col1 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT 92 * + col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + - 57 AS col0 FROM tab0 AS cor0
----
-7355
-849
-92
query I rowsort
SELECT 1 * + col2 + 43 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT + tab2.col0 * - 53 FROM tab2
----
-371
-4134
-4187
query I rowsort
SELECT DISTINCT - 3 * col2 + - col2 * + 40 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT - 96 - col1 * 97 * col1 AS col2 FROM tab2 cor0
----
-28129
-337753
-93313
query I rowsort
SELECT DISTINCT + + col1 * + col1 + - col0 - col2 * col1 FROM tab0 cor0
----
4534
730
9277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5067
SELECT - col1 + cor0.col0 * - CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5067
SELECT - col1 + cor0.col0 * - CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col2 * ( - 31 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 7f773d8a5957c76d20ef5a120e6fc497
query I rowsort
SELECT ALL - col0 + ( - col0 ) * col1 * col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT + col1 * tab1.col1 DIV - col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5070
SELECT + col1 * tab1.col1 / - col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL col0 + 31 * col2 FROM tab0 AS cor0
----
1047
2631
66
query I rowsort
SELECT ALL col2 * col2 - ( 91 ) FROM tab0
----
-90
6633
998
query I rowsort
SELECT ALL + 2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL col0 DIV col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL col0 / col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL ( cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + col2 + col0 * + col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT 37 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
query I rowsort
SELECT DISTINCT - col1 * - 63 * 39 + col1 AS col1 FROM tab0 cor0
----
211388
223678
238426
query I rowsort
SELECT ALL - col2 * ( + 15 ) FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT DISTINCT cor0.col2 + 43 * col0 FROM tab1 AS cor0
----
183
2809
3536
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT + col0 DIV 68 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5083
SELECT + col0 / 68 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 99 AS REAL ) + col2 * 45 AS col0 FROM tab0 AS cor0
----
-54
1386
3591
query I rowsort
SELECT + col0 * col0 + col2 * - col2 FROM tab0 AS cor0
----
-513
1197
1224
query I rowsort
SELECT ALL ( + 10 ) FROM tab2 AS cor0
----
10
10
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5087
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * + 52 FROM tab1 cor0
----
2808
2964
4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5089
SELECT - CAST( NULL AS DECIMAL ) * - cor0.col0 + + col0 * col2 + col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5089
SELECT - CAST ( NULL AS REAL ) * - cor0.col0 + + col0 * col2 + col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - 55 ) + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2783
42
7407
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * ( col0 ) col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - 96 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-645
-7462
-7546
query I rowsort
SELECT ALL - ( + cor0.col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1, tab2 AS cor0
----
2
query I rowsort
SELECT ALL - ( - cor0.col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT ALL - 2 DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - 2 / + col2 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT col2 * col1 DIV 91 FROM tab0 cor0
----
1
31
82
skipif mysql # not compatible
query I rowsort label-5098
SELECT col2 * col1 / 91 FROM tab0 cor0
----
1
31
82
query I rowsort
SELECT - + col2 + + col2 * 38 FROM tab0 AS cor0
----
1221
3034
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT DISTINCT col2 * col1 * + 18 - col1 * - col0 DIV ( - col0 ) FROM tab1 AS cor0
----
10250
22451
25246
skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT col2 * col1 * + 18 - col1 * - col0 / ( - col0 ) FROM tab1 AS cor0
----
10250
22451
25246
query I rowsort
SELECT DISTINCT - col2 + 22 * col0 FROM tab0 AS cor0
----
1876
495
769
query I rowsort
SELECT DISTINCT col0 * 23 AS col0 FROM tab1 cor0
----
1472
1840
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT ALL + col1 DIV - cor0.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-5103
SELECT ALL + col1 / - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + + col1 * - 87 AS col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT - col1 * col2 * col0 - - 84 AS col1 FROM tab2
----
-119568
-50950
-5775
query I rowsort
SELECT + col0 + col2 * - ( - col2 + - col2 ) FROM tab1
----
18512
5835
6562
query I rowsort
SELECT DISTINCT + - col0 + col2 * - 99 AS col0 FROM tab0 AS cor0
----
-134
-3291
-8207
query I rowsort
SELECT DISTINCT ( + cor1.col0 ) AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT col1 * - 38 + + col2 * col2 FROM tab0
----
-2179
-3685
3266
query I rowsort
SELECT DISTINCT - - col2 - - 64 AS col2 FROM tab0 cor0
----
146
65
97
query I rowsort
SELECT col1 + - 46 * col0 FROM tab0 AS cor0
----
-1018
-1513
-4003
query I rowsort
SELECT ALL - - col0 + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 + 76 AS col0 FROM tab0
----
109
158
77
query I rowsort
SELECT col0 - - 41 AS col2 FROM tab2
----
119
120
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5115
SELECT CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-5115
SELECT CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL 76 * - col1 + + col2 FROM tab0
----
-6503
-6834
-7371
query I rowsort
SELECT - ( tab1.col1 ) * col1 - ( col1 ) * col1 * col1 FROM tab1
----
-1100
-18252
-2366
onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT + cor0.col2 DIV col2 + col0 AS col0 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5118
SELECT + cor0.col2 / col2 + col0 AS col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT 36 * + 25 + + col1 + 64 AS col0 FROM tab1
----
974
977
990
query I rowsort
SELECT DISTINCT 72 + - tab1.col2 + tab1.col2 FROM tab1
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * col2 * + col0 col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( - 15 ) + - tab2.col2 AS col1 FROM tab2
----
-41
-42
-53
query I rowsort
SELECT ALL - 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col2 * - col2 - cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
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
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT col2 * + col0 * + 19 FROM tab1 AS cor0
----
145920
3078
69312
query I rowsort
SELECT ALL col2 * col0 + + 77 AS col0 FROM tab2 AS cor0
----
2105
266
3079
query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - cor0.col1 + col1 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - col0 - cor0.col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - - col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT col2 + - ( - col0 ) DIV + col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-5135
SELECT col2 + - ( - col0 ) / + col2 FROM tab1
----
54
58
96
query I rowsort
SELECT - col0 + - 63 + col0 * col2 FROM tab0
----
-63
705
7146
query I rowsort
SELECT DISTINCT - col0 + 84 FROM tab0
----
-5
49
60
query I rowsort
SELECT - col0 * col2 * col2 + + ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT + col1 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + 91 FROM tab1, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT ALL col2 DIV 94 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL col2 / 94 FROM tab1
----
0
0
1
query I rowsort
SELECT ( tab0.col0 + col1 ) * + col2 * - 43 FROM tab0
----
-156090
-5676
-634680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT - ( + col1 ) + col0 DIV col0 + cor0.col1 * - col0 * col2 FROM tab2 AS cor0
----
-119710
-51050
-5889
skipif mysql # not compatible
query I rowsort label-5143
SELECT - ( + col1 ) + col0 / col0 + cor0.col1 * - col0 * col2 FROM tab2 AS cor0
----
-119710
-51050
-5889
query I rowsort
SELECT - 34 + + col1 FROM tab1 AS cor0
----
-21
-24
-8
query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5146
SELECT - CAST( NULL AS SIGNED ) * 75 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5146
SELECT - CAST ( NULL AS INTEGER ) * 75 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 55 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT + cor0.col2 + 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 3390d7df543c40945b57526f570e91a1
query I rowsort
SELECT ALL - - 52 * col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT ALL - tab1.col2 DIV + col0 col2 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - tab1.col2 / + col0 col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + 87 * - col2 FROM tab1 AS cor0
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT 92 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-92
skipif mysql # not compatible
query I rowsort label-5152
SELECT 92 / - col2 FROM tab0 AS cor0
----
-1
-2
-92
query I rowsort
SELECT ALL col0 * col1 + ( col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 * col0 AS col1 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT + 51 + cor1.col1 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
61
64
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT DISTINCT + tab0.col2 DIV - col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + tab0.col2 / - col2 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT DISTINCT col1 * 49 DIV + col1 col1 FROM tab0 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT col1 * 49 / + col1 col1 FROM tab0 AS cor0
----
49
query I rowsort
SELECT ALL - cor0.col2 * - 19 FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT ALL + - 84 * 55 AS col2 FROM tab0 AS cor0
----
-4620
-4620
-4620
query I rowsort
SELECT - col2 * - col2 - + col1 AS col0 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT + - ( ( col1 ) ) * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + col1 * + col0 + + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT col2 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + 6 * + tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 9b41e6dd522969716f6af170eadd1b3c
query I rowsort
SELECT DISTINCT + 62 AS col1 FROM tab1
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT + - cor0.col1 DIV - 18 FROM tab0 AS cor0
----
4
5
5
skipif mysql # not compatible
query I rowsort label-5166
SELECT + - cor0.col1 / - 18 FROM tab0 AS cor0
----
4
5
5
query I rowsort
SELECT - col0 * 80 AS col1 FROM tab1 AS cor0
----
-240
-5120
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT - - col0 + + 28 DIV + col0 FROM tab1 AS cor0
----
12
64
80
skipif mysql # not compatible
query I rowsort label-5168
SELECT - - col0 + + 28 / + col0 FROM tab1 AS cor0
----
12
64
80
query I rowsort
SELECT - 77 * + col2 * col1 - 18 FROM tab1
----
-108126
-43908
-96114
query I rowsort
SELECT DISTINCT + 91 * col1 FROM tab0
----
7826
8281
8827
query I rowsort
SELECT DISTINCT + - 1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT + + ( ( col1 ) ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT tab1.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL - tab2.col2 - - col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - 43 + + col2 FROM tab0
----
-10
-42
39
query I rowsort
SELECT DISTINCT - col1 * + tab0.col2 + col1 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col0 + tab1.col0 * ( + col1 ) FROM tab1
----
1120
704
81
query I rowsort
SELECT - ( + col0 ) * 16 * 36 + col0 * - tab2.col0 + + col0 * col2 * - col1 FROM tab2
----
-102779
-170664
-9940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * col0 col1 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT ALL + 18 * col0 AS col2 FROM tab0 AS cor0
----
1602
432
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + tab0.col0 col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col0 + ( + col1 * - col1 ) - col0 FROM tab1
----
-228
-329
-682
query I rowsort
SELECT + col2 - col1 * + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - col0 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col2 + - col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col0 * - 30 * 87 + cor0.col2 * - 27 AS col1 FROM tab0 AS cor0
----
-234504
-63531
-91377
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * cor0.col2 col1 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - + 24 AS col2 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT 54 + cor0.col2 AS col1 FROM tab0 AS cor0
----
136
55
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT ( col1 ) + col2 * - 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-5192
SELECT ( col1 ) + col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 52 col0 FROM tab2 AS cor0
----
-364
-4056
-4108
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col2 AS REAL ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT 2 * cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + 72 * col1 AS col2 FROM tab0 AS cor0
----
6192
6552
6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5197
SELECT - 85 + cor0.col2 * col0 * - CAST( col2 * - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
11852267
472307
70778795
skipif mysql # not compatible
query I rowsort label-5197
SELECT - 85 + cor0.col2 * col0 * - CAST ( col2 * - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
11852267
472307
70778795
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5198
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-5198
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL + ( col2 ) * - col2 * - 40 FROM tab1 cor0
----
116640
129960
368640
onlyif mysql # use DIV operator for integer division
query I rowsort label-5200
SELECT ALL + + col1 + col0 DIV col2 FROM tab0 cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL + + col1 + col0 / col2 FROM tab0 cor0
----
132
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT DISTINCT + + cor0.col0 * col2 DIV col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + + cor0.col0 * col2 / col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - + ( 80 ) + - cor0.col1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-177584
-329395
-737089
query I rowsort
SELECT + cor0.col0 + 61 * col2 FROM tab2 AS cor0
----
1654
1664
2397
query I rowsort
SELECT DISTINCT - - 41 * 48 AS col2 FROM tab0 AS cor0
----
1968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5205
SELECT ALL - ( - col1 ) * col2 DIV 98 + + 29 FROM tab0 AS cor0
----
105
29
57
skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - ( - col1 ) * col2 / 98 + + 29 FROM tab0 AS cor0
----
105
29
57
query I rowsort
SELECT ALL col0 + col1 * + col1 AS col0 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT + - ( - ( - col2 ) ) + - col2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
1023
6560
query I rowsort
SELECT + 47 + + col1 FROM tab0 AS cor0
----
133
138
144
query I rowsort
SELECT + - col2 * - ( col1 ) + col1 * + 16 * col2 FROM tab2 AS cor0
----
10982
14229
26078
query I rowsort
SELECT ALL + col0 + + 18 FROM tab0 cor0
----
107
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT DISTINCT - - col2 - 87 DIV col1 col1 FROM tab2 AS cor0
----
25
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - - col2 - 87 / col1 col1 FROM tab2 AS cor0
----
25
33
query I rowsort
SELECT - col1 * 42 + col1 FROM tab0 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT ALL - ( 73 ) + col0 FROM tab0 cor0
----
-38
-49
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 82 col1 FROM tab1 AS cor0
----
82
query I rowsort
SELECT 63 * - col1 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ( cor0.col2 ) + 90 * - cor0.col1 FROM tab0 AS cor0
----
-7707
-8108
-8729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT + ( - col1 ) DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5217
SELECT + ( - col1 ) / col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 * col1 AS REAL ) AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL ( + 68 * col0 ) FROM tab1
----
204
4352
5440
query I rowsort
SELECT + - cor0.col0 * + 20 AS col0 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT ALL col0 * col2 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - col0 * + col1 * cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5223
SELECT + col0 * CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5223
SELECT + col0 * CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * + col0 + 31 * col0 AS col2 FROM tab0 AS cor0
----
10057
1120
1536
query I rowsort
SELECT + + cor0.col0 - - col2 * - cor0.col2 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - col0 * col1 + - 98 FROM tab2 AS cor0
----
-1441
-315
-4700
query I rowsort
SELECT DISTINCT - col0 * + ( + col0 * + col1 ) + 11 AS col1 FROM tab0 AS cor0
----
-118814
-49525
-720800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + col2 col0 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5230
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5230
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + - col1 AS col0 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT 21 - 72 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-51
query I rowsort
SELECT 73 * + col1 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT DISTINCT tab0.col2 + + tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT + 97 DIV col0 AS col1 FROM tab1
----
1
1
32
skipif mysql # not compatible
query I rowsort label-5235
SELECT + 97 / col0 AS col1 FROM tab1
----
1
1
32
query I rowsort
SELECT col2 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL - + cor0.col0 * cor0.col2 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to b0121644d0817627bc8036c50f8e780d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT col2 + - col0 DIV - ( tab1.col2 ) + col1 * + 23 AS col1 FROM tab1
----
288
395
652
skipif mysql # not compatible
query I rowsort label-5238
SELECT col2 + - col0 / - ( tab1.col2 ) + col1 * + 23 AS col1 FROM tab1
----
288
395
652
query I rowsort
SELECT ALL tab2.col1 * + tab2.col1 * + col0 + - col0 FROM tab2
----
22752
271440
6720
query I rowsort
SELECT ALL col0 * + ( - col1 + + col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col1 - - ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT DISTINCT - col0 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT - col0 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col0 * cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col0 * col1 col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + col0 + col2 * - col1 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + col1 * 74 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT DISTINCT - 25 AS col0 FROM tab2, tab0 AS cor0
----
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT - col1 DIV col0 - - col2 DIV + tab1.col2 AS col0 FROM tab1
----
-7
1
1
skipif mysql # not compatible
query I rowsort label-5248
SELECT - col1 / col0 - - col2 / + tab1.col2 AS col0 FROM tab1
----
-7
1
1
query I rowsort
SELECT + col0 * - ( col0 ) * col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT - - col2 * 84 AS col2 FROM tab1 cor0
----
4536
4788
8064
query I rowsort
SELECT DISTINCT + + ( - ( col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + ( 79 ) FROM tab2 AS cor0
----
79
query I rowsort
SELECT - + ( col1 ) + cor0.col0 - + col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT DISTINCT - col0 + - col0 + 98 DIV - col1 FROM tab0
----
-179
-49
-71
skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - col0 + - col0 + 98 / - col1 FROM tab0
----
-179
-49
-71
query I rowsort
SELECT col1 + 79 * col0 FROM tab1
----
263
5066
6333
query I rowsort
SELECT - - 25 - ( + col1 ) FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT DISTINCT - col1 * + 38 AS col0 FROM tab1 cor0
----
-380
-494
-988
query I rowsort
SELECT col0 * 48 * - col1 AS col1 FROM tab2
----
-10416
-220896
-64464
query I rowsort
SELECT 78 * col2 FROM tab1 cor0
----
4212
4446
7488
query I rowsort
SELECT ALL - 93 AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT - ( 59 ) FROM tab0
----
-59
-59
-59
query I rowsort
SELECT ALL + 91 FROM tab2, tab0 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT DISTINCT 46 DIV col0 FROM tab2
----
0
6
skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT 46 / col0 FROM tab2
----
0
6
query I rowsort
SELECT 3 * cor0.col2 AS col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT - - 81 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2145
3476
8180
query I rowsort
SELECT 85 * - col0 AS col2 FROM tab0
----
-2040
-2975
-7565
query I rowsort
SELECT DISTINCT col0 * - 91 AS col1 FROM tab1 AS cor0
----
-273
-5824
-7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-5268
SELECT DISTINCT col2 DIV col2 AS col2 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT col2 / col2 AS col2 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT + + col0 + + 2 AS col0 FROM tab1 AS cor0
----
5
66
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL 67 + col0 * - col1 + col0 AS col1 FROM tab2
----
-1197
-143
-4457
query I rowsort
SELECT ALL col1 + + col0 * 59 FROM tab1
----
203
3786
4733
query I rowsort
SELECT - 17 * + col0 AS col0 FROM tab2
----
-119
-1326
-1343
query I rowsort
SELECT DISTINCT - 57 + - col0 FROM tab1
----
-121
-137
-60
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 FROM tab1, tab1 AS cor0
----
1040
640
78
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7
query I rowsort
SELECT - - col1 * - col2 * col2 AS col0 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 71 col0 FROM tab0 cor0
----
-6106
-6461
-6887
query I rowsort
SELECT - col2 * ( col0 * col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - tab1.col1 - - 60 AS col2 FROM tab1
----
34
47
50
query I rowsort
SELECT - + col1 * + 66 AS col1 FROM tab1 AS cor0
----
-1716
-660
-858
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 49 AS REAL ) FROM tab1 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ( - col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col2 + - col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col2 + col2 * col2 + 84 AS col2 FROM tab2 AS cor0
----
1566
786
840
query I rowsort
SELECT + + 19 * - col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722
query I rowsort
SELECT ALL 97 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca
query I rowsort
SELECT + 9 + - cor0.col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-155
-57
7
query I rowsort
SELECT DISTINCT col1 * + col2 + - col2 * cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + ( col0 ) * col0 + 26 * col2 AS col0 FROM tab0 AS cor0
----
-1199
-5789
282
query I rowsort
SELECT DISTINCT - 13 * col1 AS col0 FROM tab1 AS cor0
----
-130
-169
-338
onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT DISTINCT - + 79 * + col1 + - col1 DIV + 91 - + col0 AS col0 FROM tab1 AS cor0
----
-1107
-2057
-854
skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - + 79 * + col1 + - col1 / + 91 - + col0 AS col0 FROM tab1 AS cor0
----
-1107
-2057
-854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 - + col1 * - col2 col0 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT ALL + col0 * ( + col0 ) * col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col1 + col1 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col1 + col1 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ( - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT DISTINCT - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + cor0.col2 * - col0 + - col0 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT - - 65 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT ALL + 18 + col0 AS col2 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT ALL - cor0.col0 * 75 + + col2 FROM tab1 AS cor0
----
-171
-4743
-5904
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - ( + col2 + - col2 ) * 88 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 63 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col1 + - col0 col1 FROM tab2
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT col1 DIV 2 AS col1 FROM tab0
----
43
45
48
skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT col1 / 2 AS col1 FROM tab0
----
43
45
48
query I rowsort
SELECT DISTINCT + col2 + 38 FROM tab0 cor0
----
120
39
71
query I rowsort
SELECT + - col2 + + 75 * 62 FROM tab1 cor0
----
4554
4593
4596
query I rowsort
SELECT + - col1 * + ( + 5 ) * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-3326
-443
-749
query I rowsort
SELECT DISTINCT - col1 + 87 FROM tab2 AS cor0
----
28
56
70
query I rowsort
SELECT ALL col1 * - col1 + col1 * tab0.col2 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT - col0 * tab1.col2 + col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL + tab0.col1 * 39 + - ( - tab0.col1 + - col0 ) AS col0 FROM tab0
----
3464
3729
3915
query I rowsort
SELECT ALL + col1 + + 88 * + tab1.col0 FROM tab1
----
290
5642
7053
query I rowsort
SELECT DISTINCT col2 * 86 + col1 FROM tab2
----
2295
2353
3285
query I rowsort
SELECT ALL - col0 * - col2 + col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + cor0.col1 * - 40 AS col2 FROM tab2, tab0 AS cor0
----
-3440
-3640
-3880
query I rowsort
SELECT ALL + + col0 + ( 15 ) * col0 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT DISTINCT + col1 * + 48 + + 68 - cor0.col0 AS col2 FROM tab0 AS cor0
----
4172
4347
4689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT - col1 + CAST( NULL AS SIGNED ) * 41 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5321
SELECT - col1 + CAST ( NULL AS INTEGER ) * 41 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * ( + col0 ) + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT cor0.col0 + + ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + cor0.col2 + - 53 * col2 + col2 AS col2 FROM tab0 cor0
----
-1683
-4182
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT ALL + col0 DIV - 22 - col0 FROM tab0 AS cor0
----
-25
-36
-93
skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + col0 / - 22 - col0 FROM tab0 AS cor0
----
-25
-36
-93
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
query I rowsort
SELECT - col1 * 32 * tab2.col2 AS col1 FROM tab2
----
-20672
-26784
-49088
query I rowsort
SELECT ALL + 0 + + 75 FROM tab1, tab1 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL - cor0.col1 * - 51 FROM tab2 cor0
----
1581
3009
867
query I rowsort
SELECT ALL + cor0.col1 * 16 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT ALL + col0 + - ( - col0 ) * cor0.col0 FROM tab2 cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT DISTINCT + + col1 DIV ( - col2 * + col1 ) FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT + + col1 / ( - col2 * + col1 ) FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab1
----
-2808
-2964
-4992
onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT DISTINCT + ( + col0 ) DIV - cor0.col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + ( + col0 ) / - cor0.col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT col0 + + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - 15 * col1 + col1 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 + + 42 FROM tab0 AS cor0
----
-20
-2772
-7331
query I rowsort
SELECT - + col2 + + col0 + cor0.col0 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT + 45 - 15 * col2 AS col2 FROM tab2 AS cor0
----
-345
-360
-525
query I rowsort
SELECT - 13 + 42 * + col0 FROM tab2 AS cor0
----
281
3263
3305
query I rowsort
SELECT + col0 + tab1.col2 AS col2 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - + 7 * cor0.col1 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT col0 * + col2 + 23 FROM tab1 cor0
----
185
3671
7703
query I rowsort
SELECT ALL + + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT - 29 DIV + col1 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-5347
SELECT - 29 / + col1 FROM tab1 AS cor0
----
-1
-2
-2
query I rowsort
SELECT col0 - col0 * 67 AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT - + col1 + + 41 + - col2 AS col2 FROM tab2 AS cor0
----
-14
-17
-44
query I rowsort
SELECT col1 * + col2 - - 74 FROM tab2 AS cor0
----
1608
720
911
query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col2 + col1 + - 96 FROM tab1 AS cor0
----
-124
-143
-179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT + col1 * 11 - - cor0.col0 * + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5353
SELECT + col1 * 11 - - cor0.col0 * + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * + col2 - 89 AS col2 FROM tab1 AS cor0
----
-3005
-3338
-9305
query I rowsort
SELECT ALL col0 * + col2 * 21 + col1 AS col1 FROM tab2 AS cor0
----
4000
42647
63059
onlyif mysql # use DIV operator for integer division
query I rowsort label-5356
SELECT col2 DIV + col1 + tab2.col1 * + col0 AS col0 FROM tab2
----
1345
217
4602
skipif mysql # not compatible
query I rowsort label-5356
SELECT col2 / + col1 + tab2.col1 * + col0 AS col0 FROM tab2
----
1345
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT DISTINCT col0 DIV + col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT col0 / + col0 AS col1 FROM tab2
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col2 FROM tab0
----
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5359
SELECT tab0.col1 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 * 27 AS col0 FROM tab2
----
1593
459
837
query I rowsort
SELECT + - 17 + - ( col2 * + col2 ) FROM tab1 cor0
----
-2933
-3266
-9233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + + cor0.col2 col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + ( + cor0.col0 ) + col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * col1 col1 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL 25 * ( tab1.col0 ) FROM tab1
----
1600
2000
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT + cor0.col0 DIV ( 53 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5366
SELECT + cor0.col0 / ( 53 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT ALL - - col0 * 99 AS col2 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT + col0 * - ( 96 ) AS col1 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT ALL - col1 * 46 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT + col1 * 89 + cor0.col2 + - col1 FROM tab1 AS cor0
----
1240
2342
937
query I rowsort
SELECT DISTINCT + col1 * - col0 + tab2.col1 * col2 AS col1 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT cor0.col0 * - col1 - + 62 * col2 FROM tab1 cor0
----
-3426
-4174
-6992
query I rowsort
SELECT + - cor0.col1 + + 24 FROM tab0 AS cor0
----
-62
-67
-73
query I rowsort
SELECT ALL + 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT - CAST( col1 AS SIGNED ) + - col0 + col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5375
SELECT - CAST ( col1 AS INTEGER ) + - col0 + col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0, tab0 AS cor0
----
-77
query I rowsort
SELECT ALL col0 * - 80 AS col0 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT DISTINCT - col0 + - 27 FROM tab2 AS cor0
----
-105
-106
-34
query I rowsort
SELECT 57 * + cor0.col0 + + col0 FROM tab1 cor0
----
174
3712
4640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 + + cor0.col0 * - CAST( col2 AS SIGNED ) + + col0 * + 72 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 + + cor0.col0 * - CAST ( col2 AS INTEGER ) + + col0 * + 72 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * - col1 - + col0 * + col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT - + 60 + col2 FROM tab0 AS cor0
----
-27
-59
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 63 * + col0 AS col2 FROM tab2 AS cor0
----
-441
-4914
-4977
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5385
SELECT DISTINCT - - ( + 11 ) * col0 * CAST( col1 AS SIGNED ) + + col2 * col0 + col2 FROM tab0 cor0
----
23529
37381
96469
skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - - ( + 11 ) * col0 * CAST ( col1 AS INTEGER ) + + col2 * col0 + col2 FROM tab0 cor0
----
23529
37381
96469
query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - ( 45 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT ALL + 68 + + tab0.col0 AS col1 FROM tab0
----
103
157
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 + + 38 col0 FROM tab0 AS cor0
----
127
127
127
query I rowsort
SELECT + col1 * col1 + cor0.col2 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1155
232
2805
onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT col0 DIV + col1 - tab2.col2 FROM tab2
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-5391
SELECT col0 / + col1 - tab2.col2 FROM tab2
----
-25
-27
-34
query I rowsort
SELECT col0 + - tab2.col2 + + col1 FROM tab2
----
11
111
58
query I rowsort
SELECT col1 + + 2 FROM tab2 AS cor0
----
19
33
61
query I rowsort
SELECT + col2 + + 59 * ( - cor0.col1 * - 26 ) AS col1 FROM tab2 AS cor0
----
26116
47581
90532
skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( + col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT ALL - col2 DIV + 91 - + col0 * + tab0.col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - col2 / + 91 - + col0 * + tab0.col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT 84 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT col0 * + 7 * - ( + col1 ) - + 39 AS col0 FROM tab1 AS cor0
----
-4519
-585
-7319
query I rowsort
SELECT 85 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col1 + col0 col2 FROM tab1 AS cor0
----
1172
2187
904
query I rowsort
SELECT + - 83 * + col0 AS col2 FROM tab1 AS cor0
----
-249
-5312
-6640
onlyif mysql # use DIV operator for integer division
query I rowsort label-5402
SELECT + 47 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5402
SELECT + 47 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT DISTINCT - 36 DIV col0 AS col0 FROM tab1 AS cor0
----
-12
0
skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - 36 / col0 AS col0 FROM tab1 AS cor0
----
-12
0
query I rowsort
SELECT col0 * + cor0.col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + + 63 FROM tab0 cor0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * 29 col2 FROM tab1 AS cor0
----
1592
1663
2797
query I rowsort
SELECT ALL - ( col1 ) * + cor0.col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - col2 + cor0.col2 * 68 * + col2 AS col2 FROM tab2 AS cor0
----
45994
49599
98230
onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT DISTINCT 74 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT 74 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + col0 * - cor0.col1 + 98 AS col2 FROM tab2 AS cor0
----
-119
-1245
-4504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + + 29 + col0 FROM tab0 AS cor0
----
118
53
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-5413
SELECT cor0.col0 + - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-5413
SELECT cor0.col0 + - col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT DISTINCT - col0 * col2 + - ( 38 * + col2 ) FROM tab1 AS cor0
----
-11328
-2214
-5814
query I rowsort
SELECT + - col0 * col2 + ( - 78 * - col2 ) AS col0 FROM tab2 AS cor0
----
-38
0
1917
onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT + col2 * - col2 - 38 * col2 DIV col2 col1 FROM tab1 AS cor0
----
-2954
-3287
-9254
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5416
SELECT + col2 * - col2 - 38 * col2 / col2 col1 FROM tab1 AS cor0
----
-2954
-3287
-9254
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
SELECT DISTINCT + 87 + + col1 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + 87 + + col1 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 4 * + col1 AS col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT + + col1 * + 1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5420
SELECT + col2 + - CAST( NULL AS DECIMAL ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5420
SELECT + col2 + - CAST ( NULL AS REAL ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 9 ) * + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7d61f430b3f73ad1ee93cde0973b3fa7
query I rowsort
SELECT ALL 6 * col0 + + col0 FROM tab0
----
168
245
623
query I rowsort
SELECT - + 58 + col2 FROM tab1 cor0
----
-1
-4
38
query I rowsort
SELECT ALL col1 + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT ALL - 98 * col1 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2269
368
7942
query I rowsort
SELECT ALL col2 * 42 AS col1 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT + 18 + 27 AS col0 FROM tab1 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5428
SELECT - CAST( col1 AS SIGNED ) - - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5428
SELECT - CAST ( col1 AS INTEGER ) - - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 36 - col2 AS col1 FROM tab0
----
-46
3
35
query I rowsort
SELECT DISTINCT + - 65 + + col1 * ( col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
36415
4147
99775
query I rowsort
SELECT ALL 3 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT ALL ( 62 ) * + col2 FROM tab1
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT ALL col1 DIV - 38 - col0 AS col0 FROM tab0
----
-26
-37
-91
skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL col1 / - 38 - col0 AS col0 FROM tab0
----
-26
-37
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ( - col0 ) + col1 + + col2 FROM tab0
----
63
84
95
query I rowsort
SELECT - col1 + col2 * + col1 * + 70 FROM tab1
----
39890
87347
98254
query I rowsort
SELECT DISTINCT 8 + col2 AS col1 FROM tab2
----
34
35
46
query I rowsort
SELECT - col2 * col0 - - 42 FROM tab2 cor0
----
-147
-1986
-2960
query I rowsort
SELECT col1 * + col2 + + 50 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1188
3362
47
query I rowsort
SELECT - 10 + col0 * + col0 AS col0 FROM tab2
----
39
6074
6231
query I rowsort
SELECT - 50 FROM tab0, tab0 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT 59 + - col2 * - 87 * - 56 AS col0 FROM tab2
----
-126613
-131485
-185077
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 + - 92 ) col1 FROM tab2
----
-13
-14
-85
query I rowsort
SELECT - 66 * - col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT + cor0.col1 + col0 * + ( 66 + col0 ) FROM tab0 AS cor0
----
13886
2246
3632
query I rowsort
SELECT DISTINCT + - col0 * - col2 + 54 AS col1 FROM tab0 cor0
----
7352
846
89
query I rowsort
SELECT ALL + col0 * 89 FROM tab2
----
623
6942
7031
query I rowsort
SELECT ALL - col2 * col0 * - 65 AS col1 FROM tab0
----
2275
474370
51480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 91 * 46 col0 FROM tab2 AS cor0
----
4193
4264
4265
query I rowsort
SELECT ALL + - col2 + + 46 AS col2 FROM tab1 AS cor0
----
-11
-50
-8
query I rowsort
SELECT ALL + col1 * - 72 + col1 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT + ( 73 ) FROM tab2 cor0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5453
SELECT ALL - - CAST( NULL AS SIGNED ) - + 64 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - - CAST ( NULL AS INTEGER ) - + 64 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 70 * col1 + col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT DISTINCT + + ( col2 ) + cor0.col2 * 61 AS col2 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL - + ( - cor0.col2 ) * col0 - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT DISTINCT col0 + 28 DIV col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
118
34
skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT col0 + 28 / col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
118
34
query I rowsort
SELECT DISTINCT + ( - 73 ) + + col0 AS col2 FROM tab2 AS cor0
----
-66
5
6
query I rowsort
SELECT - + col2 * col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT - col0 DIV 49 - col2 FROM tab1
----
-54
-58
-97
skipif mysql # not compatible
query I rowsort label-5460
SELECT - col0 / 49 - col2 FROM tab1
----
-54
-58
-97
query I rowsort
SELECT + + col0 * - col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + + col1 * col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT 64 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT col2 * ( col1 * col1 ) + 66 AS col2 FROM tab2 AS cor0
----
11048
26013
90572
query I rowsort
SELECT ALL - col2 + 66 FROM tab2 AS cor0
----
28
39
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL + col0 DIV - 82 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + col0 / - 82 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + - col0 * - ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col0 * ( - col1 ) - col2 * - tab0.col2 * col2 FROM tab0
----
-3394
33873
543269
query I rowsort
SELECT DISTINCT col1 + col0 * + 94 AS col0 FROM tab2
----
689
7391
7443
query I rowsort
SELECT DISTINCT col0 + - col0 * - tab0.col0 AS col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT - col0 + 37 AS col1 FROM tab1
----
-27
-43
34
query I rowsort
SELECT ALL col1 * col2 + 85 FROM tab1
----
1333
1489
655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 * - ( + 28 * col0 ) col0 FROM tab2
----
1372
170352
174748
query I rowsort
SELECT - + col1 + 64 AS col0 FROM tab2 AS cor0
----
33
47
5
query I rowsort
SELECT cor0.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT - col0 DIV + tab0.col2 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5477
SELECT - col0 / + tab0.col2 AS col0 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ( ( - tab1.col2 ) ) * col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 22 * ( - col1 ) AS col2 FROM tab2
----
-1298
-374
-682
query I rowsort
SELECT ALL 11 * - 84 FROM tab0
----
-924
-924
-924
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col0 - col1 * + 49 AS col1 FROM tab0 AS cor0
----
-4190
-4370
-4718
query I rowsort
SELECT - col2 * cor0.col2 + + 24 AS col2 FROM tab1 AS cor0
----
-2892
-3225
-9192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT - col1 + - cor0.col1 DIV col0 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-5484
SELECT - col1 + - cor0.col1 / col0 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT 20 - + tab1.col2 AS col2 FROM tab1
----
-34
-37
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT ALL - 71 + - cor0.col0 * col0 FROM tab1 cor0
----
-4167
-6471
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 + ( 23 ) FROM tab1
----
101
1063
663
skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 + ( 23 ) FROM tab1
----
101
1063
663
query I rowsort
SELECT DISTINCT col1 + col1 + tab1.col0 AS col0 FROM tab1
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * col0 col2 FROM tab2 AS cor0
----
-497
-5538
-5609
onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT DISTINCT - col2 * + col1 + + col0 DIV + ( col1 ) AS col2 FROM tab2
----
-1533
-642
-837
skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - col2 * + col1 + + col0 / + ( col1 ) AS col2 FROM tab2
----
-1533
-642
-837
query I rowsort
SELECT 94 * 53 * col0 AS col2 FROM tab0
----
119568
174370
443398
onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT DISTINCT + 85 DIV + 26 + col0 FROM tab2
----
10
81
82
skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + 85 / + 26 + col0 FROM tab2
----
10
81
82
query I rowsort
SELECT DISTINCT + tab1.col1 + + col0 * 27 * col2 AS col2 FROM tab1
----
207373
4400
98506
query I rowsort
SELECT DISTINCT col2 * col0 + - ( - col0 ) + col1 AS col2 FROM tab0
----
167
7478
902
query I rowsort
SELECT DISTINCT col0 - - tab1.col2 * + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL - tab0.col2 + - col1 AS col0 FROM tab0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5498
SELECT CAST( - 36 AS SIGNED ) + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to db97a09b69b1d23eb36d3546e04ea367
skipif mysql # not compatible
query I rowsort label-5498
SELECT CAST ( - 36 AS INTEGER ) + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to db97a09b69b1d23eb36d3546e04ea367
query I rowsort
SELECT ALL - 43 + - col2 AS col1 FROM tab1 AS cor0
----
-100
-139
-97
query I rowsort
SELECT ALL col1 * col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 75 AS col0 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 75 AS col0 FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT + col1 + + col0 * ( - col1 ) + + col1 FROM tab1 AS cor0
----
-1014
-26
-620
query I rowsort
SELECT ALL - 40 * col1 FROM tab2 AS cor0
----
-1240
-2360
-680
query I rowsort
SELECT DISTINCT + col1 + 83 * + col0 FROM tab2 AS cor0
----
612
6533
6574
query I rowsort
SELECT DISTINCT + col2 * 16 AS col0 FROM tab0 AS cor0
----
1312
16
528
query I rowsort
SELECT cor0.col2 * - col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT cor0.col1 + 20 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
571
579
777
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) * col2 col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT - col1 DIV - 62 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5510
SELECT - col1 / - 62 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - cor0.col1 * ( col2 ) + + col1 + + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1275
-1643
-3009
onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT + col1 + cor0.col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5513
SELECT + col1 + cor0.col0 / - col0 AS col0 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL col0 - - ( col0 + col1 ) FROM tab0 cor0
----
134
167
269
query I rowsort
SELECT DISTINCT col0 + + ( col0 * - col0 ) FROM tab2 cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT + - cor0.col2 DIV - col0 - col1 * col2 FROM tab0 AS cor0
----
-2837
-7462
-97
skipif mysql # not compatible
query I rowsort label-5516
SELECT + - cor0.col2 / - col0 - col1 * col2 FROM tab0 AS cor0
----
-2837
-7462
-97
query I rowsort
SELECT ALL ( + col2 ) - col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - 70 * col0 AS col0 FROM tab1
----
-210
-4480
-5600
query I rowsort
SELECT ALL 24 * - col0 + - col2 - + col0 AS col2 FROM tab0
----
-2307
-633
-876
query I rowsort
SELECT col1 * - 15 * col2 + cor0.col1 - - col2 FROM tab2 AS cor0
----
-12497
-22925
-9635
query I rowsort
SELECT + col2 * - cor0.col0 * + col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - + ( 41 ) * col0 AS col0 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT + + col2 * col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 * + col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 65 + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-3348
-57
1440
query I rowsort
SELECT ALL + ( 97 ) + + col0 AS col1 FROM tab0 AS cor0
----
121
132
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT DISTINCT - - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - 34 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT - 48 * - 4 - - col1 FROM tab0
----
278
283
289
onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT ALL tab1.col1 DIV 58 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL tab1.col1 / 58 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT col0 * ( 71 ) DIV - col2 + + col2 AS col0 FROM tab0
----
-18
-2484
5
skipif mysql # not compatible
query I rowsort label-5532
SELECT col0 * ( 71 ) / - col2 + + col2 AS col0 FROM tab0
----
-18
-2484
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * - col2 + col1 * - col2 col1 FROM tab0
----
-132
-14760
-3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT ALL col2 DIV - 42 - col1 AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL col2 / - 42 - col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL col1 + + 95 * + tab0.col1 - col2 * col0 * + 96 AS col0 FROM tab0
----
-67776
-691872
5952
query I rowsort
SELECT ALL - tab2.col0 - + ( tab2.col2 ) * col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT - - col1 * - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - + cor0.col2 + - ( col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col0 + - 10 FROM tab1 AS cor0
----
-172
-3658
-7690
query I rowsort
SELECT - - 19 + col0 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT ALL - col1 + + 98 * col2 FROM tab0 cor0
----
1
3148
7945
query I rowsort
SELECT + col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * - 2 * - col0 col0 FROM tab0 AS cor0
----
11392
3072
4480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5544
SELECT ALL + + CAST( col2 AS SIGNED ) + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + + CAST ( col2 AS INTEGER ) + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col0 * - col1 * + col1 + - col1 * col2 FROM tab2
----
-23477
-273052
-7564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 + - col0 ) col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - ( + 41 ) * + col2 - - col2 * cor0.col2 FROM tab0 AS cor0
----
-264
-40
3362
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL - + col2 * col1 + + col0 DIV CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - + col2 * col1 + + col0 / CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT - col1 - cor0.col2 * col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + col2 * - 43 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - ( col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + 31 * col1 + col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) - - col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - ( col1 ) - col0 * ( - col2 + col2 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 * col2 * col1 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col0 * - col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT DISTINCT col0 + col2 DIV - col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT col0 + col2 / - col2 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + 44 * - col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2 cor0
----
-48
query I rowsort
SELECT ALL + - 65 + col0 * 89 AS col1 FROM tab0 AS cor0
----
2071
3050
7856
onlyif mysql # use DIV operator for integer division
query I rowsort label-5563
SELECT cor0.col1 * col0 DIV col2 AS col1 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-5563
SELECT cor0.col1 * col0 / col2 AS col1 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT DISTINCT 86 + - cor0.col1 FROM tab2 AS cor0
----
27
55
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT col2 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5565
SELECT col2 / - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * col1 * + 91 AS col2 FROM tab2 AS cor0
----
26299
316771
87451
query I rowsort
SELECT col2 + + 41 AS col0 FROM tab1 cor0
----
137
95
98
query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT col0 * - col2 * + ( col1 ) - col1 FROM tab1
----
-36490
-4238
-99853
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 36 col0 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT + + cor0.col2 + + ( col2 + + col2 ) FROM tab1 cor0
----
162
171
288
onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT + + col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5573
SELECT + + col2 / + col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT col2 + - 32 FROM tab2 AS cor0
----
-5
-6
6
query I rowsort
SELECT - col0 * ( 89 ) FROM tab1 cor0
----
-267
-5696
-7120
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab1 cor0
----
3
64
80
query I rowsort
SELECT 97 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT - - ( col0 ) DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5578
SELECT - - ( col0 ) / col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - - 71 + col1 FROM tab0 AS cor0
----
157
162
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL + col2 DIV 1 col1 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + col2 / 1 col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + 76 * + cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b0f893c51e418c43f5ded62f151d9453
onlyif mysql # use DIV operator for integer division
query I rowsort label-5582
SELECT col1 * + 70 * col2 + + col0 DIV + col1 FROM tab0
----
198660
522340
6790
skipif mysql # not compatible
query I rowsort label-5582
SELECT col1 * + 70 * col2 + + col0 / + col1 FROM tab0
----
198660
522340
6790
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + 42 AS col1 FROM tab0 AS cor0
----
-1183
-534
-7879
query I rowsort
SELECT col0 * col1 + 93 FROM tab2 cor0
----
1436
310
4695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5585
SELECT - col1 * cor0.col1 + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
skipif mysql # not compatible
query I rowsort label-5585
SELECT - col1 * cor0.col1 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL 29 * - col1 + col2 FROM tab0
----
-2461
-2557
-2812
query I rowsort
SELECT ALL ( + col2 + 6 * col2 ) FROM tab2
----
182
189
266
query I rowsort
SELECT ALL - - col2 * - col1 + - cor0.col0 * 53 FROM tab1 AS cor0
----
-1563
-3962
-5488
query I rowsort
SELECT DISTINCT - 4 * + col0 * + col2 + 65 + col2 * + 70 * col0 AS col0 FROM tab0 AS cor0
----
2375
481733
52337
query I rowsort
SELECT 22 + + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
122
191
698
query I rowsort
SELECT DISTINCT 24 - col0 FROM tab1 cor0
----
-40
-56
21
query I rowsort
SELECT DISTINCT + - col0 + col2 * cor0.col1 + + 3 * col2 FROM tab2 cor0
----
1534
681
911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT - cor0.col2 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5593
SELECT - cor0.col2 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - col0 - col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT col1 * col0 + col0 * - col2 AS col1 FROM tab0
----
1272
3360
801
query I rowsort
SELECT tab1.col2 + + col1 AS col2 FROM tab1 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT tab2.col1 * - col1 * tab2.col2 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - col2 * + col1 + col2 AS col1 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT col0 DIV col0 + col0 col0 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT col0 / col0 + col0 col0 FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT ( - tab0.col1 ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 - - col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - - col2 * - col1 * 20 + col0 FROM tab1 AS cor0
----
-11336
-24880
-28077
query I rowsort
SELECT - + 82 * col1 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT ALL 29 - col0 * + col2 FROM tab0
----
-6
-7269
-763
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT ( col1 ) IN ( col0 )
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + col2 * + col0 col1 FROM tab1
----
159
3584
7600
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) > ( NULL )
----
query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( col0 - col1 * - col2 )
----
query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( col1 ) <= NULL
----
query I rowsort
SELECT - col0 + col2 + col2 * col0 AS col2 FROM tab1
----
213
3641
7696
query I rowsort
SELECT DISTINCT col0 - - col2 * tab2.col1 FROM tab2
----
1612
725
844
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < ( col2 )
----
35
97
1
89
91
82
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * col1 ) <> col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT DISTINCT - col0 + col1 DIV col0 AS col2 FROM tab0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - col0 + col1 / col0 AS col2 FROM tab0
----
-21
-33
-88
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL <= col0
----
query I rowsort
SELECT - tab2.col2 + - col2 AS col1 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT ALL + col1 - + col0 * + tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) NOT IN ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE col1 IN ( col1 )
----
-24
-35
-89
query I rowsort
SELECT - tab0.col1 * + col2 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT ALL col2 + col0 DIV tab0.col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL col2 + col0 / tab0.col0 FROM tab0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT DISTINCT - col2 DIV + tab0.col2 + col0 AS col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - col2 / + tab0.col2 + col0 AS col1 FROM tab0
----
23
34
88
query I rowsort
SELECT + col0 - + col1 * col1 * col1 AS col2 FROM tab2
----
-205301
-29784
-4834
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT col2 - tab1.col1 DIV - col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5625
SELECT col2 - tab1.col1 / - col2 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col0 * + col2 * - tab2.col2 AS col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN + col0 AND - col2
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT DISTINCT - col2 DIV col2 + tab0.col1 DIV + col2 FROM tab0
----
0
1
96
skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - col2 / col2 + tab0.col1 / + col2 FROM tab0
----
0
1
96
query I rowsort
SELECT ALL tab1.col1 * - col0 AS col2 FROM tab1 WHERE col0 <= col2
----
-1040
-78
query I rowsort
SELECT - tab2.col0 + col1 * - col0 AS col1 FROM tab2
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col1 * + col2 - col0 col0 FROM tab2 WHERE NOT col2 IN ( col2 )
----
query I rowsort
SELECT ALL + col1 * tab1.col1 * - col1 - - tab1.col2 FROM tab1
----
-17522
-2101
-943
query I rowsort
SELECT + + col2 + col1 * 63 AS col2 FROM tab2 AS cor0
----
1109
1980
3743
query I rowsort
SELECT - col1 * cor0.col1 - ( col0 * - cor0.col0 + col1 * col0 ) AS col1 FROM tab1 AS cor0
----
-745
3356
5191
onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT DISTINCT col1 DIV col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT col1 / col1 + - col1 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT + col1 * - col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5635
SELECT + col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 91 * col2 FROM tab1 cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT 8 * - col2 AS col0 FROM tab1 AS cor0
----
-432
-456
-768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * - col1 col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL - - 72 * col1 AS col1 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT + 93 * col1 AS col1 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab2 cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT + ( - tab2.col1 + col2 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL 31 * + tab2.col1 FROM tab2
----
1829
527
961
query I rowsort
SELECT ALL - + 35 * col0 FROM tab2 AS cor0
----
-245
-2730
-2765
query I rowsort
SELECT ALL - + 54 + - col1 * 16 AS col0 FROM tab2 AS cor0
----
-326
-550
-998
query I rowsort
SELECT DISTINCT col0 * col1 + - 20 FROM tab0 AS cor0
----
2044
3375
8079
query I rowsort
SELECT + + col2 * - col1 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - col0 + col2 * col0 * col1 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT DISTINCT + 79 * col2 FROM tab2 cor0
----
2054
2133
3002
query I rowsort
SELECT - - col1 + + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col0 * + ( + col2 + col0 ) * - col2 FROM tab2 AS cor0
----
210912
351234
6426
query I rowsort
SELECT ALL - col2 + + 94 FROM tab0 AS cor0
----
12
61
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT + col1 DIV ( 10 ) + - cor0.col0 FROM tab1 AS cor0
----
-1
-63
-79
skipif mysql # not compatible
query I rowsort label-5654
SELECT + col1 / ( 10 ) + - cor0.col0 FROM tab1 AS cor0
----
-1
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT - cor0.col1 + + CAST( + col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
skipif mysql # not compatible
query I rowsort label-5655
SELECT - cor0.col1 + + CAST ( + col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT col1 + + 20 * - col1 * cor0.col1 FROM tab1 AS cor0
----
-13494
-1990
-3367
query I rowsort
SELECT ALL + col0 + 45 FROM tab2 AS cor0
----
123
124
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT DISTINCT - col2 + ( - col0 ) * col0 DIV + 8 FROM tab2 AS cor0
----
-33
-786
-818
skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT - col2 + ( - col0 ) * col0 / + 8 FROM tab2 AS cor0
----
-33
-786
-818
query I rowsort
SELECT DISTINCT - col2 * col2 + 20 AS col1 FROM tab1 AS cor0
----
-2896
-3229
-9196
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5660
SELECT - - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5660
SELECT - - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * ( col2 ) * - col2 + 85 FROM tab2 AS cor0
----
-17491
-19598
-54787
query I rowsort
SELECT DISTINCT - - col0 + 71 AS col1 FROM tab1 AS cor0
----
135
151
74
query I rowsort
SELECT + 7 AS col2 FROM tab1 cor0
----
7
7
7
query I rowsort
SELECT ALL + ( 31 ) FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT ALL 88 FROM tab1 cor0
----
88
88
88
query I rowsort
SELECT ALL + col2 * col0 * - col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - 79 + - col0 FROM tab2 cor0
----
-157
-158
-86
query I rowsort
SELECT DISTINCT - col2 - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - - 58 * - col0 + col1 - - col1 FROM tab1 cor0
----
-122
-3692
-4614
query I rowsort
SELECT DISTINCT + - 23 FROM tab1 AS cor0
----
-23
query I rowsort
SELECT ALL 28 * + tab2.col1 FROM tab2
----
1652
476
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM tab0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT - col2 DIV col2 + col0 DIV tab1.col0 + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5673
SELECT - col2 / col2 + col0 / tab1.col0 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col0 + col0 * col1 - col1 FROM tab0
----
1954
3263
7919
onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT ALL - cor0.col2 * col2 - - cor0.col1 * + cor0.col2 DIV col2 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - cor0.col2 * col2 - - cor0.col1 * + cor0.col2 / col2 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT DISTINCT 24 * col0 + - col2 DIV col0 + + col1 AS col1 FROM tab0 AS cor0
----
2227
661
937
skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT 24 * col0 + - col2 / col0 + + col1 AS col1 FROM tab0 AS cor0
----
2227
661
937
query I rowsort
SELECT ALL 87 * - col0 + + col0 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-3227
-6505
359
onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT DISTINCT - col0 + col1 DIV col0 col1 FROM tab1 AS cor0
----
-64
-80
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - col0 + col1 / col0 col1 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT DISTINCT + 8 + - col1 AS col0 FROM tab0 AS cor0
----
-78
-83
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT - + col0 * 82 DIV - col0 AS col1 FROM tab1 AS cor0
----
82
82
82
skipif mysql # not compatible
query I rowsort label-5680
SELECT - + col0 * 82 / - col0 AS col1 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT + col2 + 39 * col1 + cor0.col0 FROM tab2 AS cor0
----
1243
2405
780
query I rowsort
SELECT ALL col2 * ( 83 + col0 ) AS col2 FROM tab0 AS cor0
----
118
14104
3531
query I rowsort
SELECT ALL - col2 * + 17 AS col2 FROM tab2 AS cor0
----
-442
-459
-646
query I rowsort
SELECT ALL - + col1 + - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + + col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT + - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5686
SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 - + col0 * - col1 col0 FROM tab0 AS cor0
----
2128
3459
8163
query I rowsort
SELECT 14 * + col2 + + col1 FROM tab2 AS cor0
----
409
423
549
onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT DISTINCT - col0 DIV + 22 FROM tab0 AS cor0
----
-1
-4
skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - col0 / + 22 FROM tab0 AS cor0
----
-1
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 + + 63 col1 FROM tab1 AS cor0
----
149
149
149
query I rowsort
SELECT 37 * col2 * col1 AS col2 FROM tab0 AS cor0
----
105006
276094
3589
query I rowsort
SELECT + ( 36 ) + - col1 AS col0 FROM tab0 AS cor0
----
-50
-55
-61
query I rowsort
SELECT ALL - ( + 31 ) + - col0 * col0 FROM tab1 AS cor0
----
-40
-4127
-6431
query I rowsort
SELECT col1 * + col1 + + col0 * - col0 FROM tab1 WHERE tab1.col1 + - col0 <= NULL
----
query I rowsort
SELECT ALL + col2 + col0 FROM tab2 WHERE NOT NULL < col2
----
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
10
13
26
query I rowsort
SELECT ALL + col0 + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col2 * col2 + col2 * + col0 FROM tab2 AS cor0
----
2704
4446
918
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> NULL OR NOT ( NULL ) <= NULL
----
query I rowsort
SELECT col2 + + col1 * + cor0.col2 * col0 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT - + col1 * col0 + + col1 * col1 FROM tab0 cor0
----
182
5332
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT + col2 DIV - col1 + - col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3004
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5702
SELECT + col2 / - col1 + - col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3004
query I rowsort
SELECT cor0.col0 * col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE col2 BETWEEN NULL AND col2
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + tab2.col0 + col0 * + col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE + cor0.col0 * col1 * col1 NOT BETWEEN NULL AND ( + col2 + - col0 )
----
26
27
38
query I rowsort
SELECT col0 * col1 + cor0.col1 - col2 FROM tab0 AS cor0
----
2117
3491
8108
query I rowsort
SELECT + 84 + col1 * col1 + + col2 FROM tab1
----
241
349
814
query I rowsort
SELECT ALL 31 * + col2 * - col0 - tab0.col1 AS col0 FROM tab0
----
-1182
-226329
-24638
query I rowsort
SELECT + col0 - col0 * col1 * col1 FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT DISTINCT + col0 * + col0 + tab2.col2 + + col1 FROM tab2
----
107
6169
6296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5713
SELECT DISTINCT + col1 DIV - col2 + tab0.col2 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + col1 / - col2 + tab0.col2 FROM tab0
----
-96
31
81
query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 * - col2 FROM tab1
----
-207926
-737267
-8722
query I rowsort
SELECT tab2.col0 + col1 * col1 FROM tab2
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT DISTINCT - col2 DIV col2 + + col1 DIV + col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - col2 / col2 + + col1 / + col2 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT + col2 + + tab2.col0 * + col0 * col1 AS col1 FROM tab2
----
106135
1546
358982
query I rowsort
SELECT ALL col2 * + col1 + - col2 + tab2.col1 * - col2 AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col2 * + ( 4 ) AS col1 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT + 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5722
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 * + ( - 54 ) FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT + cor0.col0 + - col2 * - col2 AS col2 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + col0 + - ( + 3 ) AS col0 FROM tab0 AS cor0
----
21
32
86
query I rowsort
SELECT + col2 * 38 * col1 FROM tab2 AS cor0
----
24548
31806
58292
onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT - cor0.col1 DIV - ( col1 + - col2 ) AS col2 FROM tab0 AS cor0
----
1
1
10
skipif mysql # not compatible
query I rowsort label-5727
SELECT - cor0.col1 / - ( col1 + - col2 ) AS col2 FROM tab0 AS cor0
----
1
1
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 * ( col1 ) + col0 col1 FROM tab0 AS cor0
----
-1266
-1276
-1420
query I rowsort
SELECT ALL - 80 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT ALL - 48 DIV - col0 - - col2 AS col1 FROM tab0 AS cor0
----
2
35
82
skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - 48 / - col0 - - col2 AS col1 FROM tab0 AS cor0
----
2
35
82
query I rowsort
SELECT DISTINCT - col0 + 34 AS col2 FROM tab0 AS cor0
----
-1
-55
10
query I rowsort
SELECT - col0 + - col1 + - col0 * - 96 FROM tab1 AS cor0
----
259
6070
7587
query I rowsort
SELECT + col0 + col1 * col1 + - col2 * - col1 FROM tab0 AS cor0
----
10258
15832
9541
query I rowsort
SELECT + col2 * ( col1 ) + - 53 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-3131
-6485
1189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 31 col2 FROM tab1 AS cor0
----
-1674
-1767
-2976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5737
SELECT - CAST( NULL AS SIGNED ) * - cor0.col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5737
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 98 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + 19 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT - 21 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT DISTINCT + cor0.col0 DIV + cor0.col2 FROM tab0, tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + cor0.col0 / + cor0.col2 FROM tab0, tab1 cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col0 + - col0 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + col2 * - col2 + 81 AS col1 FROM tab2 AS cor0
----
-1363
-595
-648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - + cor0.col2 + col2 * - col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + tab1.col0 + + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 338e91bd6b1ec42ced1d27c185bc6972
query I rowsort
SELECT col0 + col0 * + 51 FROM tab2 AS cor0
----
364
4056
4108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT DISTINCT - - col0 * - CAST( - 16 AS SIGNED ) - col0 * col0 FROM tab1 AS cor0
----
-3072
-5120
39
skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT - - col0 * - CAST ( - 16 AS INTEGER ) - col0 * col0 FROM tab1 AS cor0
----
-3072
-5120
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT ALL + + col1 DIV 55 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + + col1 / 55 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * 19 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT 63 FROM tab2, tab2 cor0, tab1 AS cor1
----
63
query I rowsort
SELECT ALL 49 + + col2 * ( - 33 ) AS col0 FROM tab1
----
-1733
-1832
-3119
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * ( col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL 16 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - 33 + col2 FROM tab0
----
-32
0
49
query I rowsort
SELECT ALL ( - col0 ) * - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 95 * + col0 * col0 + - col1 + tab0.col2 FROM tab0
----
116279
54667
752486
query I rowsort
SELECT DISTINCT col2 - 0 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - + cor0.col2 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col2 * + col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col2 col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col2 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - + col0 * - cor0.col2 + - 55 * - 54 FROM tab0 AS cor0
----
10268
3005
3762
query I rowsort
SELECT ALL - col1 * + col1 + 57 AS col2 FROM tab2 AS cor0
----
-232
-3424
-904
query I rowsort
SELECT DISTINCT - + 87 * + col1 - 67 AS col0 FROM tab2 AS cor0
----
-1546
-2764
-5200
query I rowsort
SELECT ALL - 80 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-2080
-800
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + ( col0 ) FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - ( - col1 ) + ( + cor0.col0 ) * - col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + col1 + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + col2 * + col0 + + col2 * - 80 + - cor0.col2 FROM tab1 cor0
----
-4212
-96
-969
query I rowsort
SELECT ALL + - col0 * col2 + col1 + cor0.col0 FROM tab0 AS cor0
----
-682
-7118
97
query I rowsort
SELECT ALL + col1 + col2 + ( col2 ) FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT 89 + ( + col2 + + 8 ) * + ( - col1 ) FROM tab0 AS cor0
----
-3437
-784
-8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + col0 col2 FROM tab0 AS cor0
----
21
32
86
query I rowsort
SELECT ( + 43 + col0 * col0 ) FROM tab0
----
1268
619
7964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT CAST( NULL AS SIGNED ) + - 13 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5780
SELECT CAST ( NULL AS INTEGER ) + - 13 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT - CAST( NULL AS SIGNED ) + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5781
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab1 cor0
----
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT + - CAST( + 77 AS SIGNED ) + - col1 FROM tab0 cor0
----
-163
-168
-174
skipif mysql # not compatible
query I rowsort label-5783
SELECT + - CAST ( + 77 AS INTEGER ) + - col1 FROM tab0 cor0
----
-163
-168
-174
query I rowsort
SELECT - 2 * cor0.col1 + + col2 * - ( col0 + col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
10144
105338
228118
query I rowsort
SELECT + - col1 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT ( col2 ) + + tab1.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5786
SELECT ( col2 ) + + tab1.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 17 + cor0.col2 AS col1 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT 26 * + col1 AS col2 FROM tab0
----
2236
2366
2522
query I rowsort
SELECT ALL 3 * - col1 AS col2 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT ALL ( 77 ) * col1 FROM tab0
----
6622
7007
7469
query I rowsort
SELECT DISTINCT - + 52 AS col2 FROM tab2, tab1, tab1 AS cor0
----
-52
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 DISTINCT - col0 * + col2 - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT ALL col1 DIV - 31 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL col1 / - 31 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + - cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + - col2 + + 46 - 86 AS col2 FROM tab0 cor0
----
-122
-41
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT - col1 DIV 90 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5797
SELECT - col1 / 90 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT DISTINCT - col1 DIV col1 AS col2 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - col1 / col1 AS col2 FROM tab0 cor0
----
-1
query I rowsort
SELECT ALL + col2 + cor0.col2 * + 99 AS col0 FROM tab1 AS cor0
----
5400
5700
9600
query I rowsort
SELECT col1 + + 63 FROM tab2 cor0
----
122
80
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL - col0 DIV cor0.col0 + 40 AS col2 FROM tab0 AS cor0
----
39
39
39
skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - col0 / cor0.col0 + 40 AS col2 FROM tab0 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT ALL + col1 DIV 5 + + col2 DIV + col0 FROM tab2 AS cor0
----
11
3
9
skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL + col1 / 5 + + col2 / + col0 FROM tab2 AS cor0
----
11
3
9
query I rowsort
SELECT ALL - col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col0 * 90 AS col0 FROM tab0 cor0
----
2160
3150
8010
query I rowsort
SELECT + + col2 + + 36 AS col1 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT ALL col1 * col2 - - col0 AS col0 FROM tab2
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT - col1 + CAST( NULL AS SIGNED ) - + 90 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5807
SELECT - col1 + CAST ( NULL AS INTEGER ) - + 90 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5808
SELECT ALL + 20 * col2 - CAST( col2 + col1 AS SIGNED ) * 81 FROM tab1
----
-4287
-5400
-6909
skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + 20 * col2 - CAST ( col2 + col1 AS INTEGER ) * 81 FROM tab1
----
-4287
-5400
-6909
query I rowsort
SELECT ALL col2 + 66 * col2 FROM tab0
----
2211
5494
67
query I rowsort
SELECT - col0 * - 54 + 59 AS col0 FROM tab2 AS cor0
----
4271
4325
437
query I rowsort
SELECT ALL col1 * + col2 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) + ( col0 + - ( col1 ) * - col2 ) 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-5812
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) + ( col0 + - ( col1 ) * - col2 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col2 + col2 * col1 FROM tab0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT col1 DIV - ( - col2 ) AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5814
SELECT col1 / - ( - col2 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( - col0 ) + col1 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT + + col1 + + 93 FROM tab2 AS cor0
----
110
124
152
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT col1 * + 34 FROM tab1
----
340
442
884
query I rowsort
SELECT - ( 64 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT DISTINCT tab0.col1 + col0 * + col2 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT - col2 * + col2 + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + - 43 + + col2 FROM tab1 AS cor0
----
11
14
53
query I rowsort
SELECT + 97 + cor0.col2 AS col1 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT + col0 + + 63 AS col2 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT ALL - - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ( + col0 ) * 39 AS col1 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT DISTINCT col2 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL col1 + cor0.col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT ALL - col0 + cor0.col1 * ( + col2 ) DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-33
-6
94
skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - col0 + cor0.col1 * ( + col2 ) / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-33
-6
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5830
SELECT DISTINCT + ( - col1 ) / CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + ( - col1 ) / CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + 11 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
11
query I rowsort
SELECT - - col0 * - col0 + + 86 AS col2 FROM tab1 AS cor0
----
-4010
-6314
77
query I rowsort
SELECT 60 + + 33 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col0 col2 FROM tab2 AS cor0
----
-231
-2574
-2607
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT - + col1 DIV 15 FROM tab0 AS cor0
----
-5
-6
-6
skipif mysql # not compatible
query I rowsort label-5837
SELECT - + col1 / 15 FROM tab0 AS cor0
----
-5
-6
-6
query I rowsort
SELECT + + 6 + + col2 FROM tab1 cor0
----
102
60
63
query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 AS col2 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT + + col0 * cor0.col0 * CAST( + 91 AS SIGNED ) FROM tab1 AS cor0
----
372736
582400
819
skipif mysql # not compatible
query I rowsort label-5840
SELECT + + col0 * cor0.col0 * CAST ( + 91 AS INTEGER ) FROM tab1 AS cor0
----
372736
582400
819
query I rowsort
SELECT DISTINCT - 75 * - col1 AS col2 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT ( cor1.col2 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5843
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col0 + + col0 * ( - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col0 + ( + 33 ) AS col1 FROM tab2
----
-45
-46
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT - - cor0.col2 + - col0 * 9 DIV cor0.col1 FROM tab2 AS cor0
----
-3
15
25
skipif mysql # not compatible
query I rowsort label-5846
SELECT - - cor0.col2 + - col0 * 9 / cor0.col1 FROM tab2 AS cor0
----
-3
15
25
query I rowsort
SELECT + col2 * + ( - col1 ) + - cor0.col1 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
22185
269984
5890
query I rowsort
SELECT + + cor0.col2 * col2 + - col1 * col2 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT - 60 * - col2 AS col2 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT + 71 + 39 * + col1 FROM tab2 AS cor0
----
1280
2372
734
query I rowsort
SELECT - + col1 + col0 * col0 * col0 FROM tab1 AS cor0
----
1
262134
511987
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - col1 ) * - 11 col0 FROM tab0 cor0
----
-22704
-37345
-89089
onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT + + col1 * col1 + + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
101
170
677
skipif mysql # not compatible
query I rowsort label-5853
SELECT + + col1 * col1 + + col1 / col1 AS col2 FROM tab1 AS cor0
----
101
170
677
query I rowsort
SELECT + 11 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT ALL 48 FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT ALL + ( + col2 ) + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT cor0.col1 * - 47 + - col0 AS col2 FROM tab1 AS cor0
----
-1225
-534
-691
query I rowsort
SELECT DISTINCT col2 + 84 * - cor0.col1 FROM tab2 AS cor0
----
-1390
-2577
-4930
query I rowsort
SELECT DISTINCT col2 + 65 AS col1 FROM tab1
----
119
122
161
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) + 25 FROM tab0
----
7421
8306
9434
query I rowsort
SELECT ALL - 17 + col1 + ( - cor0.col2 ) FROM tab2 AS cor0
----
-13
-38
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col2 FROM tab1 cor0
----
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * col1 * col1 col1 FROM tab2
----
12716
153164
42284
query I rowsort
SELECT + - col2 * + col1 + col0 * col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT ALL col1 + 40 + col1 * - col1 FROM tab2
----
-232
-3382
-890
query I rowsort
SELECT DISTINCT ( ( - tab2.col0 ) ) + - col2 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL 89 + col0 * + col1 FROM tab2
----
1432
306
4691
query I rowsort
SELECT 90 + + col0 FROM tab0
----
114
125
179
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + 23 * 86 - - col1 FROM tab2
----
1995
2009
2037
query I rowsort
SELECT DISTINCT tab0.col0 + - 96 FROM tab0
----
-61
-7
-72
query I rowsort
SELECT DISTINCT col1 + + col2 + + col2 AS col1 FROM tab0
----
152
255
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * + col0 * col1 + col2 col1 FROM tab1
----
42297
5202
68736
query I rowsort
SELECT ALL + col2 + ( col2 * col0 ) FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT col0 + - 46 * + col2 FROM tab0 AS cor0
----
-11
-1494
-3683
query I rowsort
SELECT DISTINCT col1 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL col0 + 8 * col0 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT - col2 - 89 AS col1 FROM tab1 AS cor0
----
-143
-146
-185
query I rowsort
SELECT ALL - col2 * col0 + ( col1 ) * + col1 FROM tab0 cor0
----
6604
9374
983
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5881
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 - + 60 FROM tab1
----
-124
-140
-63
query I rowsort
SELECT - col1 + + col2 * - col1 AS col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + col1 - + 87 AS col2 FROM tab0
----
-1
10
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 + ( - col1 ) col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + col0 - - col0 * col2 * - col1 FROM tab0 AS cor0
----
-3360
-664029
-68088
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT + + col1 * + CAST( NULL AS SIGNED ) + - col2 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5887
SELECT + + col1 * + CAST ( NULL AS INTEGER ) + - col2 * + col1 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - col0 - ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + - col1 + ( 11 * col2 ) FROM tab0
----
-85
310
893
query I rowsort
SELECT ( - 98 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT 90 + col2 FROM tab2
----
116
117
128
query I rowsort
SELECT DISTINCT + tab1.col1 + tab1.col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 + col2 FROM tab1
----
162
171
288
query I rowsort
SELECT ALL - - ( cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col2 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-5897
SELECT DISTINCT - col2 + + col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT - col2 + + col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 36 * + col2 + - col2 * - col0 FROM tab0 AS cor0
----
-1
-396
4346
query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col1 * - col1 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - col0 * col2 + 4 * col1 AS col1 FROM tab0 AS cor0
----
-448
-6934
353
query I rowsort
SELECT DISTINCT - - col0 * + 55 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
12994
3384
5320
query I rowsort
SELECT - col0 + + ( cor0.col2 + - col0 ) FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT ALL col1 * ( - col2 * - col0 + cor0.col1 * col0 ) AS col1 FROM tab1 AS cor0
----
113360
42880
6240
query I rowsort
SELECT - cor0.col0 * 1 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - cor0.col2 + + 10 AS col0 FROM tab2 AS cor0
----
-16
-17
-28
query I rowsort
SELECT DISTINCT - + col2 * - col1 * 86 FROM tab1 AS cor0
----
107328
120744
49020
onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT ALL + col2 DIV 56 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + col2 / 56 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT ALL col0 + col0 * + CAST( col1 * + col1 AS SIGNED ) FROM tab1
----
13600
2031
6464
skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL col0 + col0 * + CAST ( col1 * + col1 AS INTEGER ) FROM tab1
----
13600
2031
6464
query I rowsort
SELECT - col2 + + col0 + + 73 * + col2 AS col2 FROM tab2
----
1950
1951
2815
query I rowsort
SELECT cor0.col1 + - col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * - col1 col1 FROM tab2 AS cor0
----
-1643
-3127
-901
query I rowsort
SELECT 2 + + col1 AS col0 FROM tab1 AS cor0
----
12
15
28
query I rowsort
SELECT DISTINCT - ( + 19 ) + col2 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT ALL + ( + 69 ) * col2 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # use DIV operator for integer division
query I rowsort label-5916
SELECT DISTINCT col1 DIV 75 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT col1 / 75 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 * 44 FROM tab2 AS cor0
----
-1144
-1188
-1672
onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT + cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5918
SELECT + cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + + cor0.col1 + - col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT - + col1 DIV 82 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5921
SELECT - + col1 / 82 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + col0 * - cor0.col1 * cor0.col1 - + col0 * 14 FROM tab0 AS cor0
----
-177754
-329708
-738164
query I rowsort
SELECT DISTINCT + col0 + col1 * + ( 34 + + cor0.col0 * + col0 ) AS col2 FROM tab2 AS cor0
----
106754
2580
361040
onlyif mysql # use DIV operator for integer division
query I rowsort label-5924
SELECT - col1 DIV col1 - + col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-5924
SELECT - col1 / col1 - + col1 FROM tab2 AS cor0
----
-18
-32
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT - cor0.col2 + col0 DIV col2 + col2 * - col2 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
207880
737184
8694
skipif mysql # not compatible
query I rowsort label-5925
SELECT - cor0.col2 + col0 / col2 + col2 * - col2 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
207880
737184
8694
query I rowsort
SELECT 97 + - col2 FROM tab2
----
59
70
71
query I rowsort
SELECT DISTINCT ( tab1.col0 ) + + col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT - 80 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT - ( 41 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT + col2 * col1 DIV ( col0 ) AS col2 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-5930
SELECT + col2 * col1 / ( col0 ) AS col2 FROM tab2
----
119
19
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT cor0.col2 - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5931
SELECT cor0.col2 - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5932
SELECT col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5932
SELECT col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 30 ) * tab1.col2 FROM tab1, tab0 AS cor0
----
1620
1710
2880
query I rowsort
SELECT DISTINCT + col0 * 96 FROM tab2
----
672
7488
7584
query I rowsort
SELECT - col2 * - ( - 10 ) AS col1 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT + col1 + 41 DIV - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5936
SELECT + col1 + 41 / - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to bfbdbe6262d4256fbee3d7f2f3b1db1b
query I rowsort
SELECT DISTINCT - ( col0 * col2 ) AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT cor1.col2 + - 93 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to a60ea1b0920a671aaacbf8e8f82b1538
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT DISTINCT - ( + col1 ) * cor0.col1 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-110
-182
-702
skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - ( + col1 ) * cor0.col1 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT + CAST( 15 AS SIGNED ) FROM tab1
----
15
15
15
skipif mysql # not compatible
query I rowsort label-5941
SELECT + CAST ( 15 AS INTEGER ) FROM tab1
----
15
15
15
query I rowsort
SELECT ALL + ( 2 ) * cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - 33 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT col0 * col2 + - col1 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + col0 + col1 * col2 * col2 AS col2 FROM tab0
----
132
611973
93678
query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NULL ) <> col1 * col1 + col0
----
query I rowsort
SELECT ALL col2 * col2 * + tab1.col1 + + col2 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT DISTINCT tab1.col1 * col0 + - col0 * tab1.col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT - col0 * tab2.col2 + - col0 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT col2 DIV - tab1.col1 + - col0 - - col0 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5950
SELECT col2 / - tab1.col1 + - col0 - - col0 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL col1 + - col2 * col1 FROM tab2
----
-1475
-629
-806
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col0 - col0
----
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col1 FROM tab0 WHERE NULL >= ( - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + tab2.col0 > col0 + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT tab0.col2 + col2 * col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 + col1 * col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL <> NULL
----
query I rowsort
SELECT col2 * tab1.col2 + col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT ALL tab2.col1 * - tab2.col0 + col0 * + col2 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT - tab0.col0 * col2 * + col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + col1 * + col1 * - col0 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / + col2 col0 FROM tab2 WHERE NULL >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 - col0 col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT col2 * col2 <= NULL
----
query I rowsort
SELECT ALL - col2 + tab0.col0 - + col1 * tab0.col1 FROM tab0
----
-7405
-8274
-9375
query I rowsort
SELECT col0 * tab0.col1 + - col2 + col1 FROM tab0
----
2117
3491
8108
query I rowsort
SELECT DISTINCT + col2 + - col2 - - col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 * col2 - col1 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 * col0 AS col2 FROM tab2 AS cor0
----
119626
50996
5832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col2 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col2 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT ALL col2 DIV col0 + + col1 AS col2 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL col2 / col0 + + col1 AS col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab2 AS cor0 WHERE ( NULL ) > + col0
----
query I rowsort
SELECT ALL col1 * + col2 + + ( col2 ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT - ( 42 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT + col0 - + 21 AS col2 FROM tab1
----
-18
43
59
query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 FROM tab1 cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 86 * + col1 - + col2 col1 FROM tab2 AS cor0
----
-24892
-299392
-82673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * ( + col2 ) - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 22 col0 FROM tab1 AS cor0
----
-42
-58
19
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 - col2 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ( col1 ) * col1 + col2 * + col1 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT DISTINCT + 61 + col0 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-5945
-6101
19
query I rowsort
SELECT ALL + cor0.col0 * + 15 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
1426
446
622
query I rowsort
SELECT ( + 15 ) + + col0 * ( - 98 * col0 ) FROM tab1 AS cor0
----
-401393
-627185
-867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5989
SELECT DISTINCT + ( cor0.col1 ) * - col2 + CAST( col1 AS DECIMAL ) * - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + ( cor0.col1 ) * - col2 + CAST ( col1 AS REAL ) * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 48 + - col1 AS col0 FROM tab2 cor0
----
-107
-65
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5991
SELECT - CAST( NULL AS SIGNED ) * - 74 - - col2 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-5991
SELECT - CAST ( NULL AS INTEGER ) * - 74 - - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 69 * ( col2 ) - col1 * 21 AS col0 FROM tab1 AS cor0
----
3180
3723
6351
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT ALL - col2 * col0 DIV + 2 AS col0 FROM tab1
----
-1824
-3840
-81
skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - col2 * col0 / + 2 AS col0 FROM tab1
----
-1824
-3840
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT col2 * col0 DIV col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5994
SELECT col2 * col0 / col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + 7 FROM tab1 cor0
----
-7
query I rowsort
SELECT - ( col2 ) * 18 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
24
35
89
query I rowsort
SELECT + + 51 * - col1 AS col1 FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT ALL - + col1 * col0 + + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT cor0.col0 * col1 DIV col2 AS col0 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-6000
SELECT cor0.col0 * col1 / col2 AS col0 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT ALL + + cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 51 - col1 FROM tab0 AS cor0
----
-35
-40
-46
query I rowsort
SELECT col1 + + 5 + 55 AS col1 FROM tab2
----
119
77
91
query I rowsort
SELECT - - col1 - - col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ( + 63 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2, tab2 AS cor0
----
41
query I rowsort
SELECT DISTINCT col2 + - 88 FROM tab0
----
-55
-6
-87
query I rowsort
SELECT DISTINCT + col1 + 32 FROM tab1
----
42
45
58
query I rowsort
SELECT DISTINCT + 77 + + col2 FROM tab0 cor0
----
110
159
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab0 cor0
----
77
77
77
query I rowsort
SELECT + + 24 + col0 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT ALL + 74 + 62 FROM tab2 AS cor0
----
136
136
136
query I rowsort
SELECT 87 + col2 AS col1 FROM tab0
----
120
169
88
query I rowsort
SELECT ALL + + 8 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 1 AS REAL ) AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6016
SELECT ALL col2 * - col1 - - CAST( NULL AS DECIMAL ) 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-6016
SELECT ALL col2 * - col1 - - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 38 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 * 80 + col2 * col2 - + col0 * cor0.col0 FROM tab0 AS cor0
----
1576
582643
63873
query I rowsort
SELECT ALL - col2 + col2 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col1 * 47 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT ALL - - cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col2 * col2 + - 55 * col0 AS col2 FROM tab2 AS cor0
----
-1114
-4966
-5789
query I rowsort
SELECT DISTINCT + - col0 + + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 * - col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - col2 * + col1 * - col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + cor0.col0 * col1 * - cor0.col0 AS col2 FROM tab2 cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - - cor0.col0 * col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - cor0.col2 * + cor0.col2 * + col2 AS col0 FROM tab2 cor0
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT - col0 * - col1 - col1 FROM tab1 cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + + col1 * + col2 col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + - col0 * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT cor0.col1 * - cor0.col0 * col0 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + col2 * col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL + col0 * - col2 + - col1 * cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-25833
-273546
-6916
query I rowsort
SELECT + cor0.col0 + + col2 * col2 AS col1 FROM tab1 cor0
----
2919
3313
9296
query I rowsort
SELECT + col2 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT + + ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + - col2 + - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - col1 * + col1 * col2 AS col1 FROM tab1 cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + cor0.col1 * + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ae5946db6904798b8afac35f5777bb79
query I rowsort
SELECT col1 + + col1 - cor0.col2 FROM tab0 AS cor0
----
100
139
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT + 35 * col1 DIV + col0 - - 95 FROM tab2 cor0
----
102
121
250
skipif mysql # not compatible
query I rowsort label-6045
SELECT + 35 * col1 / + col0 - - 95 FROM tab2 cor0
----
102
121
250
query I rowsort
SELECT ALL - col1 + col0 * 28 FROM tab2 AS cor0
----
165
2125
2195
query I rowsort
SELECT + - col0 * cor0.col0 + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1189
-519
-7750
query I rowsort
SELECT + ( col2 ) * + col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - 20 * - col2 + col2 + - col0 * col0 FROM tab2 AS cor0
----
-5443
-5538
518
query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 * 4 AS col2 FROM tab2 AS cor0
----
2704
2916
5776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT DISTINCT - 98 DIV col0 FROM tab2 AS cor0
----
-1
-14
skipif mysql # not compatible
query I rowsort label-6051
SELECT DISTINCT - 98 / col0 FROM tab2 AS cor0
----
-1
-14
query I rowsort
SELECT col1 + col2 + col2 AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT - 63 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 89 * col0 col0 FROM tab0 cor0
----
-2103
-3114
-7839
query I rowsort
SELECT - - col0 + 26 AS col1 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT + col0 + + col1 * + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT ALL - + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col1 - + col2 AS col1 FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6059
SELECT ALL CAST( + 41 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL CAST ( + 41 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - 91 AS REAL ) + col2 AS col2 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT DISTINCT 84 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
84
query I rowsort
SELECT + + 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab0
----
19
query I rowsort
SELECT + col0 + + tab0.col1 AS col0 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6066
SELECT - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6066
SELECT - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT 30 DIV col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6067
SELECT 30 / col0 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT + 56 * col0 DIV - col0 AS col1 FROM tab0
----
-56
-56
-56
skipif mysql # not compatible
query I rowsort label-6068
SELECT + 56 * col0 / - col0 AS col1 FROM tab0
----
-56
-56
-56
query I rowsort
SELECT + col1 * + 15 FROM tab1 AS cor0
----
150
195
390
onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT col0 DIV + col1 + + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6070
SELECT col0 / + col1 + + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + + col0 * - cor0.col0 + + ( - ( col1 ) ) FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT + col0 + - col1 * col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col1 + - col1 * tab1.col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - col2 * col0 + - 44 + col1 * col0 FROM tab0
----
1228
3316
757
query I rowsort
SELECT DISTINCT + 63 * + col1 FROM tab1 AS cor0
----
1638
630
819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6076
SELECT DISTINCT - 91 / - col2 + CAST( NULL AS SIGNED ) * - 75 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - 91 / - col2 + CAST ( NULL AS INTEGER ) * - 75 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6078
SELECT ALL + CAST( NULL AS SIGNED ) * 89 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + CAST ( NULL AS INTEGER ) * 89 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 41 + col0 * + 2 AS col2 FROM tab2 AS cor0
----
197
199
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT ALL col0 DIV col2 + + tab0.col1 * col2 * col1 AS col2 FROM tab0
----
244068
679043
9444
skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL col0 / col2 + + tab0.col1 * col2 * col1 AS col2 FROM tab0
----
244068
679043
9444
query I rowsort
SELECT col1 + ( - 25 + - tab1.col1 ) * 0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT ALL + col0 * - ( col1 ) + + col1 * col2 AS col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT ALL - + col2 * ( col1 * col0 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col2 + - 49 AS col1 FROM tab0 cor0
----
-16
-48
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT - col2 * col1 + 40 DIV col1 FROM tab1 AS cor0
----
-1245
-1403
-566
skipif mysql # not compatible
query I rowsort label-6086
SELECT - col2 * col1 + 40 / col1 FROM tab1 AS cor0
----
-1245
-1403
-566
query I rowsort
SELECT col2 + + ( + 34 ) FROM tab0 cor0
----
116
35
67
query I rowsort
SELECT - + col1 * cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 58 * col0 AS col1 FROM tab1 AS cor0
----
174
3712
4640
onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT ALL - - col0 + + 20 + - col2 DIV ( 28 ) col0 FROM tab0 AS cor0
----
107
43
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - - col0 + + 20 + - col2 / ( 28 ) col0 FROM tab0 AS cor0
----
107
43
55
query I rowsort
SELECT DISTINCT - - col0 - cor0.col1 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT - 66 * col1 AS col2 FROM tab1 AS cor0
----
-1716
-660
-858
query I rowsort
SELECT DISTINCT + ( + col2 ) + + col2 * ( col0 + - col1 ) FROM tab1 AS cor0
----
-1188
3135
6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT DISTINCT col2 DIV - col0 + col0 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT col2 / - col0 + col0 FROM tab0
----
23
35
89
query I rowsort
SELECT ALL - col2 * 42 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-153216
-322560
-6804
query I rowsort
SELECT + - 88 + - 3 FROM tab0 cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - - col2 + + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT DISTINCT - 48 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-309
-3718
-3754
query I rowsort
SELECT ALL + cor0.col1 * ( col2 ) + col1 * + col1 * - cor0.col1 FROM tab0 AS cor0
----
-633218
-746109
-912576
query I rowsort
SELECT - col0 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col1 FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6102
SELECT ALL - CAST( NULL AS SIGNED ) * - 22 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - CAST ( NULL AS INTEGER ) * - 22 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - ( 92 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6104
SELECT CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 - 19 AS col0 FROM tab0 AS cor0
----
-105
-110
-116
onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT + + 79 DIV - col1 FROM tab2 cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-6106
SELECT + + 79 / - col1 FROM tab2 cor0
----
-1
-2
-4
query I rowsort
SELECT DISTINCT col0 + + col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
114155
5110
52806
query I rowsort
SELECT ALL col1 * 21 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
28203
4557
96642
query I rowsort
SELECT DISTINCT + 50 - 56 FROM tab2, tab1 AS cor0
----
-6
query I rowsort
SELECT DISTINCT col1 * 66 AS col0 FROM tab2
----
1122
2046
3894
onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT DISTINCT + tab2.col1 * ( col2 ) DIV col0 + col0 * - col0 FROM tab2
----
-6065
-6233
70
skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + tab2.col1 * ( col2 ) / col0 + col0 * - col0 FROM tab2
----
-6065
-6233
70
query I rowsort
SELECT - col2 + tab1.col0 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + 79 + - col0 FROM tab2 AS cor0
----
0
1
72
query I rowsort
SELECT DISTINCT - 57 + - 11 FROM tab0
----
-68
query I rowsort
SELECT DISTINCT col0 + - col0 * + col0 AS col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT col2 * col1 + tab0.col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT 96 * tab1.col0 AS col2 FROM tab1
----
288
6144
7680
query I rowsort
SELECT 4 * 25 * - col2 FROM tab2
----
-2600
-2700
-3800
onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT DISTINCT - 48 * + col0 + + 67 * + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-1085
-1613
-4205
skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - 48 * + col0 + + 67 * + col2 / col2 AS col2 FROM tab0 AS cor0
----
-1085
-1613
-4205
query I rowsort
SELECT + col0 * cor0.col1 + + 25 FROM tab0 AS cor0
----
2089
3420
8124
query I rowsort
SELECT - 98 * col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col1 + ( - col2 ) AS col1 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + 67 + col1 FROM tab2 AS cor0
----
126
84
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT DISTINCT - cor0.col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - cor0.col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - 1 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL - - col0 * - col2 + col1 * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-2951
-30
-6544
query I rowsort
SELECT - + 3 + - tab1.col1 AS col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to b38f448b1247c68a27c2620bc0c85248
query I rowsort
SELECT ALL 14 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6130
SELECT ALL + col2 * - col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + col2 * - col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT 44 * col1 FROM tab1
----
1144
440
572
query I rowsort
SELECT col1 * 17 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT + col0 + + 48 FROM tab2 AS cor0
----
126
127
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6135
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - 34 FROM tab2 AS cor0
----
-27
44
45
query I rowsort
SELECT - + col1 + ( col2 ) AS col0 FROM tab0 cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - ( + col2 ) * + col0 col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 + 79 * - col0 col2 FROM tab0 AS cor0
----
-1893
-2762
-7028
query I rowsort
SELECT - col0 * + ( + col2 ) - + col0 * 55 FROM tab1 AS cor0
----
-12080
-327
-7168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6141
SELECT CAST( NULL AS SIGNED ) - - cor0.col1 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6141
SELECT CAST ( NULL AS INTEGER ) - - cor0.col1 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 7 * col2 AS col0 FROM tab2 AS cor0
----
182
189
266
onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT - col0 + - col0 DIV - col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-6143
SELECT - col0 + - col0 / - col2 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT ALL + col0 * 38 AS col1 FROM tab1 cor0
----
114
2432
3040
query I rowsort
SELECT + + col0 * 13 FROM tab0 AS cor0
----
1157
312
455
onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT ( 16 ) DIV col0 - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-49
-57
-96
skipif mysql # not compatible
query I rowsort label-6146
SELECT ( 16 ) / col0 - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-49
-57
-96
query I rowsort
SELECT ALL - + 66 FROM tab0 AS cor0
----
-66
-66
-66
query I rowsort
SELECT 60 + col2 + col1 * + col2 FROM tab1 AS cor0
----
1404
1518
687
onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT DISTINCT - 9 DIV - ( + cor0.col0 ) FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - 9 / - ( + cor0.col0 ) FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - ( - col0 ) * col2 + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT col2 + - ( - cor0.col1 ) + - cor0.col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 73 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 20 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0e403c8194e0cdca8192284209548d36
query I rowsort
SELECT + col1 + col1 + col1 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT + - ( + col1 ) + - 86 * + 94 FROM tab0 AS cor0
----
-8170
-8175
-8181
query I rowsort
SELECT col2 + 3 AS col1 FROM tab1
----
57
60
99
query I rowsort
SELECT DISTINCT col0 * + col1 * col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT 55 * - col0 AS col0 FROM tab2 cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL + 70 + 0 * - col2 AS col0 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + col0 * - 22 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1876
-495
-769
onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT ALL - - 80 + col2 * col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
104
115
169
skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - - 80 + col2 * col0 / + col2 AS col0 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT - + col2 * - col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT col0 - col1 * - cor0.col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + col1 + + 88 * col0 FROM tab1 AS cor0
----
290
5642
7053
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col0 + - col0 * 33 col1 FROM tab2 AS cor0
----
-1264
-14
2028
query I rowsort
SELECT - ( + 50 ) * - col1 - - 82 AS col0 FROM tab0 AS cor0
----
4382
4632
4932
query I rowsort
SELECT ALL - col0 + 92 * + col0 AS col0 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT DISTINCT 11 + + col0 AS col2 FROM tab0 AS cor0
----
100
35
46
query I rowsort
SELECT DISTINCT - - col1 * + ( - col0 * - col1 ) AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + - ( col0 ) * col1 - - col1 * - col2 AS col2 FROM tab2 cor0
----
-1054
-1989
-6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT ALL - + 56 + - col1 DIV + col0 FROM tab2 AS cor0
----
-56
-56
-60
skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - + 56 + - col1 / + col0 FROM tab2 AS cor0
----
-56
-56
-60
query I rowsort
SELECT + 96 * + col0 FROM tab2 AS cor0
----
672
7488
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT - ( - col2 ) + + cor0.col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6176
SELECT - ( - col2 ) + + cor0.col0 / - col0 AS col1 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ALL - 38 + - col2 * - col1 FROM tab0 AS cor0
----
2800
59
7424
query I rowsort
SELECT ALL + 51 + - col0 * + 28 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1423
170403
174799
query I rowsort
SELECT - + col2 * cor0.col2 + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT 22 + col2 * CAST( NULL AS SIGNED ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6180
SELECT 22 + col2 * CAST ( NULL AS INTEGER ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + col1 + + col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT 37 * + col2 AS col0 FROM tab1 AS cor0
----
1998
2109
3552
query I rowsort
SELECT ALL - col2 * col0 * - 15 AS col0 FROM tab2 cor0
----
2835
30420
45030
query I rowsort
SELECT ALL col0 * 23 * - ( cor0.col1 * + cor0.col0 ) FROM tab1 AS cor0
----
-1913600
-5382
-942080
query I rowsort
SELECT + 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + col2 + ( - col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col2 + + col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT col0 * - 29 * - col1 AS col1 FROM tab2 AS cor0
----
133458
38947
6293
query I rowsort
SELECT ALL col2 * col2 + 54 FROM tab1 AS cor0
----
2970
3303
9270
query I rowsort
SELECT ALL + + col2 * + ( col1 * + col2 ) AS col0 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT - col2 * + 93 + 56 AS col1 FROM tab2 AS cor0
----
-2362
-2455
-3478
query I rowsort
SELECT ALL - col1 + + col0 + - col2 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT + col1 - + col1 * + tab2.col0 AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT tab0.col1 + col2 + col0 FROM tab0
----
133
143
262
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6196
SELECT + tab1.col0 * col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6196
SELECT + tab1.col0 * col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT DISTINCT col0 * + ( - col2 ) DIV + col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT col0 * + ( - col2 ) / + col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - 91 * + 19 FROM tab1, tab0 AS cor0
----
-1729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT ALL - col0 DIV + 58 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL - col0 / + 58 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT ALL + 71 + 44 FROM tab1, tab1 cor0
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642
onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT - ( - 66 ) DIV - tab1.col2 AS col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6202
SELECT - ( - 66 ) / - tab1.col2 AS col1 FROM tab1
----
-1
-1
0
query I rowsort
SELECT - ( - col1 ) - col2 AS col2 FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6204
SELECT + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 43 AS col0 FROM tab2
----
43
43
43
query I rowsort
SELECT DISTINCT + tab0.col2 + tab0.col1 + 13 FROM tab0, tab1 AS cor0
----
111
132
186
query I rowsort
SELECT DISTINCT 2 * col2 - - col2 * tab2.col0 AS col0 FROM tab2
----
2080
243
3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * col0 + col2 col1 FROM tab1
----
312
5561
6976
query I rowsort
SELECT ALL 34 - col2 FROM tab2
----
-4
7
8
query I rowsort
SELECT DISTINCT 17 + col1 AS col1 FROM tab0
----
103
108
114
query I rowsort
SELECT DISTINCT - col1 + tab2.col0 * 97 AS col2 FROM tab2
----
648
7507
7646
query I rowsort
SELECT DISTINCT 58 + col1 FROM tab0
----
144
149
155
query I rowsort
SELECT ALL - 89 + - col1 FROM tab0
----
-175
-180
-186
query I rowsort
SELECT 85 + - col2 - ( col0 ) FROM tab1
----
-36
-91
28
query I rowsort
SELECT + col1 * + col0 + ( - col2 ) FROM tab2
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + col2 col1 FROM tab0 AS cor0
----
100
132
181
query I rowsort
SELECT - - col0 + col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT 27 * cor0.col0 + - col2 * + col2 FROM tab0 cor0
----
-4321
-441
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab0
----
86
query I rowsort
SELECT ALL + col1 * - col0 - + col2 * + col2 FROM tab1 AS cor0
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT + cor0.col1 * 88 + - col2 FROM tab2 AS cor0
----
1458
2701
5166
query I rowsort
SELECT - ( + 83 ) FROM tab1 cor0
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 65 * col1 col2 FROM tab2 AS cor0
----
1184
2022
3913
query I rowsort
SELECT ( col2 ) + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 * + 66 + col2 * 29 AS col2 FROM tab2 AS cor0
----
2224
2829
4648
query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - 58 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-23
7240
734
query I rowsort
SELECT - + col2 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + 35 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT - CAST( - col1 * - col0 AS SIGNED ) FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-6230
SELECT - CAST ( - col1 * - col0 AS INTEGER ) FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6231
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 96 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 96 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT + col2 + - col1 + + col2 * + col2 FROM tab1 AS cor0
----
2944
3296
9299
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6233
SELECT ALL + cor2.col2 * + CAST( 60 AS SIGNED ) FROM tab1, tab2 cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 765a2e451237f89ca6435dce13948da8
skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + cor2.col2 * + CAST ( 60 AS INTEGER ) FROM tab1, tab2 cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 765a2e451237f89ca6435dce13948da8
query I rowsort
SELECT ALL - col0 + - 5 + col1 FROM tab1 AS cor0
----
-59
-72
18
query I rowsort
SELECT + + cor0.col2 + + col2 * + cor0.col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - col1 * + 10 AS col0 FROM tab2 cor0
----
-170
-310
-590
query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - + col1 * - ( + col1 ) + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT ( - col1 ) - - 49 AS col1 FROM tab2
----
-10
18
32
query I rowsort
SELECT col1 * col1 + 85 AS col2 FROM tab1 AS cor0
----
185
254
761
query I rowsort
SELECT DISTINCT - - tab1.col0 FROM tab1, tab2, tab2 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT - + ( - 37 ) * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT DISTINCT col1 DIV col2 + + col1 AS col0 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT col1 / col2 + + col1 AS col0 FROM tab0
----
194
88
92
query I rowsort
SELECT DISTINCT - col2 * 49 + + tab1.col1 FROM tab1
----
-2620
-2783
-4691
query I rowsort
SELECT + col0 + - 62 FROM tab1
----
-59
18
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT - col2 + + CAST( 36 AS SIGNED ) + tab2.col0 AS col1 FROM tab2
----
16
77
88
skipif mysql # not compatible
query I rowsort label-6247
SELECT - col2 + + CAST ( 36 AS INTEGER ) + tab2.col0 AS col1 FROM tab2
----
16
77
88
query I rowsort
SELECT - ( - 28 ) * - col2 + col2 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT cor0.col2 + col2 * + col0 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab0, tab0 AS cor0
----
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6251
SELECT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6251
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * - col0 * - 93 + - col1 AS col2 FROM tab1
----
380918
595187
811
query I rowsort
SELECT ALL ( col0 ) - + col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT col1 + 83 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT DISTINCT 11 * cor0.col2 * + col0 FROM tab0 AS cor0
----
385
80278
8712
query I rowsort
SELECT ALL - 57 + col0 AS col1 FROM tab2 AS cor0
----
-50
21
22
query I rowsort
SELECT 5 + tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 28f2d493322f7ad623469af55ea9d894
query I rowsort
SELECT ALL + 17 * col2 AS col0 FROM tab0
----
1394
17
561
query I rowsort
SELECT - ( 30 ) * col2 FROM tab1
----
-1620
-1710
-2880
query I rowsort
SELECT + col0 * + col0 + - col0 * col0 * - ( + col1 + 15 * col0 ) FROM tab0 AS cor0
----
11303267
257472
763175
query I rowsort
SELECT - col2 * + 51 FROM tab1
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT col2 + - col2 + col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL ( - cor0.col2 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 27 + + col0 AS col2 FROM tab2
----
105
106
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 + + 33 ) col0 FROM tab2
----
59
60
71
query I rowsort
SELECT DISTINCT + - 87 * + col0 FROM tab0 AS cor0
----
-2088
-3045
-7743
query I rowsort
SELECT col2 * - col2 + 87 FROM tab1 AS cor0
----
-2829
-3162
-9129
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT - - col0 - + CAST( 20 AS SIGNED ) * cor0.col1 * col0 col1 FROM tab2 AS cor0
----
-26781
-4333
-91962
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6270
SELECT - - col0 - + CAST ( 20 AS INTEGER ) * cor0.col1 * col0 col1 FROM tab2 AS cor0
----
-26781
-4333
-91962
query I rowsort
SELECT col0 * + 53 + col2 - col2 AS col2 FROM tab1 AS cor0
----
159
3392
4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT - cor0.col0 DIV - 73 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6272
SELECT - cor0.col0 / - 73 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6273
SELECT + cor0.col2 * + CAST( - col1 * col0 AS SIGNED ) FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-6273
SELECT + cor0.col2 * + CAST ( - col1 * col0 AS INTEGER ) FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT col2 DIV - 4 FROM tab1 AS cor0
----
-13
-14
-24
skipif mysql # not compatible
query I rowsort label-6274
SELECT col2 / - 4 FROM tab1 AS cor0
----
-13
-14
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 * + col1 ) col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col1 * col0 * - 36 - + col1 FROM tab1 AS cor0
----
23030
2782
37427
query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 * 99 FROM tab2 AS cor0
----
1530
8467
9256
query I rowsort
SELECT DISTINCT + tab0.col2 + 70 FROM tab0
----
103
152
71
query I rowsort
SELECT + 63 - col0 AS col2 FROM tab2
----
-15
-16
56
query I rowsort
SELECT - col0 * - 97 FROM tab0
----
2328
3395
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + col1 * tab0.col0 * + col1 - - col1 DIV tab0.col1 FROM tab0
----
177505
329316
737010
skipif mysql # not compatible
query I rowsort label-6281
SELECT + col1 * tab0.col0 * + col1 - - col1 / tab0.col1 FROM tab0
----
177505
329316
737010
query I rowsort
SELECT DISTINCT - col2 + - tab0.col1 * col0 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL - + col2 * + col2 + 45 FROM tab2 AS cor0
----
-1399
-631
-684
query I rowsort
SELECT ALL - 71 + col1 * col0 FROM tab2 AS cor0
----
1272
146
4531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049
query I rowsort
SELECT ALL col0 * ( 93 ) + tab2.col0 * - 48 AS col2 FROM tab2
----
315
3510
3555
query I rowsort
SELECT ALL - 58 + + cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0d165f0e2a18ccd7f44b537c9177dad2
query I rowsort
SELECT - + cor0.col0 + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT + cor0.col2 * + 68 FROM tab0 AS cor0
----
2244
5576
68
query I rowsort
SELECT + col1 * + col2 + col0 + cor0.col2 FROM tab1 AS cor0
----
1424
1461
691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 74 col0 FROM tab0 AS cor0
----
-107
-156
-75
query I rowsort
SELECT - + 21 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-546
-567
-798
query I rowsort
SELECT ALL - 72 * - ( - col2 ) FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT DISTINCT - cor0.col0 + + 62 + col0 AS col1 FROM tab0 cor0
----
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT - - CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6296
SELECT - - CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT ALL - + 2 * + col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col2 col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 46 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1086
-124
-686
query I rowsort
SELECT DISTINCT - - 15 * 67 * + col0 AS col0 FROM tab2 AS cor0
----
7035
78390
79395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab1 cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6304
SELECT + col0 * ( - cor0.col2 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6304
SELECT + col0 * ( - cor0.col2 ) + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6305
SELECT ALL + CAST( + col1 AS SIGNED ) + tab1.col2 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + CAST ( + col1 AS INTEGER ) + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 6 * col0 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT - ( + cor0.col0 ) * col2 + + ( cor0.col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + - ( - cor0.col0 ) + col2 * col1 - + 76 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2528
1038
787
query I rowsort
SELECT DISTINCT col2 * 34 AS col1 FROM tab1 AS cor0
----
1836
1938
3264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6311
SELECT CAST( NULL AS SIGNED ) * col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6311
SELECT CAST ( NULL AS INTEGER ) * col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 * - col1 + col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT - + ( 52 ) DIV + col0 + ( + col2 + - col2 ) * col2 FROM tab1 AS cor0
----
-17
0
0
skipif mysql # not compatible
query I rowsort label-6315
SELECT - + ( 52 ) / + col0 + ( + col2 + - col2 ) * col2 FROM tab1 AS cor0
----
-17
0
0
query I rowsort
SELECT ALL - ( - col1 ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 * 9 + + col2 FROM tab2 AS cor0
----
260
270
380
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT ALL + 5 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + 5 / col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT - 57 DIV col0 + + col0 FROM tab2 AS cor0
----
-1
78
79
skipif mysql # not compatible
query I rowsort label-6319
SELECT - 57 / col0 + + col0 FROM tab2 AS cor0
----
-1
78
79
query I rowsort
SELECT DISTINCT 21 * col2 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT - 86 + - col2 * - 26 AS col0 FROM tab1 cor0
----
1318
1396
2410
query I rowsort
SELECT + col2 + + col0 * - ( - col2 + col1 * cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-32775
-3996
-92064
onlyif mysql # use DIV operator for integer division
query I rowsort label-6323
SELECT ALL - 39 * col0 DIV 41 AS col0 FROM tab1 AS cor0
----
-2
-60
-76
skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL - 39 * col0 / 41 AS col0 FROM tab1 AS cor0
----
-2
-60
-76
query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT col0 + 67 * + col2 AS col2 FROM tab2
----
1816
1820
2625
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 * - col0 FROM tab2 AS cor0
----
343
474552
493039
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + - CAST ( 12 + col0 AS REAL ) FROM tab0 AS cor0
----
-19
-3
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT - + col1 + - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-6328
SELECT - + col1 + - col2 / - col2 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 58 * col0 AS col2 FROM tab0 AS cor0
----
1416
2065
5251
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-636080
-753660
-912708
query I rowsort
SELECT ALL col2 - + col0 * tab0.col2 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT tab2.col0 + - col2 + col2 * col1 AS col1 FROM tab2
----
1586
687
817
query I rowsort
SELECT - col2 * + tab2.col1 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT ALL col0 + 80 - + ( + col1 ) * col0 * - col1 FROM tab0
----
177608
329430
737178
query I rowsort
SELECT - col1 + col2 - - col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 + 17 + + col0 FROM tab1
----
17
17
17
query I rowsort
SELECT ALL + col0 * + col1 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT col1 * - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6339
SELECT col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + - col1 + + 24 * + col2 FROM tab1
----
1273
1422
2371
query I rowsort
SELECT ALL + col1 + col1 * - col2 AS col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col0 * col1 - col0 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT DISTINCT - - 33 + - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
32
skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT - - 33 + - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
32
query I rowsort
SELECT ALL ( - cor0.col0 ) * - 95 AS col0 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT + cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT DISTINCT - col0 + col2 DIV + 39 AS col1 FROM tab0 AS cor0
----
-24
-35
-87
skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT - col0 + col2 / + 39 AS col1 FROM tab0 AS cor0
----
-24
-35
-87
query I rowsort
SELECT ALL - col2 * + 60 - - col1 AS col1 FROM tab1 AS cor0
----
-3214
-3410
-5747
query I rowsort
SELECT DISTINCT - col1 * - col0 - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + cor0.col1 * 61 + col1 AS col1 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT + col1 * 92 + + col0 FROM tab0 AS cor0
----
7936
8461
8959
query I rowsort
SELECT col1 * col1 + + col2 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6352
SELECT DISTINCT col2 + - col1 * + col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT col2 + - col1 * + col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + 60 * - 37 AS col2 FROM tab1 cor0
----
-2220
-2220
-2220
query I rowsort
SELECT ALL + 0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - ( col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 38 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1406
-638
-691
query I rowsort
SELECT + col0 * - col1 * ( col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 * - col0 * - col2 - cor0.col1 FROM tab1 cor0
----
207926
737267
8722
query I rowsort
SELECT - - col2 * + col2 + col1 * 15 FROM tab2 AS cor0
----
1194
1561
1699
query I rowsort
SELECT ALL + - col2 + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col1 * 70 * col0 + + ( col2 ) FROM tab1
----
44857
5514
72896
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 * - col2 AS REAL ) - - 7 AS col1 FROM tab2
----
-1527
-639
-830
query I rowsort
SELECT ALL col1 * col2 - col0 * - 99 AS col0 FROM tab0
----
16273
3562
5214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col0 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT + 96 + + 65 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 224757d88ffd580705ec0718cf055dee
query I rowsort
SELECT col2 * + 53 AS col1 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT DISTINCT + col1 + + 12 * cor0.col0 FROM tab1 AS cor0
----
62
778
973
query I rowsort
SELECT DISTINCT 48 * + tab0.col2 * col2 AS col2 FROM tab0
----
322752
48
52272
query I rowsort
SELECT + + col2 * + col0 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
26050
598345
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - + col1 + 82 DIV cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
48
55
84
skipif mysql # not compatible
query I rowsort label-6371
SELECT - + col1 + 82 / cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
48
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT + col0 * 17 + + col2 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
1604
494
692
skipif mysql # not compatible
query I rowsort label-6372
SELECT + col0 * 17 + + col2 / col1 + col1 AS col2 FROM tab0 AS cor0
----
1604
494
692
query I rowsort
SELECT ALL - - col1 * 70 AS col2 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT + col1 + 79 + - 4 AS col2 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT - 4 * col2 * + 74 AS col2 FROM tab0
----
-24272
-296
-9768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6376
SELECT - - CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6376
SELECT - - CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 74 * col2 FROM tab1
----
3996
4218
7104
onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT + ( col0 ) DIV + col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6378
SELECT + ( col0 ) / + col1 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 5 col2 FROM tab0 AS cor0
----
-165
-410
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT ALL col0 DIV - 89 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL col0 / - 89 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT DISTINCT CAST( 19 AS SIGNED ) FROM tab2 AS cor0
----
19
skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT CAST ( 19 AS INTEGER ) FROM tab2 AS cor0
----
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 + + 56 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 811961b9e3e8da086396d32e4434e4fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - col1 ) ) + + 55 * cor0.col0 col0 FROM tab1 AS cor0
----
191
3530
4413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6384
SELECT - ( - col2 * col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6384
SELECT - ( - col2 * col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 79 + + 17 AS col2 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT ALL 97 * + col2 AS col1 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT ALL ( col1 ) + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + - col0 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col2 + 60 FROM tab0
----
142
61
93
query I rowsort
SELECT + - 56 * - col0 AS col2 FROM tab2 AS cor0
----
392
4368
4424
query I rowsort
SELECT ALL + cor0.col0 * + col0 * cor0.col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT + - 59 * + col1 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT DISTINCT ( col1 ) * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * 33 AS col1 FROM tab1
----
-1782
-1881
-3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT DISTINCT ( + col2 ) + tab0.col2 * col2 DIV 15 FROM tab0
----
1
105
530
skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT ( + col2 ) + tab0.col2 * col2 / 15 FROM tab0
----
1
105
530
query I rowsort
SELECT DISTINCT 70 * tab2.col1 + col2 FROM tab2
----
1228
2197
4156
onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT + ( - col2 ) + - col2 DIV col1 AS col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6397
SELECT + ( - col2 ) + - col2 / col1 AS col0 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT DISTINCT col0 * + col1 + col0 * - CAST( 87 AS SIGNED ) * col2 col0 FROM tab0
----
-626827
-66840
350
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT col0 * + col1 + col0 * - CAST ( 87 AS INTEGER ) * col2 col0 FROM tab0
----
-626827
-66840
350
query I rowsort
SELECT cor0.col1 - ( - col2 ) * - col1 * 89 AS col1 FROM tab0 cor0
----
-252496
-664027
-8536
query I rowsort
SELECT ALL cor0.col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - - col2 + 61 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT ALL + col2 * - ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT ALL - col1 * + cor0.col0 + col0 DIV col0 + + col0 * + col2 FROM tab2 AS cor0
----
-2573
-27
1660
skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - col1 * + cor0.col0 + col0 / col0 + + col0 * + col2 FROM tab2 AS cor0
----
-2573
-27
1660
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - - col2 - + col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - cor0.col2 * cor0.col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + 34 AS col2 FROM tab2
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT - ( - col2 ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6408
SELECT - ( - col2 ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT + col1 + 45 AS col0 FROM tab1
----
55
58
71
query I rowsort
SELECT DISTINCT col1 - ( + col2 ) AS col2 FROM tab0
----
53
9
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1
query I rowsort
SELECT + col1 * 19 + + col2 AS col2 FROM tab1 cor0
----
247
343
548
query I rowsort
SELECT DISTINCT - col0 * + col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2, tab0 AS cor3
----
243 values hashing to 79962577c0add9c47b55da7472585e96
query I rowsort
SELECT ALL - col2 + + 5 * 79 * col0 AS col1 FROM tab1
----
1131
25223
31504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6417
SELECT col2 / - CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6417
SELECT col2 / - CAST ( NULL AS INTEGER ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 55 * ( col2 ) col1 FROM tab2 AS cor0
----
1492
1508
2169
query I rowsort
SELECT DISTINCT col0 - 4 AS col0 FROM tab2
----
3
74
75
query I rowsort
SELECT ALL col2 * ( col2 ) + + tab1.col0 AS col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * + 16 AS col2 FROM tab0
----
1401
51
552
query I rowsort
SELECT ALL + col0 * - 70 + col1 AS col1 FROM tab1
----
-184
-4470
-5587
query I rowsort
SELECT col1 + 22 * 8 + col1 FROM tab1
----
196
202
228
query I rowsort
SELECT - col2 * + 57 AS col0 FROM tab0
----
-1881
-4674
-57
query I rowsort
SELECT - + 25 + + col1 * + col1 * 57 AS col1 FROM tab1 AS cor0
----
38507
5675
9608
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6426
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + - cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + - cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col0 + - 13 FROM tab0 AS cor0
----
11
22
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6429
SELECT ALL + CAST( + col2 AS SIGNED ) + cor0.col1 * + col2 DIV - cor0.col2 AS col1 FROM tab1 cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + CAST ( + col2 AS INTEGER ) + cor0.col1 * + col2 / - cor0.col2 AS col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT cor0.col2 + col2 DIV - cor0.col0 col1 FROM tab1 AS cor0
----
36
57
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6430
SELECT cor0.col2 + col2 / - cor0.col0 col1 FROM tab1 AS cor0
----
36
57
95
query I rowsort
SELECT cor0.col0 * col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - cor0.col0 ) ) - col2 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + + ( 59 ) + col2 AS col0 FROM tab1 AS cor0
----
113
116
155
query I rowsort
SELECT - + col1 + + cor0.col2 AS col0 FROM tab1 cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col0 col1 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT - 22 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1185
-1190
-2032
query I rowsort
SELECT DISTINCT - ( 88 ) * + col1 + col0 AS col0 FROM tab0 AS cor0
----
-7544
-7919
-8501
query I rowsort
SELECT DISTINCT - 80 + - 0 FROM tab2 AS cor0
----
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT DISTINCT + - 66 DIV + col1 FROM tab2 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + - 66 / + col1 FROM tab2 cor0
----
-1
-2
-3
query I rowsort
SELECT - - 84 + + col0 FROM tab1 AS cor0
----
148
164
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT 10 DIV + col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6441
SELECT 10 / + col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + ( col2 ) * col1 * - col0 + + 18 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3378
-664182
-68127
query I rowsort
SELECT + 72 + tab0.col1 FROM tab0
----
158
163
169
query I rowsort
SELECT ALL tab2.col2 * - tab2.col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - cor0.col2 + - col2 FROM tab2 cor0
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( col1 ) * - CAST ( - 59 AS REAL ) + col0 * col2 FROM tab0 AS cor0
----
12667
5758
5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL - cor0.col2 * + cor0.col0 - col0 DIV + 1 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - cor0.col2 * + cor0.col0 - col0 / + 1 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + ( - cor0.col2 ) + col2 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * col1 * col1 FROM tab2 cor0
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT DISTINCT ( col0 ) DIV 76 - + 38 * + col0 FROM tab2 AS cor0
----
-266
-2963
-3001
skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT ( col0 ) / 76 - + 38 * + col0 FROM tab2 AS cor0
----
-266
-2963
-3001
query I rowsort
SELECT ALL + 90 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3006
3339
9306
onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT DISTINCT - - 49 DIV + col2 + - ( + cor0.col0 * col1 ) + + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-2062
-3345
-8098
skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - - 49 / + col2 + - ( + cor0.col0 * col1 ) + + col0 / col0 AS col0 FROM tab0 AS cor0
----
-2062
-3345
-8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + + col1 + + 81 * 76 FROM tab0 AS cor0
----
6242
6247
6253
query I rowsort
SELECT DISTINCT col2 + - ( 85 ) AS col2 FROM tab1 AS cor0
----
-28
-31
11
query I rowsort
SELECT ALL col1 * - 77 + 5 AS col0 FROM tab0 AS cor0
----
-6617
-7002
-7464
query I rowsort
SELECT - - cor0.col1 * ( 88 ) AS col1 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT DISTINCT - 67 FROM tab2, tab0 AS cor0
----
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT + 67 * - col0 + col0 DIV + 66 + col2 * col1 FROM tab2 AS cor0
----
-3691
-4646
368
skipif mysql # not compatible
query I rowsort label-6459
SELECT + 67 * - col0 + col0 / + 66 + col2 * col1 FROM tab2 AS cor0
----
-3691
-4646
368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT + cor0.col0 * - col0 + + CAST( NULL AS SIGNED ) - + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6460
SELECT + cor0.col0 * - col0 + + CAST ( NULL AS INTEGER ) - + cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * cor0.col2 + ( + ( + col0 ) ) + 44 FROM tab2 AS cor0
----
-1321
-554
-678
query I rowsort
SELECT - - col0 + col2 * - col1 + 13 FROM tab1 AS cor0
----
-1155
-1388
-493
onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT DISTINCT + 82 DIV - col0 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT + 82 / - col0 FROM tab0
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT col0 DIV + col1 + + col0 * - cor0.col0 - + ( - col0 ) AS col0 FROM tab0 cor0
----
-1190
-552
-7832
skipif mysql # not compatible
query I rowsort label-6464
SELECT col0 / + col1 + + col0 * - cor0.col0 - + ( - col0 ) AS col0 FROM tab0 cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + 44 + 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
137
query I rowsort
SELECT 44 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT col2 * 48 AS col0 FROM tab1
----
2592
2736
4608
query I rowsort
SELECT DISTINCT 78 + - 89 AS col1 FROM tab2, tab2 AS cor0
----
-11
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d
query I rowsort
SELECT DISTINCT - ( col1 ) * + col2 AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT - + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6471
SELECT - + col2 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT + - 32 * col0 FROM tab1 AS cor0
----
-2048
-2560
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT - 30 DIV + col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6475
SELECT - 30 / + col1 AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0, tab2 AS cor0
----
79
query I rowsort
SELECT - col1 * col0 + col2 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + 51 * - col1 - col0 * - 89 FROM tab2
----
-958
3933
6164
query I rowsort
SELECT - 29 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT DISTINCT - + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT ALL - + col1 DIV - col0 + + col1 + 23 AS col2 FROM tab1 AS cor0
----
33
36
57
skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - + col1 / - col0 + + col1 + 23 AS col2 FROM tab1 AS cor0
----
33
36
57
query I rowsort
SELECT DISTINCT + - col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 66 col2 FROM tab0
----
152
157
163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT DISTINCT + col0 + - CAST( 22 AS SIGNED ) AS col1 FROM tab0
----
13
2
67
skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + col0 + - CAST ( 22 AS INTEGER ) AS col1 FROM tab0
----
13
2
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT ALL col0 * CAST( - 35 * + col0 AS SIGNED ) FROM tab1
----
-143360
-224000
-315
skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL col0 * CAST ( - 35 * + col0 AS INTEGER ) FROM tab1
----
-143360
-224000
-315
query I rowsort
SELECT col0 + + ( cor0.col2 ) * - col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col0 + ( 28 * col0 ) + col0 AS col1 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT + 98 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1745
3045
5860
query I rowsort
SELECT + 79 + col0 FROM tab0 AS cor0
----
103
114
168
query I rowsort
SELECT DISTINCT - col0 + - col0 * - col0 AS col0 FROM tab2 cor0
----
42
6006
6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT ALL - CAST( NULL AS SIGNED ) / + 1 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-6492
SELECT ALL - CAST ( NULL AS INTEGER ) / + 1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 89 col1 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT - - 77 * - 15 + cor0.col0 FROM tab0 AS cor0
----
-1066
-1120
-1131
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 0 col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + ( 36 ) + + col0 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT - 91 * 70 + cor1.col2 AS col2 FROM tab0, tab2, tab1 AS cor0, tab2 cor1
----
81 values hashing to 90a8b67c4dde9bf2107595dc1029e0c1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT + 46 DIV tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 793fc3f302e1ddd5579e8d4a2500c5ee
skipif mysql # not compatible
query I rowsort label-6498
SELECT + 46 / tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 793fc3f302e1ddd5579e8d4a2500c5ee
onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT DISTINCT + ( col2 ) DIV col0 + col0 + col0 FROM tab1
----
128
161
24
skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + ( col2 ) / col0 + col0 + col0 FROM tab1
----
128
161
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6500
SELECT 70 * tab2.col0 + - ( - col1 ) DIV - col1 - col0 AS col2 FROM tab2
----
482
5381
5450
skipif mysql # not compatible
query I rowsort label-6500
SELECT 70 * tab2.col0 + - ( - col1 ) / - col1 - col0 AS col2 FROM tab2
----
482
5381
5450
query I rowsort
SELECT - col0 * - col2 * col0 AS col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT - 3 + - col0 * - col0 FROM tab2 AS cor0
----
46
6081
6238
query I rowsort
SELECT + col1 * + col2 + + col1 + col1 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT - 66 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
-5590
-5915
-6305
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 + 52 FROM tab2 AS cor0
----
-1482
-594
-785
onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT + cor0.col0 DIV 3 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 719a4aaf88d8ac72ec3c2142423c981f
skipif mysql # not compatible
query I rowsort label-6506
SELECT + cor0.col0 / 3 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 719a4aaf88d8ac72ec3c2142423c981f
query I rowsort
SELECT ALL + col2 * + 8 * col1 FROM tab0 AS cor0
----
22704
59696
776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT col2 + CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6508
SELECT col2 + CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 * ( col0 + + col2 ) AS col1 FROM tab0 AS cor0
----
15561
3492
4902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6510
SELECT col0 * CAST( NULL AS DECIMAL ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6510
SELECT col0 * CAST ( NULL AS REAL ) + + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 20 * + col2 FROM tab2 cor0
----
571
579
777
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 * col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-273
-5418
-6111
query I rowsort
SELECT + + cor0.col1 + ( + col2 ) * col2 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + + 62 col2 FROM tab0 AS cor0
----
148
153
159
query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL 37 * - col1 - col2 AS col1 FROM tab2
----
-1174
-2209
-667
query I rowsort
SELECT ALL - - col0 - + col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) * 8 * - col1 AS col0 FROM tab0
----
-59168
-66248
-75272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6520
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 54 + col0 FROM tab1 cor0
----
118
134
57
query I rowsort
SELECT + 85 * + 31 FROM tab0 AS cor0
----
2635
2635
2635
query I rowsort
SELECT ALL cor0.col1 * cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + ( - col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT ALL col1 * ( col0 ) DIV + tab2.col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL col1 * ( col0 ) / + tab2.col0 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT DISTINCT 7 * 13 DIV + col2 + 23 * - 39 AS col2 FROM tab1 AS cor0
----
-896
-897
skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT 7 * 13 / + col2 + 23 * - 39 AS col2 FROM tab1 AS cor0
----
-896
-897
query I rowsort
SELECT 55 * col0 - col2 AS col1 FROM tab2 AS cor0
----
358
4264
4307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col1 FROM tab2
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6530
SELECT + CAST( NULL AS SIGNED ) * - 92 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6530
SELECT + CAST ( NULL AS INTEGER ) * - 92 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col0 + 26 * col0 col1 FROM tab2
----
371
4056
5056
query I rowsort
SELECT DISTINCT - + col0 * col0 * col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-13791
-42874
-704887
query I rowsort
SELECT - - 50 AS col1 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT ALL col2 DIV - col2 col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL col2 / - col2 col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col0 * 39 FROM tab2
----
273
3042
3081
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - - 42 + + col2 AS col1 FROM tab1 AS cor0
----
138
96
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col0 * + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT col1 * col1 + - 40 FROM tab1 AS cor0
----
129
60
636
onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT cor0.col2 DIV - cor0.col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6541
SELECT cor0.col2 / - cor0.col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + 96 + - col2 * - 72 AS col0 FROM tab2 cor0
----
1968
2040
2832
query I rowsort
SELECT ALL col0 * - col0 + col1 * col1 AS col0 FROM tab2
----
-2603
-5952
912
query I rowsort
SELECT ALL cor0.col0 * ( + col0 ) + col1 AS col2 FROM tab0 cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col0 col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6546
SELECT ALL + - col2 + + CAST( 31 AS SIGNED ) * - col0 + + 43 FROM tab2 AS cor0
----
-201
-2401
-2444
skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + - col2 + + CAST ( 31 AS INTEGER ) * - col0 + + 43 FROM tab2 AS cor0
----
-201
-2401
-2444
query I rowsort
SELECT + + col0 + - ( - 56 * col0 ) AS col1 FROM tab2 AS cor0
----
399
4446
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT DISTINCT col0 DIV col0 - 19 FROM tab0 AS cor0
----
-18
skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT col0 / col0 - 19 FROM tab0 AS cor0
----
-18
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL - 74 - - col2 AS col2 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT + - col1 * + ( - col0 ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + 98 - col1 AS col1 FROM tab2 AS cor0
----
39
67
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col0 * 81 AS col2 FROM tab1 AS cor0
----
51840
6318
84240
skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col0 * 81 AS col2 FROM tab1 AS cor0
----
51840
6318
84240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT DISTINCT col0 + - col2 * col0 DIV + 5 FROM tab0 cor0
----
-134
-1370
28
skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT col0 + - col2 * col0 / + 5 FROM tab0 cor0
----
-134
-1370
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT DISTINCT - col1 DIV 71 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - col1 / 71 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT 39 + + cor2.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to bb129421bf7b2af1b5b27d97fdde1632
query I rowsort
SELECT ALL - ( - 10 ) * col2 AS col1 FROM tab2 AS cor0
----
260
270
380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab0 AS cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT - col0 DIV CAST( col0 + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6559
SELECT - col0 / CAST ( col0 + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 * + cor0.col2 * + col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + col0 + + 85 * + col1 * - col1 FROM tab2 AS cor0
----
-24486
-295807
-81678
query I rowsort
SELECT - cor0.col2 + ( + 42 ) FROM tab2 AS cor0
----
15
16
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT - col0 + - CAST( + 88 AS SIGNED ) col1 FROM tab0 cor0
----
-112
-123
-177
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6563
SELECT - col0 + - CAST ( + 88 AS INTEGER ) col1 FROM tab0 cor0
----
-112
-123
-177
query I rowsort
SELECT - - col0 * 47 * col1 AS col2 FROM tab1 AS cor0
----
30080
3666
48880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 86 * col2 col2 FROM tab1 cor0
----
13932
313728
660480
query I rowsort
SELECT + - col1 + - 43 AS col0 FROM tab2 AS cor0
----
-102
-60
-74
query I rowsort
SELECT DISTINCT ( - ( - cor0.col1 ) ) + - cor0.col2 * cor0.col0 FROM tab1, tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
47
query I rowsort
SELECT - col2 * - col2 + - cor0.col1 FROM tab0 cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 col0 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT 32 + + col1 * + 72 FROM tab0 AS cor0
----
6224
6584
7016
query I rowsort
SELECT ( - col0 ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT col2 * - col0 + col1 DIV - ( col0 + col1 * - 42 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6573
SELECT col2 * - col0 + col1 / - ( col0 + col1 * - 42 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab2 cor0
----
54
57
96
query I rowsort
SELECT ALL - tab2.col1 * col0 * - col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + - col2 * - col1 col2 FROM tab1 AS cor0
----
1417
2080
670
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT DISTINCT - 75 DIV cor0.col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT - 75 / cor0.col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + 97 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT + - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT + + 51 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - col2 - + tab2.col0 AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col0 - - 4 * col2 AS col2 FROM tab2
----
115
182
231
query I rowsort
SELECT - col1 * ( col0 ) + + col2 + + col1 FROM tab1 AS cor0
----
-573
-931
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT - col0 * - ( 9 ) * col2 + + ( + col0 ) DIV col1 FROM tab0 AS cor0
----
315
65682
7128
skipif mysql # not compatible
query I rowsort label-6585
SELECT - col0 * - ( 9 ) * col2 + + ( + col0 ) / col1 FROM tab0 AS cor0
----
315
65682
7128
query I rowsort
SELECT ALL + ( - tab2.col1 ) FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab0 AS cor0
----
-60
-60
-60
query I rowsort
SELECT - + 82 AS col0 FROM tab2 cor0
----
-82
-82
-82
query I rowsort
SELECT + - 9 * cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT DISTINCT 42 + col0 AS col2 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT DISTINCT col0 + 80 * + col0 AS col0 FROM tab1
----
243
5184
6480
query I rowsort
SELECT - cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL ( - col1 ) * + col2 * - 51 + 11 AS col2 FROM tab0
----
144749
380573
4958
query I rowsort
SELECT DISTINCT - col1 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL - col1 * cor0.col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 77 + col0 AS col0 FROM tab0
----
101
112
166
query I rowsort
SELECT col1 + + 14 * col0 + col2 AS col1 FROM tab1
----
122
1229
963
onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT ALL 86 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
28
skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL 86 / col0 AS col2 FROM tab1 AS cor0
----
1
1
28
query I rowsort
SELECT ALL 36 + col2 AS col2 FROM tab2 cor0
----
62
63
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT - col0 DIV + col0 + col2 col2 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6602
SELECT - col0 / + col0 + col2 col2 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT col1 DIV col0 - - 10 FROM tab2
----
10
10
14
skipif mysql # not compatible
query I rowsort label-6603
SELECT col1 / col0 - - 10 FROM tab2
----
10
10
14
query I rowsort
SELECT col2 - col2 * + col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL - ( col2 ) + col1 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - 69 * + col0 + 47 FROM tab1
----
-160
-4369
-5473
query I rowsort
SELECT DISTINCT + tab2.col2 + + col1 * - 84 AS col1 FROM tab2
----
-1390
-2577
-4930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * col2 col0 FROM tab0 AS cor0
----
2904
7216
88
query I rowsort
SELECT ALL col0 + - col2 - 47 AS col2 FROM tab1 cor0
----
-40
-63
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT 43 * col1 + col2 DIV - col2 FROM tab1 AS cor0
----
1117
429
558
skipif mysql # not compatible
query I rowsort label-6610
SELECT 43 * col1 + col2 / - col2 FROM tab1 AS cor0
----
1117
429
558
query I rowsort
SELECT - - ( + col0 ) * col2 + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col0 * - 66 AS col2 FROM tab1 cor0
----
-198
-4224
-5280
query I rowsort
SELECT ALL - col1 - 80 FROM tab0 AS cor0
----
-166
-171
-177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + 0 + col1 col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col2 * 23 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-330
-4838
22
query I rowsort
SELECT DISTINCT - col2 * - 22 * col0 AS col1 FROM tab1 AS cor0
----
168960
3564
80256
query I rowsort
SELECT col2 * 15 AS col2 FROM tab1 AS cor0
----
1440
810
855
onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT ALL + - col0 + + 97 DIV cor0.col1 FROM tab2 AS cor0
----
-4
-74
-77
skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + - col0 + + 97 / cor0.col1 FROM tab2 AS cor0
----
-4
-74
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT + - col2 * - CAST( cor0.col0 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + - col2 * - CAST ( cor0.col0 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT DISTINCT + col0 + - ( col0 ) DIV + cor0.col1 FROM tab1 cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT + col0 + - ( col0 ) / + cor0.col1 FROM tab1 cor0
----
3
58
74
query I rowsort
SELECT ALL - col2 + - ( cor0.col1 ) * + col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT - col0 DIV col2 + 47 * - col0 AS col1 FROM tab0 AS cor0
----
-1128
-1680
-4184
skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - col0 / col2 + 47 * - col0 AS col1 FROM tab0 AS cor0
----
-1128
-1680
-4184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab2.col2 col1 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL - tab0.col1 + col0 * - ( + 45 * col2 ) AS col0 FROM tab0
----
-1672
-328501
-35726
query I rowsort
SELECT ALL - + col0 * col1 * col2 - - col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + - ( 11 ) + - col2 col1 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT ALL col1 + col2 * + 66 FROM tab0 AS cor0
----
163
2264
5503
query I rowsort
SELECT + 71 FROM tab2, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * + 77 AS col2 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT cor0.col1 * 7 AS col1 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT - + 78 AS col1 FROM tab1 AS cor0
----
-78
-78
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT ( - col2 ) * col1 * CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6633
SELECT ( - col2 ) * col1 * CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 43 + 17 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6636
SELECT + col2 + - CAST( 20 + col0 AS SIGNED ) FROM tab1
----
-27
-4
31
skipif mysql # not compatible
query I rowsort label-6636
SELECT + col2 + - CAST ( 20 + col0 AS INTEGER ) FROM tab1
----
-27
-4
31
query I rowsort
SELECT ALL + col0 * ( - col1 + - tab0.col1 ) FROM tab0
----
-16198
-4128
-6790
query I rowsort
SELECT col1 + + 78 * + col2 FROM tab0
----
175
2660
6487
query I rowsort
SELECT DISTINCT + + 8 + - col2 AS col1 FROM tab1 cor0
----
-46
-49
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT DISTINCT + + cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + + cor0.col0 / col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + col0 + col1 * col1 * col1 FROM tab2 AS cor0
----
205457
29798
4992
query I rowsort
SELECT col2 + + col1 - col1 * col2 FROM tab2 AS cor0
----
-1449
-591
-779
query I rowsort
SELECT ALL col1 + + col2 * 72 * - col0 AS col0 FROM tab2 AS cor0
----
-13577
-145957
-216127
onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT + col2 DIV - col1 + 23 * - ( - col2 ) FROM tab0 AS cor0
----
1886
23
759
skipif mysql # not compatible
query I rowsort label-6644
SELECT + col2 / - col1 + 23 * - ( - col2 ) FROM tab0 AS cor0
----
1886
23
759
query I rowsort
SELECT + col2 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT col0 * cor0.col0 * 94 AS col1 FROM tab2 AS cor0
----
4606
571896
586654
query I rowsort
SELECT ALL - - 37 + + col1 AS col0 FROM tab1 cor0
----
47
50
63
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - + col1 + col1 * + col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL tab2.col0 + + 49 AS col2 FROM tab2
----
127
128
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT - col2 * - col2 + ( - col1 + col2 ) DIV col2 FROM tab0 AS cor0
----
-95
1088
6724
skipif mysql # not compatible
query I rowsort label-6651
SELECT - col2 * - col2 + ( - col1 + col2 ) / col2 FROM tab0 AS cor0
----
-95
1088
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col0 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT DISTINCT - col0 * tab2.col2 DIV col1 + - col1 AS col2 FROM tab2
----
-193
-37
-93
skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - col0 * tab2.col2 / col1 + - col1 AS col2 FROM tab2
----
-193
-37
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6654
SELECT - 67 DIV + 71 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6654
SELECT - 67 / + 71 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col1 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + 12 * col1 AS col2 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT DISTINCT ( 83 ) FROM tab1
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col2 FROM tab0
----
16
16
16
query I rowsort
SELECT col2 + - col0 * col2 * col2 AS col1 FROM tab0
----
-26103
-34
-598354
query I rowsort
SELECT - + col1 * col2 + + 76 + 74 FROM tab1 AS cor0
----
-1098
-1254
-420
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT + col1 DIV - col1 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + col1 / - col1 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 16 + col0 FROM tab1 AS cor0
----
19
80
96
query I rowsort
SELECT - col0 * 82 - + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1600
-84
1120
query I rowsort
SELECT - col1 * - 96 AS col2 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT col2 * col0 - col1 AS col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - + col0 - ( col1 * cor0.col2 ) FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT col0 * + ( 85 ) + col1 FROM tab0 AS cor0
----
2126
3072
7656
query I rowsort
SELECT ALL col0 * 11 FROM tab0 AS cor0
----
264
385
979
query I rowsort
SELECT - col1 * 95 - col1 AS col2 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT - col0 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT 94 + + 11 * col1 AS col2 FROM tab2 AS cor0
----
281
435
743
query I rowsort
SELECT ALL + - 53 * + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71378b6ee6e5b09105b1b58c3d50df38
query I rowsort
SELECT 68 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + - col0 * col0 - col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT col1 * - col2 + + col2 - 84 AS col2 FROM tab1 AS cor0
----
-1236
-1434
-597
query I rowsort
SELECT 63 + cor0.col1 AS col0 FROM tab2 AS cor0
----
122
80
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT ALL - + ( col1 ) DIV col0 AS col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - + ( col1 ) / col0 AS col0 FROM tab1 cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT - col2 DIV - 54 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6679
SELECT - col2 / - 54 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT ( + 33 ) FROM tab2 AS cor0
----
33
query I rowsort
SELECT ALL - 69 * + cor0.col0 - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-13439
-2448
-2450
query I rowsort
SELECT DISTINCT 58 * - ( cor0.col1 + col2 * col0 ) AS col0 FROM tab0 AS cor0
----
-428562
-50924
-7656
query I rowsort
SELECT ALL + 34 + cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 696e414aa9bd530f206afc559751e5e3
query I rowsort
SELECT DISTINCT ( col1 ) * + 47 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
-13583
-163607
-45167
query I rowsort
SELECT DISTINCT - - 91 * col2 + - cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-103
2831
7280
query I rowsort
SELECT DISTINCT + col0 * col2 * col2 + - col0 * - 49 FROM tab2
----
117947
5446
56550
query I rowsort
SELECT + 23 - + col1 * col2 FROM tab1
----
-1225
-1381
-547
query I rowsort
SELECT DISTINCT + + 5 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2 cor1
----
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - col2 ) col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col2 * ( + 66 ) AS col2 FROM tab1 AS cor0
----
3564
3762
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT + - col2 DIV 37 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6691
SELECT + - col2 / 37 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT ALL - 79 DIV tab1.col2 AS col0 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - 79 / tab1.col2 AS col0 FROM tab1
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6693
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
onlyif mysql # use DIV operator for integer division
query I rowsort label-6695
SELECT - col0 DIV 23 AS col2 FROM tab0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-6695
SELECT - col0 / 23 AS col2 FROM tab0
----
-1
-1
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT col2 DIV - tab0.col0 AS col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6696
SELECT col2 / - tab0.col0 AS col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col0 - col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL tab2.col2 + - ( - col2 ) * + col0 - - col2 AS col2 FROM tab2
----
2080
243
3078
query I rowsort
SELECT col2 * + 60 AS col2 FROM tab1 cor0
----
3240
3420
5760
query I rowsort
SELECT + col2 * - col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT + 8 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6702
SELECT tab0.col1 + CAST( NULL AS DECIMAL ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6702
SELECT tab0.col1 + CAST ( NULL AS REAL ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 AS cor0 WHERE - col1 NOT IN ( col1 )
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT ALL col1 DIV cor0.col2 + col2 DIV + col1 AS col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL col1 / cor0.col2 + col2 / + col1 AS col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT ALL - col2 + - col1 * - col2 AS col0 FROM tab2
----
1508
608
810
query I rowsort
SELECT ALL col2 * + col0 + col0 + col2 FROM tab2
----
2132
223
3119
query I rowsort
SELECT col1 + + col2 * + tab0.col2 * + col0 AS col1 FROM tab0
----
132
26222
598527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - col1 col2 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT - col1 + + col2 * tab2.col0 * + col1 + col2 AS col1 FROM tab2 WHERE NOT NULL = + col1 - - col2
----
query I rowsort
SELECT + col1 + col2 * col1 + - col0 AS col2 FROM tab1
----
1181
1427
516
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * - col2 ) NOT BETWEEN ( col2 ) AND NULL
----
query I rowsort
SELECT - col0 * cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL col2 * - tab2.col1 - + col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT + col2 * col0 + + tab1.col2 * + col1 + col1 FROM tab1
----
1592
4228
8941
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 + + col0 * col2 col2 FROM tab0 cor0
----
-6604
-9374
-983
query I rowsort
SELECT ALL - col1 + - tab0.col0 * col0 * col2 FROM tab0
----
-1322
-19094
-649613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + col2 * - col0 + col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL + col2 + - col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT DISTINCT + col0 DIV col0 + + col1 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT + col0 / col0 + + col1 FROM tab2 cor0
----
18
32
60
query I rowsort
SELECT - + col0 * - col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + - col2 * + col2 * - col2 + cor0.col2 FROM tab1 AS cor0
----
157518
185250
884832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT + + col2 * col2 + + col1 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-6724
SELECT + + col2 * col2 + + col1 + col0 / col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NULL > ( col0 ) OR NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT col0 + - col0 DIV col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6726
SELECT col0 + - col0 / col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT - ( 7 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab1.col1 ) + - col0 * + col0 * col2 col1 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT + cor1.col2 FROM tab1, tab2, tab0 cor0, tab1 cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT col0 * col1 * - ( col2 ) + col0 * - 46 FROM tab1
----
-103520
-39424
-4350
query I rowsort
SELECT + col0 * col0 + 29 FROM tab0
----
1254
605
7950
query I rowsort
SELECT DISTINCT + - 10 FROM tab1, tab2, tab1 AS cor0
----
-10
query I rowsort
SELECT DISTINCT - 66 + - col0 FROM tab1
----
-130
-146
-69
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col1 + col2 + + ( - col2 ) * + col2 FROM tab0 AS cor0
----
-1142
-6733
-97
query I rowsort
SELECT cor0.col2 + + col2 + col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col0 + + 37 FROM tab0 AS cor0
----
126
61
72
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 + + CAST ( - col0 AS REAL ) + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2121
-3431
-8270
query I rowsort
SELECT DISTINCT - col2 * 13 + 56 FROM tab1 AS cor0
----
-1192
-646
-685
query I rowsort
SELECT ALL + + col1 - - col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT col2 + + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT ALL - col0 DIV 74 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7681
skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL - col0 / 74 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT DISTINCT + - col1 * 67 + + col1 DIV + col0 FROM tab1 AS cor0
----
-1734
-670
-871
skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + - col1 * 67 + + col1 / + col0 FROM tab1 AS cor0
----
-1734
-670
-871
onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT ALL - col2 DIV col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - col2 / col2 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - - col2 * + col2 + - 87 FROM tab1 AS cor0
----
2829
3162
9129
query I rowsort
SELECT ALL col0 * - ( col2 ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col2 * + col0 + col1 * + 45 AS col1 FROM tab0
----
11393
4400
4662
query I rowsort
SELECT DISTINCT - 52 + - col1 * tab2.col2 * - col2 FROM tab2
----
22547
24496
39832
query I rowsort
SELECT - col1 + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT cor0.col2 + + ( + col1 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col2 * col2 * tab0.col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT col2 * - col1 * + tab0.col2 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - tab1.col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT tab1.col0 + col1 * tab1.col1 FROM tab1
----
164
249
679
query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL = NULL
----
query I rowsort
SELECT ALL tab0.col0 + - col1 + + col0 AS col2 FROM tab0
----
-27
-38
87
query I rowsort
SELECT col2 * + col2 * - col1 AS col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + tab2.col2 * col0 + col1 + + tab2.col0 AS col1 FROM tab2
----
2165
227
3098
query I rowsort
SELECT col0 * - col2 * - col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + col0 * - col2 + col1 * + col1 FROM tab1
----
-3548
-7511
514
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE ( NULL ) IN ( + col0 )
----
query I rowsort
SELECT DISTINCT + 8 - - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2830
-7454
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col1 + + tab0.col0 + + col1 * tab0.col0 AS col2 FROM tab0
----
2002
3333
8097
query III rowsort
SELECT * FROM tab2 WHERE NOT - tab2.col1 + - col0 * col2 BETWEEN + col2 * - col0 / + col1 AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * + col1 col0 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0 WHERE NULL = ( NULL )
----
query I rowsort
SELECT + col0 * + col1 * - col2 + col1 AS col1 FROM tab2
----
-119593
-51017
-5828
query I rowsort
SELECT col2 + - col0 - - col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL - tab0.col2 * col1 * col0 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - col0 + + col1 * - tab0.col2 + - col0 FROM tab0
----
-167
-2886
-7640
query I rowsort
SELECT ALL - col0 + + col2 * + col2 + - col0 * - col2 * - col2 FROM tab0 WHERE ( col2 * - col2 + col2 ) <> NULL
----
query I rowsort
SELECT ALL + tab1.col0 * tab1.col2 * col0 AS col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - 15 * + col0 FROM tab2
----
-105
-1170
-1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT - col1 DIV - 73 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6776
SELECT - col1 / - 73 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT - 33 DIV - cor0.col1 col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 1e75b7a3597f1f179d63802aee91f2ca
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6777
SELECT - 33 / - cor0.col1 col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 1e75b7a3597f1f179d63802aee91f2ca
query I rowsort
SELECT - 56 * + col0 FROM tab1
----
-168
-3584
-4480
query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - tab0.col2 * col0 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * - col1 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 * - col0 + - col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT + - cor0.col2 + ( - col0 * col1 ) FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT - - col2 * cor0.col0 + 53 DIV - col1 AS col2 FROM tab2 cor0
----
188
2028
2999
skipif mysql # not compatible
query I rowsort label-6784
SELECT - - col2 * cor0.col0 + 53 / - col1 AS col2 FROM tab2 cor0
----
188
2028
2999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 67 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT DISTINCT + + ( - col2 ) + cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col1 * + 88 AS col0 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT DISTINCT + 3 * + col2 AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT + col1 + + col1 * col2 + col1 FROM tab2 cor0
----
1652
680
899
query I rowsort
SELECT ALL + - col2 + col2 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT - - CAST( 36 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-6792
SELECT - - CAST ( 36 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT 98 * col2 + + col1 AS col1 FROM tab2 cor0
----
2607
2677
3741
query I rowsort
SELECT + - 19 * + col1 * ( col1 * cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-12901880
-178772
-4637325
query I rowsort
SELECT ALL - cor0.col0 * 73 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b8ed8ab0baacb8f3308669db8c62d323
query I rowsort
SELECT - 28 + col0 * - col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-136
-3619
-7612
query I rowsort
SELECT + col1 + - col2 * + col0 AS col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT + + 36 * col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT ALL - ( - col1 ) + col2 - - col0 AS col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL col1 * + col2 + - col2 * + col2 * - col0 FROM tab1 AS cor0
----
10152
208506
738528
query I rowsort
SELECT DISTINCT + col0 - cor0.col2 * col1 * - col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT col1 * - cor0.col1 * col0 - col0 FROM tab2 cor0
----
-22910
-271596
-6734
query I rowsort
SELECT cor0.col2 * col1 - - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT + col2 DIV - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-6805
SELECT + col2 / - cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT + ( + ( cor0.col2 ) ) + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL - ( - tab2.col0 ) * col0 * col1 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL ( - col0 * + col0 ) AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + + col0 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT ( ( - col2 ) ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL 24 * col0 FROM tab2
----
168
1872
1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col2 * col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + CAST ( NULL AS REAL ) * col2 * col2 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT ALL - + 32 + col0 AS col2 FROM tab1 AS cor0
----
-29
32
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6816
SELECT ALL + + CAST( + col2 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + + CAST ( + col2 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + cor0.col2 * 94 FROM tab2 cor0
----
2444
2538
3572
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6820
SELECT - CAST( NULL AS SIGNED ) * + ( + col0 ) * col0 + + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6820
SELECT - CAST ( NULL AS INTEGER ) * + ( + col0 ) * col0 + + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT ALL + CAST( - col0 AS SIGNED ) * col0 * 75 + col1 * col0 FROM tab1 AS cor0
----
-306560
-478960
-597
skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + CAST ( - col0 AS INTEGER ) * col0 * 75 + col1 * col0 FROM tab1 AS cor0
----
-306560
-478960
-597
query I rowsort
SELECT + ( - col0 ) - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - ( - col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 - - col1 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT DISTINCT - col2 * + 78 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT - - cor0.col2 * 11 + + col1 FROM tab0 AS cor0
----
108
449
993
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6828
SELECT ALL + CAST( NULL AS SIGNED ) * ( cor0.col2 ) + col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + CAST ( NULL AS INTEGER ) * ( cor0.col2 ) + col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - ( col2 ) + - col1 + col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + col1 + - 22 * - col2 FROM tab0 AS cor0
----
119
1895
812
query I rowsort
SELECT - ( 79 ) AS col2 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + 92 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843
query I rowsort
SELECT 17 AS col1 FROM tab2 cor0
----
17
17
17
query I rowsort
SELECT DISTINCT - + col1 * col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - 70 + cor0.col1 AS col1 FROM tab0 AS cor0
----
16
21
27
query I rowsort
SELECT DISTINCT - - col2 * + col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 col0 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT + CAST( + col0 AS SIGNED ) + - col2 * ( col0 + - col1 ) DIV ( col0 + - col1 ) AS col2 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-6839
SELECT + CAST ( + col0 AS INTEGER ) + - col2 * ( col0 + - col1 ) / ( col0 + - col1 ) AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col0 + + cor0.col1 * - 55 + cor0.col0 FROM tab0 AS cor0
----
-4682
-4827
-5265
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT DISTINCT + col1 * CAST( + col1 + + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1798
5015
935
skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + col1 * CAST ( + col1 + + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1798
5015
935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6842
SELECT col2 * col0 + cor0.col0 / - cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6842
SELECT col2 * col0 + cor0.col0 / - cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * - 16 AS col1 FROM tab0 cor0
----
1376
1456
1552
query I rowsort
SELECT - + col1 + cor0.col0 + col0 FROM tab0 AS cor0
----
-27
-38
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 84 * col0 + col1 col0 FROM tab1 AS cor0
----
344074
537613
782
query I rowsort
SELECT ALL ( + tab0.col2 ) * 72 AS col1 FROM tab0
----
2376
5904
72
query I rowsort
SELECT ALL - + col2 * col2 * + col1 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + cor0.col1 * 0 * col0 + col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6849
SELECT ALL - tab0.col2 * - col1 + + 87 * - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - tab0.col2 * - col1 + + 87 * - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + 67 FROM tab1
----
-13
3
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT - col0 DIV + col1 + - col0 FROM tab1 AS cor0
----
-3
-70
-86
skipif mysql # not compatible
query I rowsort label-6851
SELECT - col0 / + col1 + - col0 FROM tab1 AS cor0
----
-3
-70
-86
query I rowsort
SELECT col1 - - 24 AS col2 FROM tab2
----
41
55
83
query I rowsort
SELECT - tab0.col0 * 48 * - col0 FROM tab0
----
27648
380208
58800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6854
SELECT ALL + 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-6854
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * + col2 col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - col0 * 79 + - col1 + - col2 * 93 * col1 AS col1 FROM tab2
----
-148883
-66336
-78425
onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL 92 DIV ( + cor0.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL 92 / ( + cor0.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
query I rowsort
SELECT - col1 + 79 + - col1 AS col1 FROM tab2 cor0
----
-39
17
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT - + col1 DIV col1 + - col2 DIV - col0 + col2 FROM tab0 AS cor0
----
0
33
81
skipif mysql # not compatible
query I rowsort label-6859
SELECT - + col1 / col1 + - col2 / - col0 + col2 FROM tab0 AS cor0
----
0
33
81
query I rowsort
SELECT 5 * 62 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 59b54c0cfe39a720d67da23971036664
query I rowsort
SELECT + col2 + + col2 + 84 FROM tab2
----
136
138
160
query I rowsort
SELECT DISTINCT + tab0.col0 + - col1 AS col2 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT DISTINCT tab1.col0 + col1 DIV col0 AS col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT tab1.col0 + col1 / col0 AS col0 FROM tab1
----
11
64
80
query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col0 * - ( col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT 95 * ( - tab1.col2 ) AS col1 FROM tab1
----
-5130
-5415
-9120
query I rowsort
SELECT DISTINCT col1 * ( - col2 * + tab2.col1 ) FROM tab2
----
-10982
-25947
-90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 + 95 * col0 FROM tab1
----
311
6090
7613
query I rowsort
SELECT - 19 FROM tab2, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - ( 22 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT tab1.col2 DIV col2 - - col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6872
SELECT tab1.col2 / col2 - - col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT + 63 + col0 * 70 AS col0 FROM tab1
----
273
4543
5663
query I rowsort
SELECT cor0.col2 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT - ( - 81 ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL - col0 * 13 + + 34 AS col0 FROM tab2 AS cor0
----
-57
-980
-993
query I rowsort
SELECT ALL col2 * + 73 + + col0 AS col2 FROM tab1 AS cor0
----
3945
4225
7088
query I rowsort
SELECT DISTINCT + cor0.col0 + ( col1 ) + - col2 FROM tab2 AS cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT + cor0.col2 DIV + 85 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6879
SELECT + cor0.col2 / + 85 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT + + col0 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6880
SELECT + + col0 / cor0.col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + + cor0.col2 + - col0 * 28 AS col0 FROM tab2 AS cor0
----
-169
-2158
-2174
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT + col0 + col0 DIV - col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6882
SELECT + col0 + col0 / - col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT ALL + col2 DIV - col1 + col1 * 3 col1 FROM tab0 AS cor0
----
258
273
291
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + col2 / - col1 + col1 * 3 col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + + 5 * col2 - + col1 * ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-355
-560
192
query I rowsort
SELECT DISTINCT ( 3 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT ALL col2 - - col0 DIV - 43 FROM tab0 AS cor0
----
1
33
80
skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL col2 - - col0 / - 43 FROM tab0 AS cor0
----
1
33
80
query I rowsort
SELECT col1 * - ( 79 ) + col0 FROM tab0 AS cor0
----
-6770
-7100
-7628
query I rowsort
SELECT ALL - col2 * - ( col1 * + col2 ) - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
119639
32390
75140
query I rowsort
SELECT col0 * + col0 + 10 * - col0 AS col2 FROM tab0 AS cor0
----
336
7031
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + col0 col1 FROM tab2
----
15
86
87
query I rowsort
SELECT DISTINCT + 14 * col2 AS col0 FROM tab1
----
1344
756
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT + + ( + ( - col0 ) ) DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6893
SELECT + + ( + ( - col0 ) ) / - col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + 65 * - col2 FROM tab0 AS cor0
----
-2145
-5330
-65
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 95 + col2 AS col2 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab2, tab0 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT DISTINCT - col0 DIV 67 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - col0 / 67 FROM tab2
----
-1
0
query I rowsort
SELECT + tab0.col2 + + tab0.col2 * + col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT - 15 * 58 FROM tab1, tab1 AS cor0
----
9 values hashing to ac90366b330ec6c4791d17562d74fb33
query I rowsort
SELECT ALL - 81 * + ( col0 ) FROM tab2
----
-567
-6318
-6399
query I rowsort
SELECT + + ( + col0 ) * col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6903
SELECT CAST( col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-6903
SELECT CAST ( col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 5 * 65 FROM tab0 AS cor0
----
325
325
325
onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT ALL + 40 * col0 DIV - col2 AS col1 FROM tab0
----
-1400
-29
-43
skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL + 40 * col0 / - col2 AS col1 FROM tab0
----
-1400
-29
-43
query I rowsort
SELECT ALL - col0 * - col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + 7 * tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 94593d6135bed9a412b6f2ca8977b15f
query I rowsort
SELECT ( col0 * col2 ) - col0 * + tab2.col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 38 + col2 FROM tab0
----
120
39
71
query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 * + ( tab1.col2 ) AS col0 FROM tab1
----
-36537
-4266
-99936
query I rowsort
SELECT 44 - + col1 AS col1 FROM tab1
----
18
31
34
query I rowsort
SELECT ALL - 52 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 17 * col1 AS col2 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT ALL 61 FROM tab0 cor0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT - + col2 + + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6916
SELECT - + col2 + + col2 / col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT 92 * col1 + - col2 * - 51 FROM tab0 AS cor0
----
12554
8975
9595
query I rowsort
SELECT DISTINCT + + 32 AS col2 FROM tab0 AS cor0
----
32
query I rowsort
SELECT DISTINCT col0 + + tab0.col0 * - tab0.col0 AS col2 FROM tab0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT col1 + 10 DIV tab0.col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6920
SELECT col1 + 10 / tab0.col0 FROM tab0
----
86
91
97
query I rowsort
SELECT - - cor0.col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 + ( - col1 * - cor0.col1 ) FROM tab1 cor0
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 + + col1 + ( 21 ) col0 FROM tab1 AS cor0
----
209
3679
7714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 * - col2 * cor0.col0 col1 FROM tab2 cor0
----
-15309
-164268
-243162
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT + + 81 + cor0.col1 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT DISTINCT 28 + + col0 + col0 AS col0 FROM tab2 AS cor0
----
184
186
42
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) * - cor0.col0 - col2 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + 23 col1 FROM tab2
----
6107
6264
72
query I rowsort
SELECT - + ( + col2 ) - col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT DISTINCT 80 DIV - col2 + col2 * - cor0.col0 FROM tab1 cor0
----
-163
-3649
-7680
skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT 80 / - col2 + col2 * - cor0.col0 FROM tab1 cor0
----
-163
-3649
-7680
query I rowsort
SELECT DISTINCT - 95 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT DISTINCT + 39 * col1 + - ( 5 ) * col0 FROM tab0 AS cor0
----
3104
3234
3608
query I rowsort
SELECT DISTINCT + col1 + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + ( col0 ) * ( 83 ) + + col1 * 87 FROM tab1 AS cor0
----
2511
6182
7771
query I rowsort
SELECT ALL - - col1 * - col1 + 95 AS col1 FROM tab1 cor0
----
-5
-581
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6937
SELECT - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6937
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + cor0.col1 * - 34 * + col1 FROM tab2 AS cor0
----
-118432
-32681
-9905
query I rowsort
SELECT DISTINCT col2 * 76 + + 11 * - cor0.col2 FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT DISTINCT + cor0.col0 * 21 * + 91 + - col1 FROM tab1 AS cor0
----
122294
152867
5707
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL 51 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL - col1 + + 46 * col0 AS col1 FROM tab2 AS cor0
----
291
3529
3617
query I rowsort
SELECT + col0 - - 78 AS col1 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT DISTINCT - + col2 + + 71 AS col0 FROM tab2 AS cor0
----
33
44
45
query I rowsort
SELECT ALL + cor0.col0 * col1 - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + - col1 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + cor0.col0 * + col2 + + cor0.col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL - ( + ( col0 ) ) + + 89 FROM tab2 cor0
----
10
11
82
query I rowsort
SELECT DISTINCT 90 + col0 * - col0 FROM tab0 AS cor0
----
-1135
-486
-7831
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 * col0 col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - 66 * - 39 AS col1 FROM tab1 AS cor0
----
2574
onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT ALL - col1 * - cor0.col0 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
1040
639
78
skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - col1 * - cor0.col0 + - cor0.col0 / col2 FROM tab1 AS cor0
----
1040
639
78
query I rowsort
SELECT ALL 84 + - col1 FROM tab0 AS cor0
----
-13
-2
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT ALL cor0.col1 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL cor0.col1 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - ( - col0 ) + + 99 * - col2 FROM tab0 AS cor0
----
-3243
-64
-8029
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT ALL + cor0.col0 * - col1 * CAST( NULL AS DECIMAL ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + cor0.col0 * - col1 * CAST ( NULL AS REAL ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 9 + + col2 - - col2 AS col0 FROM tab2 AS cor0
----
61
63
85
query I rowsort
SELECT col1 * ( + tab1.col2 ) - - col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + 16 + cor0.col2 AS col0 FROM tab2 AS cor0
----
42
43
54
query I rowsort
SELECT ALL 91 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL - 66 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214
query I rowsort
SELECT ALL - + 25 * col2 AS col2 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT 57 * cor0.col2 FROM tab0 AS cor0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT DISTINCT 31 DIV + cor0.col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT 31 / + cor0.col1 FROM tab2 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT 36 + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6966
SELECT 36 + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab1
----
-99
query I rowsort
SELECT - col2 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - + col0 * col0 - 2 FROM tab0 cor0
----
-1227
-578
-7923
query I rowsort
SELECT DISTINCT + + tab2.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 97 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT DISTINCT - col2 + - col0 * 74 * col0 FROM tab1
----
-303161
-473696
-720
query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + - 61 * - 68 col0 FROM tab1
----
4151
4212
4228
query I rowsort
SELECT DISTINCT - col1 + ( - col0 ) * + col2 AS col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT - col1 * col0 * + 61 FROM tab1
----
-39040
-4758
-63440
onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT DISTINCT + 12 DIV 2 AS col1 FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + 12 / 2 AS col1 FROM tab1
----
6
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 cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT + CAST( - 35 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
-245
-2730
-2765
skipif mysql # not compatible
query I rowsort label-6980
SELECT + CAST ( - 35 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
-245
-2730
-2765
query I rowsort
SELECT DISTINCT - 35 * col1 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT 17 * col1 AS col0 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT 88 * - col0 + col0 FROM tab0 cor0
----
-2088
-3045
-7743
query I rowsort
SELECT - ( + col0 ) + - col0 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
4032
6
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT DISTINCT + CAST( + 0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col0 + 35 FROM tab1
----
115
38
99
query I rowsort
SELECT + tab2.col0 + ( - col0 ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * + ( + ( col0 ) + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT DISTINCT - 30 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
5
7268
762
query I rowsort
SELECT DISTINCT + - col2 * - col0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + 32 + 9 AS col2 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT + + 66 FROM tab2 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT ( - tab0.col1 ) FROM tab0, tab1 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 40 + col1 AS col2 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT + cor0.col1 * + col2 + 3 AS col1 FROM tab1 AS cor0
----
1251
1407
573
onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT + col2 * + col1 DIV col1 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-6996
SELECT + col2 * + col1 / col1 col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + ( + col2 ) col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT col1 DIV col1 col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6998
SELECT col1 / col1 col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - col0 + + 34 FROM tab0 AS cor0
----
-1
-55
10
query I rowsort
SELECT DISTINCT + col0 + 73 FROM tab1 AS cor0
----
137
153
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + 50 * + col0 col0 FROM tab2 AS cor0
----
10850
230100
67150
onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT - col1 + cor0.col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-7002
SELECT - col1 + cor0.col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT + col0 * col0 * + 77 AS col1 FROM tab2 AS cor0
----
3773
468468
480557
query I rowsort
SELECT col0 * 47 + + cor0.col1 FROM tab0 AS cor0
----
1214
1742
4274
query I rowsort
SELECT - col0 * 31 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT ALL + col0 + + ( - col2 ) AS col2 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 69 col0 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT ALL - + col0 + - 18 * 72 FROM tab0 AS cor0
----
-1320
-1331
-1385
query I rowsort
SELECT - col0 + - ( - col0 ) * col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
42
query I rowsort
SELECT - col0 * col1 + - col0 * - tab0.col2 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT + col0 * + ( - 1 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col2 + + col1 * - 94 AS col0 FROM tab0 AS cor0
----
-8051
-8472
-9117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7014
SELECT 79 + + col2 - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7014
SELECT 79 + + col2 - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( tab0.col2 ) - col1 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT col0 DIV tab0.col2 - + col2 col2 FROM tab0
----
-33
-81
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7016
SELECT col0 / tab0.col2 - + col2 col2 FROM tab0
----
-33
-81
34
query I rowsort
SELECT ALL ( + col2 * - 83 ) + - col0 + col2 FROM tab2
----
-2210
-2221
-3195
query I rowsort
SELECT ALL col2 + - tab0.col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL + 70 + col2 AS col2 FROM tab0
----
103
152
71
query I rowsort
SELECT - 70 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1111
-2163
-4052
query I rowsort
SELECT DISTINCT - col1 * col2 * ( + col1 ) FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT + - col2 DIV col0 + col2 * 76 * col1 col2 FROM tab2 AS cor0
----
116584
49096
63609
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7023
SELECT + - col2 / col0 + col2 * 76 * col1 col2 FROM tab2 AS cor0
----
116584
49096
63609
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT + col1 DIV + col1 + + 86 col2 FROM tab0 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7024
SELECT + col1 / + col1 + + 86 col2 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT - cor0.col2 * - col2 + - col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT - col0 * - cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 * + tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col2 + col1 * + col1 * + col0 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT col0 + tab1.col1 + + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT ALL + + cor0.col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT tab2.col0 + + col0 AS col1 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT - + col2 * - col0 DIV + col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7032
SELECT - + col2 * - col0 / + col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 7 + + col2 FROM tab0
----
40
8
89
query I rowsort
SELECT 63 + + col0 FROM tab0
----
152
87
98
query I rowsort
SELECT ALL + col2 + - col0 - - col0 * col2 FROM tab2 AS cor0
----
1976
209
2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 + col1 col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT col0 + col0 + + col1 AS col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL cor0.col2 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT - - cor0.col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7039
SELECT - - cor0.col0 / + col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT col0 * col2 + col1 * col0 + - col2 FROM tab0 cor0
----
15315
2823
3429
query I rowsort
SELECT + col1 * + col1 - col0 AS col1 FROM tab0 WHERE NULL <> col1 - col0 AND NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT ALL col1 DIV + col1 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL col1 / + col1 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col1 * - tab1.col1 + - col0 AS col0 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT + col2 + col1 FROM tab2 WHERE NOT - col0 < ( NULL )
----
query I rowsort
SELECT ALL col2 * tab1.col0 + tab1.col2 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT - tab0.col1 DIV col2 AS col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7048
SELECT - tab0.col1 / col2 AS col2 FROM tab0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab2.col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + tab0.col1 * tab0.col0 + tab0.col1 + tab0.col2 AS col0 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( + tab0.col2 )
----
query I rowsort
SELECT ALL col1 * tab1.col0 + + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 * - tab0.col1 + col2 * col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT ALL - tab1.col0 DIV + col2 - col2 * col0 AS col2 FROM tab1
----
-162
-3649
-7680
skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - tab1.col0 / + col2 - col2 * col0 AS col2 FROM tab1
----
-162
-3649
-7680
query I rowsort
SELECT DISTINCT tab0.col1 + + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT DISTINCT + col1 DIV - col0 - col0 * tab1.col0 FROM tab1
----
-17
-4096
-6400
skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + col1 / - col0 - col0 * tab1.col0 FROM tab1
----
-17
-4096
-6400
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL > NULL
----
query I rowsort
SELECT - ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 53 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT - ( col2 ) * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 50 * col0 * + 8 FROM tab0 AS cor0
----
14000
35600
9600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 * - ( 15 ) col1 FROM tab2 AS cor0
----
-20145
-3255
-69030
query I rowsort
SELECT col0 * - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + col2 / col2
----
query I rowsort
SELECT - col2 + col2 * tab2.col1 + col0 AS col0 FROM tab2
----
1586
687
817
query I rowsort
SELECT col1 + + col0 * col1 * col1 AS col2 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT DISTINCT - col0 + col2 * col0 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-100000
-36608
-4218
query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + col0
----
query I rowsort
SELECT ALL col0 + col2 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
191
3722
7773
query I rowsort
SELECT - tab0.col0 * col1 * col0 + - col0 AS col0 FROM tab0
----
-118860
-49560
-720900
query I rowsort
SELECT DISTINCT tab0.col0 * + col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 * - col2 * col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col1 * col0 * + col0 + col2 FROM tab2
----
-106059
-1492
-358930
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + col1 * col1 ) NOT IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col1 - col2 * col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - tab0.col0 + col2 BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT - col1 * - col2 - col0 DIV - col1 AS col0 FROM tab1
----
1254
1404
576
skipif mysql # not compatible
query I rowsort label-7078
SELECT - col1 * - col2 - col0 / - col1 AS col0 FROM tab1
----
1254
1404
576
query III rowsort
SELECT * FROM tab2 WHERE NOT tab2.col1 BETWEEN col0 AND NULL
----
78
59
26
79
17
38
query I rowsort
SELECT DISTINCT + col1 * tab1.col1 * col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - + cor0.col1 * cor0.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 064f0d12f5a54890818030ba889e7e5c
query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab1 AS cor0
----
13
query I rowsort
SELECT ALL tab0.col0 * col1 + col1 AS col2 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT + + cor1.col0 DIV + 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-7084
SELECT + + cor1.col0 / + 70 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT ( col2 + + col0 ) FROM tab1
----
121
176
57
query I rowsort
SELECT + ( + col1 * col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT + 73 * + col1 + ( col1 ) AS col1 FROM tab1
----
1924
740
962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT DISTINCT + col2 * col1 * - CAST( col2 AS SIGNED ) FROM tab0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + col2 * col1 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT 17 * tab2.col2 * 91 FROM tab2
----
40222
41769
58786
query I rowsort
SELECT DISTINCT + 26 * - col2 AS col0 FROM tab0
----
-2132
-26
-858
query I rowsort
SELECT - 79 + + col1 AS col2 FROM tab0 cor0
----
12
18
7
query I rowsort
SELECT col0 * 54 AS col2 FROM tab0
----
1296
1890
4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT col2 DIV ( col0 ) FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7093
SELECT col2 / ( col0 ) FROM tab0
----
0
0
1
query I rowsort
SELECT ALL col1 - 59 AS col1 FROM tab0
----
27
32
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7095
SELECT CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7095
SELECT CAST ( NULL AS REAL ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 34 + 65 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT ALL + cor0.col2 * col0 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col1 * + ( + 95 ) AS col2 FROM tab2
----
1615
2945
5605
query I rowsort
SELECT + col2 + - 32 AS col1 FROM tab0 AS cor0
----
-31
1
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT DISTINCT - ( + 41 ) DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
41
skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - ( + 41 ) / - col2 AS col0 FROM tab0 AS cor0
----
0
1
41
query I rowsort
SELECT ( ( + col0 ) ) * col0 + - tab1.col2 * col1 FROM tab1
----
-1395
3526
5152
query I rowsort
SELECT col0 + col0 - - col2 FROM tab2
----
182
196
41
query I rowsort
SELECT - col2 * 76 * col0 + + col0 FROM tab2
----
-14357
-154050
-228073
query I rowsort
SELECT - col0 + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + col1 * + col0 + col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + + col2 col0 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT DISTINCT + 58 + col1 FROM tab2 AS cor0
----
117
75
89
query I rowsort
SELECT DISTINCT + 56 + col1 AS col2 FROM tab1 cor0
----
66
69
82
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0, tab2 cor0
----
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7110
SELECT ALL - + CAST( + 75 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-153
-154
-82
skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL - + CAST ( + 75 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-153
-154
-82
query I rowsort
SELECT + 25 * - 47 * col2 + + col2 FROM tab1 AS cor0
----
-112704
-63396
-66918
query I rowsort
SELECT - + col0 * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + 57 + 71 * col1 FROM tab2 AS cor0
----
1264
2258
4246
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 + col1 * + col0 + col0 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + + ( + col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 22 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
160556
17424
770
query I rowsort
SELECT + 98 * cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
16216
9220
9541
query I rowsort
SELECT ALL - col0 * col0 + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT DISTINCT - 2 + - col2 DIV cor0.col1 FROM tab2 cor0
----
-2
-4
skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - 2 + - col2 / cor0.col1 FROM tab2 cor0
----
-2
-4
query I rowsort
SELECT + cor0.col0 * + col2 + col2 * col0 + col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL ( cor0.col1 ) * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + - 92 * + col2 AS col0 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT ALL - - 53 + - col1 * col2 FROM tab0 AS cor0
----
-2785
-44
-7409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 col1 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT ALL col2 + 21 FROM tab2
----
47
48
59
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 - - col1 * - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-35840
-4134
-98800
query I rowsort
SELECT DISTINCT - col2 + + col0 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2847
-63
-7455
query I rowsort
SELECT + - col1 * 57 FROM tab1 cor0
----
-1482
-570
-741
query I rowsort
SELECT + col0 + - col1 * - col0 * + col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT - + col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT DISTINCT + + col1 DIV - 6 AS col1 FROM tab1 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT + + col1 / - 6 AS col1 FROM tab1 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - - col2 + ( 14 ) FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT + col1 * + 12 FROM tab0 AS cor0
----
1032
1092
1164
query I rowsort
SELECT ALL + + col0 * col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT - col2 * - 91 AS col0 FROM tab2 cor0
----
2366
2457
3458
query I rowsort
SELECT + + cor0.col1 * + 69 * - 93 AS col1 FROM tab1 cor0
----
-166842
-64170
-83421
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7137
SELECT DISTINCT - col1 * - CAST( + 39 AS SIGNED ) FROM tab2 cor0
----
1209
2301
663
skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - col1 * - CAST ( + 39 AS INTEGER ) FROM tab2 cor0
----
1209
2301
663
query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7140
SELECT ALL - ( col2 ) DIV + col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2063
3395
8099
skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - ( col2 ) / + col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2063
3395
8099
query I rowsort
SELECT ALL - cor0.col0 * - ( ( + col1 ) ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * ( 16 ) * col2 FROM tab0 AS cor0
----
-119392
-1552
-45408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT ALL - + col0 - + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - + col0 - + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + - col0 + CAST ( + 2 AS REAL ) col0 FROM tab2 AS cor0
----
-5
-76
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL col0 + 91 * 71 - col2 * col0 FROM tab1 AS cor0
----
-1139
2877
6302
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( col0 ) col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT + - col1 DIV 73 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7148
SELECT + - col1 / 73 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * 8 AS col2 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT + - col1 * 71 FROM tab1 AS cor0
----
-1846
-710
-923
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2, tab2
----
13122 values hashing to 841593da67e88be754cad391d08e2886
query I rowsort
SELECT ALL col2 * 35 FROM tab2
----
1330
910
945
query I rowsort
SELECT ALL + col2 * - col0 + + 91 * col2 FROM tab0 AS cor0
----
164
2211
56
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab0 cor1
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74
query I rowsort
SELECT - cor0.col1 * col0 - col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT - 36 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
query I rowsort
SELECT - + 85 + - col2 * - col0 FROM tab0 AS cor0
----
-50
707
7213
query I rowsort
SELECT DISTINCT + cor0.col0 + + 19 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
108
43
54
query I rowsort
SELECT + 14 + tab1.col2 AS col0 FROM tab1
----
110
68
71
query I rowsort
SELECT ALL + 30 * + tab0.col2 AS col0 FROM tab0
----
2460
30
990
query I rowsort
SELECT - cor0.col0 + 43 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to d45ed7377532fa14140d2fa2b0e17790
query I rowsort
SELECT ALL col0 + + col1 * col2 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT + - col1 DIV - col1 + - col1 * + 5 * - col1 AS col1 FROM tab0 AS cor0
----
36981
41406
47046
skipif mysql # not compatible
query I rowsort label-7164
SELECT + - col1 / - col1 + - col1 * + 5 * - col1 AS col1 FROM tab0 AS cor0
----
36981
41406
47046
query I rowsort
SELECT ALL - 95 AS col1 FROM tab1 cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
71
query I rowsort
SELECT ALL + + 49 * col1 + - col2 FROM tab2 AS cor0
----
1492
2865
795
query I rowsort
SELECT ALL 95 * + col2 FROM tab2 AS cor0
----
2470
2565
3610
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - ( ( col1 ) ) col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7171
SELECT DISTINCT col1 + + ( 83 ) DIV col1 FROM tab2 AS cor0
----
21
33
60
skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT col1 + + ( 83 ) / col1 FROM tab2 AS cor0
----
21
33
60
query I rowsort
SELECT + - col0 * col1 + + 25 AS col2 FROM tab2 AS cor0
----
-1318
-192
-4577
onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT + col0 DIV - 85 + - 85 FROM tab0 AS cor0
----
-85
-85
-86
skipif mysql # not compatible
query I rowsort label-7173
SELECT + col0 / - 85 + - 85 FROM tab0 AS cor0
----
-85
-85
-86
query I rowsort
SELECT ALL col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - col0 + 31 * + col2 FROM tab0
----
-4
2453
999
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7176
SELECT + CAST( 69 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-7176
SELECT + CAST ( 69 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT ALL col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col0 * - 46 FROM tab2 cor0
----
322
3588
3634
query I rowsort
SELECT + + col2 - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + 0 * col0 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT ALL - - col1 + col2 * CAST ( + col2 * - cor0.col0 AS REAL ) FROM tab1 cor0
----
-207926
-737267
-8722
query I rowsort
SELECT ALL - 4 + - col2 FROM tab2 AS cor0
----
-30
-31
-42
query I rowsort
SELECT 27 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL + tab1.col0 * ( col0 ) + col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT col0 * 62 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
187
3969
4961
skipif mysql # not compatible
query I rowsort label-7185
SELECT col0 * 62 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
187
3969
4961
query I rowsort
SELECT + cor0.col0 + + 47 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8726ce8bc2d41ce47a20b13d3e08cd83
query I rowsort
SELECT + + 98 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1138
176
738
query I rowsort
SELECT 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL + ( - ( - col0 ) ) * 50 * col1 AS col0 FROM tab1 AS cor0
----
32000
3900
52000
query I rowsort
SELECT DISTINCT + col1 + + 58 FROM tab1 AS cor0
----
68
71
84
query I rowsort
SELECT DISTINCT - 3 * col1 - + 62 FROM tab0 cor0
----
-320
-335
-353
query I rowsort
SELECT + col0 * col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
4736
7440
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - col2 * ( col2 ) + - col0 col0 FROM tab2 AS cor0
----
113997
5096
52650
query I rowsort
SELECT ALL ( col2 * col0 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + col0 + col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - 91 - tab0.col1 AS col2 FROM tab0
----
-177
-182
-188
query I rowsort
SELECT ALL - 52 * + col2 + + col1 FROM tab2
----
-1293
-1373
-1959
onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT ALL CAST( col1 AS SIGNED ) DIV col1 + - ( + col2 ) * col2 FROM tab0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL CAST ( col1 AS INTEGER ) / col1 + - ( + col2 ) * col2 FROM tab0
----
-1088
-6723
0
query I rowsort
SELECT ALL + 69 + - col2 FROM tab1
----
-27
12
15
query I rowsort
SELECT - col0 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col1 * 64 FROM tab2 AS cor0
----
-1088
-1984
-3776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT - - col0 DIV 43 AS col2 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7202
SELECT - - col0 / 43 AS col2 FROM tab0 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * tab2.col1 col1 FROM tab2
----
-1643
-3127
-901
query I rowsort
SELECT ALL + 60 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT col2 * - col0 * - col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT + col0 - ( col0 ) * - cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + col0 + + 39 * tab0.col2 AS col2 FROM tab0
----
1311
3287
74
query I rowsort
SELECT + col1 + 13 FROM tab0
----
104
110
99
query I rowsort
SELECT + 44 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - + 20 * + tab0.col1 col0 FROM tab0
----
-1687
-1738
-1939
query I rowsort
SELECT - - col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT + 33 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7212
SELECT + 33 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + - 55 + + col1 + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
165
2032
2964
query I rowsort
SELECT ALL + 3 AS col0 FROM tab0 cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col0 * 72 + + col0 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + - 75 - + col0 AS col2 FROM tab0 AS cor0
----
-110
-164
-99
query I rowsort
SELECT ALL - + 36 * 84 AS col0 FROM tab1 AS cor0
----
-3024
-3024
-3024
onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT ALL 46 DIV + col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL 46 / + col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL ( col2 ) * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 64 + 22 * - cor0.col1 - 21 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 270fd7244ca12e1958e66ae749d82388
query I rowsort
SELECT cor0.col0 * 26 + - col2 AS col1 FROM tab0 AS cor0
----
2232
591
909
query I rowsort
SELECT DISTINCT - - 42 * cor0.col2 + - col1 AS col1 FROM tab2 cor0
----
1033
1103
1579
query I rowsort
SELECT ALL - + col0 + 88 * col0 * col1 FROM tab2 AS cor0
----
118105
19089
404898
query I rowsort
SELECT ( col0 ) + + col0 * ( - col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + col1 * - col1 * + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL + + col0 + 24 FROM tab1 AS cor0
----
104
27
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * 92 col0 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT col0 + col2 * + col1 AS col1 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL - ( col2 ) + col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + col1 * - 97 * col1 col2 FROM tab1 AS cor0
----
-16377
-65556
-9684
query I rowsort
SELECT + col0 * + col2 + 61 * col2 AS col2 FROM tab0 AS cor0
----
12300
2805
96
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 * 72 AS col2 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT ALL - col0 * + col2 + ( col0 ) * col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 56 * col0 - 58 FROM tab1 AS cor0
----
-226
-3642
-4538
query I rowsort
SELECT - col0 * col1 + - cor0.col1 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-3492
-619983
-95718
query I rowsort
SELECT - - 44 * col1 FROM tab2 AS cor0
----
1364
2596
748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + 21 col1 FROM tab1 AS cor0
----
-1134
-1197
-2016
onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT DISTINCT - col1 + + 63 DIV + col0 FROM tab2 AS cor0
----
-17
-22
-59
skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - col1 + + 63 / + col0 FROM tab2 AS cor0
----
-17
-22
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + 63 col1 FROM tab2 AS cor0
----
122
80
94
query I rowsort
SELECT ALL + cor0.col2 + 88 * - col1 FROM tab1 AS cor0
----
-1048
-2234
-823
query I rowsort
SELECT 45 + 43 * col2 AS col0 FROM tab0
----
1464
3571
88
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * + tab0.col2 FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3
query I rowsort
SELECT DISTINCT ( + 73 ) FROM tab0
----
73
query I rowsort
SELECT ALL + ( - col1 ) - + col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT - CAST( col1 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-7249
SELECT - CAST ( col1 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 + + 90 * ( col0 * cor0.col1 ) FROM tab0 AS cor0
----
185870
305682
729090
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT DISTINCT + + col2 * + col1 + + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + + col2 * + col1 + + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7252
SELECT ALL + + col0 + 41 * + col1 * CAST( 17 * col2 AS SIGNED ) FROM tab1 AS cor0
----
397354
869936
978591
skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + + col0 + 41 * + col1 * CAST ( 17 * col2 AS INTEGER ) FROM tab1 AS cor0
----
397354
869936
978591
query I rowsort
SELECT - + col0 + col0 AS col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - cor0.col1 + - cor0.col1 + - 93 col1 FROM tab2 AS cor0
----
-1686
-756
-961
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + 54 * col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
111456
183330
437346
query I rowsort
SELECT 70 * col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT ALL + col0 + col2 * col0 DIV col2 AS col1 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + col0 + col2 * col0 / col2 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7259
SELECT ALL 95 + col0 DIV + col0 FROM tab1 AS cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL 95 + col0 / + col0 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT ALL + 33 + tab1.col1 AS col2 FROM tab1
----
43
46
59
query I rowsort
SELECT ( - 74 ) FROM tab2
----
-74
-74
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 + tab0.col1 col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col0 * + col0 + 2 FROM tab0 AS cor0
----
-1223
-574
-7919
query I rowsort
SELECT + ( cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 - + ( - 59 ) * col0 * + col0 AS col0 FROM tab2 cor0
----
2922
359015
368236
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * + CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + col2 + 36 FROM tab0 AS cor0
----
118
37
69
query I rowsort
SELECT - col1 * col1 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
-205457
-29798
-4992
query I rowsort
SELECT DISTINCT + cor0.col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + 40 col0 FROM tab2 AS cor0
----
120080
7560
81120
onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT DISTINCT + col2 * + 57 + ( col1 + - tab2.col1 ) DIV - col1 FROM tab2
----
1482
1539
2166
skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + col2 * + 57 + ( col1 + - tab2.col1 ) / - col1 FROM tab2
----
1482
1539
2166
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * 97 * col1 FROM tab0 AS cor0
----
275319
723896
9410
query I rowsort
SELECT ALL - + col2 * col1 * + cor0.col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT ALL - col2 + col0 * - 99 FROM tab2 AS cor0
----
-720
-7748
-7859
query I rowsort
SELECT - col2 * + ( col0 ) + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - 72 - + col1 FROM tab0 cor0
----
-158
-163
-169
query I rowsort
SELECT + col0 + 3 * + col0 + + col0 FROM tab0
----
120
175
445
query I rowsort
SELECT ALL 66 + - col0 AS col1 FROM tab0 AS cor0
----
-23
31
42
query I rowsort
SELECT DISTINCT + col2 + 89 FROM tab2
----
115
116
127
query I rowsort
SELECT DISTINCT - + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7281
SELECT ( - col0 ) * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7281
SELECT ( - col0 ) * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7282
SELECT col2 - ( col2 ) * CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-1152
-1350
-513
skipif mysql # not compatible
query I rowsort label-7282
SELECT col2 - ( col2 ) * CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * - col2 + col0 * + 75 col2 FROM tab1 AS cor0
----
-3216
-4959
-672
query I rowsort
SELECT ( + ( - cor0.col1 ) ) - - col2 * + ( + col2 ) FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7285
SELECT + + CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-7285
SELECT + + CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col0 * - col1 - 63 FROM tab2 AS cor0
----
-1406
-280
-4665
query I rowsort
SELECT - ( col2 + tab2.col0 ) AS col1 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT 30 * - 62 AS col1 FROM tab2 AS cor0
----
-1860
-1860
-1860
query I rowsort
SELECT + - cor0.col2 + - col1 + - col0 AS col0 FROM tab2 cor0
----
-134
-163
-65
query I rowsort
SELECT ALL - + 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT + 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT ALL + tab2.col0 DIV - col1 AS col0 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + tab2.col0 / - col1 AS col0 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT - 54 + 57 FROM tab1, tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
42
query I rowsort
SELECT col2 + + ( col0 ) * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT cor0.col0 + + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL ( 85 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + col1 * col2 + - ( + 65 ) AS col2 FROM tab0
----
2773
32
7397
query I rowsort
SELECT ALL ( tab2.col1 ) - - col0 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT - + 19 AS col2 FROM tab0 AS cor0
----
-19
-19
-19
query I rowsort
SELECT ALL - + col0 + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT - col1 * + 82 + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1394
-2545
-4838
skipif mysql # not compatible
query I rowsort label-7304
SELECT - col1 * + 82 + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-1394
-2545
-4838
query I rowsort
SELECT DISTINCT + cor0.col0 + 57 * 0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col2 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 - 27 FROM tab1 AS cor0
----
-37
-40
-53
query I rowsort
SELECT DISTINCT - col2 + 34 FROM tab1 AS cor0
----
-20
-23
-62
query I rowsort
SELECT ALL + ( + 94 ) + - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be0c24323cefe4fd495a09f61ba20d84
query I rowsort
SELECT DISTINCT col0 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL col1 * ( - cor0.col0 * - col0 ) + cor0.col2 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT ALL - col2 + 8 AS col1 FROM tab0 AS cor0
----
-25
-74
7
query I rowsort
SELECT DISTINCT - ( + 26 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-26
query I rowsort
SELECT - 19 + - 33 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT - col0 * + 29 AS col1 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT ( 71 ) * col0 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * 81 * col0 AS col0 FROM tab2 AS cor0
----
-15309
-164268
-243162
query I rowsort
SELECT ALL 65 + col1 * cor0.col2 FROM tab0 AS cor0
----
162
2903
7527
query I rowsort
SELECT ALL - 75 * col0 + col2 + 13 AS col1 FROM tab1 AS cor0
----
-158
-4730
-5891
query I rowsort
SELECT DISTINCT 75 * - col1 AS col0 FROM tab2 cor0
----
-1275
-2325
-4425
query I rowsort
SELECT 47 FROM tab0, tab2, tab1 cor0, tab2 cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT - tab2.col1 + - col2 DIV col0 col0 FROM tab2
----
-17
-34
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7323
SELECT - tab2.col1 + - col2 / col0 col0 FROM tab2
----
-17
-34
-59
query I rowsort
SELECT + 47 - col2 AS col1 FROM tab0
----
-35
14
46
query I rowsort
SELECT DISTINCT + col2 * - 29 AS col1 FROM tab1
----
-1566
-1653
-2784
query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT 52 * col1 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT ALL - col2 * + col1 - col2 * + col2 * col2 FROM tab2 AS cor0
----
-19110
-20520
-55518
query I rowsort
SELECT ALL + col1 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT ( + col2 ) DIV - col1 - - col2 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-7330
SELECT ( + col2 ) / - col1 - - col2 FROM tab1
----
52
52
89
query I rowsort
SELECT cor1.col0 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - col1 + col1 + - col0 DIV - col1 FROM tab0
----
-7310
-8190
-9312
skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - col1 + col1 + - col0 / - col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT 72 + 90 * - col2 AS col0 FROM tab1
----
-4788
-5058
-8568
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col1 FROM tab1, tab0 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT ALL + ( col1 ) DIV 70 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + ( col1 ) / 70 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 56 AS col0 FROM tab2 AS cor0
----
-56
query I rowsort
SELECT ALL 9 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL col0 * 77 FROM tab1 AS cor0
----
231
4928
6160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7339
SELECT ALL - CAST( ( - col2 ) AS SIGNED ) + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - CAST ( ( - col2 ) AS INTEGER ) + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7340
SELECT ALL col2 + - CAST( col0 + col0 AS SIGNED ) FROM tab1
----
-64
-71
48
skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL col2 + - CAST ( col0 + col0 AS INTEGER ) FROM tab1
----
-64
-71
48
query I rowsort
SELECT DISTINCT + tab2.col2 + ( - col0 ) * col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + 81 FROM tab1, tab2 AS cor0
----
81
query I rowsort
SELECT - + ( col2 ) * col1 + + ( ( col1 ) ) * - col0 AS col1 FROM tab1 cor0
----
-1210
-1482
-2288
query I rowsort
SELECT ALL + col2 * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ( ( + cor0.col1 ) ) AS col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7346
SELECT + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7346
SELECT + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + cor0.col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - ( + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - ( - 20 ) + - col2 * 67 FROM tab0 AS cor0
----
-2191
-47
-5474
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7351
SELECT - CAST( NULL AS SIGNED ) * + col1 / cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7351
SELECT - CAST ( NULL AS INTEGER ) * + col1 / cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 14 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT + cor0.col1 + - 32 AS col1 FROM tab2 cor0
----
-1
-15
27
query I rowsort
SELECT DISTINCT - - ( + 10 ) FROM tab2 AS cor0
----
10
query I rowsort
SELECT ALL col1 + + col2 + + 14 * col2 * + col0 FROM tab0
----
102345
11207
588
query I rowsort
SELECT + - col0 + - col1 - - cor0.col1 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 53 + col1 + + col0 AS col1 FROM tab1
----
127
146
82
query I rowsort
SELECT DISTINCT - 32 + col2 FROM tab2
----
-5
-6
6
query I rowsort
SELECT ALL - tab1.col1 + ( tab1.col2 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT ALL col1 + + col1 * - col1 * - col1 FROM tab1
----
1010
17602
2210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7361
SELECT DISTINCT - col0 * - tab2.col2 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - col0 * - tab2.col2 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT col1 * col1 + - cor0.col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - col0 * 63 - ( cor0.col1 ) * - 5 * + col0 FROM tab1 AS cor0
----
-832
160
201
query I rowsort
SELECT ALL + - col2 * col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + col2 * - col2 + ( + col2 ) FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL + col1 + - col2 + - 22 * col0 AS col1 FROM tab1 AS cor0
----
-1455
-1843
-94
query I rowsort
SELECT + 93 + 53 AS col0 FROM tab2
----
146
146
146
query I rowsort
SELECT DISTINCT - + ( + 33 ) + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
139
149
161
onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT ALL - ( col2 ) DIV col0 col0 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - ( col2 ) / col0 col0 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT ALL 29 DIV ( + col1 ) + - CAST( col1 AS SIGNED ) * + col2 * 68 + col2 FROM tab2 AS cor0
----
-104286
-43889
-56889
skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL 29 / ( + col1 ) + - CAST ( col1 AS INTEGER ) * + col2 * 68 + col2 FROM tab2 AS cor0
----
-104286
-43889
-56889
query I rowsort
SELECT ALL - ( - 50 ) + col1 AS col1 FROM tab1 AS cor0
----
60
63
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7372
SELECT DISTINCT - - ( - col2 ) DIV + col2 - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - - ( - col2 ) / + col2 - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL + - ( cor0.col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7374
SELECT ALL - CAST( col2 AS SIGNED ) - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - CAST ( col2 AS INTEGER ) - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT ALL CAST( col1 AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL CAST ( col1 AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col0 * col1 col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT ( 91 ) * + col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT DISTINCT + + col2 * + ( - col0 ) - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col1 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT ALL + ( col0 ) * 81 FROM tab0 cor0
----
1944
2835
7209
query I rowsort
SELECT ALL - 67 * - col0 AS col0 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT ALL - cor0.col0 * + col2 + col1 * + col1 + - col1 FROM tab0 AS cor0
----
6518
892
9277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * col2 col2 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + 1 + + col1 FROM tab1 cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT ALL col2 * col2 - + col2 DIV + 87 FROM tab1 AS cor0
----
2916
3249
9215
skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL col2 * col2 - + col2 / + 87 FROM tab1 AS cor0
----
2916
3249
9215
query I rowsort
SELECT - 46 + 1 FROM tab1 AS cor0
----
-45
-45
-45
query I rowsort
SELECT 34 * ( + col1 ) FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT + col2 + + ( col2 ) * + 55 AS col2 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT ALL + col1 + tab0.col0 * 82 * + col1 AS col1 FROM tab0
----
169334
278487
664209
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7391
SELECT ALL CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + col1 * - col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT - 85 * col0 + - col0 FROM tab2 AS cor0
----
-602
-6708
-6794
onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT ALL col0 DIV - ( - col0 + - tab2.col2 ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL col0 / - ( - col0 + - tab2.col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT tab2.col1 * + 40 AS col2 FROM tab2
----
1240
2360
680
query I rowsort
SELECT col2 + - cor0.col2 * - 6 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT ALL + 62 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT + ( + 27 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-7398
SELECT + ( + 27 ) / - col0 AS col1 FROM tab1 AS cor0
----
-9
0
0
query I rowsort
SELECT + 64 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT - cor0.col0 * + 52 AS col2 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT DISTINCT col2 * 9 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
25628
67249
970
onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT ALL cor0.col1 + + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL cor0.col1 + + col1 / - col1 AS col2 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT col1 * - col1 + ( - cor0.col0 ) FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL 33 + - col2 FROM tab1
----
-21
-24
-63
query I rowsort
SELECT - col0 + - col0 * - 38 AS col0 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT + + col1 * - col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col1 * - col2 + ( - cor0.col1 ) * - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - - cor0.col1 * col0 + - col2 + - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
14741
3120
3395
query I rowsort
SELECT DISTINCT + + col1 * - col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT col0 + - 43 * + 61 AS col1 FROM tab0 AS cor0
----
-2534
-2588
-2599
query I rowsort
SELECT ALL col0 * + col0 + + 92 FROM tab0 AS cor0
----
1317
668
8013
query I rowsort
SELECT - col1 * + col2 + col1 + + col2 FROM tab0 AS cor0
----
-2719
-7289
1
query I rowsort
SELECT + 13 FROM tab2, tab0, tab1 cor0
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab0
----
25
25
25
query I rowsort
SELECT + ( col0 ) * ( + col0 + - col0 ) * col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col0 + - col1 - + col0 AS col2 FROM tab2 cor0
----
-175
-215
-45
query I rowsort
SELECT ALL 62 - cor1.col0 * - ( - cor0.col0 ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eb099a8ef0f1e836a168f6e83fd72a64
query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + col1 + - 39 * - col0 FROM tab2 AS cor0
----
304
3098
3101
query I rowsort
SELECT col2 * 66 + - cor0.col2 * col2 FROM tab2 AS cor0
----
1040
1053
1064
query I rowsort
SELECT ALL col0 * 15 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT - col2 * + ( 11 ) FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT - col2 + 12 + col1 AS col1 FROM tab1 AS cor0
----
-16
-35
-71
query I rowsort
SELECT tab1.col1 * - 36 + col0 * + col0 AS col1 FROM tab1
----
-927
3736
5932
query I rowsort
SELECT ALL - 16 * col2 + + col1 * ( + col1 ) FROM tab2 AS cor0
----
-319
3065
529
query I rowsort
SELECT DISTINCT - + 99 + + cor0.col1 FROM tab2 AS cor0
----
-40
-68
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7427
SELECT + CAST( NULL AS SIGNED ) + 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7427
SELECT + CAST ( NULL AS INTEGER ) + 13 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + col1 ) + col0 * 59 AS col1 FROM tab0 AS cor0
----
1502
2162
5342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7429
SELECT - col1 * + CAST( - ( + col0 ) AS SIGNED ) FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-7429
SELECT - col1 * + CAST ( - ( + col0 ) AS INTEGER ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab2.col2 * 23 * + 99 + + col1 AS col2 FROM tab2
----
59261
61510
86543
query I rowsort
SELECT - col1 + + 81 AS col1 FROM tab0
----
-10
-16
-5
query I rowsort
SELECT DISTINCT - col2 + 25 AS col2 FROM tab2
----
-1
-13
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7433
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7433
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - col0 - + 52 AS col0 FROM tab1 AS cor0
----
-1
-36
-59
query I rowsort
SELECT + col0 + col1 + + col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + + col0 + - col2 * 69 AS col1 FROM tab0 AS cor0
----
-2253
-34
-5569
onlyif mysql # use DIV operator for integer division
query I rowsort label-7437
SELECT col0 DIV col2 - 33 AS col0 FROM tab1 AS cor0
----
-32
-33
-33
skipif mysql # not compatible
query I rowsort label-7437
SELECT col0 / col2 - 33 AS col0 FROM tab1 AS cor0
----
-32
-33
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-7438
SELECT DISTINCT - - col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT - - col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT col0 DIV + tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7440
SELECT col0 / + tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( 32 ) * col0 * + 24 FROM tab1
----
2304
49152
61440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT 56 + col2 DIV + 25 AS col2 FROM tab1
----
58
58
59
skipif mysql # not compatible
query I rowsort label-7442
SELECT 56 + col2 / + 25 AS col2 FROM tab1
----
58
58
59
query I rowsort
SELECT + 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT DISTINCT - col0 + - col1 DIV 71 AS col0 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - col0 + - col1 / 71 AS col0 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT col2 * col0 * - col1 + - col2 * + col2 - + 94 * cor0.col2 AS col1 FROM tab1 cor0
----
-118080
-12204
-45087
query I rowsort
SELECT 12 + - col2 + + col1 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
-22857
-271532
-6742
query I rowsort
SELECT ALL ( + col1 ) * col2 + col1 * - col1 - - 8 AS col2 FROM tab1 AS cor0
----
1087
478
736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2
query I rowsort
SELECT cor0.col1 * + col2 + - col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 * col0 + col0 AS col2 FROM tab0 cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT DISTINCT - col1 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - col1 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - + 76 + cor0.col0 FROM tab2 AS cor0
----
-69
2
3
query I rowsort
SELECT + 31 * - col2 AS col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT - - cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + 97 * col2 AS col0 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT ALL - tab2.col0 + tab2.col2 * - col2 * 33 FROM tab2
----
-22386
-24064
-47731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 89 col2 FROM tab0 cor0
----
122
171
90
query I rowsort
SELECT ALL + 20 * 78 - - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8413fb573dd253f892488ffd1274a4a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT tab1.col2 * 55 + col0 DIV + col1 FROM tab1
----
2970
3141
5286
skipif mysql # not compatible
query I rowsort label-7461
SELECT tab1.col2 * 55 + col0 / + col1 FROM tab1
----
2970
3141
5286
onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT tab2.col1 DIV 76 + col2 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7462
SELECT tab2.col1 / 76 + col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 * + 24 AS col2 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT DISTINCT 53 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1674
3186
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT DISTINCT 77 + + col1 * cor0.col2 DIV col0 col1 FROM tab2 AS cor0
----
196
85
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT 77 + + col1 * cor0.col2 / col0 col1 FROM tab2 AS cor0
----
196
85
96
query I rowsort
SELECT DISTINCT - 25 * col2 AS col1 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT ALL - - 4 + - 17 AS col0 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7469
SELECT col1 * col1 + CAST( + col0 AS SIGNED ) * + tab0.col2 * + 98 FROM tab0
----
12839
723485
85012
skipif mysql # not compatible
query I rowsort label-7469
SELECT col1 * col1 + CAST ( + col0 AS INTEGER ) * + tab0.col2 * + 98 FROM tab0
----
12839
723485
85012
query I rowsort
SELECT 57 * + col2 AS col0 FROM tab2 cor0
----
1482
1539
2166
query I rowsort
SELECT ALL - + col1 * col0 + + 80 * - col2 * cor0.col0 + ( col1 + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-12882
-291200
-613360
query I rowsort
SELECT DISTINCT - - 20 + + col0 + + col2 AS col2 FROM tab1 cor0
----
141
196
77
query I rowsort
SELECT + + 76 * col0 * 17 AS col2 FROM tab1 AS cor0
----
103360
3876
82688
query I rowsort
SELECT + + col1 * col2 + 24 FROM tab1 AS cor0
----
1272
1428
594
onlyif mysql # use DIV operator for integer division
query I rowsort label-7475
SELECT DISTINCT + - col2 + + col1 DIV - ( col1 ) FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT + - col2 + + col1 / - ( col1 ) FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT ALL - 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509
query I rowsort
SELECT - col2 + col1 * 69 FROM tab0 AS cor0
----
5901
6197
6692
query I rowsort
SELECT - col0 + - 96 * col1 FROM tab1 AS cor0
----
-1024
-1328
-2499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7479
SELECT - col2 * + col0 * - cor0.col2 + - col0 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
25344
591138
skipif mysql # not compatible
query I rowsort label-7479
SELECT - col2 * + col0 * - cor0.col2 + - col0 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
25344
591138
query I rowsort
SELECT + - col0 + - 72 * + col2 AS col0 FROM tab0 cor0
----
-107
-2400
-5993
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7481
SELECT - + col1 + CAST( NULL AS SIGNED ) / cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7481
SELECT - + col1 + CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + cor0.col1 ) + + col0 * ( + 62 ) * col2 FROM tab0 AS cor0
----
2267
452567
49190
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703
query I rowsort
SELECT + - 58 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 897f42d096eff3935f4f50603850c23b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT DISTINCT - - col2 - - col1 * col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - - col2 - - col1 * col1 / + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col1 * + col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 49 col1 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT ALL - - cor0.col0 * col1 * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7489
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7489
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 85 FROM tab2 AS cor0
----
26
54
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT ALL col1 DIV 75 + 6 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-17
-28
-82
skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL col1 / 75 + 6 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-17
-28
-82
query I rowsort
SELECT + col2 * - 70 * + col0 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-12269
-138479
-209851
query I rowsort
SELECT DISTINCT - + col1 * - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT DISTINCT col1 + 0 DIV - col2 AS col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT col1 + 0 / - col2 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 * ( - 66 ) + col0 - cor0.col0 FROM tab1 cor0
----
1716
660
858
query I rowsort
SELECT ALL - col2 * + 74 + col0 FROM tab2 AS cor0
----
-1846
-1991
-2733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 39 + col0 * col1 col2 FROM tab2 AS cor0
----
1270
2825
5616
query I rowsort
SELECT - - ( + tab0.col2 ) AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + + cor0.col1 * - 8 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
51
query I rowsort
SELECT + + col1 + + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT DISTINCT - col1 + + col1 * col0 DIV col1 FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT - col1 + + col1 * col0 / col1 FROM tab1
----
-23
54
67
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col1 NOT IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - 61 + col1 + col2 AS col0 FROM tab1 AS cor0
----
19
48
6
query I rowsort
SELECT ALL - ( col2 ) * 43 + 65 * col2 + + col0 FROM tab0 AS cor0
----
1893
57
750
query I rowsort
SELECT col1 + col2 * col0 + - col2 * col0 AS col0 FROM tab0 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT tab1.col2 - col2 DIV + col1 AS col0 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-7507
SELECT tab1.col2 - col2 / + col1 AS col0 FROM tab1
----
52
52
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT ALL - col1 * + col1 DIV - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - col1 * + col1 / - col1 FROM tab0
----
86
91
97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 - + col0 ) NOT IN ( col2 * - col1 )
----
query I rowsort
SELECT - tab1.col0 * - tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col0 + col0 + + col2 AS col0 FROM tab1
----
185
256
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col1 + col1 - - col2 * col1 col0 FROM tab2
----
1309
1705
3127
query I rowsort
SELECT + + col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col2 * + col0 + ( col2 * col2 ) AS col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT ALL + 44 + + col1 AS col2 FROM tab0
----
130
135
141
query I rowsort
SELECT ALL + col1 * col2 + + 61 * - col2 FROM tab0
----
2460
36
825
query I rowsort
SELECT - + col0 + col1 * 32 + cor0.col0 * col0 * + 88 AS col2 FROM tab2 AS cor0
----
5297
537202
549673
query I rowsort
SELECT ALL + + cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT + + cor0.col0 * col0 + cor0.col0 - - col1 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT cor1.col0 + - 60 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to dbc0dce3f770fa429539d989c467a3d8
query I rowsort
SELECT ALL 76 AS col1 FROM tab0 cor0
----
76
76
76
query I rowsort
SELECT + cor0.col0 + + col2 + ( + col0 ) FROM tab2 AS cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + - col0 col2 FROM tab0
----
-2
-56
9
query I rowsort
SELECT + 30 * + 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f370ced2b2b7be7e40c5b86589a252
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT - col2 + col2 * + 46 FROM tab0 AS cor0
----
1485
3690
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col1 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT ALL 31 + col0 DIV col2 FROM tab1 AS cor0
----
31
31
32
skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL 31 + col0 / col2 FROM tab1 AS cor0
----
31
31
32
query I rowsort
SELECT col1 - col1 * 53 AS col2 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT 99 * col1 - - col1 * col2 FROM tab0 AS cor0
----
11352
16471
9700
query I rowsort
SELECT ALL - - col1 + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 15 col1 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT ALL + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col0 * col0 + + 77 * - col2 FROM tab2 AS cor0
----
-2030
3315
4082
onlyif mysql # use DIV operator for integer division
query I rowsort label-7536
SELECT ALL - 29 DIV cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 92373199ddded6330194ae645c50b3fa
skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL - 29 / cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 92373199ddded6330194ae645c50b3fa
query I rowsort
SELECT col1 - ( - ( + col2 ) ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - cor0.col0 + 54 FROM tab1 cor0
----
-10
-26
51
query I rowsort
SELECT DISTINCT + 26 * - col2 * col2 FROM tab0
----
-174824
-26
-28314
query I rowsort
SELECT ALL + + col0 + + col0 + + col0 FROM tab2 AS cor0
----
21
234
237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7541
SELECT ALL + + CAST( cor0.col1 AS SIGNED ) * - col1 + col2 * col0 * cor0.col1 FROM tab0 AS cor0
----
-6014
60716
655837
skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + + CAST ( cor0.col1 AS INTEGER ) * - col1 + col2 * col0 * cor0.col1 FROM tab0 AS cor0
----
-6014
60716
655837
query I rowsort
SELECT DISTINCT + + col2 * col2 + col2 + + 51 FROM tab0 AS cor0
----
1173
53
6857
onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT DISTINCT - col2 * col2 DIV + ( + 92 * + col2 ) FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - col2 * col2 / + ( + 92 * + col2 ) FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + col2 + col1 - col2 AS col0 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7545
SELECT DISTINCT - + col0 * col2 + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - + col0 * col2 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + 36 AS col0 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT DISTINCT - ( col0 ) + ( col0 + - col1 ) * - col1 FROM tab1 AS cor0
----
-604
-951
595
query I rowsort
SELECT ALL + cor0.col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT DISTINCT col1 DIV - col0 + + 61 col2 FROM tab2 AS cor0
----
57
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT col1 / - col0 + + 61 col2 FROM tab2 AS cor0
----
57
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT - cor0.col0 DIV - col0 + + cor0.col1 - - col1 FROM tab1 AS cor0
----
21
27
53
skipif mysql # not compatible
query I rowsort label-7550
SELECT - cor0.col0 / - col0 + + cor0.col1 - - col1 FROM tab1 AS cor0
----
21
27
53
query I rowsort
SELECT ALL - 57 + - col2 AS col0 FROM tab0 AS cor0
----
-139
-58
-90
query I rowsort
SELECT 12 - col2 FROM tab0
----
-21
-70
11
query I rowsort
SELECT 22 + + col1 * - col1 AS col0 FROM tab1
----
-147
-654
-78
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT col1 + 10 AS col0 FROM tab0
----
101
107
96
query I rowsort
SELECT DISTINCT col1 * + 34 + col1 AS col0 FROM tab1 cor0
----
350
455
910
query I rowsort
SELECT ALL - col1 - - 52 FROM tab2 AS cor0
----
-7
21
35
query I rowsort
SELECT - - col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7559
SELECT DISTINCT col1 - - 2 DIV col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT col1 - - 2 / col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col0 * + 6 AS col2 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT - 0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - 58 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9
query I rowsort
SELECT ALL - col0 * 45 FROM tab1
----
-135
-2880
-3600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
-32
query I rowsort
SELECT ALL col0 + - col0 * 85 - + 2 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2746
3660
7448
query I rowsort
SELECT + + cor0.col1 + col1 * + 19 * col1 FROM tab2 AS cor0
----
18290
5508
66198
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 + col2 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT col2 + cor0.col0 DIV - col0 col0 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7568
SELECT col2 + cor0.col0 / - col0 col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT + 0 * col1 + 75 AS col1 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT ALL - tab1.col1 * + col1 + + col2 AS col0 FROM tab1
----
-43
-622
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( - col2 ) col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ( - col1 ) + cor0.col2 - col2 * col2 FROM tab0 AS cor0
----
-1142
-6733
-97
query I rowsort
SELECT - 76 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT - 37 * - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ee43450a85e4c5537da3c485e3261ec5
query I rowsort
SELECT + cor0.col1 * - col2 + col0 * + col2 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT ALL - 69 * col0 FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT 4 + + col1 AS col0 FROM tab1 AS cor0
----
14
17
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7578
SELECT ALL col2 + + col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL col2 + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 8 * + col2 AS col0 FROM tab1 AS cor0
----
458
466
781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + tab2.col1 + - 4 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 50c0effb9d516bd23486fe06712a0c76
query I rowsort
SELECT DISTINCT + tab2.col2 * + tab2.col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 78 * 14 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 04c673185a9a5114af276b5ad32b8a1e
query I rowsort
SELECT col0 * - col1 + - 16 * + col0 AS col2 FROM tab2 cor0
----
-2607
-329
-5850
onlyif mysql # use DIV operator for integer division
query I rowsort label-7585
SELECT + col1 DIV - 89 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7585
SELECT + col1 / - 89 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 + + 16 * 23 AS col2 FROM tab0 AS cor0
----
392
403
457
query I rowsort
SELECT - col1 * + col1 * - col0 AS col2 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT - ( - col0 ) + tab0.col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT ( 47 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1222
-470
-611
onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT - 18 DIV + col2 + - ( - col2 ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7593
SELECT - 18 / + col2 + - ( - col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - - cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - - 94 FROM tab0, tab2 AS cor0
----
94
query I rowsort
SELECT - - 86 * + col2 - - col1 * + cor0.col1 FROM tab0 cor0
----
10234
15333
9495
onlyif mysql # use DIV operator for integer division
query I rowsort label-7597
SELECT 61 DIV + col1 + - ( + col2 ) col2 FROM tab2 AS cor0
----
-25
-26
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7597
SELECT 61 / + col1 + - ( + col2 ) col2 FROM tab2 AS cor0
----
-25
-26
-35
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 - + cor0.col0 * + col2 * 47 FROM tab2 AS cor0
----
-140805
-7922
-91835
query I rowsort
SELECT ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 98 AS col2 FROM tab1 cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 13 ) col1 FROM tab0 AS cor0
----
13
query I rowsort
SELECT ALL - - 13 + cor0.col0 AS col1 FROM tab1 cor0
----
16
77
93
query I rowsort
SELECT ALL - col2 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 55 * 21 AS col1 FROM tab1 cor0
----
-1155
-1155
-1155
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col2 - 56 FROM tab2 AS cor0
----
133
1972
2946
query I rowsort
SELECT ALL - 95 FROM tab1 cor0
----
-95
-95
-95
query I rowsort
SELECT + - col2 * - 46 - + cor0.col2 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT DISTINCT - 60 * + col2 AS col1 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 * - cor0.col2 + 17 AS col2 FROM tab0 AS cor0
----
114
611901
93671
query I rowsort
SELECT col0 - 13 FROM tab2
----
-6
65
66
query I rowsort
SELECT - col2 + col2 * + col2 * + 65 AS col0 FROM tab1
----
189486
211128
598944
query I rowsort
SELECT ALL + - col0 * - col0 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL 2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
onlyif mysql # use DIV operator for integer division
query I rowsort label-7614
SELECT DISTINCT + col0 DIV - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + col0 / - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7616
SELECT DISTINCT - col1 * - CAST( + 58 AS SIGNED ) - + col1 AS col2 FROM tab2
----
1767
3363
969
skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - col1 * - CAST ( + 58 AS INTEGER ) - + col1 AS col2 FROM tab2
----
1767
3363
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT DISTINCT col2 DIV 83 - + ( col2 ) AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT col2 / 83 - + ( col2 ) AS col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col1 + + tab2.col0 * + col2 + + col0 AS col2 FROM tab2
----
2165
227
3098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7620
SELECT - + col1 * ( + col2 ) DIV + col0 col2 FROM tab1 AS cor0
----
-15
-468
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7620
SELECT - + col1 * ( + col2 ) / + col0 col2 FROM tab1 AS cor0
----
-15
-468
-8
query I rowsort
SELECT + ( cor1.col2 * cor0.col1 ) AS col2 FROM tab1, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to e10fbe9d37d83451d62b2b29364831a9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT ALL col0 * CAST( - col0 AS SIGNED ) DIV - col1 - 38 FROM tab2
----
-37
329
65
skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) / - col1 - 38 FROM tab2
----
-37
329
65
query I rowsort
SELECT 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT ALL + col0 DIV ( col1 ) AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + col0 / ( col1 ) AS col2 FROM tab1
----
0
6
6
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 70 + - col0 + col0 * ( + col2 ) col0 FROM tab2 AS cor0
----
2020
252
2993
query I rowsort
SELECT DISTINCT - 94 * 75 FROM tab1 AS cor0
----
-7050
onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT DISTINCT col0 DIV + col1 col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT col0 / + col1 col1 FROM tab0
----
0
query I rowsort
SELECT - 15 + + 62 FROM tab2
----
47
47
47
query I rowsort
SELECT ALL - 21 + col1 * col2 FROM tab0 AS cor0
----
2817
7441
76
query I rowsort
SELECT ( - 45 ) AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
query I rowsort
SELECT ALL - col1 + + 13 FROM tab2
----
-18
-4
-46
query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 * + 17 AS col1 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 * col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + 86 * - col2 + - cor0.col2 * 66 + - col0 FROM tab2 AS cor0
----
-4030
-4111
-5855
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) * col0 + + 20 AS col0 FROM tab2 AS cor0
----
-1323
-197
-4582
skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) * col0 + + 20 AS col0 FROM tab2 AS cor0
----
-1323
-197
-4582
onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT + - cor0.col2 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7638
SELECT + - cor0.col2 / cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL - 25 * + 99 AS col0 FROM tab2 AS cor0
----
-2475
-2475
-2475
query I rowsort
SELECT ALL + + 94 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT ALL 90 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT - tab1.col0 + tab1.col2 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2, tab0, tab2 cor0
----
76
query I rowsort
SELECT ( - col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + col2 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT ALL ( col2 ) + col1 * col2 - - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
2872
7544
98
skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL ( col2 ) + col1 * col2 - - col2 / + col0 AS col2 FROM tab0 AS cor0
----
2872
7544
98
query I rowsort
SELECT + + cor0.col2 * col1 + 58 FROM tab0 AS cor0
----
155
2896
7520
query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT + + col2 + + ( - col2 ) DIV + col1 FROM tab1 cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-7649
SELECT + + col2 + + ( - col2 ) / + col1 FROM tab1 cor0
----
52
52
89
query I rowsort
SELECT ALL - + col2 * - 14 + col0 AS col2 FROM tab2 AS cor0
----
385
442
611
skipif mysql # not compatible
query I rowsort
SELECT ALL - - col1 * ( + 82 * col0 ) + + CAST ( + 49 AS REAL ) * col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
257224
27055
476736
query I rowsort
SELECT DISTINCT + cor0.col0 + + 60 FROM tab0 AS cor0
----
149
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7653
SELECT ALL col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT ALL + cor0.col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + cor0.col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + col0 + 2 * - col2 * cor0.col1 FROM tab1 cor0
----
-1076
-2416
-2805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT DISTINCT + + col0 / - CAST( NULL AS SIGNED ) + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + + col0 / - CAST ( NULL AS INTEGER ) + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * - col1 + cor0.col1 * col0 * col1 FROM tab1 AS cor0
----
12272
5830
624
query I rowsort
SELECT ALL col1 * - 97 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 + col2 FROM tab1 cor0
----
-13424
-1974
-6343
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab0, tab0 AS cor0
----
-11
query I rowsort
SELECT 40 + 41 * - col2 FROM tab0
----
-1
-1313
-3322
query I rowsort
SELECT DISTINCT - 0 + - 44 AS col2 FROM tab2 AS cor0
----
-44
query I rowsort
SELECT - - 52 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-137
-1976
-2950
onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT + 67 DIV col0 + col1 * - 94 FROM tab1 cor0
----
-1222
-2422
-939
skipif mysql # not compatible
query I rowsort label-7664
SELECT + 67 / col0 + col1 * - 94 FROM tab1 cor0
----
-1222
-2422
-939
query I rowsort
SELECT ALL col2 * 53 AS col2 FROM tab2
----
1378
1431
2014
query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 cor0
----
83
query I rowsort
SELECT col2 + - col2 * ( col2 + + col2 * 58 ) AS col2 FROM tab2 cor0
----
-39858
-42984
-85158
query I rowsort
SELECT col1 * cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT 75 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7670
SELECT ALL ( col1 ) * CAST( + col0 AS SIGNED ) * + col1 AS col2 FROM tab0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL ( col1 ) * CAST ( + col0 AS INTEGER ) * + col1 AS col2 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT ALL 61 DIV - col1 AS col0 FROM tab2
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL 61 / - col1 AS col0 FROM tab2
----
-1
-1
-3
query I rowsort
SELECT 76 + cor0.col2 FROM tab1 cor0
----
130
133
172
query I rowsort
SELECT + 94 * col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
10148
12513
16653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT col1 * ( col1 ) * + col0 + ( col0 ) + col2 AS col1 FROM tab0
----
177561
329351
737180
query I rowsort
SELECT ALL - col1 + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - - col0 + + ( ( - cor0.col0 ) ) * 17 FROM tab2 AS cor0
----
-112
-1248
-1264
query I rowsort
SELECT ALL - col0 * 99 AS col2 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT DISTINCT + + cor0.col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7680
SELECT + + col0 + 83 DIV col0 FROM tab2 AS cor0
----
18
79
80
skipif mysql # not compatible
query I rowsort label-7680
SELECT + + col0 + 83 / col0 FROM tab2 AS cor0
----
18
79
80
query I rowsort
SELECT + col2 + + cor0.col0 - - col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT + 66 + + col0 AS col2 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT + + col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + 77 * - 99 + + col1 + 20 AS col0 FROM tab2 AS cor0
----
-7544
-7572
-7586
query I rowsort
SELECT col2 * - cor0.col0 + - col0 AS col0 FROM tab1 cor0
----
-165
-3712
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT - - CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7687
SELECT - - CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + 13 + col2 FROM tab0
----
1148
14
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-7689
SELECT ALL col2 DIV col2 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL col2 / col2 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT + ( + 95 ) FROM tab2, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT ALL - tab2.col2 + col0 * col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT - + col2 + col1 * col2 * col2 AS col2 FROM tab0 AS cor0
----
611802
93621
96
query I rowsort
SELECT 47 + + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 558e6eb18f14d114557e48491080c21e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7694
SELECT - CAST( NULL AS SIGNED ) * - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7694
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT col0 DIV + col1 + col2 FROM tab2
----
27
27
42
skipif mysql # not compatible
query I rowsort label-7695
SELECT col0 / + col1 + col2 FROM tab2
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 95 + cor0.col2 col1 FROM tab0 cor0
----
-13
-62
-94
query I rowsort
SELECT ALL + col2 * col0 + col1 * + col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT ALL - 87 * - col1 - col1 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ( - col1 ) + + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7700
SELECT - 33 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7700
SELECT - 33 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - ( - col1 ) + ( col1 ) * + col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col0 - col2 * + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + - 72 AS col2 FROM tab2 cor0
----
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT ALL - col2 DIV col1 + CAST( col1 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
15
19
50
skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - col2 / col1 + CAST ( col1 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
15
19
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7705
SELECT DISTINCT + col2 * col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT + col2 * col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7706
SELECT 21 DIV 36 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7706
SELECT 21 / 36 FROM tab1
----
0
0
0
query I rowsort
SELECT + ( - col0 + col0 ) FROM tab1
----
0
0
0
query I rowsort
SELECT + cor0.col2 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7709
SELECT - col2 * CAST( - 88 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
109824
123552
50160
skipif mysql # not compatible
query I rowsort label-7709
SELECT - col2 * CAST ( - 88 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
109824
123552
50160
onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT cor0.col1 DIV + 46 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7710
SELECT cor0.col1 / + 46 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col1 col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + 9 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT - col2 * col2 * + col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL 31 * col2 AS col0 FROM tab2
----
1178
806
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7715
SELECT 73 + + col2 DIV + 96 AS col0 FROM tab0
----
73
73
73
skipif mysql # not compatible
query I rowsort label-7715
SELECT 73 + + col2 / + 96 AS col0 FROM tab0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT col0 DIV col2 + - col0 - - col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7716
SELECT col0 / col2 + - col0 - - col0 FROM tab0
----
0
1
35
query I rowsort
SELECT col0 - col1 * + col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT 88 + + col2 * ( + col0 ) - - col0 * - 1 AS col2 FROM tab2
----
2038
270
3011
query I rowsort
SELECT col0 * col2 * + col1 + - col0 FROM tab0
----
3360
664029
68088
query I rowsort
SELECT + col1 * + cor0.col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col2 + cor0.col0 * + col1 AS col0 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT ALL col1 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL col1 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 * 48 AS col0 FROM tab0 cor0
----
4128
4368
4656
query I rowsort
SELECT ALL + + col1 * 11 + + cor0.col0 + cor0.col1 FROM tab0 cor0
----
1056
1181
1199
query I rowsort
SELECT - col1 - + 5 AS col2 FROM tab2 AS cor0
----
-22
-36
-64
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7728
SELECT ALL - col1 * CAST( - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
22831
271518
6727
skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL - col1 * CAST ( - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + - ( cor0.col2 ) * ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
-2277
-416
655
query I rowsort
SELECT ALL - col2 * - 90 FROM tab2 AS cor0
----
2340
2430
3420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL col0 * 83 FROM tab0 cor0
----
1992
2905
7387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT + - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7733
SELECT + - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ( + 84 ) AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT col1 - - col2 * - col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col0 AS col2 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT - 35 + + cor0.col2 AS col1 FROM tab1 cor0
----
19
22
61
query I rowsort
SELECT ALL col1 + 53 AS col2 FROM tab0 cor0
----
139
144
150
query I rowsort
SELECT ALL + 43 + 12 * - col1 FROM tab1 AS cor0
----
-113
-269
-77
query I rowsort
SELECT DISTINCT 20 - col1 * col1 FROM tab1 AS cor0
----
-149
-656
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7741
SELECT DISTINCT - + 43 DIV + col1 + + col0 FROM tab2 cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - + 43 / + col1 + + col0 FROM tab2 cor0
----
6
77
78
query I rowsort
SELECT DISTINCT 39 * col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT + - ( col0 ) * + col1 + 51 FROM tab1 cor0
----
-27
-589
-989
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-14
4150
6467
query I rowsort
SELECT 88 + col0 AS col1 FROM tab0 AS cor0
----
112
123
177
onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT col2 + cor0.col1 DIV ( - 16 ) AS col1 FROM tab2 AS cor0
----
23
26
37
skipif mysql # not compatible
query I rowsort label-7746
SELECT col2 + cor0.col1 / ( - 16 ) AS col1 FROM tab2 AS cor0
----
23
26
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7747
SELECT CAST( + 12 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
skipif mysql # not compatible
query I rowsort label-7747
SELECT CAST ( + 12 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7748
SELECT DISTINCT + col0 * - cor0.col2 + - col2 + ( cor0.col1 ) * - CAST( col0 + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3334
-51
-8017
skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT + col0 * - cor0.col2 + - col2 + ( cor0.col1 ) * - CAST ( col0 + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3334
-51
-8017
query I rowsort
SELECT ALL 54 + cor0.col0 * + 47 FROM tab1 AS cor0
----
195
3062
3814
query I rowsort
SELECT 92 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843
query I rowsort
SELECT ALL ( col0 + col0 ) AS col1 FROM tab1
----
128
160
6
query I rowsort
SELECT + 49 AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab0 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7753
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL col2 + + col1 + 34 FROM tab0 AS cor0
----
132
153
207
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT ALL 96 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
32
skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL 96 / col0 AS col2 FROM tab1 AS cor0
----
1
1
32
query I rowsort
SELECT DISTINCT + 25 * col0 AS col2 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT DISTINCT - col1 * col1 + 49 AS col0 FROM tab0 AS cor0
----
-7347
-8232
-9360
query I rowsort
SELECT DISTINCT + col2 + col1 * 88 AS col0 FROM tab1 AS cor0
----
1240
2342
937
query I rowsort
SELECT ALL 50 * + col2 AS col2 FROM tab1 AS cor0
----
2700
2850
4800
query I rowsort
SELECT DISTINCT - + col2 + col0 * - 54 FROM tab1 AS cor0
----
-216
-3513
-4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT DISTINCT 92 + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-5
90
91
skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT 92 + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-5
90
91
query I rowsort
SELECT 4 + col1 FROM tab1 cor0
----
14
17
30
query I rowsort
SELECT ALL col0 + + tab0.col0 * - col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT 93 + 4 FROM tab0
----
97
97
97
query I rowsort
SELECT + 48 - - 42 * col0 AS col0 FROM tab1
----
174
2736
3408
query I rowsort
SELECT ALL + 29 - col1 * 96 FROM tab1 AS cor0
----
-1219
-2467
-931
query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * 19 + - col0 + - col1 AS col0 FROM tab1 AS cor0
----
121507
142
77750
query I rowsort
SELECT ALL + - col2 * + col0 - - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT cor0.col2 DIV 90 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7770
SELECT cor0.col2 / 90 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - 91 * col0 - col1 FROM tab2 AS cor0
----
-668
-7157
-7206
query I rowsort
SELECT DISTINCT - - cor0.col2 * 43 FROM tab0, tab0 AS cor0
----
1419
3526
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT ALL - - 72 DIV cor0.col0 col2 FROM tab0 AS cor0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - - 72 / cor0.col0 col2 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab2, tab1 AS cor0
----
67
query I rowsort
SELECT col1 * - col2 * col1 + col1 AS col2 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab1
----
6
query I rowsort
SELECT + col2 + 99 * + tab1.col1 FROM tab1
----
1047
1383
2628
query I rowsort
SELECT + 38 + ( col1 + - ( col1 ) ) * - col1 FROM tab1
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + - tab0.col2 col1 FROM tab0
----
-11
-60
21
query I rowsort
SELECT + 58 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ( - col1 ) + - col1 AS col2 FROM tab1
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT DISTINCT - + 35 DIV 50 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT - + 35 / 50 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT + ( ( col2 DIV - col1 ) ) * 84 * + col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7784
SELECT + ( ( col2 / - col1 ) ) * 84 * + col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + 32 * col1 + - cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-3328
-7264
670
query I rowsort
SELECT + ( + ( + col0 ) ) + 51 * ( + col2 ) FROM tab1 cor0
----
2757
2971
4976
query I rowsort
SELECT col0 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col2 * col0 * - col0 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + - cor0.col2 + cor0.col2 * cor0.col2 + cor0.col1 AS col0 FROM tab2 cor0
----
1423
709
733
query I rowsort
SELECT col1 * col1 + col1 + - col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT col2 * + col2 * - col1 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL + col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL cor0.col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col1 * 17 - tab0.col0 FROM tab0
----
1438
1458
1614
query I rowsort
SELECT + tab2.col2 + + col1 * col0 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT cor0.col2 + cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b
query I rowsort
SELECT DISTINCT col2 * - 96 FROM tab0
----
-3168
-7872
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT ALL + col0 DIV ( tab2.col1 ) AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + col0 / ( tab2.col1 ) AS col0 FROM tab2
----
0
1
4
query I rowsort
SELECT - col2 + + col1 * + col0 * col2 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT ALL - - 31 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-28
0
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 * + col0 col1 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT - 77 * col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL - + ( - col2 ) + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + 95 * col0 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT + - col1 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab2 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * col2 col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL - col0 * - cor0.col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - col0 + col0 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-1330
-158262
-237237
query I rowsort
SELECT tab0.col2 * - tab0.col1 + + tab0.col0 + - col1 AS col2 FROM tab0
----
-159
-2900
-7464
query I rowsort
SELECT - tab1.col0 - col0 AS col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL BETWEEN NULL AND + col1 * col0
----
query I rowsort
SELECT ALL col0 - col0 AS col1 FROM tab1 WHERE NULL BETWEEN - col2 + col1 + + col1 AND NULL
----
query I rowsort
SELECT DISTINCT col0 - col1 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT + col1 * tab1.col1 AS col0 FROM tab1 WHERE NOT - col1 * col0 IN ( col1 + tab1.col0 )
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT DISTINCT - tab2.col0 DIV + col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT - tab2.col0 / + col0 FROM tab2
----
-1
query I rowsort
SELECT - col0 - - col2 * + col2 AS col0 FROM tab0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT ALL - col0 DIV col1 + + col2 + col0 AS col1 FROM tab1
----
115
170
57
skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - col0 / col1 + + col2 + col0 AS col1 FROM tab1
----
115
170
57
query I rowsort
SELECT tab0.col0 * + tab0.col1 + + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL + tab2.col1 + + col0 * + col0 AS col2 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - tab0.col0 - + col1 * - col2 * col0 FROM tab0
----
3360
664029
68088
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > col1
----
64
10
57
80
13
96
query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col0 * col2 - col1 AS col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT + col1 <= NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IN ( tab0.col2 * col2 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + col1 ) IN ( + col0 + - col0 ) OR NOT ( col1 ) IN ( - col1 + col2 )
----
-24
-35
-89
query I rowsort
SELECT - col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - + col2 * col2 + + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * + col2 col0 FROM tab1 WHERE NULL IN ( + col2 * - col1 )
----
query I rowsort
SELECT DISTINCT + tab2.col1 * + tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT cor0.col0 + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
query I rowsort
SELECT ALL - - ( 85 ) * col2 AS col2 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT ALL col2 * 49 AS col1 FROM tab0
----
1617
4018
49
query I rowsort
SELECT ALL + 31 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1178
806
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7841
SELECT + ( 94 ) DIV - col0 col0 FROM tab1 AS cor0
----
-1
-1
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7841
SELECT + ( 94 ) / - col0 col0 FROM tab1 AS cor0
----
-1
-1
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7842
SELECT ALL - - CAST( NULL AS DECIMAL ) * - col1 * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - - CAST ( NULL AS REAL ) * - col1 * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 81 + 52 AS col1 FROM tab0 AS cor0
----
-29
query I rowsort
SELECT + tab2.col2 + + col2 AS col2 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT tab0.col2 DIV - col0 + - col1 * + col0 * + col0 AS col2 FROM tab0
----
-118825
-49537
-720811
skipif mysql # not compatible
query I rowsort label-7845
SELECT tab0.col2 / - col0 + - col1 * + col0 * + col0 AS col2 FROM tab0
----
-118825
-49537
-720811
query I rowsort
SELECT + 51 * + col2 AS col1 FROM tab0 AS cor0
----
1683
4182
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT + + cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7847
SELECT + + cor0.col2 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 27 * col1 AS col0 FROM tab0 cor0
----
-2322
-2457
-2619
query I rowsort
SELECT + - cor0.col2 * 15 FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT + + col1 + + 8 FROM tab0 AS cor0
----
105
94
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7851
SELECT ALL - CAST( NULL AS SIGNED ) * ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - CAST ( NULL AS INTEGER ) * ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col2 * col1 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 15 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col0 FROM tab2
----
60
60
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7855
SELECT ALL + CAST( NULL AS SIGNED ) * - 61 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL + CAST ( NULL AS INTEGER ) * - 61 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + + col2 * col2 - - 42 FROM tab0 AS cor0
----
1131
43
6766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + 72 * + col0 col2 FROM tab1 AS cor0
----
1620
5178
7008
onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT DISTINCT col2 DIV 46 FROM tab1
----
1
2
skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT col2 / 46 FROM tab1
----
1
2
query I rowsort
SELECT + cor0.col2 * - col0 + 29 * - col1 FROM tab1 AS cor0
----
-3938
-8057
-916
query I rowsort
SELECT DISTINCT - - col2 + + ( + col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT - col1 * + 17 + - 58 DIV - col1 FROM tab2 cor0
----
-1003
-286
-526
skipif mysql # not compatible
query I rowsort label-7861
SELECT - col1 * + 17 + - 58 / - col1 FROM tab2 cor0
----
-1003
-286
-526
query I rowsort
SELECT ALL col2 * - 87 FROM tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT ALL cor0.col2 * 85 + + col0 AS col0 FROM tab0 AS cor0
----
120
2829
7059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7864
SELECT + - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7864
SELECT + - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * - col2 + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
-1056
-1296
-456
query I rowsort
SELECT cor0.col1 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - col0 * 20 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT ALL + col2 DIV - col1 AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + col2 / - col1 AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT cor0.col2 * ( - col0 ) + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col1 + 44 AS col0 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT + col2 + + 71 AS col0 FROM tab2 AS cor0
----
109
97
98
query I rowsort
SELECT DISTINCT - + col0 + + 53 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7873
SELECT DISTINCT - + col0 * CAST( NULL AS SIGNED ) * col0 + cor0.col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - + col0 * CAST ( NULL AS INTEGER ) * col0 + cor0.col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + + col2 + col0 * + 26 AS col2 FROM tab1 AS cor0
----
132
1721
2176
query I rowsort
SELECT ALL - + col0 * cor0.col1 - + col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + col0 + + 68 + + 62 FROM tab1 AS cor0
----
133
194
210
query I rowsort
SELECT DISTINCT + col2 * - 86 + + col1 * col2 FROM tab0 AS cor0
----
0
11
410
query I rowsort
SELECT ALL - col1 * + 49 + 44 FROM tab1 AS cor0
----
-1230
-446
-593
query I rowsort
SELECT DISTINCT + + col0 + 53 * cor0.col0 FROM tab1 AS cor0
----
162
3456
4320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7880
SELECT col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + col2 + 33 FROM tab0 AS cor0
----
204
69
90
query I rowsort
SELECT + 38 + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2878
-3211
-9178
query I rowsort
SELECT ALL - col1 * - 85 AS col1 FROM tab0 AS cor0
----
7310
7735
8245
onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT DISTINCT + col2 + 25 DIV - tab1.col0 AS col0 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT + col2 + 25 / - tab1.col0 AS col0 FROM tab1
----
46
57
96
query I rowsort
SELECT ALL - tab1.col2 + col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + ( - cor0.col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 67 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT ALL col1 * col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT ALL - 75 + col2 * 67 FROM tab0 AS cor0
----
-8
2136
5419
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7891
SELECT ALL - - 48 * + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - - 48 * + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + - 87 AS col2 FROM tab0 AS cor0
----
-1176
-6811
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7893
SELECT 81 * + col2 + - CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
2047
2156
3061
skipif mysql # not compatible
query I rowsort label-7893
SELECT 81 * + col2 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
2047
2156
3061
query I rowsort
SELECT - + col1 - - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT 17 * col2 + - ( tab2.col1 ) AS col0 FROM tab2
----
383
428
629
query I rowsort
SELECT ALL col1 + tab2.col0 * 26 FROM tab2
----
2071
2087
213
onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT ALL - tab1.col0 + - col0 DIV 90 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - tab1.col0 + - col0 / 90 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL col2 + + col2 * col1 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT - + col1 * ( + 98 * + col0 ) + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
-194876
-323301
-785421
query I rowsort
SELECT ALL + 91 * + col1 + + ( col2 ) * - col1 AS col0 FROM tab0
----
4988
819
8730
query I rowsort
SELECT col0 + + col1 - - col1 FROM tab2
----
113
196
69
query I rowsort
SELECT - 38 * + col0 + 28 FROM tab1
----
-2404
-3012
-86
query I rowsort
SELECT DISTINCT 82 * + col2 + col0 FROM tab1
----
4431
4738
7952
query I rowsort
SELECT - 84 + col1 AS col0 FROM tab0 AS cor0
----
13
2
7
query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2, tab0, tab0 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7906
SELECT ALL + col2 + - tab1.col0 * CAST( ( + col2 ) AS SIGNED ) FROM tab1
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + col2 + - tab1.col0 * CAST ( ( + col2 ) AS INTEGER ) FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - col0 * col0 + 40 FROM tab2
----
-6044
-6201
-9
query I rowsort
SELECT - - col2 + + 59 - - col0 FROM tab0 AS cor0
----
116
230
95
query I rowsort
SELECT + + col1 + 64 AS col1 FROM tab2 AS cor0
----
123
81
95
query I rowsort
SELECT cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + 94 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL tab1.col0 + + col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col2 * col1 + - col2 * - 34 FROM tab1
----
2508
3240
4512
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 + - col1 AS REAL ) FROM tab0
----
0
query I rowsort
SELECT - 85 + - col1 FROM tab1
----
-111
-95
-98
query I rowsort
SELECT - cor0.col0 + + ( + ( tab2.col0 ) ) AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6465178853078d8af381d9261d1f3126
query I rowsort
SELECT DISTINCT - ( col2 ) - col2 * ( - col1 ) FROM tab0 AS cor0
----
2805
7380
96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4
query I rowsort
SELECT ALL - 10 + + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 765a6b93edd9fd9a7d34d590fb086e1a
query I rowsort
SELECT DISTINCT - cor1.col2 + 48 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-34
15
47
query I rowsort
SELECT DISTINCT col1 * - col1 + + col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL ( - col1 ) * ( - cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col0 + - 55 * - col2 + col0 FROM tab2
----
1499
1586
2248
query I rowsort
SELECT - col1 * col0 * col0 - + col1 FROM tab1
----
-260
-40970
-83213
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7927
SELECT + col0 * col2 + - CAST( 64 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3584
7616
98
skipif mysql # not compatible
query I rowsort label-7927
SELECT + col0 * col2 + - CAST ( 64 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3584
7616
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT + 31 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT DISTINCT tab0.col2 DIV 10 FROM tab0
----
0
3
8
skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT tab0.col2 / 10 FROM tab0
----
0
3
8
query I rowsort
SELECT col1 * 0 * col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + 37 FROM tab1
----
370
481
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-7933
SELECT col1 DIV + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7933
SELECT col1 / + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT 44 + 95 FROM tab0 AS cor0
----
139
139
139
query I rowsort
SELECT - 86 * 55 + cor0.col1 FROM tab1 cor0
----
-4704
-4717
-4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7936
SELECT - - ( ( + col2 ) ) * CAST( + 64 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
2145
5330
65
skipif mysql # not compatible
query I rowsort label-7936
SELECT - - ( ( + col2 ) ) * CAST ( + 64 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT - 89 * - col1 + col1 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT - - 19 + col0 * - cor0.col1 FROM tab1 cor0
----
-1021
-59
-621
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) * col2 * + 75 AS col2 FROM tab1 AS cor0
----
218700
243675
691200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT DISTINCT col0 DIV 9 AS col2 FROM tab1
----
0
7
8
skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT col0 / 9 AS col2 FROM tab1
----
0
7
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT + - 28 DIV - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
24
63
89
skipif mysql # not compatible
query I rowsort label-7941
SELECT + - 28 / - cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
24
63
89
query I rowsort
SELECT ALL + 35 + + col0 * cor0.col2 FROM tab1 AS cor0
----
197
3683
7715
query I rowsort
SELECT + col0 + + 59 * + col2 FROM tab0 AS cor0
----
1971
4927
94
query I rowsort
SELECT + - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7945
SELECT ALL + + col2 + ( - col0 ) * - col1 - - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1398
275
4687
skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + + col2 + ( - col0 ) * - col1 - - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1398
275
4687
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7946
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) / + 77 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) / + 77 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + col2 * + CAST ( cor0.col0 AS REAL ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + + col2 + 74 AS col0 FROM tab0 AS cor0
----
107
156
75
query I rowsort
SELECT DISTINCT + + col2 * - ( col0 ) FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - + col0 * - 6 * ( - col0 ) + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-31902
-36103
-77
query I rowsort
SELECT DISTINCT - - col1 + - ( col0 ) * + col2 * 92 AS col2 FROM tab2 cor0
----
-17357
-186517
-276167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7953
SELECT ALL + + ( + 11 ) + cor0.col0 * CAST( NULL AS SIGNED ) * + 65 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-7953
SELECT ALL + + ( + 11 ) + cor0.col0 * CAST ( NULL AS INTEGER ) * + 65 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 68 + 53 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL + ( col2 ) * - col1 + ( + cor0.col0 ) FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - cor0.col2 * col2 + + col1 * + col0 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT - col2 + 41 FROM tab2
----
14
15
3
query I rowsort
SELECT col2 + - 94 AS col0 FROM tab2
----
-56
-67
-68
query I rowsort
SELECT ALL cor1.col1 - - cor0.col2 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 06401b441a152fc92cb3ff333b63fc2f
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT 98 + cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 19682d3439cca7845f9153b5539dfeb6
query I rowsort
SELECT DISTINCT - 31 + col2 AS col0 FROM tab1 AS cor0
----
23
26
65
query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 + + col0 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT ALL - - col2 - - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 62 + + col0 * - 74 AS col0 FROM tab1 AS cor0
----
-160
-4674
-5858
query I rowsort
SELECT DISTINCT 33 * - col0 - col2 FROM tab1
----
-153
-2169
-2736
onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT ALL + col0 DIV tab1.col2 - col0 AS col1 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + col0 / tab1.col2 - col0 AS col1 FROM tab1
----
-3
-63
-80
query I rowsort
SELECT col0 * 72 + col2 * + ( col2 * + col2 ) AS col0 FROM tab0
----
2521
37665
557776
query I rowsort
SELECT DISTINCT 96 * col1 FROM tab0
----
8256
8736
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT - 42 DIV - col0 col2 FROM tab0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7971
SELECT - 42 / - col0 col2 FROM tab0
----
0
1
1
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col1 * col2 + + col0 - col0 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col0 * col1 + - ( col0 ) FROM tab1
----
576
75
960
query I rowsort
SELECT ALL col0 * col2 + ( - tab0.col1 ) AS col1 FROM tab0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * + col1 col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + 96 * - col0 * + 34 + + 50 FROM tab0 AS cor0
----
-114190
-290446
-78286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7978
SELECT DISTINCT col1 * + col2 + CAST( tab1.col0 AS SIGNED ) FROM tab1
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT col1 * + col2 + CAST ( tab1.col0 AS INTEGER ) FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + tab0.col0 + tab0.col0 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT + - col2 * CAST( 20 AS SIGNED ) + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-574
-624
-877
skipif mysql # not compatible
query I rowsort label-7980
SELECT + - col2 * CAST ( 20 AS INTEGER ) + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-574
-624
-877
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT ALL 1 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL 1 / - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 + - ( 73 + + col1 ) * 99 * 79 FROM tab2
----
-1038456
-710131
-813433
query I rowsort
SELECT + 20 + col1 FROM tab1 AS cor0
----
30
33
46
query I rowsort
SELECT ALL - col1 * col1 * + col0 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT - + col0 DIV 70 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-7985
SELECT - + col0 / 70 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT + cor0.col1 + col0 * ( cor0.col0 ) + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
111
6202
6275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7987
SELECT DISTINCT - - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT ALL + + col1 * col0 * col2 + cor0.col2 - 11 DIV - col0 AS col1 FROM tab1 AS cor0
----
36537
4269
99936
skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + + col1 * col0 * col2 + cor0.col2 - 11 / - col0 AS col1 FROM tab1 AS cor0
----
36537
4269
99936
query I rowsort
SELECT + col0 * ( 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7990
SELECT - + col0 + CAST( NULL AS SIGNED ) - col2 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7990
SELECT - + col0 + CAST ( NULL AS INTEGER ) - col2 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + + 46 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-164
-2954
-3693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT DISTINCT - - ( 51 ) + cor0.col2 DIV 21 AS col0 FROM tab2 AS cor0
----
52
skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - - ( 51 ) + cor0.col2 / 21 AS col0 FROM tab2 AS cor0
----
52
query I rowsort
SELECT ALL - col1 * + 63 + + col2 FROM tab2 cor0
----
-1033
-1926
-3691
query I rowsort
SELECT ALL - col1 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7995
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + 63 AS col2 FROM tab2 AS cor0
----
-63
query I rowsort
SELECT ALL - + 23 + col1 AS col2 FROM tab0 AS cor0
----
63
68
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT - CAST( col2 AS SIGNED ) + - cor0.col1 DIV ( + col2 * + col0 ) AS col0 FROM tab0 AS cor0
----
-3
-33
-82
skipif mysql # not compatible
query I rowsort label-7998
SELECT - CAST ( col2 AS INTEGER ) + - cor0.col1 / ( + col2 * + col0 ) AS col0 FROM tab0 AS cor0
----
-3
-33
-82
query I rowsort
SELECT DISTINCT + + 89 + + 80 FROM tab2 AS cor0
----
169
query I rowsort
SELECT ALL + - 50 * + col2 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT + 36 * cor0.col0 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT + col2 * - 19 * col2 FROM tab2 AS cor0
----
-12844
-13851
-27436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col1 * col0 col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT 12 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT ALL col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT 6 * - cor0.col0 AS col1 FROM tab1 cor0
----
-18
-384
-480
query I rowsort
SELECT + - col1 + + col1 + col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - + col0 * col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL 14 * col2 + col2 + - col1 FROM tab1 AS cor0
----
1427
784
845
query I rowsort
SELECT + - 30 * cor0.col0 + ( 69 ) AS col0 FROM tab0 AS cor0
----
-2601
-651
-981
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - cor0.col0 * + 78 FROM tab0 AS cor0
----
-1872
-2730
-6942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8015
SELECT DISTINCT - col0 * - 45 * - col2 + cor0.col1 * - CAST( NULL AS SIGNED ) + 78 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT - col0 * - 45 * - col2 + cor0.col1 * - CAST ( NULL AS INTEGER ) + 78 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * - 78 + + col0 + col1 FROM tab0 AS cor0
----
-2464
-6216
54
query I rowsort
SELECT - 17 * col1 AS col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT col1 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL tab0.col1 * 78 FROM tab0
----
6708
7098
7566
onlyif mysql # use DIV operator for integer division
query I rowsort label-8020
SELECT - - cor0.col2 * col0 DIV cor0.col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8020
SELECT - - cor0.col2 * col0 / cor0.col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 * col0 + + col1 * col1 * - col0 FROM tab2 AS cor0
----
-19829
-269490
-6538
query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab0, tab2 AS cor0
----
10
13
26
query I rowsort
SELECT + col2 * col2 * - 11 FROM tab1
----
-101376
-32076
-35739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col2 * col0 col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - col0 * + cor0.col1 + - col1 + 0 FROM tab2 cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - col1 * + col1 * + col0 + 14 FROM tab1
----
-13506
-2014
-6386
query I rowsort
SELECT + 83 * + col2 - + 85 FROM tab0 AS cor0
----
-2
2654
6721
query I rowsort
SELECT + col2 * col1 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT - col1 - + col1 * 63 FROM tab0 AS cor0
----
-5504
-5824
-6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT - - 86 + - col2 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-706
-7212
51
skipif mysql # not compatible
query I rowsort label-8030
SELECT - - 86 + - col2 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-706
-7212
51
query I rowsort
SELECT col0 + ( col2 ) * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8032
SELECT DISTINCT + 94 * col0 + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT + 94 * col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
query I rowsort
SELECT - + col1 * + 4 + 58 FROM tab0 cor0
----
-286
-306
-330
query I rowsort
SELECT + col1 * col2 * - 72 FROM tab2
----
-110448
-46512
-60264
query I rowsort
SELECT ALL - 79 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT - 22 + col2 AS col1 FROM tab1
----
32
35
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT cor0.col0 DIV col0 - - col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8037
SELECT cor0.col0 / col0 - - col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL - cor0.col0 * - col2 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + - col2 * col1 + - 76 - - col2 AS col0 FROM tab1 AS cor0
----
-1228
-1426
-589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * col0 * - col1 col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + + ( 15 ) * + col2 + + 48 AS col2 FROM tab1 AS cor0
----
1488
858
903
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8042
SELECT col1 * CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8042
SELECT col1 * CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2, tab0 AS cor0
----
38
query I rowsort
SELECT + cor0.col2 + 71 FROM tab1 AS cor0
----
125
128
167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + 40 col1 FROM tab2
----
-19
23
9
query I rowsort
SELECT + ( - col1 ) + tab1.col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT + 48 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
47
48
48
skipif mysql # not compatible
query I rowsort label-8047
SELECT + 48 + - cor0.col0 / col2 FROM tab1 AS cor0
----
47
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT ALL col1 DIV 74 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL col1 / 74 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT 2 FROM tab0, tab2 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL + col2 * 19 FROM tab0
----
1558
19
627
query I rowsort
SELECT DISTINCT + ( - 41 ) AS col1 FROM tab1
----
-41
query I rowsort
SELECT - + 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT - 44 * - col1 FROM tab2
----
1364
2596
748
query I rowsort
SELECT - - cor0.col2 * col2 + 4 + cor0.col2 AS col1 FROM tab0 AS cor0
----
1126
6
6810
query I rowsort
SELECT - + col0 * col1 + cor0.col0 * - 40 + + col2 AS col2 FROM tab1 AS cor0
----
-144
-3143
-4144
query I rowsort
SELECT + ( col0 ) + col0 * col0 * - col1 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT 69 - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-571
-9
-971
query I rowsort
SELECT + + 54 - col0 FROM tab0 AS cor0
----
-35
19
30
query I rowsort
SELECT col2 * cor0.col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + ( col0 ) + - col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 + col1 * + col2 FROM tab1
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-8062
SELECT ALL + + col2 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + + col2 + col0 / col1 AS col2 FROM tab2 AS cor0
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT DISTINCT - CAST( 9 AS SIGNED ) + - col1 DIV ( + col2 * + col1 ) col0 FROM tab1 AS cor0
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - CAST ( 9 AS INTEGER ) + - col1 / ( + col2 * + col1 ) col0 FROM tab1 AS cor0
----
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT - CAST( + ( col0 ) AS SIGNED ) - + col2 col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8064
SELECT - CAST ( + ( col0 ) AS INTEGER ) - + col2 col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - - ( - col0 ) - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col0 + + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + + 35 + + col1 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT + cor0.col0 + col1 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
205457
29798
4992
query I rowsort
SELECT 95 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1694
2952
5683
query I rowsort
SELECT DISTINCT + 49 * 35 AS col0 FROM tab2 AS cor0
----
1715
query I rowsort
SELECT ALL + col0 + - 58 FROM tab1 AS cor0
----
-55
22
6
query I rowsort
SELECT cor0.col2 * - col0 + + col2 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-13940
-1848
-35
query I rowsort
SELECT ALL + ( col2 ) * 7 AS col2 FROM tab2 AS cor0
----
182
189
266
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + - ( col2 ) col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + ( - col2 ) * - 37 + - col1 AS col0 FROM tab1 AS cor0
----
1972
2099
3539
query I rowsort
SELECT ALL col0 + + cor0.col2 * + col2 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT ALL + 96 + col2 AS col1 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT + + col1 * cor0.col0 + col2 * col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT + 56 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL col0 + col1 * cor0.col2 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ALL + col2 + col0 * 34 FROM tab2 AS cor0
----
265
2678
2724
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT ALL - - col0 * ( - col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + ( + col2 ) col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + col2 + - ( ( col2 ) ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + col0 * - 90 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT col0 * 36 AS col0 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT ALL CAST( 22 AS SIGNED ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL CAST ( 22 AS INTEGER ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT DISTINCT col0 * - col2 + col0 + cor0.col2 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT DISTINCT - col0 + + 51 * - col2 FROM tab1 AS cor0
----
-2757
-2971
-4976
query I rowsort
SELECT ALL + - col2 * - col1 * col1 - + col1 FROM tab1 AS cor0
----
16211
36478
5690
query I rowsort
SELECT ALL - + col0 - - col1 AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT + col1 * - ( col1 ) + + ( col1 ) FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - col2 + 59 * + col0 FROM tab1 AS cor0
----
123
3719
4624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - col1 ) - - col2 * - cor0.col0 * - col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - col1 ) - - col2 * - cor0.col0 * - col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT 18 * 57 - col1 AS col1 FROM tab1 cor0
----
1000
1013
1016
onlyif mysql # use DIV operator for integer division
query I rowsort label-8097
SELECT - col1 DIV ( - col2 ) - + col0 AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8097
SELECT - col1 / ( - col2 ) - + col0 AS col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - ( - col2 ) * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab0 cor0
----
36
query I rowsort
SELECT 56 * 0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8101
SELECT - CAST( + ( + col0 ) AS SIGNED ) * ( col1 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-8101
SELECT - CAST ( + ( + col0 ) AS INTEGER ) * ( col1 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT cor0.col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col2 * 51 + - col0 AS col1 FROM tab2
----
1248
1370
1859
query I rowsort
SELECT col1 * + 55 - - 65 * tab0.col0 AS col0 FROM tab0
----
10790
6290
7610
query I rowsort
SELECT - 42 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT ALL - 1 * col0 - - col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT DISTINCT + col2 DIV col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + col2 / col1 + col0 AS col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT - cor0.col0 * 71 FROM tab1 AS cor0
----
-213
-4544
-5680
query I rowsort
SELECT col2 * col1 * - col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT col2 * col0 * col2 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT + 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT col2 * col0 + col2 * + col2 FROM tab1
----
16896
3078
6897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8115
SELECT DISTINCT + 8 + - tab1.col2 * ( + col2 + - col1 ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + 8 + - tab1.col2 * ( + col2 + - col1 ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL + col2 * col0 * ( - ( + col1 ) ) + + col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 * ( - col1 ) FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT ALL cor0.col0 * CAST( 78 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to a106d8f054a02f1e78fedfafd8e2cbbe
skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL cor0.col0 * CAST ( 78 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to a106d8f054a02f1e78fedfafd8e2cbbe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8119
SELECT ALL - col0 * col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 50 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
50
query I rowsort
SELECT - + col0 * - ( 63 + - cor0.col1 ) FROM tab0 AS cor0
----
-1190
-2492
-552
onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT ALL col2 DIV - ( col2 ) AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL col2 / - ( col2 ) AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + cor0.col1 * ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 * + CAST ( col0 AS REAL ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 15 * 20 FROM tab1
----
300
300
300
query I rowsort
SELECT cor0.col0 * col0 + - col1 + col1 AS col2 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT + col0 * 86 DIV - col0 FROM tab2
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-8128
SELECT + col0 * 86 / - col0 FROM tab2
----
-86
-86
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 78 ) * + tab0.col0 * + col1 FROM tab0
----
-160992
-264810
-631722
query I rowsort
SELECT DISTINCT - cor1.col2 + + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT - - col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + tab2.col2 + col2 * + col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT + - 14 * - col2 + - col2 FROM tab0 cor0
----
1066
13
429
query I rowsort
SELECT - - col0 + - cor0.col1 * - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT - 13 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ALL - col0 * - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT col2 + + 14 FROM tab1 AS cor0
----
110
68
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT - col1 + col1 DIV col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-8140
SELECT - col1 + col1 / col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT 59 + col1 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
7488
8422
9469
query I rowsort
SELECT 51 - 30 AS col2 FROM tab0 cor0
----
21
21
21
query I rowsort
SELECT - col0 * col0 + col0 * col2 + - col1 FROM tab1 AS cor0
----
-458
1267
127
query I rowsort
SELECT - col1 * ( + cor0.col2 ) * col0 - col0 AS col2 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT col1 * + col0 + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT ALL + tab1.col2 - + col0 * col2 AS col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT col0 - tab1.col2 * - col0 * col2 FROM tab1
----
208000
737360
8751
onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT - + col0 DIV col1 + - col0 + col0 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-8148
SELECT - + col0 / col1 + - col0 + col0 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL - tab2.col1 - tab2.col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL - col0 - + tab1.col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL - cor0.col2 / col2 FROM tab1 cor0 WHERE NOT cor0.col2 NOT BETWEEN ( NULL ) AND NULL OR NULL <> NULL
----
query I rowsort
SELECT DISTINCT + + col1 * + col1 + + col2 + col0 AS col0 FROM tab0 AS cor0
----
7453
8452
9445
query I rowsort
SELECT ALL - cor0.col0 * + col1 + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT + + cor0.col0 * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 + col2 * - col1 + + col0 FROM tab0 AS cor0
----
-2728
-7282
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8156
SELECT ALL col2 + col1 DIV + col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL col2 + col1 / + col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + col2 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-8159
SELECT ALL + col0 * tab1.col2 DIV - col0 AS col1 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + col0 * tab1.col2 / - col0 AS col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL - col1 * + col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col2 col1 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT ALL col1 * col0 + - col1 DIV + col0 FROM tab2 AS cor0
----
1343
213
4602
skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL col1 * col0 + - col1 / + col0 FROM tab2 AS cor0
----
1343
213
4602
query I rowsort
SELECT ALL - col2 + - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-134
-163
-65
query I rowsort
SELECT DISTINCT + + col0 + - col1 + cor0.col2 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT col2 + col1 * - col2 AS col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab2 WHERE col2 + col0 < + col2 AND NOT ( NULL ) IN ( + col2 * - col2 )
----
query I rowsort
SELECT DISTINCT - 40 + + 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
query I rowsort
SELECT ALL ( 12 ) FROM tab1, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-8170
SELECT + tab2.col2 DIV 11 FROM tab2
----
2
2
3
skipif mysql # not compatible
query I rowsort label-8170
SELECT + tab2.col2 / 11 FROM tab2
----
2
2
3
query I rowsort
SELECT col1 + 46 AS col0 FROM tab1
----
56
59
72
query I rowsort
SELECT ALL col1 + + 99 + 64 * - tab2.col2 FROM tab2
----
-1506
-1598
-2316
query I rowsort
SELECT ALL + tab2.col0 * + 81 + + col0 FROM tab2
----
574
6396
6478
onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT ALL col1 + 12 * ( col2 ) DIV - col1 FROM tab2
----
-9
21
54
skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL col1 + 12 * ( col2 ) / - col1 FROM tab2
----
-9
21
54
query I rowsort
SELECT ALL col0 + 65 FROM tab1
----
129
145
68
query I rowsort
SELECT DISTINCT - col0 * - 74 * - col0 + col1 * - tab2.col2 FROM tab2
----
-4463
-451750
-462480
query I rowsort
SELECT DISTINCT + + cor0.col2 + 99 * col0 AS col0 FROM tab2 cor0
----
720
7748
7859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8178
SELECT ALL - col1 / - CAST( NULL AS SIGNED ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - col1 / - CAST ( NULL AS INTEGER ) - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col0 + 68 * + col2 FROM tab2 AS cor0
----
1885
7852
8825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8180
SELECT DISTINCT col2 * CAST( + col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT col2 * CAST ( + col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - + col2 + 86 * 53 FROM tab2 AS cor0
----
4520
4531
4532
query I rowsort
SELECT ALL - + col0 + - 27 FROM tab2 AS cor0
----
-105
-106
-34
query I rowsort
SELECT - col0 + + 69 + 14 AS col2 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT - 43 FROM tab1, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT ALL - + col2 + + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
-63
query I rowsort
SELECT - + col0 * + 75 + - 23 FROM tab2 AS cor0
----
-548
-5873
-5948
query I rowsort
SELECT col2 * 37 * + col0 FROM tab0
----
1295
270026
29304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8189
SELECT + CAST( tab1.col2 AS SIGNED ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8189
SELECT + CAST ( tab1.col2 AS INTEGER ) FROM tab1
----
54
57
96
query I rowsort
SELECT - ( col0 ) + + col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ( tab2.col1 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 55 * col2 + + col2 FROM tab0
----
1848
4592
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8193
SELECT col1 * col2 + col2 DIV - col0 AS col0 FROM tab1
----
1247
1386
570
skipif mysql # not compatible
query I rowsort label-8193
SELECT col1 * col2 + col2 / - col0 AS col0 FROM tab1
----
1247
1386
570
query I rowsort
SELECT ALL - ( + 85 ) * - col0 FROM tab0 AS cor0
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT ALL + + ( col2 ) + + cor0.col2 * + col1 * - col2 + col2 DIV + col2 AS col2 FROM tab1 cor0
----
-119711
-32432
-75761
skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + + ( col2 ) + + cor0.col2 * + col1 * - col2 + col2 / + col2 AS col2 FROM tab1 cor0
----
-119711
-32432
-75761
query I rowsort
SELECT - 96 + - col2 * tab1.col0 AS col0 FROM tab1
----
-258
-3744
-7776
query I rowsort
SELECT + ( + col1 ) * - col2 + col1 + + col1 FROM tab0 AS cor0
----
-2666
-7280
97
query I rowsort
SELECT ALL 57 FROM tab2, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 * col2 * col2 col1 FROM tab0 AS cor0
----
-430336
-64
-69696
query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8201
SELECT DISTINCT ( col1 ) DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT ( col1 ) / + col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - 23 + + col0 FROM tab0 AS cor0
----
1
12
66
query I rowsort
SELECT ALL + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + - 94 FROM tab2 cor0
----
-94
-94
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8205
SELECT ALL - 37 * - col2 + CAST( NULL AS SIGNED ) * ( col2 * col2 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - 37 * - col2 + CAST ( NULL AS INTEGER ) * ( col2 * col2 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) + cor0.col2 * + col2 col2 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 * cor0.col1 * + col0 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - 25 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8211
SELECT + CAST( col2 AS SIGNED ) - tab0.col0 FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-8211
SELECT + CAST ( col2 AS INTEGER ) - tab0.col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT 3 + + col0 * 0 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL + ( - col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - cor0.col0 + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT 54 * + col0 AS col2 FROM tab2 AS cor0
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT DISTINCT - - col0 * - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - - col0 * - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 19 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT col2 + col2 * - col1 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + - 72 * col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT DISTINCT - col2 * - col1 + 84 AS col0 FROM tab2 AS cor0
----
1618
730
921
query I rowsort
SELECT 71 + col0 + + 28 FROM tab0 cor0
----
123
134
188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * ( col0 + + col0 ) col0 FROM tab1 AS cor0
----
1337
210
2176
onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT cor0.col1 DIV 76 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8223
SELECT cor0.col1 / 76 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * + 91 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT + tab0.col0 * + col2 + - col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0
----
0
query I rowsort
SELECT ( + col0 + col1 ) AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + ( - col1 ) + + col0 * + ( col1 + + col1 ) * + col1 FROM tab2 AS cor0
----
13423
45645
542977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 52 * col0 col0 FROM tab1 cor0
----
153
3264
4080
query I rowsort
SELECT col1 * - col0 + col2 * ( 78 ) AS col0 FROM tab0 AS cor0
----
-1703
-3317
510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8231
SELECT ALL CAST( NULL AS SIGNED ) + - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 18 * col2 + - col0 FROM tab0 AS cor0
----
-17
1387
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT ALL + - 26 DIV 14 + cor0.col0 + + 26 * col1 FROM tab1 cor0
----
323
417
678
skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + - 26 / 14 + cor0.col0 + + 26 * col1 FROM tab1 cor0
----
323
417
678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8234
SELECT - - CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-8234
SELECT - - CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + - ( 84 ) + col2 + col2 AS col1 FROM tab2 AS cor0
----
-30
-32
-8
query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
31
query I rowsort
SELECT col1 * 7 FROM tab2
----
119
217
413
query I rowsort
SELECT ALL col0 + - ( tab2.col0 ) * + tab2.col1 * - 33 AS col0 FROM tab2
----
151944
44398
7168
query I rowsort
SELECT - col1 * + col0 * 54 + + tab0.col2 * + tab0.col0 * + tab0.col0 + - col1 AS col1 FROM tab0
----
-182202
-92534
212085
query I rowsort
SELECT - + 46 - + col0 FROM tab0 cor0
----
-135
-70
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT DISTINCT + col1 + - col2 DIV tab2.col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT + col1 + - col2 / tab2.col0 FROM tab2
----
17
28
59
query I rowsort
SELECT + col2 * + 14 FROM tab2
----
364
378
532
query I rowsort
SELECT - col2 + + 8 AS col0 FROM tab2
----
-18
-19
-30
query I rowsort
SELECT ALL - 22 - - ( + cor0.col0 + + col1 ) FROM tab1 AS cor0
----
52
7
71
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT tab1.col1 * 83 AS col0 FROM tab1
----
1079
2158
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8247
SELECT CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8247
SELECT CAST ( NULL AS REAL ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - - col2 * + col2 col1 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT + - 31 + - 17 + + col0 AS col1 FROM tab2 cor0
----
-41
30
31
query I rowsort
SELECT + col0 * + col2 * + cor0.col1 - ( col0 ) * + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
544073
594204
6202
query I rowsort
SELECT - - ( - col0 ) - col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 - + col1 col0 FROM tab2 cor0
----
-23
19
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8253
SELECT ALL tab1.col1 + CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL tab1.col1 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - + col1 - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + col0 - col0 * - col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + 37 * cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
1245
3123
72
query I rowsort
SELECT + col2 * + col2 - + col1 AS col2 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT - 95 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * col0 col0 FROM tab1
----
120
2560
3200
query I rowsort
SELECT ALL col0 * - 54 AS col2 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT 51 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT ALL + col2 DIV - 58 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + col2 / - 58 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT cor0.col2 * - 26 AS col1 FROM tab2 AS cor0
----
-676
-702
-988
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 8 * col2 col2 FROM tab2
----
12272
5168
6696
query I rowsort
SELECT col0 * + ( + ( + cor0.col1 ) ) FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 + + col2 col2 FROM tab1 AS cor0
----
153
156
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT ALL - cor0.col1 + 90 DIV 62 FROM tab0, tab0 AS cor0
----
9 values hashing to 3de4aa299a1707d2ecc80d4ca6a0b6c3
skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - cor0.col1 + 90 / 62 FROM tab0, tab0 AS cor0
----
9 values hashing to 3de4aa299a1707d2ecc80d4ca6a0b6c3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8270
SELECT CAST( ( col2 ) AS DECIMAL ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8270
SELECT CAST ( ( col2 ) AS REAL ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 ) + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + ( 41 ) * col1 AS col0 FROM tab0 AS cor0
----
3526
3731
3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT ALL + ( col2 ) DIV + col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + ( col2 ) / + col1 FROM tab2 cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT - col1 + - col0 DIV col0 AS col1 FROM tab0 cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-8275
SELECT - col1 + - col0 / col0 AS col1 FROM tab0 cor0
----
-87
-92
-98
query I rowsort
SELECT + col1 * col0 * + 97 + + 31 FROM tab2 AS cor0
----
130302
21080
446425
query I rowsort
SELECT + col2 + - col1 * + col2 + col0 * - col0 * col2 FROM tab0 cor0
----
-1321
-21813
-656902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - 21 * col0 col1 FROM tab0 AS cor0
----
-1787
-471
-734
query I rowsort
SELECT - - col2 + 3 * + 57 FROM tab1 AS cor0
----
225
228
267
query I rowsort
SELECT DISTINCT + cor0.col1 + 93 * + col1 AS col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT - + col0 * col1 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col0 + + ( col1 ) * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - col0 + 26 * col2 AS col2 FROM tab0 AS cor0
----
2221
61
882
onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT DISTINCT cor0.col2 * - col1 DIV + col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT cor0.col2 * - col1 / + col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT - col2 * col1 * ( - ( col2 ) ) FROM tab0
----
611884
93654
97
query I rowsort
SELECT + 32 + col0 * - col2 FROM tab2 cor0
----
-157
-1996
-2970
query I rowsort
SELECT col0 * + col2 * 83 FROM tab1 AS cor0
----
13446
302784
637440
query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab2 cor0
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - - ( - 83 ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 126fabe8a0e553ad58003a412f9b16fb
query I rowsort
SELECT + 86 * + col0 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT col1 - + tab1.col2 AS col0 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT DISTINCT + col0 DIV col1 + col2 col0 FROM tab1
----
102
54
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + col0 / col1 + col2 col0 FROM tab1
----
102
54
63
query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE ( NULL ) >= col1 + col2 * + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8294
SELECT + col2 + col1 DIV col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8294
SELECT + col2 + col1 / col1 FROM tab0
----
2
34
83
query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( + col2 ) IN ( col0 )
----
26
27
38
query I rowsort
SELECT ALL col2 + + col0 * col2 * + col1 AS col0 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT DISTINCT col0 * col1 * - ( tab2.col1 ) AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT - 15 * + 12 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d76e0ff79ffd86dca3302ab9a36775db
onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT col0 DIV + col0 + col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8299
SELECT col0 / + col0 + col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT - tab2.col1 * - col1 + - col1 * 59 AS col0 FROM tab2
----
-714
-868
0
query I rowsort
SELECT ALL + - col2 * - col2 - + col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - 22 FROM tab0, tab1, tab0 AS cor0
----
-22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col2 + - col2 + col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT col2 * tab1.col1 * tab1.col0 AS col0 FROM tab1
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab2.col0 col1 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1 * + col2 )
----
query I rowsort
SELECT tab2.col2 * col0 - + col2 AS col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT - col1 * col2 * tab2.col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 AS col0 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col1 * col0 * col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT col2 * tab1.col1 + col1 * - col1 AS col2 FROM tab1
----
1079
470
728
query I rowsort
SELECT ALL + col2 * + col2 * - tab0.col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT ALL col0 * col2 + + col0 AS col2 FROM tab0
----
70
7387
816
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 + - col1 + col1 * col0 AND tab2.col2
----
query I rowsort
SELECT + col1 + col1 * col0 * col1 FROM tab1
----
13533
2054
6410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * + col1 * + col1 col2 FROM tab2
----
22869
271544
6754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + tab0.col2 col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL - col1 + col1 * + col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT - col0 + + col1 FROM tab0 WHERE + col1 <> ( col0 )
----
2
62
62
query I rowsort
SELECT ALL + 12 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * - col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT col2 * - col1 + cor0.col1 * 38 FROM tab1 AS cor0
----
-190
-416
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT ALL + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + + col2 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + + cor0.col1 * cor0.col0 FROM tab2 cor0
----
406
4345
6630
query I rowsort
SELECT cor1.col0 + - 88 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5e4b30f32d4e0c5a58610e372e783072
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT DISTINCT 2 DIV + 47 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT 2 / + 47 FROM tab2
----
0
query I rowsort
SELECT ALL + + 4 * + 66 AS col2 FROM tab0 AS cor0
----
264
264
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT col0 * - col1 DIV cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8331
SELECT col0 * - col1 / cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + ( col1 ) + col2 FROM tab2 AS cor0
----
-1288
-159
-4517
query I rowsort
SELECT - - 54 * - col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT - - col1 + col0 * + 56 AS col2 FROM tab2 AS cor0
----
423
4427
4441
query I rowsort
SELECT + col0 * - col0 * - 52 FROM tab1 AS cor0
----
212992
332800
468
query I rowsort
SELECT ALL + - 17 AS col0 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - 1 * col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT + cor0.col0 DIV + col0 + + ( 1 ) AS col2 FROM tab1 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-8338
SELECT + cor0.col0 / + col0 + + ( 1 ) AS col2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT - + ( col2 ) * - 10 AS col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL - + col2 * - 84 AS col2 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT DISTINCT + - col0 + 91 AS col1 FROM tab2 AS cor0
----
12
13
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8342
SELECT DISTINCT - - cor0.col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - - cor0.col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT ALL - - col0 DIV ( - ( col1 ) ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL - - col0 / ( - ( col1 ) ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT DISTINCT + + col2 * - col2 + + col2 * col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-1077
-6651
skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + + col2 * - col2 + + col2 * col2 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-1077
-6651
query I rowsort
SELECT - + col0 + 13 FROM tab2 AS cor0
----
-65
-66
6
query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * col0 * cor0.col1 + - col2 FROM tab0 AS cor0
----
177471
329314
736927
onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT DISTINCT + + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT + + col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * - col2 - + col0 * - col2 FROM tab0 AS cor0
----
-297
34
574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - cor0.col1 col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + + CAST ( col0 AS REAL ) FROM tab1
----
-23
54
67
query I rowsort
SELECT - col2 * - 65 * - col1 - col0 AS col1 FROM tab0 AS cor0
----
-184494
-485119
-6340
query I rowsort
SELECT + + col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col0 * ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8358
SELECT DISTINCT - col0 * CAST( - ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - col0 * CAST ( - ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT cor0.col2 + 72 AS col1 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT + col1 * 76 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8361
SELECT col2 * - CAST( NULL AS DECIMAL ) + col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8361
SELECT col2 * - CAST ( NULL AS REAL ) + col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 * + col0 * + 91 FROM tab1 cor0
----
-58240
-7098
-94640
query I rowsort
SELECT ALL col2 + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col0 + 10 * + col2 FROM tab1 AS cor0
----
506
537
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 73 * - 41 col0 FROM tab2 AS cor0
----
-3000
-3071
-3072
query I rowsort
SELECT ALL col2 * - col1 + 26 FROM tab1 AS cor0
----
-1222
-1378
-544
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT cor0.col2 * - ( - col2 ) + - col2 * col0 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT - cor0.col0 * - 39 FROM tab1 AS cor0
----
117
2496
3120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + - 95 col1 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT + - 76 + - col2 * cor0.col2 + - 86 * col2 FROM tab1 AS cor0
----
-17548
-7636
-8227
query I rowsort
SELECT - 6 + col2 * + col0 FROM tab2 AS cor0
----
183
2022
2996
query I rowsort
SELECT + 3 + + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a81ef5dcdfa05aa414597d9772de62
query I rowsort
SELECT DISTINCT - + col0 - - col1 * 42 AS col2 FROM tab2 AS cor0
----
1295
2400
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * - ( col0 ) col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + col1 * - col0 * cor0.col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL - col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + - col2 - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col0 * col1 * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - 5 + + cor0.col2 - col1 AS col2 FROM tab2 AS cor0
----
-28
1
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT ALL + col2 - col2 DIV - 92 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + col2 - col2 / - 92 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 20 * col2 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT DISTINCT - - col2 + col0 * col1 * col2 AS col1 FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8385
SELECT ALL + 39 + col2 * col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + 39 + col2 * col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT col0 * + 44 FROM tab0
----
1056
1540
3916
query I rowsort
SELECT DISTINCT - 59 * + col2 AS col2 FROM tab2
----
-1534
-1593
-2242
onlyif mysql # use DIV operator for integer division
query I rowsort label-8389
SELECT DISTINCT - col1 DIV - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - col1 / - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col0 + - tab1.col1 * + col0 AS col0 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col0 FROM tab0
----
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT ALL col2 DIV - col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL col2 / - col0 AS col1 FROM tab2
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8393
SELECT ALL - cor0.col1 + + col2 * col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-48
-8
67
skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL - cor0.col1 + + col2 * col2 / col1 AS col1 FROM tab2 AS cor0
----
-48
-8
67
query I rowsort
SELECT col1 - + 64 AS col0 FROM tab2
----
-33
-47
-5
query I rowsort
SELECT ALL + col0 - col1 * - col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ( col2 ) * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - tab2.col1 + tab2.col0 - + 56 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1bddfb8699f4456c1c8d7b29d8103933
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 58 * col2 col1 FROM tab0
----
1947
4838
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8399
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor0.col1 - + cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 - + cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 * + 21 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1700
-5841
-868
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 + col2 * + col1 FROM tab1 cor0
----
1341
1433
644
query I rowsort
SELECT ALL - 65 * + 99 * + col1 - - 24 FROM tab2 AS cor0
----
-109371
-199461
-379641
query I rowsort
SELECT - 47 * 29 * - col1 + + col1 * col2 FROM tab0 AS cor0
----
120056
131495
132308
query I rowsort
SELECT DISTINCT 69 - 16 * cor0.col0 FROM tab0 AS cor0
----
-1355
-315
-491
query I rowsort
SELECT ALL - - col1 + - 40 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-2550
-3187
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8406
SELECT + col1 * 37 * 28 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8406
SELECT + col1 * 37 * 28 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8408
SELECT ALL + + col0 DIV - cor0.col0 + + 37 AS col2 FROM tab2 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + + col0 / - cor0.col0 + + 37 AS col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + 53 AS col1 FROM tab1 AS cor0
----
213
3449
4336
query I rowsort
SELECT DISTINCT + col2 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT ALL - - col2 DIV 29 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - - col2 / 29 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + ( col1 ) * + col1 col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT ALL + col1 DIV + col1 + 13 AS col1 FROM tab2 AS cor0
----
14
14
14
skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL + col1 / + col1 + 13 AS col1 FROM tab2 AS cor0
----
14
14
14
query I rowsort
SELECT DISTINCT - col0 * - ( + cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col1 * 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL + cor0.col2 + + 53 * - cor0.col0 * col1 AS col0 FROM tab1 cor0
----
-33863
-4080
-55024
query I rowsort
SELECT DISTINCT 57 * - cor0.col1 FROM tab1 cor0
----
-1482
-570
-741
query I rowsort
SELECT col0 * 75 + + col0 + col0 AS col1 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT col1 * + tab1.col0 + + tab1.col0 * col1 FROM tab1
----
1280
156
2080
query I rowsort
SELECT 56 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT ALL + col2 - + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
51
54
90
skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + col2 - + col0 / + cor0.col1 FROM tab1 AS cor0
----
51
54
90
query I rowsort
SELECT + - col1 * col0 + + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1488
-178
-2170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8423
SELECT DISTINCT col1 * col0 * - CAST( NULL AS SIGNED ) + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT col1 * col0 * - CAST ( NULL AS INTEGER ) + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + col0 * cor0.col1 - ( + col2 ) * cor0.col2 * 30 AS col0 FROM tab1 AS cor0
----
-275440
-87402
-96830
query I rowsort
SELECT ALL - col1 * + col0 + col0 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8427
SELECT ALL + 18 DIV - col0 FROM tab1 AS cor0
----
-6
0
0
skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + 18 / - col0 FROM tab1 AS cor0
----
-6
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8428
SELECT DISTINCT + col2 DIV col1 + 54 FROM tab0 cor0
----
54
skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT + col2 / col1 + 54 FROM tab0 cor0
----
54
query I rowsort
SELECT + col2 + - col2 - - cor0.col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - ( col0 ) + 75 * 98 AS col1 FROM tab2 cor0
----
7271
7272
7343
onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT DISTINCT 10 DIV - col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
87
91
skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT 10 / - col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
86
87
91
query I rowsort
SELECT ALL + 17 * col2 + col0 FROM tab0 AS cor0
----
1483
52
585
query I rowsort
SELECT ALL + 31 - + col1 * col2 AS col1 FROM tab0
----
-2807
-66
-7431
query I rowsort
SELECT + + col0 * + 92 * col1 + col2 FROM tab1 AS cor0
----
58937
7230
95776
query I rowsort
SELECT + ( - col1 ) * + tab1.col2 + + col1 * + tab1.col2 + - ( + col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + 27 * - col1 * - 8 + - col0 + + col0 FROM tab2
----
12744
3672
6696
query I rowsort
SELECT ALL col1 + + col2 + + 41 FROM tab1
----
108
121
150
query I rowsort
SELECT + + col0 * col2 + col1 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT col0 * - tab1.col1 + 87 * col0 * - col2 AS col2 FROM tab1
----
-14172
-318016
-669200
query I rowsort
SELECT - + col0 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col1 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8442
SELECT col1 + - CAST( NULL AS SIGNED ) * 45 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8442
SELECT col1 + - CAST ( NULL AS INTEGER ) * 45 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 53 FROM tab1 AS cor0
----
27
40
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-8444
SELECT - CAST( col2 AS SIGNED ) DIV - col1 + - col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-8444
SELECT - CAST ( col2 AS INTEGER ) / - col1 + - col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 cor0, tab1 cor1
----
10
13
26
query I rowsort
SELECT - col0 + + 91 * + col2 AS col1 FROM tab1
----
4911
5123
8656
query I rowsort
SELECT DISTINCT col1 * - 14 FROM tab0
----
-1204
-1274
-1358
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8449
SELECT ALL - CAST( 61 AS SIGNED ) FROM tab1 AS cor0
----
-61
-61
-61
skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - CAST ( 61 AS INTEGER ) FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL 96 + - cor0.col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 09f2f842088ab39277f7f5c16c48346d
query I rowsort
SELECT - 20 * - col1 + 88 FROM tab2 AS cor0
----
1268
428
708
query I rowsort
SELECT ALL 20 * + col1 FROM tab1 cor0
----
200
260
520
query I rowsort
SELECT - 45 * col0 AS col2 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT - - cor0.col0 * col0 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT DISTINCT + tab0.col0 DIV - 50 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + tab0.col0 / - 50 FROM tab0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT col1 DIV - 64 + col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8456
SELECT col1 / - 64 + col1 / + col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - 4 AS col0 FROM tab2 cor0
----
-4
-4
-4
query I rowsort
SELECT + ( 42 ) + col1 * + col0 FROM tab2 AS cor0
----
1385
259
4644
query I rowsort
SELECT - 46 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT 87 + - 27 FROM tab2 AS cor0
----
60
query I rowsort
SELECT ALL ( 62 ) * - col0 AS col0 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT 98 * - 76 AS col2 FROM tab1 cor0
----
-7448
query I rowsort
SELECT + - ( 94 ) FROM tab2 AS cor0
----
-94
-94
-94
query I rowsort
SELECT DISTINCT + + 80 * + col0 AS col2 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT ALL - + 41 + col0 AS col1 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT col1 * col0 + + 76 AS col2 FROM tab0 AS cor0
----
2140
3471
8175
onlyif mysql # use DIV operator for integer division
query I rowsort label-8467
SELECT ALL + col0 * col1 + - ( + col2 + col2 ) DIV col1 FROM tab1 AS cor0
----
1026
629
74
skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + col0 * col1 + - ( + col2 + col2 ) / col1 FROM tab1 AS cor0
----
1026
629
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8468
SELECT - - cor0.col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8468
SELECT - - cor0.col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT + 98 DIV + col1 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8469
SELECT + 98 / + col1 AS col0 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT - + col2 DIV col1 + ( col2 * col0 ) AS col2 FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8470
SELECT - + col2 / col1 + ( col2 * col0 ) AS col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8471
SELECT - 67 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
0
2
67
skipif mysql # not compatible
query I rowsort label-8471
SELECT - 67 / - cor0.col2 AS col0 FROM tab0 cor0
----
0
2
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT - ( + col2 ) * + 32 + col2 * cor0.col2 DIV 25 AS col1 FROM tab0 AS cor0
----
-1013
-2356
-32
skipif mysql # not compatible
query I rowsort label-8472
SELECT - ( + col2 ) * + 32 + col2 * cor0.col2 / 25 AS col1 FROM tab0 AS cor0
----
-1013
-2356
-32
query I rowsort
SELECT col0 + cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - col1 * cor0.col1 + + col0 * + col0 FROM tab2 AS cor0
----
-912
2603
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT - col1 DIV col0 + + 26 * - col1 col0 FROM tab1 AS cor0
----
-260
-338
-684
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8475
SELECT - col1 / col0 + + 26 * - col1 col0 FROM tab1 AS cor0
----
-260
-338
-684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8476
SELECT - + col2 + + CAST( NULL AS SIGNED ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8476
SELECT - + col2 + + CAST ( NULL AS INTEGER ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8477
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - + col2 * + col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col0 * + col1 - 97 AS col2 FROM tab2 AS cor0
----
-1440
-314
-4699
onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT col2 + 63 DIV - col1 col2 FROM tab2 AS cor0
----
25
25
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8480
SELECT col2 + 63 / - col1 col2 FROM tab2 AS cor0
----
25
25
35
query I rowsort
SELECT cor0.col1 * - 15 + + col2 AS col0 FROM tab0 AS cor0
----
-1257
-1283
-1454
query I rowsort
SELECT ALL - cor0.col0 * col1 + 98 * - col1 FROM tab0 AS cor0
----
-10492
-12901
-17017
query I rowsort
SELECT + col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col2 + 8 FROM tab2 AS cor0
----
-18
-19
-30
query I rowsort
SELECT DISTINCT - col1 * - 84 AS col1 FROM tab2 cor0
----
1428
2604
4956
query I rowsort
SELECT ALL - col2 + 5 AS col0 FROM tab1 cor0
----
-49
-52
-91
query I rowsort
SELECT + + col1 * col1 * col0 + + col0 * + 9 AS col2 FROM tab0 cor0
----
177720
329630
737810
query I rowsort
SELECT - col1 + + cor0.col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - + 14 * - col2 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2160
-2451
-7872
query I rowsort
SELECT DISTINCT - ( 72 ) AS col1 FROM tab0 AS cor0
----
-72
query I rowsort
SELECT - col2 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col0 * 72 + - col2 AS col2 FROM tab2
----
477
5590
5650
query I rowsort
SELECT + 16 * + col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * 4 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT ALL 31 + col1 AS col2 FROM tab1 AS cor0
----
41
44
57
query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab0
----
27
query I rowsort
SELECT ALL - cor0.col0 * + 48 FROM tab1, tab0 AS cor0
----
9 values hashing to dd629622b93bd94cc2fe909691e695e1
query I rowsort
SELECT ( + col0 ) * - col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT 38 + + col0 * - col2 + col2 DIV + col1 FROM tab1
----
-122
-3605
-7635
skipif mysql # not compatible
query I rowsort label-8500
SELECT 38 + + col0 * - col2 + col2 / + col1 FROM tab1
----
-122
-3605
-7635
query I rowsort
SELECT DISTINCT col1 * tab0.col1 - 11 FROM tab0
----
7385
8270
9398
onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT ( tab0.col0 ) 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-8502
SELECT ( tab0.col0 ) / + col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + - ( col0 ) + 51 AS col0 FROM tab0 AS cor0
----
-38
16
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + 21 - 73 col0 FROM tab0
----
-19
-51
30
query I rowsort
SELECT DISTINCT - ( + 50 ) FROM tab2 AS cor0
----
-50
query I rowsort
SELECT + col0 * - col0 + - col1 - ( + col2 + - col1 ) FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8507
SELECT DISTINCT - - 18 DIV col2 FROM tab0 AS cor0
----
0
18
skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - - 18 / col2 FROM tab0 AS cor0
----
0
18
query I rowsort
SELECT - 0 + + 46 FROM tab2 cor0
----
46
46
46
query I rowsort
SELECT + cor0.col0 + + col1 - cor0.col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col2 + + col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT + 46 * - 57 AS col0 FROM tab1
----
-2622
-2622
-2622
query I rowsort
SELECT DISTINCT col0 * ( - col0 ) + - ( tab1.col1 * + col1 ) FROM tab1
----
-4196
-6569
-685
query I rowsort
SELECT ALL + col1 * - 9 AS col0 FROM tab1 AS cor0
----
-117
-234
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8514
SELECT CAST( + 52 AS SIGNED ) * cor0.col0 col0 FROM tab2 cor0
----
364
4056
4108
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8514
SELECT CAST ( + 52 AS INTEGER ) * cor0.col0 col0 FROM tab2 cor0
----
364
4056
4108
query I rowsort
SELECT - 74 * - col2 + cor0.col0 + + col0 FROM tab1 AS cor0
----
4002
4346
7264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8516
SELECT + col1 * cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8516
SELECT + col1 * cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 + - col1 ) FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * cor0.col0 + + col2 col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT - col2 - cor0.col1 * cor0.col2 FROM tab2 cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - ( - col2 ) DIV col1 - + col0 AS col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-8521
SELECT - ( - col2 ) / col1 - + col0 AS col0 FROM tab2
----
-7
-77
-78
query I rowsort
SELECT + - 4 * - col0 FROM tab2 AS cor0
----
28
312
316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT col2 * - ( - col0 ) + + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 + ( - cor0.col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - col2 + col2 * - col2 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT + cor0.col0 * 85 AS col2 FROM tab0 AS cor0
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT ALL col2 DIV - cor0.col1 col1 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL col2 / - cor0.col1 col1 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 56 col0 FROM tab1 AS cor0
----
-56
query I rowsort
SELECT - col2 * - ( - col1 ) AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + ( + ( col0 ) ) + ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + - col2 + + 97 FROM tab0 AS cor0
----
15
64
96
query I rowsort
SELECT DISTINCT - 54 * + col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
query I rowsort
SELECT ALL - - ( + col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8537
SELECT + CAST( - 2 AS SIGNED ) * + col2 * + 9 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
-1006
-1702
-920
skipif mysql # not compatible
query I rowsort label-8537
SELECT + CAST ( - 2 AS INTEGER ) * + col2 * + 9 + + col1 + col1 AS col0 FROM tab1 AS cor0
----
-1006
-1702
-920
query I rowsort
SELECT col0 * + col0 - 6 FROM tab1
----
3
4090
6394
query I rowsort
SELECT + col1 + 81 * 51 FROM tab0
----
4217
4222
4228
query I rowsort
SELECT DISTINCT - col2 * - 23 * + col0 AS col0 FROM tab2
----
4347
46644
69046
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab1 cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT ALL - CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 92 * - ( tab1.col1 ) * - ( + 71 ) + col1 * col1 FROM tab1
----
170508
65420
85085
query I rowsort
SELECT ALL + 37 + + col2 FROM tab0
----
119
38
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - + col0 col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - + 95 + - col2 AS col0 FROM tab2 cor0
----
-121
-122
-133
query I rowsort
SELECT - 41 + col1 AS col2 FROM tab1
----
-15
-28
-31
query I rowsort
SELECT ALL 94 + col0 + col2 * - 30 FROM tab2
----
-608
-709
-967
query I rowsort
SELECT ALL - tab0.col2 * + 29 FROM tab0
----
-2378
-29
-957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
39
query I rowsort
SELECT + col0 * + col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8553
SELECT + tab2.col1 + - tab2.col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8553
SELECT + tab2.col1 + - tab2.col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
0
query I rowsort
SELECT + 90 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT - col2 + + 15 AS col0 FROM tab1
----
-39
-42
-81
query I rowsort
SELECT DISTINCT - col2 * 51 FROM tab2 cor0
----
-1326
-1377
-1938
query I rowsort
SELECT ALL + cor0.col0 + + col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT ALL + + col0 + - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + + col0 + - col0 / col0 AS col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT ALL col0 + + col2 + 10 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-449
-483
-784
onlyif mysql # use DIV operator for integer division
query I rowsort label-8561
SELECT ALL - col0 + 60 DIV col0 AS col2 FROM tab0 AS cor0
----
-22
-34
-89
skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL - col0 + 60 / col0 AS col2 FROM tab0 AS cor0
----
-22
-34
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8562
SELECT DISTINCT + + col2 - + CAST( + 38 AS SIGNED ) FROM tab2 AS cor0
----
-11
-12
0
skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + + col2 - + CAST ( + 38 AS INTEGER ) FROM tab2 AS cor0
----
-11
-12
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8563
SELECT DISTINCT - col1 - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - col1 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - + col1 + - 59 FROM tab1 AS cor0
----
-69
-72
-85
query I rowsort
SELECT ALL - + col1 * ( - 5 ) * + cor0.col0 - + col0 * 65 FROM tab1 AS cor0
----
-960
0
195
query I rowsort
SELECT + - col1 * - cor0.col2 + - col1 * - col1 FROM tab1 AS cor0
----
1417
2080
670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8568
SELECT - - CAST( - col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-8568
SELECT - - CAST ( - col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + cor0.col0 * col2 + + col2 + - 39 * col0 AS col0 FROM tab1 AS cor0
----
1209
4656
99
query I rowsort
SELECT ALL + col2 * + 36 + + tab0.col2 AS col0 FROM tab0
----
1221
3034
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col1 FROM tab2, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8572
SELECT - - col2 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8572
SELECT - - col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * cor0.col1 * - col1 - + col2 FROM tab2 cor0
----
10944
25920
90480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8574
SELECT DISTINCT + cor0.col2 - + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + cor0.col2 - + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - 83 * - col1 + + ( + col1 + col2 ) FROM tab1 AS cor0
----
1188
2238
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 * + col1 col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL 94 * cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-135736
-63544
-68526
query I rowsort
SELECT ( 62 ) FROM tab2
----
62
62
62
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab0, tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT ALL + 64 DIV - col0 - + 82 * - 29 * col1 AS col2 FROM tab0
----
204506
216398
230665
skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL + 64 / - col0 - + 82 * - 29 * col1 AS col2 FROM tab0
----
204506
216398
230665
query I rowsort
SELECT - + 14 - col1 * col0 FROM tab1 AS cor0
----
-1054
-654
-92
query I rowsort
SELECT + col2 * col1 + + 6 AS col1 FROM tab0 AS cor0
----
103
2844
7468
query I rowsort
SELECT - col2 + + cor0.col0 * 90 AS col2 FROM tab1 AS cor0
----
216
5703
7104
query I rowsort
SELECT DISTINCT col2 + col2 * col0 - 67 * col2 AS col2 FROM tab0
----
-1386
-31
1886
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT DISTINCT 41 DIV + col1 - col2 FROM tab2
----
-26
-36
skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT 41 / + col1 - col2 FROM tab2
----
-26
-36
query I rowsort
SELECT ALL + 20 - + col1 FROM tab1
----
-6
10
7
query I rowsort
SELECT DISTINCT - tab0.col0 + 95 FROM tab0, tab0 AS cor0
----
6
60
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 - - col2 * ( col2 ) col0 FROM tab1
----
2919
3252
9219
query I rowsort
SELECT - 1 * col0 * 14 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT ALL - - col0 * - 75 FROM tab0 cor0
----
-1800
-2625
-6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT col0 * CAST( NULL AS SIGNED ) + col0 / - col0 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8591
SELECT col0 * CAST ( NULL AS INTEGER ) + col0 / - col0 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 * - 27 AS col0 FROM tab2 AS cor0
----
-189
-2106
-2133
onlyif mysql # use DIV operator for integer division
query I rowsort label-8593
SELECT col2 + 55 * col2 + - cor0.col1 DIV ( + 4 ) FROM tab2 AS cor0
----
1442
1505
2124
skipif mysql # not compatible
query I rowsort label-8593
SELECT col2 + 55 * col2 + - cor0.col1 / ( + 4 ) FROM tab2 AS cor0
----
1442
1505
2124
query I rowsort
SELECT col2 * ( + col1 ) - + cor0.col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT cor0.col1 + - col1 * col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col2 + + col0 * col1 FROM tab2 AS cor0
----
-593
3094
735
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT DISTINCT - col1 * 64 + col1 DIV col0 FROM tab0 AS cor0
----
-5501
-5823
-6206
skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - col1 * 64 + col1 / col0 FROM tab0 AS cor0
----
-5501
-5823
-6206
query I rowsort
SELECT DISTINCT - col2 - - 2 AS col0 FROM tab0 AS cor0
----
-31
-80
1
query I rowsort
SELECT + cor0.col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - col2 * - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col0 - - 64 AS col1 FROM tab1 cor0
----
-16
0
61
query I rowsort
SELECT + col2 * - col0 - col1 * + col1 AS col1 FROM tab2 cor0
----
-1150
-3291
-5509
query I rowsort
SELECT ALL col2 + 58 AS col0 FROM tab0 AS cor0
----
140
59
91
query I rowsort
SELECT DISTINCT 65 FROM tab0, tab2 cor0
----
65
query I rowsort
SELECT DISTINCT - 36 FROM tab2, tab1 AS cor0
----
-36
query I rowsort
SELECT ALL 53 * col2 AS col0 FROM tab1 cor0
----
2862
3021
5088
query I rowsort
SELECT - - cor0.col0 * - 61 FROM tab0 AS cor0
----
-1464
-2135
-5429
query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + - col0 + + col1 + col0 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 12 + + 10 * + col0 FROM tab2 AS cor0
----
792
802
82
query I rowsort
SELECT ( - 85 ) + cor0.col1 * col1 FROM tab0 AS cor0
----
7311
8196
9324
query I rowsort
SELECT + 98 AS col2 FROM tab0 cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * 89 col0 FROM tab2 AS cor0
----
-356
onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT DISTINCT - 4 DIV col1 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT - 4 / col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - 73 * col1 FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT ALL - 48 * + cor0.col2 + + col2 * 30 AS col2 FROM tab1 AS cor0
----
-1026
-1728
-972
query I rowsort
SELECT DISTINCT col1 + col0 * col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + 88 FROM tab2 cor0
----
88
query I rowsort
SELECT - 52 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL + - col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + + col0 * col2 * + col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + tab1.col2 / col2 FROM tab1 WHERE tab1.col0 IN ( - col1 )
----
query I rowsort
SELECT - col2 / col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 / col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col2 )
----
query I rowsort
SELECT ALL - col1 * col2 + + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT col0 * + col0 * - col0 + col2 AS col2 FROM tab1
----
-262087
-511904
27
query I rowsort
SELECT + tab0.col1 + + col2 FROM tab0 WHERE ( - col2 ) NOT BETWEEN ( col1 ) AND + col0 * col1
----
119
173
98
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT col0 BETWEEN + col2 AND NULL
----
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT + col2 DIV col1 + - col1 + col0 FROM tab1
----
-21
59
74
skipif mysql # not compatible
query I rowsort label-8629
SELECT + col2 / col1 + - col1 + col0 FROM tab1
----
-21
59
74
query I rowsort
SELECT + col1 * - col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 * col1 )
----
query I rowsort
SELECT DISTINCT col2 - col2 * col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT + col1 + col2 * tab0.col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col1 * + col2 * col1 AS col1 FROM tab0 WHERE NULL IN ( - col0 * - col2 + col0 )
----
query I rowsort
SELECT DISTINCT col1 * + col2 + tab1.col0 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + col1 + col1 FROM tab1 WHERE NOT NULL < ( col2 - + col2 * - col1 )
----
query I rowsort
SELECT col2 * col0 + tab0.col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col0 * - col0 + tab1.col0 AS col2 FROM tab1
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT col0 * col1 + col1 * tab0.col0 DIV - col2 FROM tab0
----
0
2002
8001
skipif mysql # not compatible
query I rowsort label-8638
SELECT col0 * col1 + col1 * tab0.col0 / - col2 FROM tab0
----
0
2002
8001
query I rowsort
SELECT DISTINCT tab2.col1 * col0 * + col2 + tab2.col2 FROM tab2
----
119678
51072
5886
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 / col2 < NULL
----
query I rowsort
SELECT - col2 * col2 + + col0 AS col0 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + tab0.col1 )
----
query I rowsort
SELECT DISTINCT col2 * + col2 * col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col1 + tab0.col1 * - tab0.col0 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + - col1 * col2 + col1 * + col1 * + col0 AS col1 FROM tab1 AS cor0
----
12272
5830
624
query I rowsort
SELECT ALL - col1 + col2 * col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
54
57
96
query I rowsort
SELECT ALL + col0 * tab0.col0 - + col0 FROM tab0
----
1190
552
7832
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL >= NULL
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 BETWEEN col0 * col2 AND - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * col0 > NULL
----
query I rowsort
SELECT col2 * - col1 + - col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT ALL col2 * - 3 AS col1 FROM tab0
----
-246
-3
-99
query I rowsort
SELECT DISTINCT + 40 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8656
SELECT - col0 * - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8656
SELECT - col0 * - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col1 * col1 + 48 FROM tab0 cor0
----
7444
8329
9457
query I rowsort
SELECT ALL - col0 + col0 * + col0 AS col1 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT cor0.col1 * - ( - col2 ) + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - col2 * + col2 + + 57 * cor0.col1 AS col0 FROM tab1 cor0
----
-1434
-2679
-8475
query I rowsort
SELECT - + 14 * - col2 AS col1 FROM tab1 AS cor0
----
1344
756
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - 9 * 17 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d00cc17118a7dee84cead0ae3aad6cd0
query I rowsort
SELECT DISTINCT col0 + col2 * col1 * col2 FROM tab2 AS cor0
----
22606
24627
39962
query I rowsort
SELECT 23 * col0 AS col1 FROM tab2 cor0
----
161
1794
1817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8666
SELECT - - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8666
SELECT - - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 10 + + col1 * + cor0.col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-422
2779
898
query I rowsort
SELECT ALL col0 * - col2 * tab2.col1 AS col0 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT DISTINCT + 9 DIV col0 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + 9 / col0 AS col1 FROM tab0
----
0
query I rowsort
SELECT + col2 * cor0.col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8671
SELECT CAST( col2 AS SIGNED ) * col0 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
skipif mysql # not compatible
query I rowsort label-8671
SELECT CAST ( col2 AS INTEGER ) * col0 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT 8 - col2 FROM tab0
----
-25
-74
7
query I rowsort
SELECT - 62 * - 74 * + tab1.col0 + - 4 FROM tab1
----
13760
293628
367036
onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT col0 DIV + ( - col2 ) AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8674
SELECT col0 / + ( - col2 ) AS col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT col2 + col1 * + col0 + - tab1.col0 AS col0 FROM tab1
----
1056
129
633
query I rowsort
SELECT ALL - 48 AS col2 FROM tab1 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL + col1 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - col2 + col0 + col1 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + ( - 48 ) FROM tab0 AS cor0
----
-48
-48
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT - col2 DIV - col2 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8680
SELECT - col2 / - col2 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 * - col1 + 81 * + col0 FROM tab0 AS cor0
----
12244
15490
9340
query I rowsort
SELECT DISTINCT 85 * + cor0.col2 * 86 AS col2 FROM tab0 cor0
----
241230
599420
7310
query I rowsort
SELECT ALL - - col1 + col1 * - 45 FROM tab1 AS cor0
----
-1144
-440
-572
onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT DISTINCT + + cor0.col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + + cor0.col0 / col0 AS col0 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + ( col2 ) col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col2 * - cor0.col1 * - col0 FROM tab1 cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT ALL - col2 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - col2 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + 49 + col1 * cor0.col1 FROM tab1 AS cor0
----
149
218
725
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - col1 ) ) * + col2 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 + tab2.col1 * - tab2.col0 * + col0 - - 81 FROM tab2
----
-105937
-1431
-358797
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8691
SELECT DISTINCT CAST( - col1 * col2 AS SIGNED ) - - ( 14 ) FROM tab2
----
-1520
-632
-823
skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT CAST ( - col1 * col2 AS INTEGER ) - - ( 14 ) FROM tab2
----
-1520
-632
-823
query I rowsort
SELECT 26 * 7 AS col1 FROM tab0
----
182
182
182
query I rowsort
SELECT + ( + tab0.col0 ) * col0 AS col0 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT ALL tab1.col1 DIV + col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL tab1.col1 / + col1 FROM tab1
----
1
1
1
query I rowsort
SELECT col2 - + ( col0 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT - tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
-86
-91
-97
query I rowsort
SELECT ALL 80 + + col0 * col1 FROM tab2 AS cor0
----
1423
297
4682
query I rowsort
SELECT DISTINCT - col1 - - cor0.col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 65 * 34 AS col0 FROM tab1 AS cor0
----
2210
2210
2210
query I rowsort
SELECT + ( col0 ) * + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 94 * col1 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT - col2 * col0 + tab2.col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL - 92 FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL cor0.col0 + ( + col1 + - ( col2 ) ) FROM tab0 AS cor0
----
131
77
98
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 95 AS REAL ) * + col1 + col2 FROM tab2 AS cor0
----
-1577
-2918
-5579
query I rowsort
SELECT DISTINCT 79 * + 85 FROM tab2 AS cor0
----
6715
query I rowsort
SELECT DISTINCT + col2 * + col2 + - col0 - - ( col0 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
13933
1857
query I rowsort
SELECT ALL - col0 * - col1 + - col2 * + 7 FROM tab0 cor0
----
1833
3388
7525
query I rowsort
SELECT - 88 * + col2 AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * - col1 + - ( 11 + - col1 * + 60 ) FROM tab0 AS cor0
----
15218
249217
684491
query I rowsort
SELECT ALL - 72 * 92 AS col2 FROM tab0 AS cor0
----
-6624
-6624
-6624
query I rowsort
SELECT DISTINCT 49 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1583
695
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT DISTINCT - + ( ( + cor0.col0 ) ) * 58 + - cor0.col0 * + col1 DIV col1 FROM tab1 cor0
----
-177
-3776
-4720
skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT - + ( ( + cor0.col0 ) ) * 58 + - cor0.col0 * + col1 / col1 FROM tab1 cor0
----
-177
-3776
-4720
query I rowsort
SELECT ALL + ( 76 ) * + col0 + - 62 + + col2 FROM tab2 AS cor0
----
497
5892
5980
query I rowsort
SELECT col2 * col0 + - tab2.col1 AS col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL ( 64 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT + 48 + 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 418f1c817ef9b3406f572acab9f54796
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8718
SELECT - - col1 + - cor0.col0 * + CAST( 16 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
-2993
-32389
-48015
skipif mysql # not compatible
query I rowsort label-8718
SELECT - - col1 + - cor0.col0 * + CAST ( 16 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
-2993
-32389
-48015
query I rowsort
SELECT DISTINCT + 27 + col1 FROM tab1
----
37
40
53
query I rowsort
SELECT 66 * - col1 AS col1 FROM tab2
----
-1122
-2046
-3894
query I rowsort
SELECT + col2 + - col0 * col0 AS col1 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT - + col2 + - cor0.col0 * ( + col2 ) * col0 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT - + col0 * 85 AS col0 FROM tab2 cor0
----
-595
-6630
-6715
query I rowsort
SELECT + col2 + col2 * col2 FROM tab0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * col2 col0 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT cor0.col2 + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - - col0 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + - col1 + + col1 * col2 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT ALL - col0 * - 46 * col0 FROM tab2 AS cor0
----
2254
279864
287086
query I rowsort
SELECT 39 AS col2 FROM tab2 cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT ALL - col1 + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL - col1 + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8732
SELECT DISTINCT + 26 - col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1222
-1378
-544
skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + 26 - col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1222
-1378
-544
onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT ALL + 28 DIV col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + 28 / col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - - 29 + + col1 * + 93 FROM tab1 AS cor0
----
1238
2447
959
query I rowsort
SELECT DISTINCT + - ( + col2 ) * ( cor0.col0 ) + - col2 * - col1 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT DISTINCT col2 * + col2 * 38 + col1 FROM tab1 AS cor0
----
110834
123472
350221
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT ALL col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL col0 / col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT + - col2 + col1 * 37 AS col0 FROM tab0 cor0
----
3149
3285
3588
query I rowsort
SELECT ALL - 19 + - col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
-13539
-2047
-6419
query I rowsort
SELECT ALL 64 + col0 AS col1 FROM tab0 AS cor0
----
153
88
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT ALL + CAST( 47 AS SIGNED ) FROM tab2
----
47
47
47
skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + CAST ( 47 AS INTEGER ) FROM tab2
----
47
47
47
query I rowsort
SELECT 62 * col2 FROM tab1 cor0
----
3348
3534
5952
query I rowsort
SELECT + + 58 + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1147
59
6782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8744
SELECT ALL + - CAST( 51 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + - CAST ( 51 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT ALL + 33 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - ( + col0 ) * col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - - cor1.col1 + - 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to d3a3436c165358527ee6b4785c5e922d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + + col1 * tab1.col1 col2 FROM tab1
----
43
622
73
query I rowsort
SELECT - 35 + col2 AS col1 FROM tab1 AS cor0
----
19
22
61
query I rowsort
SELECT DISTINCT + + col0 * - 20 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1698
-447
-699
query I rowsort
SELECT ALL + col0 * col2 + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
15668
8212
9479
query I rowsort
SELECT ALL 31 * + 93 AS col1 FROM tab0 cor0
----
2883
2883
2883
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8753
SELECT DISTINCT CAST( - col0 AS DECIMAL ) + col2 * CAST( NULL AS DECIMAL ) / col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT CAST ( - col0 AS REAL ) + col2 * CAST ( NULL AS REAL ) / col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * + 28 + col2 * - 34 * + 37 AS col1 FROM tab0 AS cor0
----
-100860
-1230
-40590
query I rowsort
SELECT + col1 + - 92 FROM tab0 AS cor0
----
-1
-6
5
query I rowsort
SELECT DISTINCT + ( - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + - col0 * 72 FROM tab2 AS cor0
----
-504
-5616
-5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT DISTINCT + cor0.col1 DIV cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + cor0.col1 / cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
0
query I rowsort
SELECT - + col2 * col1 + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT 38 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT col2 * - col2 + - col2 * 89 AS col2 FROM tab2 AS cor0
----
-2990
-3132
-4826
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT + col1 DIV col2 + + col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-8762
SELECT + col1 / col2 + + col0 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT DISTINCT - tab0.col0 AS col1 FROM tab0, tab2, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - col0 + - col2 * 89 AS col0 FROM tab1 AS cor0
----
-4803
-5009
-8464
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT + cor0.col0 DIV - 36 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8765
SELECT + cor0.col0 / - 36 FROM tab1 AS cor0
----
-1
-2
0
query I rowsort
SELECT - col1 * ( + col2 * col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT 48 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT + - col0 + - 70 AS col1 FROM tab2 AS cor0
----
-148
-149
-77
query I rowsort
SELECT - col0 * - col2 + col1 - 31 FROM tab2 AS cor0
----
189
2056
2988
query I rowsort
SELECT - col0 * + 40 + col0 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
-174
-351
4443
query I rowsort
SELECT - 54 + - col0 AS col2 FROM tab2 AS cor0
----
-132
-133
-61
query I rowsort
SELECT DISTINCT tab0.col1 + - col0 + + tab0.col2 AS col0 FROM tab0
----
63
84
95
query I rowsort
SELECT 98 + - col2 AS col0 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT col2 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL + col2 + + ( col1 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 + + col2 + + col1 * col2 AS col0 FROM tab0
----
2904
7626
99
query I rowsort
SELECT ALL + col0 * - 99 + - col0 AS col1 FROM tab0 AS cor0
----
-2400
-3500
-8900
query I rowsort
SELECT DISTINCT - 80 * - col2 * col0 FROM tab1
----
12960
291840
614400
query I rowsort
SELECT + col0 - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-7
-78
-79
query I rowsort
SELECT - col0 + 60 * col1 AS col0 FROM tab2 AS cor0
----
1853
3462
941
query I rowsort
SELECT DISTINCT col0 - tab2.col2 * col2 FROM tab2
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( + col2 ) col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col0 + col0 * col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT ALL - - col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - - col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT DISTINCT 51 * tab1.col1 + tab1.col2 + + col2 * + col0 DIV tab1.col0 AS col2 FROM tab1
----
1434
624
855
skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 51 * tab1.col1 + tab1.col2 + + col2 * + col0 / tab1.col0 AS col2 FROM tab1
----
1434
624
855
query I rowsort
SELECT ALL + 41 + + col1 * col2 AS col2 FROM tab0
----
138
2879
7503
query I rowsort
SELECT col2 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT 49 + - col2 FROM tab0 AS cor0
----
-33
16
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT + + CAST( NULL AS SIGNED ) * col0 * - cor0.col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8790
SELECT + + CAST ( NULL AS INTEGER ) * col0 * - cor0.col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8791
SELECT + 4 + 70 DIV col1 AS col0 FROM tab2 AS cor0
----
5
6
8
skipif mysql # not compatible
query I rowsort label-8791
SELECT + 4 + 70 / col1 AS col0 FROM tab2 AS cor0
----
5
6
8
query I rowsort
SELECT 94 * col1 AS col0 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT ALL - - 87 * - col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 + + col1 * + col1 * + col0 col0 FROM tab0 AS cor0
----
177423
329234
736928
query I rowsort
SELECT + + 85 * - col0 * - 11 AS col0 FROM tab1 cor0
----
2805
59840
74800
query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col1 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT + - col0 + + col2 + + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
248
3429
981
query I rowsort
SELECT 46 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - 94 + + col1 * + ( 67 * col1 ) + 9 * col0 FROM tab1 AS cor0
----
11949
45225
7182
query I rowsort
SELECT DISTINCT - - col0 + col1 * col1 + col0 * + col0 FROM tab1 AS cor0
----
4260
6649
688
query I rowsort
SELECT ALL col2 + ( col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - col1 * col1 + - ( 45 * - col0 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-639
107
3345
query I rowsort
SELECT DISTINCT - 28 + col0 FROM tab2 cor0
----
-21
50
51
query I rowsort
SELECT + + 63 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
1479
2204
5525
query I rowsort
SELECT - + 79 + - col0 FROM tab1 AS cor0
----
-143
-159
-82
query I rowsort
SELECT DISTINCT - + col2 + - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT + col1 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8809
SELECT + + col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8809
SELECT + + col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT DISTINCT 64 DIV + col2 AS col0 FROM tab0
----
0
1
64
skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT 64 / + col2 AS col0 FROM tab0
----
0
1
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8813
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8814
SELECT ALL + CAST( - col0 AS SIGNED ) - - col0 * - 15 FROM tab2 AS cor0
----
-112
-1248
-1264
skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + CAST ( - col0 AS INTEGER ) - - col0 * - 15 FROM tab2 AS cor0
----
-112
-1248
-1264
query I rowsort
SELECT - 38 * col2 + col2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-1596
-2400
-648
onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT DISTINCT cor0.col0 + 2 DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT cor0.col0 + 2 / col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 8 ) col1 FROM tab1 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT - 78 + - col1 AS col1 FROM tab2 AS cor0
----
-109
-137
-95
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) * + col0 * cor0.col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT + - 32 + col0 FROM tab2 AS cor0
----
-25
46
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT ALL - + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - + col0 / col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 81 + + col0 FROM tab1 AS cor0
----
145
161
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col2 + col1 DIV 26 AS col2 FROM tab2 AS cor0
----
-1444
-674
-728
skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 + col1 / 26 AS col2 FROM tab2 AS cor0
----
-1444
-674
-728
query I rowsort
SELECT + col0 + col1 - - col0 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT + col2 - + 60 * - col2 * col2 FROM tab2
----
40586
43767
86678
query I rowsort
SELECT - col0 * - col0 + 29 - col1 FROM tab2
----
47
6054
6253
query I rowsort
SELECT - col0 * - 51 + col1 FROM tab1
----
179
3274
4093
query I rowsort
SELECT + col0 * - 14 + - col2 * col0 - + ( col0 + - col1 ) * 29 * - col2 FROM tab1
----
-36222
177728
84718
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8829
SELECT - col0 + + 23 + + ( col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8829
SELECT - col0 + + 23 + + ( col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 38 + + col2 AS col2 FROM tab1
----
1042
437
590
query I rowsort
SELECT 65 + + col1 AS col1 FROM tab2
----
124
82
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8832
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-8833
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) * col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) * col2 / - col1 AS col2 FROM tab0 AS cor0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 35 AS REAL ) AS col0 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT ALL + 30 * - col0 * + col2 FROM tab2 cor0
----
-5670
-60840
-90060
query I rowsort
SELECT ALL col2 * - ( - col0 ) + - col1 * + col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT DISTINCT + + 0 * + col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 72 * + col1 FROM tab2
----
1224
2232
4248
query I rowsort
SELECT - col2 + 61 + col2 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT + tab2.col2 * 97 AS col2 FROM tab2
----
2522
2619
3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + ( cor0.col0 ) AS REAL ) FROM tab2, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 * - ( + 41 ) + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-11748
-3048
-4830
query I rowsort
SELECT ALL col0 * ( - col1 * + col1 ) - ( col2 + - col0 ) * - col0 * 1 FROM tab0 AS cor0
----
-177288
-330505
-737632
query I rowsort
SELECT ALL - - col2 * - col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 * cor0.col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT + + col1 DIV + col1 + + 20 FROM tab1 AS cor0
----
21
21
21
skipif mysql # not compatible
query I rowsort label-8847
SELECT + + col1 / + col1 + + 20 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT - cor0.col2 * col1 * - col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-84
query I rowsort
SELECT col0 * 49 + cor0.col0 * col2 FROM tab2 AS cor0
----
532
5850
6873
query I rowsort
SELECT ALL - 96 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
-262
-6134
-7667
query I rowsort
SELECT 10 * - 52 AS col1 FROM tab0 AS cor0
----
-520
-520
-520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 - col1 col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + col0 * + col2 + + cor0.col2 + + ( - 97 ) FROM tab2 AS cor0
----
119
1957
2943
query I rowsort
SELECT ALL 51 * - 79 AS col2 FROM tab0 AS cor0
----
-4029
-4029
-4029
query I rowsort
SELECT + col1 * - 6 + - col0 AS col0 FROM tab1 AS cor0
----
-124
-158
-159
query I rowsort
SELECT - col2 * + col0 + cor0.col1 * - 83 AS col1 FROM tab0 cor0
----
-14851
-7930
-8086
query I rowsort
SELECT ALL + col1 * col2 + 83 * col2 * col1 AS col0 FROM tab1 AS cor0
----
104832
117936
47880
query I rowsort
SELECT + - 6 + + col2 - col0 * ( + col1 * ( 56 ) ) AS col2 FROM tab0 AS cor0
----
-115557
-190125
-453468
query I rowsort
SELECT DISTINCT col0 + - col0 * - col0 + - 68 AS col2 FROM tab1 AS cor0
----
-56
4092
6412
query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 AS col0 FROM tab1
----
24
583
944
query I rowsort
SELECT + - col1 + + col2 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT + col1 + - col2 - 69 FROM tab2 AS cor0
----
-36
-65
-90
query I rowsort
SELECT col2 * col1 + - col1 + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
2785
7453
query I rowsort
SELECT + col0 - cor0.col2 * 58 * + 92 AS col0 FROM tab0 AS cor0
----
-176064
-437463
-5301
query I rowsort
SELECT ALL - col0 + - col0 * col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + 3 + - col0 AS col1 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT ALL + + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT + cor0.col1 + - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-8869
SELECT + cor0.col1 + - col2 / + col0 AS col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT DISTINCT 92 + - col2 * + col0 AS col0 FROM tab0
----
-700
-7206
57
query I rowsort
SELECT - col0 + - 74 * col2 FROM tab1 AS cor0
----
-3999
-4282
-7184
query I rowsort
SELECT - col2 * col0 + - 51 * - col2 FROM tab2 AS cor0
----
-1064
-702
1188
onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT + col1 + - 27 * ( col0 + col0 ) DIV 81 FROM tab2 AS cor0
----
-35
27
7
skipif mysql # not compatible
query I rowsort label-8873
SELECT + col1 + - 27 * ( col0 + col0 ) / 81 FROM tab2 AS cor0
----
-35
27
7
query I rowsort
SELECT + col0 * - ( - col1 ) * + col1 - cor0.col2 * + col0 * col0 FROM tab0 AS cor0
----
158496
328090
87487
query I rowsort
SELECT - + col0 + + 5 AS col2 FROM tab1 AS cor0
----
-59
-75
2
query I rowsort
SELECT ALL col2 + - col2 * + 54 + tab2.col0 AS col0 FROM tab2
----
-1300
-1424
-1935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8877
SELECT DISTINCT ( col2 ) * - CAST( - 82 AS SIGNED ) + - col1 FROM tab0
----
-15
2620
6633
skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT ( col2 ) * - CAST ( - 82 AS INTEGER ) + - col1 FROM tab0
----
-15
2620
6633
query I rowsort
SELECT DISTINCT - 48 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-48
query I rowsort
SELECT + col2 - - col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - 81 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-1042
-3562
-370
query I rowsort
SELECT DISTINCT 2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
2
query I rowsort
SELECT + 43 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL - col2 * - col2 * tab1.col2 AS col1 FROM tab1
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8885
SELECT ALL + CAST( + col0 + col0 AS SIGNED ) * - 23 FROM tab1
----
-138
-2944
-3680
skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + CAST ( + col0 + col0 AS INTEGER ) * - 23 FROM tab1
----
-138
-2944
-3680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col0 FROM tab0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col2 FROM tab1
----
15
15
15
query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-3
query I rowsort
SELECT DISTINCT - + ( + col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - ( - col0 ) * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8891
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + col0 * + col2 + + col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT - CAST ( NULL AS REAL ) + + col0 * + col2 + + col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 62 * + col2 AS col2 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT DISTINCT - 80 * 14 AS col2 FROM tab1 AS cor0
----
-1120
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8896
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col0 col2 FROM tab1
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8898
SELECT CAST( - col2 AS SIGNED ) - + col1 * - col1 FROM tab1
----
43
622
73
skipif mysql # not compatible
query I rowsort label-8898
SELECT CAST ( - col2 AS INTEGER ) - + col1 * - col1 FROM tab1
----
43
622
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8899
SELECT DISTINCT + CAST( + 74 AS SIGNED ) FROM tab1
----
74
skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) FROM tab1
----
74
query I rowsort
SELECT - ( ( col0 ) ) AS col0 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8901
SELECT ALL + - CAST( NULL AS SIGNED ) * - ( cor0.col0 * col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + - CAST ( NULL AS INTEGER ) * - ( cor0.col0 * col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT DISTINCT col1 DIV + 4 FROM tab1 AS cor0
----
2
3
6
skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT col1 / + 4 FROM tab1 AS cor0
----
2
3
6
query I rowsort
SELECT ALL 14 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + 0 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - col0 col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT 87 DIV + col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-8906
SELECT 87 / + col0 FROM tab0
----
0
2
3
query I rowsort
SELECT + - cor0.col1 * - col0 + col1 * 52 AS col1 FROM tab2 AS cor0
----
1829
2227
7670
onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT + - ( + col1 ) * - col0 - col1 * col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
2002
8001
skipif mysql # not compatible
query I rowsort label-8908
SELECT + - ( + col1 ) * - col0 - col1 * col0 / col2 AS col2 FROM tab0 AS cor0
----
0
2002
8001
query I rowsort
SELECT - + col1 * + col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT + col0 * col0 + tab2.col1 - - col1 FROM tab2
----
111
6202
6275
query I rowsort
SELECT 82 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 - col0 * + 55 col0 FROM tab0
----
-1225
-1830
-4800
query I rowsort
SELECT col1 * 90 + + col0 AS col0 FROM tab0 AS cor0
----
7764
8279
8765
query I rowsort
SELECT col0 * 6 AS col1 FROM tab1 cor0
----
18
384
480
query I rowsort
SELECT - col0 * col1 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL + tab2.col1 * - ( col1 ) + col0 AS col1 FROM tab2
----
-210
-3403
-954
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 ALL + col2 * + col1 + col0 col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT ALL - tab0.col2 * col2 * - ( - col0 ) AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT col1 DIV ( - ( col0 ) ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-8921
SELECT col1 / ( - ( col0 ) ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT ALL + col1 * 22 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT - col0 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * + 43 + - col0 FROM tab1 AS cor0
----
1115
366
479
query I rowsort
SELECT ALL col1 + + col1 * + tab1.col2 * - col1 + tab1.col1 * tab1.col1 FROM tab1
----
-16042
-35802
-5590
onlyif mysql # use DIV operator for integer division
query I rowsort label-8926
SELECT ALL - col1 DIV tab2.col0 + col1 col2 FROM tab2
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - col1 / tab2.col0 + col1 col2 FROM tab2
----
17
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 + col2 + + col2 col1 FROM tab2
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8928
SELECT DISTINCT + col1 DIV + col0 + col0 + col0 FROM tab0
----
179
51
72
skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + col1 / + col0 + col0 + col0 FROM tab0
----
179
51
72
query I rowsort
SELECT - col1 * + col2 * + col2 + col1 AS col0 FROM tab0
----
-611793
-93568
0
query I rowsort
SELECT DISTINCT col1 * + col0 * + col1 + + tab2.col1 FROM tab2
----
22848
271577
6758
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT + col2 - + cor0.col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-8931
SELECT + col2 - + cor0.col0 / - col0 AS col1 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8932
SELECT - col0 + - col2 - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-37
skipif mysql # not compatible
query I rowsort label-8932
SELECT - col0 + - col2 - col2 / col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-37
query I rowsort
SELECT cor0.col0 * - col2 + col2 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT ALL + col2 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col1 * col1 * + col2 FROM tab0 cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT - col1 * - col0 + - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
1343
214
4602
skipif mysql # not compatible
query I rowsort label-8936
SELECT - col1 * - col0 + - col2 / + col0 AS col0 FROM tab2 AS cor0
----
1343
214
4602
query I rowsort
SELECT + col1 + tab2.col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL tab2.col2 + + col1 * tab2.col1 + col1 * + col2 FROM tab2
----
1825
5041
973
query I rowsort
SELECT - col1 * - col2 * + col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + col1 + - tab2.col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT tab0.col2 + col0 + col2 * col1 FROM tab0
----
133
2895
7633
query I rowsort
SELECT 48 * col1 FROM tab0 AS cor0
----
4128
4368
4656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 + - col2 col0 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT ALL - col0 * col0 + - col0 + col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + 25 FROM tab2 AS cor0
----
25
query I rowsort
SELECT DISTINCT - ( - col1 ) - - col0 AS col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) + - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 + col0 FROM tab1 AS cor0
----
174
262
705
query I rowsort
SELECT DISTINCT - col2 * + col2 - col0 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL + + 58 * col2 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT ALL + 90 AS col0 FROM tab2
----
90
90
90
query I rowsort
SELECT col0 + - col1 - cor0.col2 FROM tab2 AS cor0
----
-51
-7
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8954
SELECT ALL + col1 DIV + tab1.col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL + col1 / + tab1.col0 FROM tab1
----
0
0
8
query I rowsort
SELECT ALL cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-8956
SELECT ALL col2 - + col2 DIV - col1 AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL col2 - + col2 / - col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - tab2.col0 - col1 AS col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + ( col1 ) + col2 + + ( + 76 * + tab0.col2 + col1 ) FROM tab0
----
271
2713
6496
query I rowsort
SELECT DISTINCT col2 + 20 AS col2 FROM tab2
----
46
47
58
query I rowsort
SELECT + 86 + - col2 FROM tab2 AS cor0
----
48
59
60
query I rowsort
SELECT ALL - col1 * + 96 + col0 * - 68 AS col0 FROM tab0
----
-11692
-14788
-9888
query I rowsort
SELECT ALL 32 + + col1 * col2 FROM tab0
----
129
2870
7494
query I rowsort
SELECT ALL col2 * - 43 + col0 * col1 * + tab1.col2 + col1 AS col0 FROM tab1
----
1916
34039
95725
query I rowsort
SELECT ALL - col2 * + col0 + col0 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + + col2 * col2 - - 1 FROM tab2 AS cor0
----
1445
677
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8966
SELECT DISTINCT col0 DIV - col1 + + 64 FROM tab0 AS cor0
----
64
skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT col0 / - col1 + + 64 FROM tab0 AS cor0
----
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8967
SELECT CAST( NULL AS SIGNED ) * - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8967
SELECT CAST ( NULL AS INTEGER ) * - 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8969
SELECT - cor0.col0 * cor0.col0 + + CAST( + 83 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-6001
-6158
34
skipif mysql # not compatible
query I rowsort label-8969
SELECT - cor0.col0 * cor0.col0 + + CAST ( + 83 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-6001
-6158
34
query I rowsort
SELECT 40 + cor0.col2 * 59 AS col2 FROM tab0 cor0
----
1987
4878
99
query I rowsort
SELECT + - 46 + col0 * - 25 AS col1 FROM tab1 AS cor0
----
-121
-1646
-2046
query I rowsort
SELECT DISTINCT + 75 + + col1 * col0 FROM tab0 AS cor0
----
2139
3470
8174
query I rowsort
SELECT DISTINCT 29 + cor0.col2 FROM tab0 cor0
----
111
30
62
query I rowsort
SELECT col1 * 94 + ( col0 ) FROM tab0
----
8108
8643
9153
query I rowsort
SELECT ALL - col2 * - 52 * + 13 AS col0 FROM tab2 AS cor0
----
17576
18252
25688
query I rowsort
SELECT DISTINCT col1 + + 71 * - col0 FROM tab1 AS cor0
----
-187
-4534
-5667
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT - col0 * col1 DIV 64 AS col2 FROM tab0 AS cor0
----
-126
-32
-53
skipif mysql # not compatible
query I rowsort label-8977
SELECT - col0 * col1 / 64 AS col2 FROM tab0 AS cor0
----
-126
-32
-53
query I rowsort
SELECT ALL cor0.col2 * + col1 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - + col2 * + 80 FROM tab2 AS cor0
----
-2080
-2160
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT - col2 + + col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-8980
SELECT - col2 + + col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT ALL + + cor0.col1 + CAST( col1 AS SIGNED ) DIV - col2 AS col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + + cor0.col1 + CAST ( col1 AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT ALL + col2 * col0 + ( col2 ) * - 83 AS col1 FROM tab0 AS cor0
----
-1947
-48
492
query I rowsort
SELECT + col1 * + ( - col0 ) - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL + ( col0 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 * - col1 col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL 50 + cor0.col0 FROM tab0 AS cor0
----
139
74
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT + col1 * cor0.col0 DIV + col2 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-8990
SELECT + col1 * cor0.col0 / + col2 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT + cor0.col0 * + 20 AS col0 FROM tab2 AS cor0
----
140
1560
1580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT - + CAST( col2 AS SIGNED ) * col2 * - 44 FROM tab0 AS cor0
----
295856
44
47916
skipif mysql # not compatible
query I rowsort label-8992
SELECT - + CAST ( col2 AS INTEGER ) * col2 * - 44 FROM tab0 AS cor0
----
295856
44
47916
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8993
SELECT - + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8993
SELECT - + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( 15 ) * - col1 * + 15 FROM tab1 AS cor0
----
-2250
-2925
-5850
query I rowsort
SELECT - + 52 + col2 FROM tab0 AS cor0
----
-19
-51
30
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - 89 AS col0 FROM tab2 AS cor0
----
1355
587
640
query I rowsort
SELECT cor0.col0 + + col2 * + col2 - col0 AS col0 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8998
SELECT ALL col2 DIV + tab2.col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL col2 / + tab2.col1 FROM tab2
----
0
0
2
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + col1 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9001
SELECT ALL ( col1 * CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL ( col1 * CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 59 FROM tab1
----
-2
-5
37
query I rowsort
SELECT - col2 + col1 * - col2 * + col0 FROM tab2
----
-119678
-51072
-5886
query I rowsort
SELECT ALL - col0 * + ( col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT col1 DIV - 45 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9005
SELECT col1 / - 45 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9006
SELECT + + col2 DIV - 54 AS col1 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9006
SELECT + + col2 / - 54 AS col1 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col1 * + ( col2 + - cor0.col0 ) FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT col0 * + 44 + - 24 FROM tab2
----
284
3408
3452
onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT + col1 + - col0 DIV - ( col2 + col1 ) AS col1 FROM tab2 AS cor0
----
18
31
59
skipif mysql # not compatible
query I rowsort label-9009
SELECT + col1 + - col0 / - ( col2 + col1 ) AS col1 FROM tab2 AS cor0
----
18
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 26 + col2 col1 FROM tab0 AS cor0
----
2214
27
891
query I rowsort
SELECT + col2 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL col1 + 22 * col2 FROM tab0 AS cor0
----
119
1895
812
onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT DISTINCT - col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT - col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 + col1 * - 91 AS col0 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT DISTINCT ( + col2 ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 50 ) + - col0 col2 FROM tab2 AS cor0
----
-128
-129
-57
query I rowsort
SELECT DISTINCT - 76 + - col1 FROM tab1 AS cor0
----
-102
-86
-89
query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + ( cor0.col2 ) + + 36 + - col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
-126
-1966
-2928
query I rowsort
SELECT ALL + 81 + + cor0.col0 * + col1 FROM tab0 AS cor0
----
2145
3476
8180
query I rowsort
SELECT col0 + - cor0.col1 * - ( col2 * - col2 ) FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT ALL - col0 + col2 - 87 AS col0 FROM tab1
----
-36
-71
-94
query I rowsort
SELECT DISTINCT + col1 - + col1 FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT + col0 DIV - tab2.col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9026
SELECT + col0 / - tab2.col0 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * + col1 * + col2 - + 10 * col1 col0 FROM tab2
----
17918
23126
42362
query I rowsort
SELECT 72 * tab2.col0 FROM tab2
----
504
5616
5688
query I rowsort
SELECT + tab0.col1 - col0 AS col0 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + - CAST ( 80 AS REAL ) AS col0 FROM tab0 AS cor0
----
-113
-162
-81
query I rowsort
SELECT - + col2 * col2 - 21 AS col0 FROM tab2 AS cor0
----
-1465
-697
-750
query I rowsort
SELECT + col1 - + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT 27 * 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2106
query I rowsort
SELECT ALL 43 * + col0 * + 52 FROM tab2
----
15652
174408
176644
query I rowsort
SELECT ALL + 46 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT ALL - col0 + 94 * + col2 FROM tab1 cor0
----
5073
5294
8944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT - col2 * ( - cor0.col2 ) DIV - cor0.col1 + CAST( + col0 * - col1 AS SIGNED ) col1 FROM tab2 cor0
----
-1427
-240
-4613
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9037
SELECT - col2 * ( - cor0.col2 ) / - cor0.col1 + CAST ( + col0 * - col1 AS INTEGER ) col1 FROM tab2 cor0
----
-1427
-240
-4613
query I rowsort
SELECT + 32 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT ALL tab0.col1 + col1 DIV col1 AS col0 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL tab0.col1 + col1 / col1 AS col0 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 77 * - col1 col1 FROM tab2 AS cor0
----
-1347
-2414
-4569
query I rowsort
SELECT 94 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + cor0.col0 - col1 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL - cor0.col1 * + col2 * - col1 + col0 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT DISTINCT - col1 * - col2 + 89 + col0 * col2 AS col1 FROM tab2 AS cor0
----
1115
3651
3737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + 1 + + 70 col2 FROM tab1 AS cor0
----
134
150
73
query I rowsort
SELECT ALL ( ( - col1 ) ) * + col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + 52 + 36 * col0 * ( 56 ) FROM tab1
----
129076
161332
6100
query I rowsort
SELECT + 9 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT 80 * 99 + + col0 FROM tab1
----
7923
7984
8000
query I rowsort
SELECT ALL ( + ( col2 ) * 28 ) FROM tab0
----
2296
28
924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9051
SELECT - CAST( NULL AS SIGNED ) + - col0 * + col2 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9051
SELECT - CAST ( NULL AS INTEGER ) + - col0 * + col2 / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT - ( - 43 ) + - cor0.col1 * col2 DIV 12 FROM tab1 AS cor0
----
-4
-61
-74
skipif mysql # not compatible
query I rowsort label-9052
SELECT - ( - 43 ) + - cor0.col1 * col2 / 12 FROM tab1 AS cor0
----
-4
-61
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT DISTINCT col2 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT col2 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT DISTINCT - col2 DIV - col1 - 50 AS col0 FROM tab0 AS cor0
----
-50
skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - col2 / - col1 - 50 AS col0 FROM tab0 AS cor0
----
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9055
SELECT DISTINCT - col1 + + cor0.col1 DIV - cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - col1 + + cor0.col1 / - cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL + - col1 * cor0.col1 + - ( 9 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1240
-4012
-442
query I rowsort
SELECT DISTINCT - - col0 * col2 + col1 * cor0.col0 * + col1 - + 52 AS col1 FROM tab0 AS cor0
----
178244
329298
744255
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + - col1 col1 FROM tab1 cor0
----
18
31
34
query I rowsort
SELECT ALL + 44 - col1 AS col1 FROM tab1 AS cor0
----
18
31
34
query I rowsort
SELECT - ( + col1 ) + - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - 73 AS col1 FROM tab1 cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT ( col0 ) + 71 AS col1 FROM tab1 cor0
----
135
151
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col0 ) * col1 col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT DISTINCT col1 DIV cor0.col0 AS col1 FROM tab1 cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT col1 / cor0.col0 AS col1 FROM tab1 cor0
----
0
8
query I rowsort
SELECT + + 42 * + col2 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT + 17 + - col1 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-119635
-51017
-5842
query I rowsort
SELECT - 52 * 8 AS col1 FROM tab0 AS cor0
----
-416
-416
-416
query I rowsort
SELECT - 83 * + 70 AS col2 FROM tab0 AS cor0
----
-5810
-5810
-5810
query I rowsort
SELECT - - ( 81 ) AS col2 FROM tab1 AS cor0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 22 ) col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
query I rowsort
SELECT ALL col2 + + 12 AS col0 FROM tab0
----
13
45
94
query I rowsort
SELECT + - col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT col2 * + col2 + - 74 AS col0 FROM tab2 AS cor0
----
1370
602
655
query I rowsort
SELECT + col1 * col2 + - col0 * col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT ALL + col1 * col2 * ( col1 ) FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - ( - col2 ) col2 FROM tab2
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9078
SELECT DISTINCT + + col0 + + CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + + col0 + + CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT ALL + + col1 + - CAST( col2 + + col0 AS SIGNED ) * 80 DIV 79 AS col2 FROM tab0 cor0
----
-82
29
61
skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + + col1 + - CAST ( col2 + + col0 AS INTEGER ) * 80 / 79 AS col2 FROM tab0 cor0
----
-82
29
61
query I rowsort
SELECT col1 * + 30 AS col2 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT DISTINCT - - col2 * col0 + cor0.col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9082
SELECT DISTINCT - col1 DIV - 19 + ( + col0 + + 26 ) * col1 AS col2 FROM tab0 AS cor0
----
10469
4304
5922
skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - col1 / - 19 + ( + col0 + + 26 ) * col1 AS col2 FROM tab0 AS cor0
----
10469
4304
5922
query I rowsort
SELECT DISTINCT - col0 * + 94 + + col0 AS col2 FROM tab2 AS cor0
----
-651
-7254
-7347
query I rowsort
SELECT - col0 * ( 95 ) FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT ALL col1 - 6 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-11
-409
-457
query I rowsort
SELECT DISTINCT - + col2 * - col0 * 67 AS col2 FROM tab2 AS cor0
----
12663
135876
201134
onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT ALL col0 DIV + ( tab0.col1 ) + tab0.col0 * - ( tab0.col1 ) FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL col0 / + ( tab0.col1 ) + tab0.col0 * - ( tab0.col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - ( 35 ) AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT - col1 * + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - col2 + ( - col1 * col0 + col2 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9091
SELECT DISTINCT - + cor0.col0 + col2 DIV col1 AS col2 FROM tab2 cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - + cor0.col0 + col2 / col1 AS col2 FROM tab2 cor0
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 * - col0 * col2 + col2 FROM tab2 AS cor0
----
-113959
-5069
-52624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col1 col2 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT + + col1 DIV col1 + - col2 - + col1 * + col0 FROM tab0 cor0
----
-2096
-3395
-8180
skipif mysql # not compatible
query I rowsort label-9095
SELECT + + col1 / col1 + - col2 - + col1 * + col0 FROM tab0 cor0
----
-2096
-3395
-8180
query I rowsort
SELECT - 13 * + tab1.col1 AS col2 FROM tab1
----
-130
-169
-338
query I rowsort
SELECT + col2 * cor0.col1 + 2 AS col1 FROM tab2 AS cor0
----
1536
648
839
onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT + - col0 DIV col2 - - col2 AS col0 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-9098
SELECT + - col0 / col2 - - col2 AS col0 FROM tab1 AS cor0
----
54
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT - - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9099
SELECT - - col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - cor0.col2 + - ( + col1 + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - - col2 * - col1 * 5 + - col0 * - col0 FROM tab1 AS cor0
----
-7011
1246
160
query I rowsort
SELECT + col1 * + 47 * col2 FROM tab0 cor0
----
133386
350714
4559
query I rowsort
SELECT - cor0.col2 + + ( ( col2 ) ) AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col0 + 33 FROM tab2
----
111
112
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT DISTINCT + col2 - - col2 DIV tab0.col0 AS col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + col2 - - col2 / tab0.col0 AS col2 FROM tab0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9107
SELECT ALL - - CAST( NULL AS SIGNED ) * 22 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-9107
SELECT ALL - - CAST ( NULL AS INTEGER ) * 22 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab2 cor0
----
50
query I rowsort
SELECT ALL + col1 * ( col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9110
SELECT ALL - - CAST( NULL AS DECIMAL ) * col2 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - - CAST ( NULL AS REAL ) * col2 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 77 AS col0 FROM tab2 cor0
----
1309
2387
4543
query I rowsort
SELECT - col0 * col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT 90 * cor0.col2 - col0 AS col2 FROM tab0 cor0
----
2946
55
7291
query I rowsort
SELECT + 33 + col1 + - col2 AS col1 FROM tab2 AS cor0
----
12
37
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9115
SELECT col2 * cor0.col0 * + 98 + + col0 * cor0.col1 DIV + 79 + - 43 * col2 AS col2 FROM tab0 AS cor0
----
3429
711780
76223
skipif mysql # not compatible
query I rowsort label-9115
SELECT col2 * cor0.col0 * + 98 + + col0 * cor0.col1 / + 79 + - 43 * col2 AS col2 FROM tab0 AS cor0
----
3429
711780
76223
onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT DISTINCT 41 DIV + col2 FROM tab0 AS cor0
----
0
1
41
skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 41 / + col2 FROM tab0 AS cor0
----
0
1
41
query I rowsort
SELECT ALL - - col1 * - col2 - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 - - cor0.col1 col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT ALL CAST( + 62 AS SIGNED ) FROM tab2
----
62
62
62
skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL CAST ( + 62 AS INTEGER ) FROM tab2
----
62
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 51 * col0 col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT cor0.col2 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 71 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 88 col2 FROM tab0 AS cor0
----
-2904
-7216
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 31 col0 FROM tab2 AS cor0
----
-28
0
14
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * + col1 * + col2 AS col0 FROM tab1 cor0
----
119821
32500
75842
onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT ALL tab2.col2 DIV + col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL tab2.col2 / + col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT + 82 * - col0 AS col2 FROM tab1 AS cor0
----
-246
-5248
-6560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9128
SELECT ALL - CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 35 AS col0 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT col0 - - tab0.col0 * col0 * - col0 AS col0 FROM tab0
----
-13800
-42840
-704880
query I rowsort
SELECT 75 * + 85 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 0be6fd20d19faf5c025c7d9f16ff498a
query I rowsort
SELECT col1 * 60 + + 36 FROM tab0
----
5196
5496
5856
query I rowsort
SELECT + ( - col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - 70 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-2450
-510860
-55440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT ALL 90 + 26 + - cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
115
115
115
skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL 90 + 26 + - cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
115
115
115
query I rowsort
SELECT ALL - + ( cor0.col1 ) * - col1 * + col0 AS col0 FROM tab2 cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT ALL - CAST( + col2 AS SIGNED ) * col2 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - CAST ( + col2 AS INTEGER ) * col2 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9139
SELECT DISTINCT CAST( 35 AS SIGNED ) + col0 * 35 AS col1 FROM tab0 AS cor0
----
1260
3150
875
skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT CAST ( 35 AS INTEGER ) + col0 * 35 AS col1 FROM tab0 AS cor0
----
1260
3150
875
query I rowsort
SELECT DISTINCT - - 54 AS col2 FROM tab2 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT col1 + ( col0 ) DIV col1 AS col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-9141
SELECT col1 + ( col0 ) / col1 AS col1 FROM tab2
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * col0 ) col0 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT DISTINCT CAST( - col2 + + col0 AS SIGNED ) FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT CAST ( - col2 + + col0 AS INTEGER ) FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9144
SELECT ALL + CAST( - 14 AS SIGNED ) + - col0 * + col0 FROM tab0 AS cor0
----
-1239
-590
-7935
skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + CAST ( - 14 AS INTEGER ) + - col0 * + col0 FROM tab0 AS cor0
----
-1239
-590
-7935
onlyif mysql # use DIV operator for integer division
query I rowsort label-9145
SELECT DISTINCT ( - col0 ) DIV + col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT ( - col0 ) / + col0 FROM tab1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 80 ) col2 FROM tab1 AS cor0
----
-80
query I rowsort
SELECT ALL - ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( + col1 * - col1 ) AS col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT DISTINCT ( col2 ) + + 60 DIV ( col0 ) col0 FROM tab0
----
2
35
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT ( col2 ) + + 60 / ( col0 ) col0 FROM tab0
----
2
35
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab0, tab2, tab0 AS cor0
----
-17
query I rowsort
SELECT 61 - col2 FROM tab0
----
-21
28
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9152
SELECT col2 + - col1 + CAST( - col1 + col2 AS SIGNED ) AS col1 FROM tab1
----
166
56
94
skipif mysql # not compatible
query I rowsort label-9152
SELECT col2 + - col1 + CAST ( - col1 + col2 AS INTEGER ) AS col1 FROM tab1
----
166
56
94
query I rowsort
SELECT - cor0.col1 + ( - 33 ) AS col1 FROM tab1 AS cor0
----
-43
-46
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT ALL + + col1 DIV ( + col1 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + + col1 / ( + col1 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT ALL col1 DIV - col2 - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL col1 / - col2 - + 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT ( + col2 + - col1 ) AS col1 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab0
----
85
query I rowsort
SELECT ALL 69 * + col1 + - col1 AS col1 FROM tab1
----
1768
680
884
query I rowsort
SELECT ALL - 13 + col2 AS col1 FROM tab0
----
-12
20
69
query I rowsort
SELECT ALL 84 + + col1 AS col0 FROM tab1
----
110
94
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT ALL 25 DIV + 23 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL 25 / + 23 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL cor0.col2 + 59 FROM tab2 AS cor0
----
85
86
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9163
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT col1 + CAST( NULL AS SIGNED ) * - col1 * + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9164
SELECT col1 + CAST ( NULL AS INTEGER ) * - col1 * + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + ( + col0 + - col0 ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9166
SELECT ALL - - col1 + 43 DIV + col1 AS col1 FROM tab2 AS cor0
----
19
32
59
skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - - col1 + 43 / + col1 AS col1 FROM tab2 AS cor0
----
19
32
59
query I rowsort
SELECT DISTINCT + cor0.col1 - - ( col1 + col2 ) AS col1 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9168
SELECT ALL cor0.col1 DIV ( - 92 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL cor0.col1 / ( - 92 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col0 * + col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + 16 * col1 AS col1 FROM tab2
----
272
496
944
query I rowsort
SELECT - - col1 + 90 AS col1 FROM tab0 cor0
----
176
181
187
query I rowsort
SELECT - + cor0.col1 + col1 * + 34 AS col0 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT + - col2 + - 9 * - col2 AS col0 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT 83 + + tab2.col1 FROM tab2
----
100
114
142
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9176
SELECT ( + col2 + + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9176
SELECT ( + col2 + + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT + col0 * + 99 + col0 DIV - col0 AS col1 FROM tab1 cor0
----
296
6335
7919
skipif mysql # not compatible
query I rowsort label-9178
SELECT + col0 * + 99 + col0 / - col0 AS col1 FROM tab1 cor0
----
296
6335
7919
query I rowsort
SELECT DISTINCT - 53 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
35828
38637
76532
onlyif mysql # use DIV operator for integer division
query I rowsort label-9180
SELECT ALL CAST( + col1 AS SIGNED ) * col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL CAST ( + col1 AS INTEGER ) * col2 / + col1 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 70 + col1 FROM tab2 AS cor0
----
101
129
87
query I rowsort
SELECT ALL + 84 * - col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9183
SELECT DISTINCT CAST( NULL AS SIGNED ) / 81 + col1 * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 81 + col1 * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col2 * col0 + + col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col0 + - tab0.col0 + 75 FROM tab0
----
75
query I rowsort
SELECT - 92 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT col2 * 60 + - col2 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT 6 - col1 AS col0 FROM tab1 AS cor0
----
-20
-4
-7
query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 + - col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - 97 FROM tab1, tab2 cor0
----
-97
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0, tab1 AS cor0
----
-83
query I rowsort
SELECT - col1 * ( col1 ) + - ( + col2 ) AS col2 FROM tab0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL - - col0 + + col0 * + 65 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT - - 24 + cor0.col0 * 71 AS col2 FROM tab2 AS cor0
----
521
5562
5633
query I rowsort
SELECT DISTINCT - - 4 AS col0 FROM tab0 AS cor0
----
4
query I rowsort
SELECT 59 * tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 90a0de7e00b1efad6e9a30e91603a83b
query I rowsort
SELECT + - ( + col1 ) + ( - col2 ) FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0
----
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9200
SELECT DISTINCT CAST( col0 * + col1 AS SIGNED ) AS col0 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT CAST ( col0 * + col1 AS INTEGER ) AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT 93 * + col2 - col0 FROM tab2
----
2340
2504
3455
query I rowsort
SELECT DISTINCT - ( - 32 ) FROM tab0, tab1 AS cor0
----
32
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9204
SELECT DISTINCT cor0.col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT cor0.col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + col0 - 18 * 18 * + col2 AS col0 FROM tab1 AS cor0
----
-17499
-18532
-31184
query I rowsort
SELECT + cor0.col0 * 33 AS col2 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT DISTINCT cor0.col0 + + tab0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 218174566e316faf7def1869e4f9f1b6
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2, tab1
----
13122 values hashing to 7d337ea84800af380c31f16b2d87f5ec
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) + col1 col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT ALL ( col1 ) * col0 - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL ( col1 ) * col0 - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - cor0.col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 53 * tab2.col0 * tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ef4fa2882bf3597973c5378ca9028547
onlyif mysql # use DIV operator for integer division
query I rowsort label-9213
SELECT DISTINCT col0 DIV + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT col0 / + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL cor0.col2 * col1 * - ( + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT col2 * + 48 AS col1 FROM tab2 AS cor0
----
1248
1296
1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9216
SELECT DISTINCT + col1 * + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + col1 * + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 + 69 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2157
3499
8257
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9218
SELECT ALL + tab2.col2 + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + tab2.col2 + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9220
SELECT CAST( + cor0.col2 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif mysql # not compatible
query I rowsort label-9220
SELECT CAST ( + cor0.col2 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9221
SELECT DISTINCT + - cor0.col2 * - 61 + col0 DIV - col2 - col2 DIV + col0 FROM tab0 cor0
----
2012
26
5001
skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + - cor0.col2 * - 61 + col0 / - col2 - col2 / + col0 FROM tab0 cor0
----
2012
26
5001
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * - col2 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT + col1 DIV + col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9223
SELECT + col1 / + col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT ALL - col0 * - ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 * + ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9226
SELECT ALL - col2 DIV col0 + col2 AS col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL - col2 / col0 + col2 AS col2 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 23 * - 65 col2 FROM tab2 AS cor0
----
-1457
-1468
-1469
onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT ALL + col0 DIV ( + cor0.col0 ) + - col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + col0 / ( + cor0.col0 ) + - col1 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9229
SELECT CAST( 5 * + col1 AS SIGNED ) - col0 FROM tab2
----
148
217
6
skipif mysql # not compatible
query I rowsort label-9229
SELECT CAST ( 5 * + col1 AS INTEGER ) - col0 FROM tab2
----
148
217
6
query I rowsort
SELECT DISTINCT ( 72 ) AS col1 FROM tab2
----
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9231
SELECT ALL + CAST( col2 * - col2 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + CAST ( col2 * - col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT - ( col0 ) DIV - col2 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9232
SELECT - ( col0 ) / - col2 AS col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT + - 93 * + col2 + col2 FROM tab0 AS cor0
----
-3036
-7544
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9234
SELECT - + CAST( NULL AS SIGNED ) * col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9234
SELECT - + CAST ( NULL AS INTEGER ) * col2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 3 - + col0 FROM tab2 AS cor0
----
-4
-75
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab2 cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT + + col2 + - col0 * col1 * - col0 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT 93 + col2 AS col0 FROM tab0
----
126
175
94
query I rowsort
SELECT ALL - + col1 * col1 + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - col0 + col2 * - col2 * - col1 FROM tab2 cor0
----
22592
24469
39806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT DISTINCT col0 DIV col1 - + col1 AS col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT col0 / col1 - + col1 AS col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT ALL + - col0 * col2 * 14 FROM tab0 AS cor0
----
-102172
-11088
-490
query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col0 * col0 col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 12 * + cor0.col0 FROM tab1 AS cor0
----
-36
-768
-960
query I rowsort
SELECT + 36 * col1 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1305
3614
4152
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + - col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - + col0 * cor0.col0 + + col0 * - cor0.col0 FROM tab1 AS cor0
----
-12800
-18
-8192
query I rowsort
SELECT + - col0 * - col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - - 65 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-9253
SELECT - col2 DIV + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-9253
SELECT - col2 / + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT col2 * + col1 + col1 DIV + col0 FROM tab0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-9254
SELECT col2 * + col1 + col1 / + col0 FROM tab0
----
2841
7463
99
query I rowsort
SELECT + tab2.col0 + col0 * + col2 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT 55 * - tab0.col2 FROM tab0
----
-1815
-4510
-55
query I rowsort
SELECT ALL + - ( 87 ) * col2 FROM tab0 AS cor0
----
-2871
-7134
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT ALL + 65 DIV 43 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + 65 / 43 + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + col1 * + cor0.col1 FROM tab0 AS cor0
----
1557
6307
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT + 86 DIV - cor0.col0 + cor0.col0 FROM tab0 cor0
----
21
33
89
skipif mysql # not compatible
query I rowsort label-9260
SELECT + 86 / - cor0.col0 + cor0.col0 FROM tab0 cor0
----
21
33
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9261
SELECT DISTINCT col1 * - 92 - col1 DIV - col1 FROM tab0
----
-7911
-8371
-8923
skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT col1 * - 92 - col1 / - col1 FROM tab0
----
-7911
-8371
-8923
query I rowsort
SELECT + - 37 - + col0 AS col1 FROM tab0 AS cor0
----
-126
-61
-72
query I rowsort
SELECT DISTINCT - + 36 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-303
-372
-882
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT DISTINCT + ( + 18 ) DIV - col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + ( + 18 ) / - col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + 53 - + col2 AS col1 FROM tab2 AS cor0
----
15
26
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9266
SELECT + - 89 * - col1 + - col2 DIV col1 col1 FROM tab0 AS cor0
----
7654
8099
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9266
SELECT + - 89 * - col1 + - col2 / col1 col1 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT + col0 + + tab2.col1 + col1 FROM tab2
----
113
196
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + tab1.col0 * + col1 + tab1.col0 col2 FROM tab1
----
1086
47
670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 + col0 * col2 * + tab2.col0 col2 FROM tab2
----
1354
158215
237189
query I rowsort
SELECT DISTINCT + 25 + col1 AS col0 FROM tab2
----
42
56
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT ALL col2 DIV - col2 + + tab1.col1 + col0 FROM tab1
----
28
73
92
skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL col2 / - col2 + + tab1.col1 + col0 FROM tab1
----
28
73
92
query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 + col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT 42 + + col2 AS col1 FROM tab1 AS cor0
----
138
96
99
query I rowsort
SELECT - 83 * 37 FROM tab0
----
-3071
-3071
-3071
query I rowsort
SELECT col1 + + 89 FROM tab1
----
102
115
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT ALL 39 + - col0 DIV + col2 AS col0 FROM tab1
----
38
39
39
skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL 39 + - col0 / + col2 AS col0 FROM tab1
----
38
39
39
query I rowsort
SELECT ALL - col0 + - col1 * + col1 AS col2 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT ALL - col2 + - col2 + tab2.col0 * - col2 FROM tab2
----
-2080
-243
-3078
onlyif mysql # use DIV operator for integer division
query I rowsort label-9279
SELECT ALL col1 DIV 58 + col1 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL col1 / 58 + col1 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL col1 * 49 + - col0 AS col1 FROM tab1 cor0
----
1271
426
557
query I rowsort
SELECT ALL - 40 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT - - col2 + 49 FROM tab2 AS cor0
----
75
76
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9283
SELECT - + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9283
SELECT - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ( + col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col2 + - col2 * - 69 AS col2 FROM tab1 AS cor0
----
3780
3990
6720
query I rowsort
SELECT DISTINCT + 16 * cor0.col0 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT + col2 + + col0 * ( col2 ) + + col1 * + ( 64 ) AS col2 FROM tab2 AS cor0
----
2200
4128
5830
query I rowsort
SELECT DISTINCT col2 + col1 * 27 FROM tab1 AS cor0
----
327
447
756
query I rowsort
SELECT DISTINCT col0 * - col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 * ( - col1 ) * - col2 + col1 FROM tab2 AS cor0
----
22630
24565
39943
query I rowsort
SELECT - + col1 * + col2 - + 2 FROM tab1 AS cor0
----
-1250
-1406
-572
query I rowsort
SELECT + col1 * - 74 + col2 FROM tab2 AS cor0
----
-1220
-2267
-4340
query I rowsort
SELECT ALL - col0 + + 49 * - 91 * col2 FROM tab2 AS cor0
----
-116012
-120400
-169521
query I rowsort
SELECT 44 + + col1 AS col0 FROM tab1
----
54
57
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT ALL - col2 + col1 DIV col1 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - col2 + col1 / col1 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT cor0.col1 * col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - col2 * - col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL 93 + - tab1.col0 * col0 FROM tab1
----
-4003
-6307
84
query I rowsort
SELECT ALL + 47 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT DISTINCT - col2 - 56 * ( - col0 + - 88 ) AS col0 FROM tab2
----
5293
9270
9314
query I rowsort
SELECT ALL - col0 * 67 + cor0.col0 * - col1 AS col2 FROM tab0 cor0
----
-14062
-3672
-5740
query I rowsort
SELECT ALL col2 * 9 * 59 + col1 * col2 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
30240
34485
59904
query I rowsort
SELECT + - col2 * col1 + + 89 - col1 FROM tab2 AS cor0
----
-1504
-574
-779
onlyif mysql # use DIV operator for integer division
query I rowsort label-9304
SELECT + col0 + - 96 DIV - col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
30
75
94
skipif mysql # not compatible
query I rowsort label-9304
SELECT + col0 + - 96 / - col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
30
75
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col2 * 41 + col1 FROM tab1 cor0
----
2240
2347
3949
query I rowsort
SELECT + col2 * 95 * - col0 FROM tab2 AS cor0
----
-17955
-192660
-285190
query I rowsort
SELECT - ( - 17 ) * col1 + cor0.col0 AS col0 FROM tab0 cor0
----
1486
1636
1684
onlyif mysql # use DIV operator for integer division
query I rowsort label-9309
SELECT DISTINCT col2 * + col2 + col2 * col0 DIV - col1 FROM tab1 cor0
----
2885
2910
8626
skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT col2 * + col2 + col2 * col0 / - col1 FROM tab1 cor0
----
2885
2910
8626
query I rowsort
SELECT DISTINCT + 2 + - col0 FROM tab2 AS cor0
----
-5
-76
-77
query I rowsort
SELECT ALL col2 * + col2 - - col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 * 72 col1 FROM tab2
----
-1145
-2225
-4170
query I rowsort
SELECT tab0.col1 + 47 + tab0.col0 AS col2 FROM tab0
----
157
179
227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 - 34 * col2 col1 FROM tab1
----
-1674
1710
4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT ALL + col1 DIV ( + col0 * tab2.col0 ) AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + col1 / ( + col0 * tab2.col0 ) AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9316
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + col0 * CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 42 + + col2 * + 61 col1 FROM tab1 AS cor0
----
3252
3435
5814
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + + 78 FROM tab1 AS cor0
----
-562
-962
0
query I rowsort
SELECT 40 + col0 AS col2 FROM tab0 AS cor0
----
129
64
75
query I rowsort
SELECT + + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + 65 * cor0.col2 * cor0.col1 + - ( - col2 ) FROM tab0 AS cor0
----
184503
485112
6306
onlyif mysql # use DIV operator for integer division
query I rowsort label-9322
SELECT col2 DIV col1 + + 65 + + col1 FROM tab1 AS cor0
----
80
85
93
skipif mysql # not compatible
query I rowsort label-9322
SELECT col2 / col1 + + 65 + + col1 FROM tab1 AS cor0
----
80
85
93
query I rowsort
SELECT - + col1 * col1 + ( 41 ) AS col2 FROM tab0 AS cor0
----
-7355
-8240
-9368
query I rowsort
SELECT DISTINCT 46 * - col1 AS col2 FROM tab2 AS cor0
----
-1426
-2714
-782
query I rowsort
SELECT DISTINCT + col0 * - col1 + 14 + - col2 AS col2 FROM tab2 AS cor0
----
-1367
-230
-4614
query I rowsort
SELECT DISTINCT col1 * + col2 + - col2 * ( - col1 ) AS col1 FROM tab0 cor0
----
14924
194
5676
query I rowsort
SELECT ( cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - + col2 + - col2 + - col2 FROM tab0 AS cor0
----
-246
-3
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT - col1 DIV - col1 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9329
SELECT - col1 / - col1 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 28 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT DISTINCT 50 + 87 AS col2 FROM tab2
----
137
query I rowsort
SELECT + 14 + 1 + col1 FROM tab0
----
101
106
112
query I rowsort
SELECT ALL col1 * + cor0.col1 + col1 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-201898
-28830
-4624
query I rowsort
SELECT - ( 32 + col0 ) * + col0 * + col0 AS col1 FROM tab1
----
-315
-393216
-716800
query I rowsort
SELECT + - 61 * col2 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL + 39 FROM tab1, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT ALL ( + 99 ) + - col0 AS col2 FROM tab0 AS cor0
----
10
64
75
query I rowsort
SELECT - + col2 + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + col1 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - 53 * 21 FROM tab2, tab2 AS cor0
----
-1113
query I rowsort
SELECT DISTINCT - 70 + 29 FROM tab1, tab0 cor0
----
-41
query I rowsort
SELECT - col1 * col0 * - 14 FROM tab0
----
113386
28896
47530
query I rowsort
SELECT ALL - col1 + col2 + col0 * - col1 AS col0 FROM tab2
----
-1322
-221
-4635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT DISTINCT - col2 - - 58 DIV + col2 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT - col2 - - 58 / + col2 FROM tab1 AS cor0
----
-53
-56
-96
query I rowsort
SELECT ALL ( 63 ) FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
query I rowsort
SELECT ALL col1 * 88 + col0 + + ( + 87 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 99 * + col1 + + col0 AS col1 FROM tab2 AS cor0
----
1762
3076
5919
query I rowsort
SELECT 91 + - 49 AS col1 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT - + col1 * col0 + + col1 * col0 * - 2 AS col0 FROM tab2 AS cor0
----
-13806
-4029
-651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 92 - col2 col0 FROM tab2 AS cor0
----
54
65
66
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 * col1 * ( tab2.col1 ) FROM tab2
----
277602
29072
6776
query I rowsort
SELECT ALL 57 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT - 51 + 1 AS col2 FROM tab0 AS cor0
----
-50
query I rowsort
SELECT ALL + col1 + - 1 * col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 - - col1 * 90 * col1 col2 FROM tab1 AS cor0
----
16250
60918
9640
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT 58 * + col1 + col0 + + 74 AS col2 FROM tab1 AS cor0
----
1585
718
908
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT ALL + + cor0.col2 - + col0 DIV + col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + + cor0.col2 - + col0 / + col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT - col2 + - 27 AS col1 FROM tab2 AS cor0
----
-53
-54
-65
query I rowsort
SELECT DISTINCT 29 * col2 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT 61 * - ( col0 * col2 ) FROM tab1
----
-222528
-468480
-9882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + tab2.col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * - 58 AS col2 FROM tab2
----
-1508
-1566
-2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 51 + col1 * col2 * + cor0.col1 - - col2 FROM tab1 cor0
----
16371
36609
5808
query I rowsort
SELECT + 51 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT 38 * - col2 AS col2 FROM tab2
----
-1026
-1444
-988
query I rowsort
SELECT ALL col0 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col0 - col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT cor2.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT 74 + col1 AS col1 FROM tab2 cor0
----
105
133
91
query I rowsort
SELECT ALL - col1 * - 89 * col1 FROM tab1 AS cor0
----
15041
60164
8900
query I rowsort
SELECT - tab2.col0 + ( - 63 ) FROM tab2
----
-141
-142
-70
query I rowsort
SELECT DISTINCT - + col2 * 78 AS col0 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT ALL 69 FROM tab1, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + - cor0.col2 + - col0 * col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT + col2 DIV 16 AS col2 FROM tab1 AS cor0
----
3
3
6
skipif mysql # not compatible
query I rowsort label-9378
SELECT + col2 / 16 AS col2 FROM tab1 AS cor0
----
3
3
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9379
SELECT + CAST( NULL AS SIGNED ) * + col0 + + col0 * - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9379
SELECT + CAST ( NULL AS INTEGER ) * + col0 + + col0 * - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + col1 * col2 * col2 FROM tab0 AS cor0
----
611802
93621
96
query I rowsort
SELECT + 14 + 14 * - col0 FROM tab1 AS cor0
----
-1106
-28
-882
query I rowsort
SELECT ALL - col0 * col2 - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ( + col0 ) * col2 + + 70 * - col0 FROM tab2 AS cor0
----
-2528
-301
-3432
query I rowsort
SELECT ALL - - col2 - 79 FROM tab0 AS cor0
----
-46
-78
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - 93 col1 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT col0 + 53 + + col1 AS col2 FROM tab1
----
127
146
82
query I rowsort
SELECT DISTINCT col0 * + ( - 5 ) AS col2 FROM tab0
----
-120
-175
-445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9388
SELECT - col0 * CAST( NULL AS SIGNED ) * col2 + col1 * - col1 - + ( - col2 ) * 59 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9388
SELECT - col0 * CAST ( NULL AS INTEGER ) * col2 + col1 * - col1 - + ( - col2 ) * 59 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - tab0.col2 * - 93 AS col1 FROM tab0
----
190
3155
7717
query I rowsort
SELECT - tab0.col1 * - 59 * + col1 AS col0 FROM tab0
----
436364
488579
555131
query I rowsort
SELECT DISTINCT col0 + ( - col0 ) - + col2 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - col0 col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col0 * + col1 + col0 AS col2 FROM tab0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT - col0 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9394
SELECT - col0 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT - col0 + - col1 * - tab2.col0 AS col1 FROM tab2
----
1264
210
4524
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col1 + - col1 <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9397
SELECT DISTINCT col0 * - col1 + col1 DIV + col2 AS col2 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT col0 * - col1 + col1 / + col2 AS col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9398
SELECT col2 * col0 - + col1 * + col0 DIV col0 FROM tab0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-9398
SELECT col2 * col0 - + col1 * + col0 / col0 FROM tab0
----
-62
706
7207
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * col1 * + col2 NOT IN ( col1 + col2 * tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NULL <> NULL
----
query I rowsort
SELECT - col0 + col1 FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN tab2.col2 * + col1 + - col1 AND NULL
----
query I rowsort
SELECT - cor0.col1 * col1 * col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----
query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NULL ) <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT + col1 + col2 DIV col2 AS col2 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9405
SELECT + col1 + col2 / col2 AS col2 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT + col0 DIV + tab2.col1 + tab2.col0 * col0 AS col0 FROM tab2
----
49
6085
6245
skipif mysql # not compatible
query I rowsort label-9406
SELECT + col0 / + tab2.col1 + tab2.col0 * col0 AS col0 FROM tab2
----
49
6085
6245
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col1 )
----
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 * + col0 + col1 * - col0 * + col1 FROM tab2 AS cor0
----
-21488
-266916
-6510
query I rowsort
SELECT ALL col2 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - cor0.col0 - - col1 * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT + col0 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 * + col1 + col0 AS col2 FROM tab0 cor0
----
177528
329350
737098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 - col0 col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT - - ( + cor0.col1 ) * 25 DIV - col0 FROM tab2 AS cor0
----
-110
-18
-5
skipif mysql # not compatible
query I rowsort label-9416
SELECT - - ( + cor0.col1 ) * 25 / - col0 FROM tab2 AS cor0
----
-110
-18
-5
query I rowsort
SELECT - col2 * + cor0.col2 * + cor0.col0 AS col2 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT + + cor0.col0 - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - 86 - + col2 AS col1 FROM tab2 AS cor0
----
-629
-6734
-6832
query I rowsort
SELECT - - cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col0 * - 95 FROM tab2 AS cor0
----
-665
-7410
-7505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT - cor0.col0 - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-9422
SELECT - cor0.col0 - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + col1 * 72 * - col0 AS col1 FROM tab1 AS cor0
----
-46080
-5616
-74880
onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT DISTINCT + col0 DIV 50 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + col0 / 50 AS col1 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 * 67 AS col0 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col1 - tab0.col0 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT - tab2.col1 DIV + tab2.col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9429
SELECT - tab2.col1 / + tab2.col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 + + col2 * - col1 * + col1 AS col2 FROM tab2
----
-10944
-25920
-90480
query I rowsort
SELECT DISTINCT col0 + - col2 * + col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col0 * + col1 - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT + col2 - + col1 * col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2 WHERE NULL IN ( - col2 * + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - col2 * + tab0.col1 + tab0.col0 + col0 col1 FROM tab0
----
-27
-611706
-93606
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN ( - col2 ) AND NULL
----
64
10
57
query I rowsort
SELECT ALL tab0.col1 / tab0.col2 + + col1 * - col2 + col0 AS col2 FROM tab0 WHERE NOT NULL <= + col1 + + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT - tab1.col0 * - col2 + tab1.col1 DIV + tab1.col2 AS col2 FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9438
SELECT - tab1.col0 * - col2 + tab1.col1 / + tab1.col2 AS col2 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col2 - + tab0.col2 )
----
query I rowsort
SELECT col2 * col1 * col2 + + tab0.col1 FROM tab0
----
194
611975
93740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + col2 * + col2 col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT tab1.col0 + + col1 * col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT col1 + - col0 DIV col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9444
SELECT col1 + - col0 / col1 AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 + col0 * col1 col2 FROM tab2
----
1305
190
4576
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to ca91d1f523a87017f672304548e91a77
query I rowsort
SELECT 13 + + cor0.col0 FROM tab2 cor0
----
20
91
92
query I rowsort
SELECT DISTINCT col0 * - tab2.col0 + + col0 * + col1 FROM tab2
----
-1482
-4898
168
query I rowsort
SELECT ALL col2 + - 9 * col0 AS col0 FROM tab0
----
-183
-314
-719
query I rowsort
SELECT ALL + + col0 * + 83 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL + col2 + - 78 FROM tab2
----
-40
-51
-52
query I rowsort
SELECT col1 * + tab0.col0 * + col2 AS col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT col1 + 89 DIV + col1 + - col0 FROM tab0
----
2
62
63
skipif mysql # not compatible
query I rowsort label-9454
SELECT col1 + 89 / + col1 + - col0 FROM tab0
----
2
62
63
query I rowsort
SELECT + col2 * tab2.col2 + 65 AS col2 FROM tab2
----
1509
741
794
query I rowsort
SELECT - 8 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT ALL - col1 + - cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - col1 + - cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT DISTINCT col1 * 84 AS col0 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT col1 + 23 * col0 FROM tab2 AS cor0
----
1834
1853
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * - col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 3 + col0 AS col2 FROM tab1 AS cor0
----
6
67
83
query I rowsort
SELECT + + col2 * + 60 AS col0 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT ALL - 11 + - col1 AS col0 FROM tab2 AS cor0
----
-28
-42
-70
query I rowsort
SELECT DISTINCT - + col0 - + cor0.col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
query I rowsort
SELECT + col0 + 1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + cor0.col2 AS INTEGER ) * cor0.col1 + - CAST ( - col0 AS REAL ) * + col0 AS col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT DISTINCT + - cor0.col1 * 64 + + col1 * - ( col0 + col0 ) FROM tab1 AS cor0
----
-1820
-1920
-2912
onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT ALL + + col2 + 59 DIV + col0 FROM tab0 AS cor0
----
2
35
82
skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL + + col2 + 59 / + col0 FROM tab0 AS cor0
----
2
35
82
query I rowsort
SELECT col1 + - 27 AS col1 FROM tab0
----
59
64
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 30 col0 FROM tab2
----
108
109
37
query I rowsort
SELECT - col0 * tab0.col0 + + 47 * - col1 FROM tab0
----
-12198
-4618
-5784
query I rowsort
SELECT + col2 - + 87 * col1 AS col2 FROM tab0
----
-7449
-7835
-8438
query I rowsort
SELECT ALL - col0 + 84 * col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT DISTINCT + - 11 * - cor0.col1 - col2 * - col1 FROM tab2 AS cor0
----
1178
2183
833
query I rowsort
SELECT col0 * 5 + + col1 * col2 FROM tab1 AS cor0
----
1419
1648
890
onlyif mysql # use DIV operator for integer division
query I rowsort label-9476
SELECT + 96 DIV + cor0.col1 + - col0 * 85 AS col2 FROM tab1 cor0
----
-252
-5431
-6793
skipif mysql # not compatible
query I rowsort label-9476
SELECT + 96 / + cor0.col1 + - col0 * 85 AS col2 FROM tab1 cor0
----
-252
-5431
-6793
query I rowsort
SELECT ALL + - 29 AS col1 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT - - 18 + + col1 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 39 + col0 FROM tab1 AS cor0
----
103
119
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9481
SELECT ALL 1 * col0 * CAST( + 18 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1152
1440
54
skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL 1 * col0 * CAST ( + 18 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT DISTINCT 58 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT ALL - - 43 * + col2 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) * 71 FROM tab0 AS cor0
----
2343
5822
71
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 + - 99 AS col1 FROM tab1 AS cor0
----
-99
-99
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9487
SELECT - - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9487
SELECT - - col1 / - col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL + col2 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9489
SELECT cor0.col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 77 * col1 + cor0.col2 * col0 FROM tab2 cor0
----
2576
4311
6571
query I rowsort
SELECT ALL - 14 + 48 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL - col2 * 35 + - col0 - + col1 * - ( - col2 * + col2 + col1 ) AS col0 FROM tab2 AS cor0
----
-22590
-25668
-37391
query I rowsort
SELECT ALL - col1 * - col2 - col0 FROM tab0 cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col0 col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT + - col0 + + col0 + - col2 DIV col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9495
SELECT + - col0 + + col0 + - col2 / col1 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 75 col2 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT ALL + col1 * - ( col0 ) - - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - + cor0.col0 + 70 * + col1 AS col1 FROM tab0 AS cor0
----
5996
6281
6755
query I rowsort
SELECT - + col2 * col1 + cor0.col2 * col0 * 79 - + ( col0 ) FROM tab2 AS cor0
----
14087
158600
236433
query I rowsort
SELECT col1 * + col2 + 56 AS col2 FROM tab1
----
1304
1460
626
query I rowsort
SELECT DISTINCT - 61 - + 60 FROM tab0, tab1 AS cor0
----
-121
query I rowsort
SELECT DISTINCT + + 5 * + cor1.col1 * cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
2850
6240
7020
query I rowsort
SELECT ALL + + col1 * - col2 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT cor0.col1 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col2 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + col2 + + col2 * - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1327
-572
-695
query I rowsort
SELECT DISTINCT - - col2 + col1 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + col1 + + ( col1 ) + - cor0.col2 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT col2 * + 64 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT + col2 * col1 + + cor0.col1 AS col0 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT ALL + 34 * + col2 AS col1 FROM tab2
----
1292
884
918
query I rowsort
SELECT - cor0.col1 * - 76 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT col2 * col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT + CAST( NULL AS SIGNED ) + - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9514
SELECT + CAST ( NULL AS INTEGER ) + - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 51 ) + - col2 FROM tab0 AS cor0
----
-133
-52
-84
query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
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-9518
SELECT DISTINCT cor0.col2 DIV - col1 + col2 * 59 FROM tab0 AS cor0
----
1947
4838
59
skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT cor0.col2 / - col1 + col2 * 59 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT - 46 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-39
32
33
query I rowsort
SELECT ( 35 + col0 ) FROM tab0
----
124
59
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT col0 * + cor0.col2 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9521
SELECT col0 * + cor0.col2 / cor0.col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( + col2 ) + + col2 * ( - cor0.col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + col1 * col0 * + col1 FROM tab2 AS cor0
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col1 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - cor0.col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - col0 + - col1 * - col2 AS col1 FROM tab2
----
1456
567
830
query I rowsort
SELECT - 33 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
onlyif mysql # use DIV operator for integer division
query I rowsort label-9530
SELECT + - col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9530
SELECT + - col2 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9531
SELECT + col0 DIV col1 + + cor0.col1 + - col0 FROM tab1 cor0
----
-48
-61
23
skipif mysql # not compatible
query I rowsort label-9531
SELECT + col0 / col1 + + cor0.col1 + - col0 FROM tab1 cor0
----
-48
-61
23
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT DISTINCT col0 * - col1 * - 16 FROM tab2
----
21488
3472
73632
query I rowsort
SELECT + col0 + col2 * col1 * 46 AS col1 FROM tab2 AS cor0
----
29795
38509
70642
query I rowsort
SELECT + tab1.col2 + 51 FROM tab1, tab0, tab2 cor0
----
27 values hashing to db6cbbee96b881aa41829d0e085fb27e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT DISTINCT - col2 DIV ( col1 ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - col2 / ( col1 ) AS col2 FROM tab0
----
0
query I rowsort
SELECT ALL - cor0.col0 + - 11 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 37d3dbffb0c38084eefbef29dee8f7f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT + 51 DIV + 27 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9538
SELECT + 51 / + 27 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9539
SELECT - + CAST( + col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-9539
SELECT - + CAST ( + col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - + 1 * - col0 FROM tab1 AS cor0
----
3
64
80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9542
SELECT ALL CAST( 89 AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL CAST ( 89 AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT col0 + 23 FROM tab0
----
112
47
58
query I rowsort
SELECT ALL 3 * col0 AS col0 FROM tab1
----
192
240
9
query I rowsort
SELECT ALL + ( 12 ) FROM tab2
----
12
12
12
query I rowsort
SELECT - - col0 * col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT ( + 66 ) + col2 * ( ( col0 ) * + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
233538
552
614466
query I rowsort
SELECT - 82 AS col0 FROM tab2
----
-82
-82
-82
query I rowsort
SELECT ALL - 25 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT 80 + + col2 * 1 AS col0 FROM tab0 AS cor0
----
113
162
81
query I rowsort
SELECT + col0 * - col1 * + 9 - - col2 FROM tab2 AS cor0
----
-12049
-1926
-41392
query I rowsort
SELECT DISTINCT + ( col1 ) - col2 * + col0 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col2 * col1 - + col2 * 9 AS col2 FROM tab2
----
1300
304
594
query I rowsort
SELECT ALL 66 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9556
SELECT col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9556
SELECT col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col0 + + cor0.col2 * col1 * - col2 AS col1 FROM tab0 AS cor0
----
-132
-611973
-93678
query I rowsort
SELECT ALL - col0 * col1 - ( - col2 ) * - col1 FROM tab0 AS cor0
----
-15561
-3492
-4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT ALL + col1 + + cor0.col1 + + 73 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
118
34
72
skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + col1 + + cor0.col1 + + 73 / cor0.col0 AS col1 FROM tab2 AS cor0
----
118
34
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT col2 + cor0.col0 * col1 DIV - col2 AS col0 FROM tab0 cor0
----
-16
-29
-3394
skipif mysql # not compatible
query I rowsort label-9560
SELECT col2 + cor0.col0 * col1 / - col2 AS col0 FROM tab0 cor0
----
-16
-29
-3394
query I rowsort
SELECT ALL - col0 + - 96 * - col0 - - col0 FROM tab0 AS cor0
----
2304
3360
8544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9562
SELECT - cor0.col1 + - CAST( - col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
156
650
90
skipif mysql # not compatible
query I rowsort label-9562
SELECT - cor0.col1 + - CAST ( - col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col2 + 14 * col2 AS col1 FROM tab0 AS cor0
----
-82
1139
409
query I rowsort
SELECT DISTINCT + col1 + - ( 38 ) AS col2 FROM tab2 AS cor0
----
-21
-7
21
query I rowsort
SELECT + ( col2 ) * + col2 + - col1 - col1 AS col1 FROM tab1
----
2864
3229
9190
query I rowsort
SELECT - ( - col1 ) * tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL ( col2 ) - col1 * + col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT ALL col2 DIV + col1 - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL col2 / + col1 - col1 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + col0 col2 FROM tab2 AS cor0
----
609
6786
6873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col0 FROM tab1 AS cor0
----
60
60
60
query I rowsort
SELECT ALL - 58 AS col0 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) + + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT - col2 * 74 + - tab1.col1 AS col1 FROM tab1
----
-4022
-4228
-7117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * col2 + - col1 col2 FROM tab2
----
2099
2210
3137
query I rowsort
SELECT DISTINCT col1 * cor0.col0 * col0 + col0 AS col2 FROM tab0 cor0
----
118860
49560
720900
query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab2 cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + cor0.col1 col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col1 + + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT ALL + col1 DIV col2 + + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + col1 / col2 + + col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * - col2 + + 46 col0 FROM tab0 AS cor0
----
-13
-1901
-4792
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col0 * col0 + + col1 * + col0 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT DISTINCT - - 68 * + col1 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT ALL + col1 * - col0 - ( col1 ) * - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + + 93 AS col0 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT col1 * col0 - 60 AS col1 FROM tab0 AS cor0
----
2004
3335
8039
onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT - col0 * CAST( + tab0.col1 AS SIGNED ) DIV col2 + + ( - col1 + - col0 ) AS col1 FROM tab0
----
-172
-278
-3527
skipif mysql # not compatible
query I rowsort label-9590
SELECT - col0 * CAST ( + tab0.col1 AS INTEGER ) / col2 + + ( - col1 + - col0 ) AS col1 FROM tab0
----
-172
-278
-3527
query I rowsort
SELECT DISTINCT + + col0 + 87 FROM tab2 cor0
----
165
166
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9592
SELECT + + col1 + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-9592
SELECT + + col1 + col0 / + cor0.col2 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT ALL - + cor0.col0 + - col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col1 * - 75 * - 47 FROM tab1 AS cor0
----
35250
45825
91650
query I rowsort
SELECT ALL + 7 + - col1 * + col2 FROM tab1 cor0
----
-1241
-1397
-563
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + 17 + + 55 FROM tab2 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + col0 + + col0 * cor0.col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - ( ( col1 ) ) * - col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9600
SELECT ALL + CAST( - col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + CAST ( - col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT DISTINCT - + CAST( ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - + CAST ( ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT + - col1 * col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( 89 ) * cor0.col1 FROM tab2 AS cor0
----
1513
2759
5251
query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col0 + + 6 * - tab2.col0 * + col0 FROM tab2
----
-287
-36426
-37367
query I rowsort
SELECT 91 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9609
SELECT ALL + + CAST( NULL AS DECIMAL ) * + cor0.col0 / - cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL + + CAST ( NULL AS REAL ) * + cor0.col0 / - cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 21 * - 28 * + col0 FROM tab1 AS cor0
----
-1764
-37632
-47040
query I rowsort
SELECT - 84 * col2 AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84
query I rowsort
SELECT + + col0 * - ( col0 ) + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL col2 + col1 * 51 AS col0 FROM tab0 AS cor0
----
4419
4723
4948
query I rowsort
SELECT + col2 * col2 + - col2 * + col1 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT ALL 84 * col0 + - 4 FROM tab0
----
2012
2936
7472
query I rowsort
SELECT 36 - + col1 AS col1 FROM tab0
----
-50
-55
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT ALL + tab1.col0 DIV - col1 AS col0 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + tab1.col0 / - col1 AS col0 FROM tab1
----
-6
-6
0
query I rowsort
SELECT + col2 * - ( ( col0 ) ) * - col1 + col0 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + - col2 * col0 + col0 * cor0.col0 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1191
7347
873
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT ALL col2 DIV + col0 + - 92 AS col1 FROM tab1 AS cor0
----
-74
-91
-92
skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL col2 / + col0 + - 92 AS col1 FROM tab1 AS cor0
----
-74
-91
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( col0 + - cor0.col0 ) * + ( col0 + col2 ) col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col1 + - col2 * + col2 + + col0 * col1 FROM tab0 AS cor0
----
-1863
-6087
3297
query I rowsort
SELECT col1 * + 83 AS col0 FROM tab0
----
7138
7553
8051
query I rowsort
SELECT ALL - + cor0.col1 + - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
2
37
70
query I rowsort
SELECT col0 * - col0 + col0 * - col0 FROM tab1 AS cor0
----
-12800
-18
-8192
query I rowsort
SELECT - 39 * + cor0.col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
query I rowsort
SELECT 76 * + col1 + 58 * col1 FROM tab2 AS cor0
----
2278
4154
7906
query I rowsort
SELECT - - col1 * col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 66 + col0 * - 84 FROM tab2 AS cor0
----
-654
-6618
-6702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
-10
-13
-26
query I rowsort
SELECT + + col2 * - cor0.col0 * + 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 * 67 FROM tab0 AS cor0
----
5676
6006
6402
query I rowsort
SELECT ALL + - cor0.col1 + ( cor1.col1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d7e632a100c1d4cc2dc87e3e95c20f13
query I rowsort
SELECT + col1 * col1 + + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + col2 * + ( - col2 ) AS col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + + col2 * col1 + col1 * - cor0.col1 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT - 92 * col1 * + col1 FROM tab1 cor0
----
-15548
-62192
-9200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * col1 col2 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT col2 + + col1 * + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT - + col0 + cor0.col0 * + ( col2 ) FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ( 3 ) * col0 AS col2 FROM tab1
----
192
240
9
query I rowsort
SELECT - 2 * + col2 AS col1 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT ALL 8 FROM tab2, tab2 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT ALL - col2 DIV 88 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - col2 / 88 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( col2 ) * col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9646
SELECT col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 62 * + col2 * - col2 FROM tab2 AS cor0
----
-41912
-45198
-89528
query I rowsort
SELECT - - cor0.col1 * col1 + 24 * + cor0.col2 FROM tab0 AS cor0
----
10249
8188
9433
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT DISTINCT + ( + col2 ) DIV col1 + - col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51032
-5859
skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + ( + col2 ) / col1 + - col1 * + col2 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51032
-5859
query I rowsort
SELECT DISTINCT 84 * col1 FROM tab0
----
7224
7644
8148
query I rowsort
SELECT DISTINCT col1 * col1 + col1 * + 40 FROM tab1
----
1716
500
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT DISTINCT col1 * cor0.col2 DIV 28 FROM tab0 AS cor0
----
101
266
3
skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT col1 * cor0.col2 / 28 FROM tab0 AS cor0
----
101
266
3
query I rowsort
SELECT ALL + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab0
----
54
query I rowsort
SELECT - - 38 * + col0 + col0 FROM tab1 AS cor0
----
117
2496
3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9656
SELECT DISTINCT + col0 * tab1.col0 + - col1 DIV col2 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + col0 * tab1.col0 + - col1 / col2 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9657
SELECT + CAST( NULL AS SIGNED ) + - 65 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9657
SELECT + CAST ( NULL AS INTEGER ) + - 65 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + col0 * 51 * col0 FROM tab2 AS cor0
----
2499
310284
318291
query I rowsort
SELECT + 43 + cor0.col2 * col1 * + col1 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
244025
678994
9355
query I rowsort
SELECT - - cor0.col1 * + cor0.col1 * - col2 + col2 * - 35 - col1 FROM tab1 AS cor0
----
-19597
-38420
-7705
query I rowsort
SELECT DISTINCT + 32 * - col0 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT DISTINCT col1 * col0 * col0 + col1 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT 23 * - ( col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-166
-219
-595
query I rowsort
SELECT ALL - - col1 * 87 AS col2 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1, tab2 AS cor0
----
41
query I rowsort
SELECT - col0 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + ( cor0.col0 ) + + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - 86 AS col1 FROM tab1 cor0
----
-86
-86
-86
query I rowsort
SELECT 10 - col2 AS col2 FROM tab0 AS cor0
----
-23
-72
9
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 33 FROM tab2 cor0
----
33
33
33
query I rowsort
SELECT ALL - ( 28 ) FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT - - ( + col0 ) * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col2 * - ( - col2 ) - + col2 * col2 * col2 FROM tab1
----
-154548
-181944
-875520
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + col0 + + col1 * col1 * ( - col0 ) FROM tab2
----
-22752
-271440
-6720
query I rowsort
SELECT DISTINCT 23 * tab0.col2 * col1 FROM tab0
----
171626
2231
65274
query I rowsort
SELECT DISTINCT 17 - col0 FROM tab0
----
-18
-7
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9680
SELECT ( ( col0 ) ) DIV 29 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-9680
SELECT ( ( col0 ) ) / 29 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT + 77 * - col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL - cor0.col1 + + 4 FROM tab1 AS cor0
----
-22
-6
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9683
SELECT DISTINCT + CAST( 21 AS SIGNED ) AS col2 FROM tab1
----
21
skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + CAST ( 21 AS INTEGER ) AS col2 FROM tab1
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9684
SELECT + col1 * col2 - CAST( tab1.col1 * + col2 AS SIGNED ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9684
SELECT + col1 * col2 - CAST ( tab1.col1 * + col2 AS INTEGER ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 91af1085835c3ef572d2dbd91480f658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9686
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9687
SELECT DISTINCT - + col0 * CAST( NULL AS DECIMAL ) + cor0.col2 * cor0.col0 * 77 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - + col0 * CAST ( NULL AS REAL ) + cor0.col2 * cor0.col0 * 77 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 * col2 + 7 * - col1 * col2 FROM tab1
----
-1056
-342
-9666
query I rowsort
SELECT ALL + col0 + + col2 * col1 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + ( + tab1.col0 ) + - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
58
query I rowsort
SELECT ALL - col1 * - 41 FROM tab2 cor0
----
1271
2419
697
query I rowsort
SELECT + col2 + col0 + - 4 * + col2 AS col2 FROM tab1 AS cor0
----
-107
-159
-208
query I rowsort
SELECT + col1 * col1 + col2 AS col0 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT DISTINCT + col2 DIV col0 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + col2 / col0 AS col2 FROM tab0
----
0
1
query I rowsort
SELECT ALL + col0 + cor0.col1 * 23 AS col0 FROM tab0 AS cor0
----
2002
2182
2266
query I rowsort
SELECT ALL + - col0 + col2 + 45 FROM tab2 AS cor0
----
-7
4
65
query I rowsort
SELECT ALL - col2 + 93 * + col2 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT DISTINCT + col1 + 26 * col2 AS col1 FROM tab2 AS cor0
----
1005
733
735
query I rowsort
SELECT col2 * + 55 * + col2 + - col0 FROM tab1 AS cor0
----
160377
178631
506800
query I rowsort
SELECT DISTINCT + - col2 * - col2 * 26 + + col2 * + 63 * 73 FROM tab1 AS cor0
----
324162
346617
681120
query I rowsort
SELECT col2 * - 8 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT ALL col0 * + ( - col2 ) + cor0.col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col2 * + 35 AS col2 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT ALL - 71 * - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4d1111acc6df6dc2dcb69f3857e0ac2d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9707
SELECT ALL CAST( NULL AS DECIMAL ) - 23 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL CAST ( NULL AS REAL ) - 23 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 * ( - 38 ) FROM tab0 AS cor0
----
-1254
-3116
-38
query I rowsort
SELECT - col2 * + 20 AS col1 FROM tab0
----
-1640
-20
-660
query I rowsort
SELECT ALL - col1 * col2 - col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT 51 * + cor0.col2 FROM tab1 AS cor0
----
2754
2907
4896
onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT + 69 DIV + 15 FROM tab0 AS cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-9713
SELECT + 69 / + 15 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT ALL col2 * + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - 10 + - 80 FROM tab0 cor0
----
-90
-90
-90
query I rowsort
SELECT ALL + 18 * col1 + 40 FROM tab1 AS cor0
----
220
274
508
query I rowsort
SELECT DISTINCT - col1 * col1 - 53 AS col1 FROM tab0 cor0
----
-7449
-8334
-9462
onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT + col2 + - col0 * ( - col0 ) * - cor0.col2 - 39 DIV col1 FROM tab2 AS cor0
----
-1297
-158158
-237122
skipif mysql # not compatible
query I rowsort label-9718
SELECT + col2 + - col0 * ( - col0 ) * - cor0.col2 - 39 / col1 FROM tab2 AS cor0
----
-1297
-158158
-237122
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT DISTINCT + 76 DIV col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + 76 / col1 FROM tab0 cor0
----
0
query I rowsort
SELECT + + cor0.col1 + col1 * + 27 + col1 FROM tab2 AS cor0
----
1711
493
899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT col1 DIV - col0 + - cor0.col1 col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9722
SELECT col1 / - col0 + - cor0.col1 col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT + - col0 * - col2 - 14 AS col0 FROM tab1 cor0
----
148
3634
7666
query I rowsort
SELECT + - col1 - + col2 * + 33 AS col0 FROM tab0 cor0
----
-1175
-130
-2797
query I rowsort
SELECT - cor0.col2 * col0 * + col1 + col1 + + col0 FROM tab1 cor0
----
-36406
-4183
-99747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + + col0 * - col1 + + col1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1043
-975
751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col2 * col2 * col0 AS col1 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( - col2 + col1 ) AND NULL NOT IN ( + col0 )
----
query I rowsort
SELECT - col2 * tab1.col1 - + col2 FROM tab1
----
-1344
-1458
-627
query III rowsort
SELECT * FROM tab1 WHERE col2 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT + + col0 + - col0 DIV + col1 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-9733
SELECT + + col0 + - col0 / + col1 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT DISTINCT - col0 + col1 + - col0 AS col1 FROM tab1
----
-118
-147
20
query I rowsort
SELECT DISTINCT col2 + - col1 + tab0.col1 FROM tab0
----
1
33
82
query I rowsort
SELECT tab0.col2 + col2 * col1 * + col2 AS col2 FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT col0 + col1 - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT - col2 + - col2 * col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
-675
2318
468
query I rowsort
SELECT - col0 + + tab2.col2 * tab2.col2 AS col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT + col1 + cor0.col2 * + cor0.col2 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT - + col0 * cor0.col1 - + col0 * - cor0.col0 FROM tab0 cor0
----
-1488
-178
-2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT DISTINCT tab1.col1 DIV + col1 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT tab1.col1 / + col1 AS col2 FROM tab1
----
1
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( col0 + - col1 * col1 )
----
query I rowsort
SELECT col2 * + col2 * col0 AS col1 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT - tab2.col2 + - col1 * + col1 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT ALL col1 + - col0 + - col0 * - col2 FROM tab2
----
2009
213
2940
query I rowsort
SELECT ALL - col2 + + col0 + + tab1.col1 AS col0 FROM tab1
----
-25
-3
17
query I rowsort
SELECT - tab2.col0 * col2 * col1 + col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT col2 * + col2 + col1 AS col2 FROM tab0 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT DISTINCT col1 - + col0 * + tab0.col2 AS col1 FROM tab0 WHERE col1 * - col1 - - col2 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT + col0 + col0 + col2 FROM tab1
----
185
256
60
query I rowsort
SELECT ALL + col1 + - col1 * + col0 AS col2 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab0.col1 col1 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * col0 - - col0 * tab1.col2 FROM tab1
----
14080
171
7744
query I rowsort
SELECT DISTINCT col2 * - col2 + col1 + col1 * + col1 AS col2 FROM tab0
----
1648
6393
9505
query I rowsort
SELECT col1 * - col1 * - tab0.col2 AS col1 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT ALL - col0 DIV col0 + + col2 + col0 * + tab2.col2 * + col0 AS col0 FROM tab2
----
1349
158209
237195
skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - col0 / col0 + + col2 + col0 * + tab2.col2 * + col0 AS col0 FROM tab2
----
1349
158209
237195
query I rowsort
SELECT - col0 * + col1 * col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col2 + + col2 + col0 * col2 AS col2 FROM tab0
----
37
7462
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT + 2 * - col2 - CAST( - 57 AS SIGNED ) * - col0 DIV + col0 FROM tab2 AS cor0
----
-109
-111
-133
skipif mysql # not compatible
query I rowsort label-9761
SELECT + 2 * - col2 - CAST ( - 57 AS INTEGER ) * - col0 / + col0 FROM tab2 AS cor0
----
-109
-111
-133
query I rowsort
SELECT DISTINCT - col0 * - col1 * - ( col1 ) + + col2 * + 86 + - col1 * - col1 AS col0 FROM tab0 cor0
----
-167270
-319820
-721676
query I rowsort
SELECT ALL + - 74 FROM tab0 AS cor0
----
-74
-74
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT tab1.col1 DIV - col2 + + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9764
SELECT tab1.col1 / - col2 + + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - col2 * col2 + + col0 * - col2 AS col2 FROM tab0
----
-14022
-1881
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * col0 + + col2 col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT col1 * col1 * - col2 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9768
SELECT ALL col1 / - col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL col1 / - col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col1
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( col1 * + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + + col0 col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT col2 + + col1 * tab1.col2 FROM tab1 WHERE + col2 = NULL
----
query I rowsort
SELECT DISTINCT col1 - + col2 * - col0 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN tab2.col1 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9776
SELECT + tab2.col2 DIV - tab2.col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9776
SELECT + tab2.col2 / - tab2.col0 FROM tab2
----
-3
0
0
query I rowsort
SELECT ALL - col0 + - col0 * - col1 * col2 AS col1 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT DISTINCT col1 - - tab2.col0 * col0 AS col0 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT tab1.col2 + col0 + - col2 DIV + col1 AS col2 FROM tab1
----
116
169
55
skipif mysql # not compatible
query I rowsort label-9779
SELECT tab1.col2 + col0 + - col2 / + col1 AS col2 FROM tab1
----
116
169
55
query I rowsort
SELECT ALL + + 97 * + cor0.col1 FROM tab0 cor0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT + ( - col1 ) - + 21 FROM tab0 AS cor0
----
-107
-112
-118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9782
SELECT + + col1 + - col2 * - CAST( + 43 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
140
1505
3617
skipif mysql # not compatible
query I rowsort label-9782
SELECT + + col1 + - col2 * - CAST ( + 43 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
140
1505
3617
onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT DISTINCT + 91 + + col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
91
92
95
skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + 91 + + col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
91
92
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col1 FROM tab0 AS cor0
----
13
query I rowsort
SELECT ALL - - 65 * + col1 FROM tab2 AS cor0
----
1105
2015
3835
query I rowsort
SELECT + col2 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 9 col0 FROM tab2 AS cor0
----
-234
-243
-342
query I rowsort
SELECT DISTINCT - col2 * - 99 * cor0.col2 - - col2 FROM tab2 AS cor0
----
142994
66950
72198
query I rowsort
SELECT col1 + - col0 * + 94 FROM tab2
----
-627
-7273
-7409
query I rowsort
SELECT ALL 83 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT ALL tab2.col2 * - col1 * - col2 AS col0 FROM tab2
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - cor0.col2 * 40 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT - + col0 * - col1 * + col1 - - col0 AS col0 FROM tab1 AS cor0
----
13600
2031
6464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col0 + col1 col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL ( col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9797
SELECT + CAST( col0 AS SIGNED ) * - col0 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1010
-6530
-9565
skipif mysql # not compatible
query I rowsort label-9797
SELECT + CAST ( col0 AS INTEGER ) * - col0 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-1010
-6530
-9565
query I rowsort
SELECT + + col0 + + 26 FROM tab0 AS cor0
----
115
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT - col1 + - col2 DIV - col2 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-9799
SELECT - col1 + - col2 / - col2 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT - col0 * + 94 + col2 * col0 AS col2 FROM tab1
----
-120
-2368
160
query I rowsort
SELECT col2 * tab1.col1 + - tab1.col1 * - tab1.col1 + - col2 AS col0 FROM tab1
----
1321
2026
613
query I rowsort
SELECT ALL tab2.col0 * + col2 - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col1 + tab0.col1 + - col2 FROM tab0
----
100
139
193
query I rowsort
SELECT 91 * - col0 * - tab0.col2 AS col2 FROM tab0
----
3185
664118
72072
query I rowsort
SELECT DISTINCT - + 82 * - col0 AS col2 FROM tab1 AS cor0
----
246
5248
6560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT DISTINCT ( - col0 ) * col2 + + ( - ( cor0.col1 ) ) DIV cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT ( - col0 ) * col2 + + ( - ( cor0.col1 ) ) / cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT - - col2 DIV col1 + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9807
SELECT - - col2 / col1 + col1 FROM tab1 AS cor0
----
15
20
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9808
SELECT ALL CAST( + col0 AS SIGNED ) * - col0 * col1 AS col1 FROM tab2 cor0
----
-106097
-1519
-358956
skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL CAST ( + col0 AS INTEGER ) * - col0 * col1 AS col1 FROM tab2 cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + 42 * cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1329
2504
752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - ( + col1 ) AS col1 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9812
SELECT ALL - CAST( NULL AS SIGNED ) * - 88 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - CAST ( NULL AS INTEGER ) * - 88 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - 30 AS col1 FROM tab2 AS cor0
----
-23
48
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT DISTINCT - - ( - col2 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - - ( - col2 ) / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT col0 * ( - col0 ) + col2 AS col0 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT + 58 + tab0.col1 AS col1 FROM tab0
----
144
149
155
query I rowsort
SELECT - - col1 + col0 * - 64 * + 24 FROM tab1 AS cor0
----
-122867
-4582
-98294
query I rowsort
SELECT 73 * col2 AS col1 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT - 47 * + col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-1548
1710
3279
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + col0 + - col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 41 + + cor0.col1 + - col1 FROM tab2 AS cor0
----
41
query I rowsort
SELECT - cor0.col0 + + cor0.col0 * - 56 FROM tab1 AS cor0
----
-171
-3648
-4560
query I rowsort
SELECT + + 10 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-70
7
query I rowsort
SELECT ALL col0 * cor0.col2 + 59 FROM tab2 AS cor0
----
2087
248
3061
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT ALL - col1 * CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab0
----
-244068
-679042
-9409
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9826
SELECT - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9826
SELECT - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - 82 FROM tab2 AS cor0
----
-2132
-2214
-3116
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT cor0.col2 * - 92 AS col1 FROM tab2 AS cor0
----
-2392
-2484
-3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT ALL col1 * + cor0.col1 + col1 DIV - col2 FROM tab0 AS cor0
----
7394
8280
9312
skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL col1 * + cor0.col1 + col1 / - col2 FROM tab0 AS cor0
----
7394
8280
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 * + col1 * col1 col2 FROM tab0 AS cor0
----
-635970
-753480
-912576
query I rowsort
SELECT + 74 * + col2 + - col2 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT ALL - 7 + cor0.col1 AS col1 FROM tab2 AS cor0
----
10
24
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9835
SELECT ALL col2 + col1 DIV col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL col2 + col1 / col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 + tab0.col0 * + col1 FROM tab0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT + CAST( cor0.col2 AS SIGNED ) * col2 - 11 DIV - col2 AS col1 FROM tab0 AS cor0
----
1089
12
6724
skipif mysql # not compatible
query I rowsort label-9837
SELECT + CAST ( cor0.col2 AS INTEGER ) * col2 - 11 / - col2 AS col1 FROM tab0 AS cor0
----
1089
12
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT - col2 DIV - 63 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9838
SELECT - col2 / - 63 AS col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + col0 + cor0.col2 - col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT + + col2 * 5 FROM tab2 AS cor0
----
130
135
190
onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT col2 * col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
104
18
8
skipif mysql # not compatible
query I rowsort label-9841
SELECT col2 * col2 / + col0 AS col2 FROM tab2 AS cor0
----
104
18
8
query I rowsort
SELECT - col0 * ( col2 ) + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + col0 + col0 * 59 AS col1 FROM tab1
----
180
3840
4800
query I rowsort
SELECT col0 + + cor0.col0 - 84 * - cor0.col2 FROM tab1 AS cor0
----
4542
4916
8224
query I rowsort
SELECT + col0 * + 91 + col0 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
10270
833
9204
query I rowsort
SELECT - cor0.col2 * 50 + + col1 FROM tab0 AS cor0
----
-1564
-4009
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT + col0 * 8 + - 24 DIV - col1 - + col0 FROM tab1 cor0
----
21
450
561
skipif mysql # not compatible
query I rowsort label-9848
SELECT + col0 * 8 + - 24 / - col1 - + col0 FROM tab1 cor0
----
21
450
561
query I rowsort
SELECT ALL + ( col1 ) * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9850
SELECT ALL tab0.col2 + col2 * + 41 - - tab0.col1 * - CAST( + col0 AS SIGNED ) FROM tab0
----
-3353
-4655
-678
skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL tab0.col2 + col2 * + 41 - - tab0.col1 * - CAST ( + col0 AS INTEGER ) FROM tab0
----
-3353
-4655
-678
query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ( + cor0.col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - cor0.col0 * 47 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to be7152a2d1de46dd6951a5aeaaa56a52
query I rowsort
SELECT col1 + - col0 * + tab2.col2 AS col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ALL 58 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT DISTINCT - 56 * col2 DIV col1 FROM tab2
----
-125
-24
-48
skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - 56 * col2 / col1 FROM tab2
----
-125
-24
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab1
----
52
52
52
query I rowsort
SELECT col2 * + col0 + 69 AS col1 FROM tab0 AS cor0
----
104
7367
861
query I rowsort
SELECT ( 85 ) FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + 35 * - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0be47d113262ddff34eb5a85968d4ced
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT + col2 DIV ( col2 ) + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9862
SELECT + col2 / ( col2 ) + col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - col0 + col1 col0 FROM tab2
----
-1288
-159
-4517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9864
SELECT ALL col0 + ( - 95 ) * + tab0.col0 + + CAST( NULL AS DECIMAL ) / - col0 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL col0 + ( - 95 ) * + tab0.col0 + + CAST ( NULL AS REAL ) / - col0 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + ( 53 ) FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT ALL col2 * - col2 - col1 * - cor0.col0 FROM tab0 AS cor0
----
1375
3394
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT ALL + - col1 * - col2 + + 98 DIV cor0.col0 FROM tab1 AS cor0
----
1249
1436
571
skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + - col1 * - col2 + + 98 / cor0.col0 FROM tab1 AS cor0
----
1249
1436
571
query I rowsort
SELECT ALL - col1 + col2 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
-194
-611975
-93740
query I rowsort
SELECT ALL tab0.col0 * col1 * col0 + + tab0.col2 FROM tab0
----
118826
49569
720893
query I rowsort
SELECT + ( 24 ) * col0 + - ( col0 + col0 ) FROM tab1
----
1408
1760
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 + col0 col2 FROM tab2
----
22
93
94
query I rowsort
SELECT ALL cor0.col0 * 51 * + cor0.col1 FROM tab2 AS cor0
----
11067
234702
68493
onlyif mysql # use DIV operator for integer division
query I rowsort label-9873
SELECT DISTINCT - col0 DIV - col0 col2 FROM tab2 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - col0 / - col0 col2 FROM tab2 cor0
----
1
query I rowsort
SELECT + 88 + col1 FROM tab0 cor0
----
174
179
185
query I rowsort
SELECT + ( cor0.col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 63 * - col2 AS col2 FROM tab2 AS cor0
----
-1638
-1701
-2394
query I rowsort
SELECT DISTINCT - 98 + col2 AS col2 FROM tab2 AS cor0
----
-60
-71
-72
query I rowsort
SELECT DISTINCT - + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col1 + col1 * - 40 + - col0 FROM tab2 AS cor0
----
-1216
-2379
-742
query I rowsort
SELECT ALL - 3 + col0 AS col1 FROM tab1 AS cor0
----
0
61
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col2 col1 FROM tab1 AS cor0
----
109
112
151
query I rowsort
SELECT ( - col2 + col1 ) AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - col2 * - col2 FROM tab0 AS cor0
----
-1557
-6307
-9408
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + CAST ( ( + col2 ) AS REAL ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col0 + + 22 * ( col2 ) FROM tab2
----
601
650
915
query I rowsort
SELECT DISTINCT + col1 * + 23 * col0 + tab0.col2 AS col1 FROM tab0
----
186359
47505
78086
query I rowsort
SELECT DISTINCT - - col2 * + ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 - - 47 AS col1 FROM tab1 AS cor0
----
57
60
73
query I rowsort
SELECT ALL - + col0 * - ( - 76 ) + col1 + col0 FROM tab2 AS cor0
----
-494
-5791
-5908
onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT DISTINCT - - col2 * - 54 - col0 DIV col2 FROM tab0 AS cor0
----
-1782
-4429
-89
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - - col2 * - 54 - col0 / col2 FROM tab0 AS cor0
----
-1782
-4429
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT + col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9891
SELECT + col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + - col2 * - 63 AS col2 FROM tab1 cor0
----
3399
3527
5968
query I rowsort
SELECT DISTINCT col2 * - col1 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + - col2 + + 67 FROM tab1 AS cor0
----
-29
10
13
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + 11 col1 FROM tab2
----
-16874
-7106
-9207
query I rowsort
SELECT ALL + col0 * - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT - cor0.col2 * 30 + - col2 + - 40 FROM tab2 AS cor0
----
-1218
-846
-877
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT - - col2 * - col2 + - col1 + col2 DIV 98 FROM tab2 AS cor0
----
-1461
-735
-760
skipif mysql # not compatible
query I rowsort label-9899
SELECT - - col2 * - col2 + - col1 + col2 / 98 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT 70 * 63 AS col2 FROM tab1
----
4410
4410
4410
query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * 35 + col2 AS col0 FROM tab1 cor0
----
1918
2042
3443
query I rowsort
SELECT ALL - ( - 73 ) FROM tab2 cor0
----
73
73
73
query I rowsort
SELECT ALL 52 * + col2 AS col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT DISTINCT - cor0.col0 + + 45 FROM tab1, tab0 cor0
----
-44
10
21
query I rowsort
SELECT - col0 * + col2 * + 35 AS col2 FROM tab1 AS cor0
----
-127680
-268800
-5670
query I rowsort
SELECT DISTINCT col1 * col0 + - 63 AS col2 FROM tab2 cor0
----
1280
154
4539
query I rowsort
SELECT ALL - 72 + col1 FROM tab1 cor0
----
-46
-59
-62
query I rowsort
SELECT DISTINCT - - cor0.col0 + + ( 74 ) FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT + col2 * col2 * - 28 + cor0.col0 FROM tab0 AS cor0
----
-188183
-30468
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT DISTINCT - col2 DIV + ( - 14 ) FROM tab1 AS cor0
----
3
4
6
skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - col2 / + ( - 14 ) FROM tab1 AS cor0
----
3
4
6
query I rowsort
SELECT + - cor0.col0 * 31 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-126976
-198400
-279
query I rowsort
SELECT 99 + tab0.col1 + col2 FROM tab0
----
197
218
272
query I rowsort
SELECT DISTINCT - 25 - col1 FROM tab1
----
-35
-38
-51
query I rowsort
SELECT DISTINCT + 91 + - col2 AS col1 FROM tab0
----
58
9
90
query I rowsort
SELECT 25 * col1 * tab0.col0 + col1 * - col0 * col1 AS col1 FROM tab0
----
-125904
-244440
-534534
query I rowsort
SELECT + 92 * - tab2.col2 FROM tab2
----
-2392
-2484
-3496
query I rowsort
SELECT + 87 * col2 AS col2 FROM tab0
----
2871
7134
87
query I rowsort
SELECT 84 * col0 - col1 FROM tab1
----
226
5366
6707
onlyif mysql # use DIV operator for integer division
query I rowsort label-9919
SELECT ALL tab1.col1 DIV col2 - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL tab1.col1 / col2 - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - col1 * col2 - + ( - col0 ) AS col2 FROM tab0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( col1 ) * col1 col1 FROM tab2 cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT ALL - cor0.col1 DIV 82 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - cor0.col1 / 82 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT - + col2 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT + - col1 * + 67 + 46 FROM tab0 cor0
----
-5716
-6051
-6453
query I rowsort
SELECT col1 + 57 FROM tab0
----
143
148
154
onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT + + ( - col0 ) - col0 DIV 90 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9926
SELECT + + ( - col0 ) - col0 / 90 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 + - col1 + + col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col2 + - 25 AS col1 FROM tab1 AS cor0
----
-121
-79
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + ( + 30 * col2 ) col2 FROM tab2 AS cor0
----
1181
790
832
query I rowsort
SELECT + ( + 62 ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL 56 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL - - 36 + + col0 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT ALL + - cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT - + 95 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-9934
SELECT - + 95 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT ALL col0 + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-20
118
147
query I rowsort
SELECT ALL + col0 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col2 + + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col1 + col1 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT - 44 * col0 + + col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT + col1 * col2 + 41 FROM tab2 AS cor0
----
1575
687
878
query I rowsort
SELECT + ( col2 ) * 36 AS col0 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT DISTINCT col1 + col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + - 56 * col2 AS col0 FROM tab0 AS cor0
----
-1848
-4592
-56
query I rowsort
SELECT ALL - - ( col0 ) + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT 27 FROM tab2 cor0
----
27
27
27
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL cor0.col0 * col0 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-140
3239
4056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT col1 * - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL + col0 + - col2 * + 48 AS col0 FROM tab1 AS cor0
----
-2589
-2672
-4528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - ( col2 ) ) col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 * + col1 * - 12 + col0 AS col0 FROM tab0 AS cor0
----
24792
40775
97277
query I rowsort
SELECT ALL - col1 * 48 AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT + col1 + - 52 * col2 AS col0 FROM tab0 AS cor0
----
-1630
-4173
45
query I rowsort
SELECT DISTINCT + 60 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1308
1464
630
query I rowsort
SELECT - 12 * + 77 AS col0 FROM tab2 cor0
----
-924
-924
-924
query I rowsort
SELECT DISTINCT 18 + - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1516
-628
-819
query I rowsort
SELECT + col2 * - col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - + 34 AS col2 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + 77 * + 44 AS col0 FROM tab2 AS cor0
----
3388
query I rowsort
SELECT ALL - + col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL + 96 + - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ab55bb68a0af0296287919cce54347a5
query I rowsort
SELECT DISTINCT 93 + 40 * + col0 AS col0 FROM tab0 AS cor0
----
1053
1493
3653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT ALL - CAST( NULL AS SIGNED ) / 16 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - CAST ( NULL AS INTEGER ) / 16 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT ALL CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + - col2 + 7 * col0 FROM tab2 AS cor0
----
22
515
520
query I rowsort
SELECT - col1 * - ( + col2 + col0 ) FROM tab2
----
1054
1989
6136
query I rowsort
SELECT 19 * col2 * + tab2.col0 - - col1 FROM tab2
----
3622
38591
57055
query I rowsort
SELECT - col1 * col0 * - 61 FROM tab0 AS cor0
----
125904
207095
494039
onlyif mysql # use DIV operator for integer division
query I rowsort label-9971
SELECT ALL + col2 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + col2 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9974
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
query I rowsort
SELECT ALL col0 * 17 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT - col2 * ( - cor0.col1 ) + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - col2 * - col1 - 10 AS col1 FROM tab1
----
1238
1394
560
query I rowsort
SELECT col0 * col2 * 38 AS col0 FROM tab1
----
138624
291840
6156
query I rowsort
SELECT + + cor0.col2 + + 48 * col2 AS col0 FROM tab1 AS cor0
----
2646
2793
4704
query I rowsort
SELECT col1 + ( + tab2.col1 * - col0 ) AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col1 + ( tab1.col0 ) * - col2 FROM tab1
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9982
SELECT ALL col1 + - CAST( NULL AS SIGNED ) / tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) / tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - ( col1 ) col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT DISTINCT + col2 + - 73 DIV - col2 col0 FROM tab0 AS cor0
----
35
74
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + col2 + - 73 / - col2 col0 FROM tab0 AS cor0
----
35
74
82
query I rowsort
SELECT + 50 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL - - col0 + ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - tab2.col1 * + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a8ce768203b74f299b6ebad5477b14c1
query I rowsort
SELECT ALL - ( + tab0.col1 ) AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL 56 * col0 AS col1 FROM tab2
----
392
4368
4424
query I rowsort
SELECT DISTINCT + col1 + col0 * + ( col0 * tab1.col2 ) FROM tab1
----
233482
512
614413
query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL + 60 + tab0.col1 * col0 FROM tab0
----
2124
3455
8159
query I rowsort
SELECT - col0 * - cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 * + col2 col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT DISTINCT + col0 + col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL 59 * cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e298227e8343f9f79db5e6885a0a9fca
onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT - cor0.col1 DIV col1 - col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-9997
SELECT - cor0.col1 / col1 - col2 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT + 64 + cor0.col1 FROM tab2 AS cor0
----
123
81
95